/* Пульт проектов: вид по утвержденному макету mockup/*.dc.html (19.11.2026) */
:root {
  --ink: #16130D; --bg: #F6F5F1; --line: #E4E1D8; --line2: #EFEDE6; --muted: #5B5750; --text2: #3D3A34;
  --gold: #9A6B12; --gold2: #C9973A; --gold-soft: #F6EBD3; --gold-ink: #7A5410; --chip: #F1EFE9;
  --blue: #1F4E79; --blue-bg: #DDEBF7; --orange: #9A3F07; --orange-bg: #FCE5CD;
  --red: #B42318; --red-bg: #FDE3E1; --green: #2F6B3B; --green-bg: #DCEFD9; --warn: #B45309;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Inter, system-ui, -apple-system, sans-serif;
  font-variant-numeric: tabular-nums; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
a { color: var(--gold-ink); } a:hover { color: var(--ink); }
button, input, select { font-family: inherit; font-size: inherit; }
h1, h2, h3 { margin: 0; }
.wrap { max-width: 1360px; margin: 0 auto; padding: 0 24px; }

/* шапка */
.top { background: var(--ink); color: #fff; }
.top .wrap { padding-top: 12px; padding-bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.logo { width: 32px; height: 32px; border-radius: 8px; background: var(--gold2); color: var(--ink); display: flex;
  align-items: center; justify-content: center; font-weight: 700; font-size: 16px; }
.brand b { font-size: 16px; letter-spacing: .01em; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; }
.nav a { color: #D9D5CA; text-decoration: none; font-size: 14px; font-weight: 500; padding: 10px 14px; border-radius: 8px; min-height: 40px; display: inline-flex; align-items: center; }
.nav a.on { color: #fff; background: #2E2A22; font-weight: 600; }
.nav .count { background: var(--gold2); color: var(--ink); border-radius: 10px; padding: 1px 7px; font-size: 12px; font-weight: 700; margin-left: 6px; }
.top-right { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.stamp { font-size: 13px; color: #BDB8AC; }
.btn-top { min-height: 40px; padding: 0 14px; border-radius: 8px; border: 1px solid #4A443A; background: transparent; color: #fff;
  font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }

main.wrap { padding-top: 28px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 28px; }
.flash { padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 500; }
.flash.ok { background: var(--blue-bg); color: var(--blue); }
.flash.bad { background: var(--red-bg); color: var(--red); }

.lead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.lead h1 { font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
.lead p { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.lead .aside-note { margin: 0; font-size: 13px; color: var(--muted); max-width: 440px; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* карточки */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.card-head h3 { font-size: 19px; font-weight: 700; }
.sub { font-size: 13px; color: var(--muted); margin-top: 3px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tiles.wide { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.tile { background: var(--bg); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tile .l { font-size: 12px; color: var(--muted); }
.tile .v { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin-top: 2px; line-height: 1.15; }
.tiles.wide .tile .v { font-size: 30px; }
.tile .s { font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.tile .s.ok { color: var(--green); } .tile .s.warn { color: var(--orange); } .tile .s.bad { color: var(--red); }
.tile .n { font-size: 12px; color: var(--muted); }
.bar { height: 6px; background: var(--line); border-radius: 3px; margin-top: 8px; overflow: hidden; }
.bar i { display: block; height: 6px; background: var(--blue); }
.rows { display: flex; flex-direction: column; }
.row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 9px 0; border-top: 1px solid var(--line2); }
.row span:first-child { color: var(--muted); }
.row span:last-child { font-weight: 600; text-align: right; }
.row .warn { color: var(--warn); } .row .muted { color: var(--muted); font-weight: 500; }
.foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: auto; padding-top: 4px; }
.src { font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.src .stale { color: var(--red); }
.note { font-size: 12px; color: var(--muted); padding-top: 9px; border-top: 1px solid var(--line2); }
.open-link { font-size: 14px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; white-space: nowrap; }

/* метки */
.chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.chip.sq { border-radius: 6px; padding: 3px 8px; }
.chip.red { background: var(--red-bg); color: var(--red); }
.chip.orange { background: var(--orange-bg); color: var(--orange); }
.chip.blue { background: var(--blue-bg); color: var(--blue); }
.chip.green { background: var(--green-bg); color: var(--green); }
.chip.gray { background: var(--chip); color: var(--text2); }
.chip.muted { background: var(--chip); color: var(--muted); }
.chip.warn { background: #FFF4D6; color: var(--warn); }
.chip.gold { background: var(--gold-soft); color: var(--gold-ink); font-weight: 700; }
.chip.proj { background: var(--chip); color: var(--ink); }

/* раскладка */
.split { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.split > .main { flex: 999 1 620px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.split > aside { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; min-width: 0; }
.panel-h { padding: 18px 20px 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.panel-h h2 { font-size: 19px; font-weight: 700; }
.box { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.box h2 { font-size: 16px; font-weight: 700; }
.box-h { display: flex; align-items: center; gap: 8px; }
.box-h .r { margin-left: auto; font-size: 12px; color: var(--muted); }
.sep { border-top: 1px solid var(--line2); padding-top: 12px; }
.label-up { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }

/* решения */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tab { min-height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 13px; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.tab.on { border-color: var(--ink); background: var(--ink); color: #fff; font-weight: 600; }
.tab .c { color: var(--muted); } .tab.on .c { color: #fff; opacity: .7; }
.dec { border-top: 1px solid var(--line); padding: 16px 20px; display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; }
.dec-body { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.dec-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 12px; color: var(--muted); }
.dec-title { font-size: 16px; font-weight: 700; line-height: 1.3; }
.dec-why { font-size: 14px; color: var(--text2); }
.dec-after { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.dec-after b { color: var(--ink); font-weight: 600; }
.dec-act { flex: 1 1 240px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; min-width: 0; }
.btns { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.btns.left { justify-content: flex-start; }
.btns form { margin: 0; }
.btn { min-height: 44px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--ink); background: #fff; color: var(--ink);
  font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; gap: 6px; }
.btn.primary { background: var(--ink); color: #fff; }
.btn.light { border-color: var(--line); font-weight: 500; }
.btn.gold { border-color: var(--gold); color: var(--gold-ink); }
.btn.link { border-color: transparent; color: var(--gold-ink); padding: 0 10px; }
.btn.big { min-height: 48px; font-size: 15px; padding: 0 20px; }
.state { font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 8px; display: inline-flex; align-items: center; gap: 6px; }
.state.blue { background: var(--blue-bg); color: var(--blue); }
.state.gray { background: var(--chip); color: var(--muted); }
.state.orange { background: var(--orange-bg); color: var(--orange); }
.state.red { background: var(--red-bg); color: var(--red); }
.state.green { background: var(--green-bg); color: var(--green); }
.state.gold { background: var(--gold-soft); color: var(--gold-ink); }
.reason { font-size: 13px; color: var(--orange); font-weight: 600; }
.empty { padding: 20px; color: var(--muted); border-top: 1px solid var(--line); }

/* списки справа */
.sig { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.dot { width: 8px; height: 8px; border-radius: 4px; margin-top: 7px; flex: 0 0 8px; background: var(--warn); }
.dot.red { background: var(--red); }
.chk { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px; font-size: 13px; padding: 8px 0; }
.chk + .chk { border-top: 1px solid var(--line2); }
.chk.over b:first-child { color: var(--red); }

/* таблицы */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { background: var(--bg); text-align: left; color: var(--muted); font-size: 12px; font-weight: 600; padding: 10px 12px; }
td { padding: 12px; border-top: 1px solid var(--line); vertical-align: top; }
th:first-child, td:first-child { padding-left: 20px; }
th:last-child, td:last-child { padding-right: 20px; }
td.r, th.r { text-align: right; white-space: nowrap; }
tr.total td { border-top: 2px solid var(--ink); font-weight: 700; }
td .id { font-size: 12px; color: var(--muted); }
tr.warn td:first-child b { color: var(--orange); }
.caption { padding: 12px 20px 16px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }

/* гипотезы */
.hyp { display: grid; grid-template-columns: 56px minmax(0, 1fr) 64px 170px; gap: 12px; align-items: center; padding: 12px 20px;
  border-top: 1px solid var(--line); font-size: 14px; text-decoration: none; color: var(--ink); }
.hyp.hist { color: var(--muted); }
.hyp .dirn { color: var(--muted); font-size: 12px; }
.hyp .ice { text-align: center; }
.hyp .st { text-align: center; white-space: normal; }
.hyp .raw { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; font-weight: 500; }
details.auto { border-top: 1px solid var(--line); padding: 12px 20px; font-size: 13px; color: var(--muted); }
details.auto summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; }
.mini { display: grid; grid-template-columns: 52px minmax(0, 1fr) 120px; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line2); }

/* решение */
.big-h { font-size: 32px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
.facts { width: 100%; }
.facts td:first-child { width: 190px; color: var(--muted); font-size: 13px; }
.opinion { background: var(--gold-soft); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.opinion h2 { font-size: 16px; color: #4A3308; }
.opinion p { margin: 0; font-size: 14px; color: #3B2906; }
ol.steps { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.6; display: flex; flex-direction: column; gap: 4px; }
.textbox { background: var(--bg); border-radius: 10px; padding: 14px 16px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.verdict-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.verdict-form input[type=date] { min-height: 48px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; background: #fff; }
.ev { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; font-size: 14px; }
.ev .o { width: 22px; height: 22px; border-radius: 11px; background: var(--green-bg); color: var(--green); display: flex; align-items: center; justify-content: center; }
.ev .o.wait { background: transparent; border: 2px solid #D6D2C7; }
.ev .o.now { background: var(--blue-bg); border: 2px solid var(--blue); }
.ev .t { font-size: 12px; color: var(--muted); white-space: nowrap; }
.ev .d { display: block; font-size: 12px; color: var(--muted); }

/* вход */
.login { max-width: 460px; margin: 10vh auto; padding: 0 16px; }
.login .box { gap: 16px; padding: 28px; }
.login h1 { font-size: 24px; }

footer.f { font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; }
.toggle { display: flex; gap: 4px; background: var(--chip); padding: 4px; border-radius: 10px; }
.toggle button { min-height: 40px; padding: 0 14px; border-radius: 7px; border: none; background: transparent; color: var(--text2); font-size: 13px; font-weight: 500; cursor: pointer; }
.toggle button[aria-pressed=true] { background: #fff; color: var(--ink); font-weight: 600; }
[hidden] { display: none !important; }

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  main.wrap { padding-top: 20px; gap: 20px; }
  .lead h1, .big-h { font-size: 24px; }
  .top-right { margin-left: 0; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .tile .v { font-size: 24px; }
  .dec { padding: 14px 16px; }
  .dec-act { align-items: flex-start; }
  .btns { justify-content: flex-start; }
  .hyp { grid-template-columns: 48px minmax(0, 1fr); padding: 12px 16px; }
  .hyp .ice, .hyp .st { grid-column: 2; text-align: left; justify-self: start; }
  .panel-h { padding: 16px 16px 12px; }
  th:first-child, td:first-child { padding-left: 16px; }
  .facts td:first-child { width: 110px; }
  .box { padding: 16px; }
  .card { padding: 16px; }
}
