.expert { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; background: #f4f8fd; color: #303030; }
.expert-wait { padding: 48px; }
.expert-top, .expert-task, .expert-desk, .portal { min-width: 0; }
.expert-top {
  display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center;
  padding: 10px 14px; border-bottom: 1px solid #e6eef6; background: #fff; color: #303030;
}
.expert-top p, .expert-top strong { margin: 0; }
.expert-top .answer-link, .expert .btn-back { color: #006cdc; border-color: #b9d4f5; background: #fff; font-weight: 700; }
.expert-top strong { font-family: Manrope, "Segoe UI", sans-serif; font-size: 22px; font-weight: 800; color: #006cdc; }
.expert-body { min-height: 0; display: grid; grid-template-columns: 280px minmax(0, 1fr); }
.expert-task, .portal { overflow: auto; }
.expert-task { padding: 14px; border-right: 1px solid #e6eef6; background: #fff; }
.expert-task h2 { font-family: Manrope, "Segoe UI", sans-serif; color: #006cdc; font-weight: 800; }
.expert-desk {
  display: none;
  position: fixed; z-index: 40; top: 76px; right: 16px; bottom: 16px;
  width: min(1040px, calc(100vw - 32px));
  overflow: auto; padding: 18px 20px 28px;
  background: #f7f4ef; color: #1c1916;
  border-radius: 18px; box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
}
.expert-desk.is-open { display: grid; align-content: start; gap: 10px; }
.desk-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.desk-head h2 { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: 36px; color: #1c1916; }
.desk-open, .desk-head button, .desk-submit {
  border: 0; border-radius: 999px; padding: 10px 14px; font-weight: 700; cursor: pointer;
}
.desk-open, .desk-submit { background: #006cdc; color: #fff; }
.desk-head button { background: transparent; color: #1c1916; border: 1px solid #cfc6ba; }
.expert-desk p, .expert-desk label, .expert-desk h3, .expert-desk li, .expert-desk td, .expert-desk th, .expert-desk pre, .expert-desk small {
  color: #1c1916;
}
.expert-desk .desk-tabs button, .expert-desk .tree button, .expert-desk .link-row button {
  color: #1c1916; background: #fff; border-color: #d9d0c4;
}
.expert-desk .desk-tabs {
  gap: 8px;
  padding: 6px;
  background: #efe8dc;
  border-radius: 16px;
}
.expert-desk .desk-tabs button {
  font-weight: 700;
  border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
}
.expert-desk .desk-tabs button:hover { background: #fff; border-color: #1c1916; }
.expert-desk .desk-tabs button.is-on {
  background: #006cdc;
  color: #fff;
  border-color: #006cdc;
}
.editor .field-gap {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #e4ddd2;
}
.ev header { display: flex; align-items: center; gap: 8px; }
.ev header span { color: #6d645b; font-size: 12px; letter-spacing: .04em; }
.ev-delete {
  margin-left: auto;
  border: 1px solid #e4c4c0;
  background: #fff;
  color: #8f2d36;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
  cursor: pointer;
}
.ev-delete:hover { background: #8f2d36; color: #fff; }
.ev-shot { width: 100%; border-radius: 12px; display: block; margin: 8px 0; }
.shot-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.shot-tools button:not(.shot-swatch), .tool-act {
  border: 1px solid #d9d0c4;
  background: #fff;
  color: #1c1916;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}
.shot-tools button.is-on:not(.shot-swatch), .tool-act {
  background: #1c1916;
  color: #f6f1e7;
  border-color: #1c1916;
}
.shot-tools button:disabled { opacity: .45; cursor: default; }
.shot-colors { display: inline-flex; gap: 6px; align-items: center; }
.shot-swatch {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #cfc6ba;
  cursor: pointer;
}
.shot-swatch.is-on { box-shadow: 0 0 0 2px #1c1916; }
.shot-tools input[type="color"] {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.shot-stage { background: #efe8dc; border-radius: 16px; padding: 10px; overflow: auto; }
.shot-stage canvas {
  max-width: 100%;
  height: auto;
  display: block;
  background: #fff;
  border-radius: 10px;
  cursor: crosshair;
  touch-action: none;
}
.shot-empty { margin: 8px 4px 0; }
.expert-desk textarea { min-height: 160px; background: #fff; color: #1c1916; }
.portal h2, .portal h3, .report h2 { font-family: "Cormorant Garamond", Georgia, serif; margin: 0 0 8px; }
.expert-task h2 { font-family: Manrope, "Segoe UI", sans-serif; color: #006cdc; font-weight: 800; margin: 0 0 8px; }
.req, .desk-tabs button, .portal-nav button, .tree button, .link-row button, .spot {
  text-align: left; color: inherit; background: transparent; border: 1px solid rgba(212, 180, 131, 0.35); border-radius: 12px; padding: 8px 10px;
}
.expert-task .req { background: #fff; color: #303030; border: 1px solid #d5e6f8; }
.req { display: grid; gap: 4px; width: 100%; margin: 0 0 8px; }
.req.is-on, .desk-tabs button:hover { border-color: #d4b483; }
.expert-task .req.is-on { border-color: #006cdc; background: #f4f9ff; }
.req em { color: #d4b483; font-style: normal; font-size: 12px; }
.expert-task .req em { color: #006cdc; }
.desk-tabs, .portal-nav, .link-row, .filters { display: flex; flex-wrap: wrap; gap: 6px; }
.portal { overflow: auto; background: #f4efe6; color: #1c1916; padding: 16px 18px 28px; }
.portal-nav { position: sticky; top: 0; background: #f4efe6; padding-bottom: 8px; z-index: 2; }
.promo, .portal-card, .sheet, article.ev, .editor, .report {
  border: 1px solid #e4ddd2; border-radius: 16px; padding: 14px; background: #fff; margin: 10px 0;
  box-shadow: 0 10px 24px rgba(28, 25, 22, 0.05);
}
.promo { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 0; padding: 0; overflow: hidden; }
.promo .cover { width: 100%; height: 280px; object-fit: cover; display: block; }
.promo-copy { padding: 22px 22px 18px; display: grid; align-content: end; gap: 8px; }
.promo h2 { font-size: 46px; line-height: .95; }
.portal-nav button { background: #fff; }
.capture-toggle {
  border: 2px solid #006cdc; border-radius: 999px; padding: 8px 14px;
  background: #fff; color: #006cdc; font-weight: 700; cursor: pointer;
}
.capture-toggle.is-on { background: #006cdc; border-color: #006cdc; color: #fff; }
.arcade-open { border: 0; border-radius: 999px; padding: 10px 14px; background: #006cdc; color: #fff; font-weight: 700; cursor: pointer; }
.portal.is-capture .spot,
.portal.is-capture .portal-card,
.portal.is-capture .news-card,
.portal.is-capture figure,
.portal.is-capture .promo,
.portal.is-capture .portal-foot { cursor: crosshair; }
.portal.is-capture .is-picked { outline: 3px solid #1f4d45; outline-offset: 2px; }
.capture-bar {
  position: fixed; z-index: 50; left: 50%; bottom: 16px; transform: translateX(-50%);
  width: min(720px, calc(100vw - 24px));
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 12px 14px; border-radius: 16px;
  background: #1c1916; color: #f6f1e7;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.capture-bar p { margin: 0; flex: 1 1 220px; color: #f6f1e7; }
.capture-bar button {
  border: 0; border-radius: 999px; padding: 8px 12px; font-weight: 700; cursor: pointer;
  background: #f6f1e7; color: #1c1916;
}
.spot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.spot {
  background: #fff; color: #1c1916; min-height: 0; padding: 0 0 12px; overflow: hidden;
  display: grid; align-content: start; border-color: #e4ddd2;
  box-shadow: 0 8px 18px rgba(28, 25, 22, 0.06);
}
.spot .cover { width: 100%; height: 132px; object-fit: cover; display: block; }
.spot strong, .spot span, .spot em { display: block; padding: 0 12px; color: #1c1916; }
.spot strong { margin-top: 10px; }
.spot em { color: #5c564e; font-style: normal; }
.portal-card { padding: 0 0 16px; overflow: hidden; }
.portal-card > :not(.cover):not(.gallery) { margin-left: 16px; margin-right: 16px; }
.portal-card > .cover { width: 100%; height: 260px; object-fit: cover; display: block; margin: 0 0 12px; }
.news-list { display: grid; gap: 10px; }
.news-card { display: grid; grid-template-columns: 168px 1fr; gap: 12px; background: #fff; border: 1px solid #e4ddd2; border-radius: 16px; overflow: hidden; }
.news-card .cover { width: 100%; height: 100%; min-height: 110px; object-fit: cover; display: block; }
.news-card h3, .news-card p { margin: 8px 12px 0 0; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 12px; }
.gallery figure { margin: 0; }
.gallery .cover { width: 100%; height: 140px; object-fit: cover; display: block; }
.gallery figcaption { font-size: 13px; padding: 6px 2px 0; }
.answer-link { font-weight: 700; }
.portal label, .expert-desk label { display: grid; gap: 4px; font-size: 13px; }
.portal input, .portal textarea, .portal select, .expert-desk input, .expert-desk textarea, .expert-desk select {
  width: 100%; border-radius: 10px; border: 1px solid #d9d0c4; padding: 8px 10px; font: inherit; background: #fff; color: #1c1916;
}
.expert-desk textarea { min-height: 160px; background: #fff; color: #1c1916; }
.expert-desk .editor, .expert-desk .ev, .expert-desk .sheet, .expert-desk .report {
  background: #fff; color: #1c1916;
}
.portal-foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 18px; font-size: 13px; color: #4e473f; }
.code-layout { display: grid; grid-template-columns: 220px 1fr; gap: 8px; }
.tree { display: grid; gap: 4px; align-content: start; }
pre, .code { white-space: pre-wrap; font-family: Consolas, "Courier New", monospace; font-size: 12.5px; line-height: 1.45; }
.code span { display: block; }
mark { background: #f3d48a; }
.tech-list { list-style: none; padding: 0; display: grid; gap: 6px; }
.tech-list li { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid rgba(212, 180, 131, 0.25); padding-bottom: 4px; }
.whois small, .portal-note { display: block; color: #6d645c; font-size: 12px; }
.table-wrap { overflow: auto; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table-wrap td, .table-wrap th { border-bottom: 1px solid rgba(212, 180, 131, 0.3); padding: 6px; text-align: left; }
.report { margin: 12px; }
.comment { border-top: 1px solid #e4ddd2; padding-top: 8px; }
.reply { margin-left: 12px; color: #4e473f; }
@media (max-width: 1100px) {
  .expert-body { grid-template-columns: 1fr; }
  .expert-task { border: 0; }
  .expert-desk { top: 8px; right: 8px; bottom: 8px; width: calc(100vw - 16px); }
  .code-layout { grid-template-columns: 1fr; }
  .promo { grid-template-columns: 1fr; }
  .promo h2 { font-size: 32px; }
  .news-card, .gallery { grid-template-columns: 1fr; }
}
.paper { background: #fff; color: #1c1916; border: 1px solid #cfc6ba; box-shadow: 0 10px 28px rgba(28, 25, 22, .08); margin: 12px 0; padding: 28px 32px 18px; }
.paper-top, .paper-foot { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: #5c564e; }
.paper-top { border-bottom: 1px solid #1c1916; padding-bottom: 8px; margin-bottom: 18px; }
.paper-foot { border-top: 1px solid #1c1916; padding-top: 8px; margin-top: 28px; }
.paper-center { text-align: center; font-weight: 700; }
.paper h4 { margin: 16px 0 6px; font-size: 15px; }
.paper p { margin: 6px 0; line-height: 1.45; }
.paper-stamp { width: min(240px, 100%); margin: 8px 0 16px auto; border: 1px solid #1c1916; padding: 8px 10px; font-size: 12px; line-height: 1.45; }
.expert-desk.is-capture .paper-block { cursor: crosshair; }
.paper-block.is-picked { background: #e7f1fc; outline: 2px solid #006cdc; }
.matrix { min-width: 720px; }
.matrix select { width: 72px; padding: 4px; }
.matrix-group td { background: #f4f8fd; font-weight: 800; color: #0b4f9c; }
.fine, .field-hint { color: #5c6b7a; font-size: 13px; font-weight: 500; line-height: 1.4; }
.field-hint { display: block; margin: 2px 0 6px; }
.expert-desk .field-hint { color: #5c6b7a; }
.count-short, .expert-desk .count-short { color: #8f2d36; font-weight: 700; }
.count-ok, .expert-desk .count-ok { color: #0f6e4c; font-weight: 700; }
.gap-list, .expert-desk .gap-list { margin: 8px 0 0; padding-left: 18px; color: #8f2d36; font-size: 13px; }
.gap-list li, .expert-desk .gap-list li { margin: 4px 0; color: #8f2d36; }
.review-list { display: grid; gap: 8px; margin-top: 8px; }
.review-row { border: 1px solid #d5e6f8; border-left: 4px solid #b42318; border-radius: 12px; padding: 10px 12px; background: #fff; }
.review-row.is-ok { border-left-color: #1f4d45; }
.review-row h3 { margin: 0 0 6px; font-size: 16px; }
.review-row p { margin: 0 0 4px; }
.conclusion-window {
  position: fixed; inset: 0; z-index: 80;
  display: grid; padding: 16px;
  background: rgba(15, 39, 68, .45);
}
.conclusion-sheet {
  min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr);
  background: #f4f8fd; color: #303030;
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 18px 48px rgba(15, 39, 68, .28);
}
.conclusion-head {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  padding: 14px 18px; background: #fff; border-bottom: 1px solid #e6eef6;
}
.conclusion-head h2 { margin: 0; font-family: Manrope, "Segoe UI", sans-serif; font-size: 28px; font-weight: 800; color: #006cdc; }
.conclusion-head button {
  border: 1px solid #b9d4f5; background: #fff; color: #006cdc;
  border-radius: 999px; padding: 8px 14px; font-weight: 700; cursor: pointer;
}
.conclusion-layout { min-height: 0; display: grid; grid-template-columns: minmax(280px, 1fr) minmax(340px, 1.1fr); }
.conclusion-materials, .conclusion-editor { min-height: 0; overflow: auto; padding: 16px 18px 24px; }
.conclusion-editor { background: #fff; border-left: 1px solid #e6eef6; }
.conclusion-materials h3, .conclusion-editor h3 { margin: 16px 0 8px; color: #006cdc; font-family: Manrope, "Segoe UI", sans-serif; font-weight: 800; }
.conclusion-materials h3:first-child { margin-top: 0; }
.conclusion-bit { background: #fff; border: 1px solid #d5e6f8; border-radius: 14px; padding: 12px; margin: 0 0 10px; }
.conclusion-bit header { display: flex; gap: 8px; align-items: baseline; }
.conclusion-bit p, .conclusion-bit pre { margin: 6px 0; white-space: pre-wrap; }
.conclusion-bit button, .conclusion-editor .desk-submit {
  border: 0; border-radius: 999px; padding: 8px 14px; font-weight: 700; cursor: pointer;
  background: #006cdc; color: #fff;
}
.conclusion-bit button:disabled, .conclusion-editor .desk-submit:disabled { opacity: .5; cursor: default; }
.conclusion-empty { color: #5c6b7a; }
.conclusion-editor label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; }
.conclusion-editor textarea, .conclusion-editor select {
  width: 100%; box-sizing: border-box; border: 1px solid #d5e6f8; border-radius: 12px;
  background: #fff; color: #303030; font: inherit; font-weight: 500;
}
.conclusion-editor textarea { min-height: 280px; padding: 12px; resize: vertical; }
.conclusion-editor select { padding: 10px 12px; }
.conclusion-editor .field-hint { color: #5c6b7a; font-weight: 500; }
.conclusion-editor .desk-submit { margin-top: 12px; padding: 12px 16px; }
@media (max-width: 900px) {
  .conclusion-window { padding: 0; }
  .conclusion-sheet { border-radius: 0; }
  .conclusion-layout { grid-template-columns: 1fr; }
  .conclusion-editor { border-left: 0; border-top: 1px solid #e6eef6; }
}
