* { box-sizing: border-box; }
body { margin: 0; background: #0f131b; color: #e7eefb;
       font: 14px/1.45 -apple-system, system-ui, Roboto, sans-serif; }
a { color: #8ab4ff; text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
aside { background: #141a24; border-right: 1px solid #1e2634; padding: 12px 10px; }
aside .lg { font-size: 16px; font-weight: 700; padding: 2px 8px 4px; }
aside .sub { color: #6b7789; font-size: 12px; padding: 0 8px 10px; }
aside .gr { color: #5f6b80; font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
            padding: 14px 8px 4px; }
aside a.m { display: flex; justify-content: space-between; gap: 8px; padding: 8px 9px; border-radius: 9px;
            color: #c6d2e4; font-size: 14px; }
aside a.m:hover { background: #18202c; text-decoration: none; }
aside a.m.on { background: #1f6a43; color: #fff; }
aside a.m .n { background: #222c3b; border-radius: 99px; padding: 0 7px; font-size: 12px; color: #aab6c8; }
aside a.m.on .n { background: #165533; color: #fff; }
main { padding: 14px 18px 40px; max-width: 1400px; }
.demo { background: #3a2a12; color: #ffe0a8; border-radius: 10px; padding: 8px 12px; margin-bottom: 12px; font-size: 13px; }
.demo b { color: #fff; }
.top { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.top h1 { margin: 0; font-size: 20px; font-weight: 800; flex: 1; }
.top .when { color: #6b7789; font-size: 12.5px; }
.kpi { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 14px; }
.kpi div { background: #141a24; border-radius: 12px; padding: 12px 14px; }
.kpi .v { font-size: 24px; font-weight: 800; line-height: 1.1; }
.kpi .l { color: #8493a8; font-size: 12px; margin-top: 3px; }
.row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; }
.card { background: #141a24; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.card h2 { margin: 0 0 10px; font-size: 15px; font-weight: 700; display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.card h2 span { color: #7c8899; font-weight: 400; font-size: 12.5px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid #1d2532; vertical-align: middle; }
th { color: #7b879b; font-weight: 400; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.muted { color: #7c8899; font-size: 13px; }
.chip { display: inline-block; background: #1b2434; border-radius: 7px; padding: 3px 8px; margin: 1px 3px 0 0; font-size: 12.5px; }
.st { display: inline-block; border-radius: 8px; padding: 2px 8px; font-size: 12px; font-weight: 700; }
.st.wait { background: #1b2434; color: #c6d2e4; }
.st.work { background: #2f2713; color: #ffe0a8; }
.st.diff { background: #3a1f1f; color: #ffd0cb; }
.st.done { background: #17331f; color: #a9e7bf; }
.btn { display: inline-block; border: 0; border-radius: 10px; padding: 9px 14px; background: #2e7d4f; color: #fff;
       font-weight: 700; font-size: 13.5px; cursor: pointer; text-decoration: none; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.sec { background: #1f4a7a; }
.btn.ghost { background: #222c3b; color: #c6d2e4; }
.btn.danger { background: #7a2a2a; }
.btn[disabled] { opacity: .5; cursor: default; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 12px; }
input, select, textarea { padding: 9px 11px; border-radius: 9px; border: 0; background: #1b2434; color: #fff; font: inherit; }
textarea { width: 100%; min-height: 80px; }
label { display: block; color: #8493a8; font-size: 12px; margin: 8px 0 4px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.meta div { background: #10141c; border-radius: 10px; padding: 10px 12px; }
.meta .l { color: #7c8899; font-size: 11px; text-transform: uppercase; }
.meta .v { font-weight: 700; margin-top: 2px; }
.photos { display: flex; gap: 10px; flex-wrap: wrap; }
.photos figure { margin: 0; width: 200px; background: #10141c; border-radius: 10px; overflow: hidden; }
.photos img { display: block; width: 100%; height: 140px; object-fit: cover; background: #222; }
.photos figcaption { padding: 6px 8px; font-size: 12px; color: #aab6c8; }
.diff { color: #ffd0cb; font-weight: 700; }
.ok { color: #a9e7bf; }
.warn { color: #ffe0a8; }
.enter { max-width: 820px; margin: 8vh auto; padding: 0 16px 40px; }
.enter h1 { font-size: 28px; margin: 0 0 8px; }
.enter .cards { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-top: 20px; }
.enter a.pick { display: block; background: #141a24; border-radius: 14px; padding: 18px 16px; color: #e7eefb; }
.enter a.pick:hover { background: #18202c; text-decoration: none; }
.enter a.pick .t { font-size: 18px; font-weight: 800; }
.enter a.pick .s { color: #8493a8; margin-top: 6px; font-size: 13px; }
.sellbar { background: #18202c; border-bottom: 1px solid #1e2634; padding: 10px 16px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.sellbar .lg { font-weight: 800; }
.sellbar nav a { color: #c6d2e4; margin-right: 12px; }
.sellbar nav a.on { color: #fff; font-weight: 700; }
.sheet { background: #fff; color: #111; border-radius: 4px; padding: 24px 28px; max-width: 820px; margin: 0 auto 30px;
         box-shadow: 0 0 0 1px #ddd; }
.sheet h1 { color: #111; font-size: 20px; margin: 0 0 4px; }
.sheet table th, .sheet table td { border-bottom: 1px solid #ddd; color: #111; }
.sheet table th { color: #555; }
.sheet .foot { margin-top: 16px; font-size: 13px; color: #444; }
@media print {
  body { background: #fff; }
  .noprint, aside, .demo, .actions, .sellbar { display: none !important; }
  .wrap { display: block; }
  main { padding: 0; max-width: none; }
  .sheet { box-shadow: none; max-width: none; }
}
@media (max-width: 1100px) {
  .kpi { grid-template-columns: repeat(3, 1fr); }
  .row, .grid2, .meta { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .wrap { grid-template-columns: 1fr; }
  aside { border-right: 0; border-bottom: 1px solid #1e2634; }
  .kpi, .enter .cards, .meta { grid-template-columns: 1fr 1fr; }
}

textarea.big { min-height: 140px; width: 100%; }
label.chk { color: #c6d2e4; font-size: 13.5px; margin: 6px 0; }
.src { white-space: pre-wrap; background: #10141c; border-radius: 10px; padding: 10px 12px; }
.unkbox { outline: 1px solid #5a2a2a; }
.unk { display: block; background: #3a1f1f; color: #ffd0cb; border-radius: 8px; padding: 8px 10px; margin: 6px 0; }
.totals { display: flex; gap: 24px; flex-wrap: wrap; margin: 12px 0; font-size: 15px; }
.totals b { font-size: 18px; }
input.numin { width: 90px; text-align: right; }
table.edit td { vertical-align: top; }
