/* O'quv reja taqsimoti — interfeys uslublari (tashqi shrift/kutubxonasiz) */
:root {
  --paper: #f5f3ee;
  --card: #ffffff;
  --ink: #18212f;
  --ink-2: #4a5568;
  --ink-3: #7b8696;
  --line: #e2ddd2;
  --line-2: #cfc8b9;
  --navy: #173a5e;
  --navy-2: #24527f;
  --gold: #f2c14e;
  --gold-soft: #fdf3d6;
  --ok: #2f7d4f;
  --ok-soft: #e4f2e8;
  --bad: #b03a2e;
  --bad-soft: #fbe9e6;
  --warn: #a8670b;
  --warn-soft: #fdf0d9;
  --tanlov: #6b4fa0;
  --tanlov-soft: #f1ecf8;
  --focus: #2f6fb5;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(24, 33, 47, .06), 0 6px 18px rgba(24, 33, 47, .05);
  --sans: "Segoe UI", "Inter", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Georgia", "Cambria", "Times New Roman", serif;
  --mono: "Cascadia Mono", "Consolas", "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 14px/1.45 var(--sans);
  font-variant-numeric: tabular-nums;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; margin: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }

/* ---------- Yuqori panel ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 28px; background: var(--navy); color: #fff;
  position: sticky; top: 0; z-index: 30;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 8px; flex: none;
  background:
    linear-gradient(var(--gold), var(--gold)) 8px 10px / 18px 3px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 8px 16px / 18px 3px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 8px 22px / 11px 3px no-repeat,
    rgba(255, 255, 255, .1);
}
.brand-title { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.brand-sub { font-size: 12px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 52vw; }
.top-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.topbar .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .25); background: transparent; }
.topbar .btn.ghost:hover { background: rgba(255, 255, 255, .1); }
.topbar .danger-text { color: #ffcfc8 !important; }
.save-state { font-size: 12px; opacity: .8; margin-right: 8px; min-width: 80px; text-align: right; }

/* ---------- Bosqichlar ---------- */
.stepper {
  display: grid; grid-template-columns: repeat(8, 1fr);
  background: var(--card); border-bottom: 1px solid var(--line);
  position: sticky; top: 58px; z-index: 25;
}
.step-tab {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border: 0; border-bottom: 3px solid transparent; background: none; cursor: pointer; text-align: left;
}
.step-tab:hover { background: #faf8f4; }
.step-tab[aria-current="step"] { border-bottom-color: var(--gold); background: #fffdf7; }
.step-tab:disabled { cursor: not-allowed; opacity: .45; }
.step-no {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none;
  border: 1.5px solid var(--line-2); font-weight: 600; font-size: 13px; color: var(--ink-2);
}
.step-tab[aria-current="step"] .step-no { background: var(--navy); border-color: var(--navy); color: #fff; }
.step-tab.done .step-no { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.step-tab.attention .step-no { background: var(--warn-soft); border-color: var(--warn); color: var(--warn); }
.step-name { font-weight: 600; font-size: 13px; line-height: 1.2; }
.step-hint { font-size: 11.5px; color: var(--ink-3); }

/* ---------- Asosiy qism ---------- */
main { flex: 1; padding: 22px 28px 120px; width: 100%; max-width: 1680px; margin: 0 auto; outline: none; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { font-size: 26px; }
.page-head p { margin: 4px 0 0; color: var(--ink-2); max-width: 760px; }
.eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); font-weight: 600; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 18px 20px; }
.card h2 { font-size: 17px; margin-bottom: 4px; }
.card .sub { color: var(--ink-3); font-size: 12.5px; margin: 0 0 12px; }

.grid-2 { display: grid; grid-template-columns: minmax(320px, 1fr) minmax(320px, 1.25fr); gap: 18px; margin-bottom: 22px; }
@media (max-width: 980px) { .grid-2 { grid-template-columns: 1fr; } .stepper { grid-template-columns: repeat(8, minmax(120px, 1fr)); overflow-x: auto; } .step-hint { display: none; } }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.toolbar .spacer { flex: 1; }
.section-title { display: flex; align-items: baseline; gap: 10px; margin: 26px 0 10px; }
.section-title h2 { font-size: 19px; }
.section-title .count { color: var(--ink-3); font-size: 13px; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 600; }
.tag.majburiy { background: #e7eef6; color: var(--navy); }
.tag.tanlov { background: var(--tanlov-soft); color: var(--tanlov); }

/* ---------- Tugmalar ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 7px;
  border: 1px solid var(--line-2); background: var(--card); cursor: pointer; font-weight: 500; font-size: 13px;
  white-space: nowrap; transition: background .12s, border-color .12s;
}
.btn:hover { background: #f7f5f0; border-color: var(--ink-3); }
.btn.primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn.primary:hover { background: var(--navy-2); }
.btn.gold { background: var(--gold); border-color: #d9a52f; color: #3a2a00; }
.btn.gold:hover { background: #f5cb66; }
.btn.small { padding: 3px 8px; font-size: 12px; }
.btn.icon { padding: 3px 7px; font-size: 13px; line-height: 1; }
.btn.danger { color: var(--bad); }
.btn.danger:hover { background: var(--bad-soft); border-color: var(--bad); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; background: var(--card); }
.seg button { border: 0; background: none; padding: 6px 12px; cursor: pointer; font-size: 13px; border-right: 1px solid var(--line); }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--navy); color: #fff; }

/* ---------- Formalar ---------- */
.field { display: flex; flex-direction: column; gap: 4px; }
.field label, .label { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.field-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; }
.input {
  border: 1px solid var(--line-2); border-radius: 7px; padding: 6px 9px; background: #fff; min-width: 0;
}
.input:focus { border-color: var(--focus); outline: none; box-shadow: 0 0 0 3px rgba(47, 111, 181, .15); }
.input.num { width: 84px; text-align: right; }
.ratio-display { font-family: var(--serif); font-size: 28px; font-weight: 600; color: var(--navy); }
.ratio-display small { font-family: var(--sans); font-size: 12px; color: var(--ink-3); font-weight: 400; margin-left: 6px; }

.dropzone {
  border: 2px dashed var(--line-2); border-radius: var(--radius); padding: 22px; text-align: center;
  background: #fbfaf7; cursor: pointer; transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.over { border-color: var(--navy); background: #f2f6fa; }
.dropzone strong { display: block; font-size: 15px; margin-bottom: 4px; }
.dropzone span { color: var(--ink-3); font-size: 12.5px; }
.source-box { margin-top: 14px; font-size: 13px; }
.source-box dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; }
.source-box dt { color: var(--ink-3); }
.source-box dd { margin: 0; font-weight: 500; }
.notes { margin: 10px 0 0; padding: 10px 12px 10px 28px; background: var(--warn-soft); border-radius: 8px; color: #6b4304; font-size: 12.5px; }
.notes li + li { margin-top: 3px; }

/* ---------- Jadvallar ---------- */
.table-wrap {
  overflow: auto; max-height: calc(100vh - 250px); border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); box-shadow: var(--shadow);
}
.table-wrap.free { max-height: none; }
table.t { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; }
.t th, .t td { padding: 5px 8px; border-bottom: 1px solid var(--line); border-right: 1px solid #efebe2; white-space: nowrap; }
.t th { background: #f4f1ea; font-weight: 600; font-size: 12px; color: var(--ink-2); text-align: center; position: sticky; top: 0; z-index: 3; }
.t td.n, .t th.n { text-align: right; }
.t td.c { text-align: center; }
.t .sticky-col { position: sticky; left: 0; z-index: 2; background: var(--card); box-shadow: 1px 0 0 var(--line); }
.t th.sticky-col { z-index: 4; background: #f4f1ea; }
.t .name-cell { min-width: 260px; max-width: 380px; white-space: normal; }
.t .name-cell .code { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.t .name-cell .alt { color: var(--tanlov); font-size: 12px; }
.t .order { color: var(--ink-3); font-size: 12px; text-align: center; width: 48px; }
.t tbody tr:hover td { background: #fbfaf6; }
.t tbody tr:hover td.sticky-col { background: #fbfaf6; }
.t tr.row-bad td { background: #fdf4f2; }
.t tr.row-bad td.sticky-col { background: #fdf4f2; box-shadow: inset 3px 0 0 var(--bad), 1px 0 0 var(--line); }
.t tr.row-tanlov td.sticky-col { box-shadow: inset 3px 0 0 var(--tanlov), 1px 0 0 var(--line); }
.t tr.row-tanlov.row-bad td.sticky-col { box-shadow: inset 3px 0 0 var(--bad), 1px 0 0 var(--line); }
.t tr.block-row td { background: #efe9dc; font-weight: 700; font-family: var(--serif); font-size: 14px; }
.t tr.total-row td { background: #f4f1ea; font-weight: 600; }
.t tr.total-row.all td { background: #e3ebe5; font-weight: 700; }
.t tr.total-row.block-sum td { background: #efe9dc; font-weight: 700; }
.t tr.total-row.block-sum td.sticky-col { background: #efe9dc; }
.lvl { display: inline-block; padding: 0 6px; border-radius: 4px; font-size: 11px; font-weight: 700; margin-right: 4px; }
.lvl.err { background: var(--bad-soft); color: var(--bad); }
.lvl.warn { background: var(--warn-soft); color: var(--warn); }
.lvl.info { background: #e7eef6; color: var(--navy); }
.t tr.total-row td.sticky-col { background: inherit; }
.t td.muted, .muted { color: var(--ink-3); }
.t td.sem-off { background: repeating-linear-gradient(135deg, #faf9f6, #faf9f6 4px, #f3f1ec 4px, #f3f1ec 8px); }

/* Jadval ichidagi kiritish kataklari */
.cell-in {
  width: 54px; padding: 4px 6px; border: 1px solid #cdc6b7; border-radius: 5px; text-align: right;
  background: #ebe7de; font-variant-numeric: tabular-nums;
}
.cell-in.wide { width: 72px; }
.cell-in.text { width: 100%; text-align: left; background: transparent; border-color: transparent; }
.cell-in.text.code { font-family: var(--mono); font-size: 12px; width: 150px; }
.cell-in:hover { border-color: var(--ink-3); }
.cell-in:focus { border-color: var(--focus); background: #fff; outline: none; box-shadow: 0 0 0 3px rgba(47, 111, 181, .15); }
.cell-in.auto { color: var(--ink-3); font-style: italic; }
.cell-in.filled { background: #cfdfee; border-color: #8fadcc; color: var(--navy); font-weight: 700; }
.cell-in.manual { background: #f8e3a8; border-color: #d9b24e; font-weight: 600; }
.cell-in.bad { background: #f6d3cd; border-color: #d98a7e; color: var(--bad); }
.cell-in:disabled { background: transparent; color: #c5c0b5; }
.sub-hours { display: block; font-size: 10.5px; color: var(--ink-3); text-align: right; padding-right: 7px; line-height: 1.1; }

.status { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 12px; padding: 1px 8px; border-radius: 99px; }
.status.mos { background: var(--ok-soft); color: var(--ok); }
.status.kam, .status.ortiqcha { background: var(--bad-soft); color: var(--bad); }
.status.neutral { background: #eee; color: var(--ink-2); }
.pos { color: var(--warn); font-weight: 600; }
.neg { color: var(--bad); font-weight: 600; }
.zero { color: var(--ok); font-weight: 600; }
.warn-ico { color: var(--warn); font-weight: 700; cursor: help; }

/* ---------- 1-bosqich: qadam-baqadam karta ---------- */
.focus-card { max-width: 860px; margin: 0 auto; padding: 28px 32px; }
.focus-card .counter { font-size: 12px; color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.focus-card h2 { font-size: 26px; margin: 6px 0 2px; }
.focus-card .meta { color: var(--ink-2); margin-bottom: 20px; }
.focus-card .question { font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.split-bar { display: flex; height: 44px; border-radius: 9px; overflow: hidden; margin: 6px 0 16px; border: 1px solid var(--line-2); }
.split-bar .aud { background: var(--navy); color: #fff; display: flex; align-items: center; padding: 0 14px; font-weight: 600; min-width: 0; white-space: nowrap; transition: width .15s; }
.split-bar .mus { background: var(--gold-soft); color: #6b4a00; display: flex; align-items: center; justify-content: flex-end; padding: 0 14px; font-weight: 600; flex: 1; white-space: nowrap; min-width: 0; }
.split-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.split-controls .big { font-size: 22px; width: 110px; text-align: right; font-weight: 600; }
.split-controls .pct { color: var(--ink-3); margin-left: 8px; }
input[type="range"] { width: 100%; accent-color: var(--navy); margin: 4px 0 18px; }
.focus-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; gap: 10px; flex-wrap: wrap; }
.dots { display: flex; flex-wrap: wrap; gap: 4px; max-width: 860px; margin: 18px auto 0; justify-content: center; }
.dot { width: 26px; height: 22px; border-radius: 5px; border: 1px solid var(--line-2); background: var(--card); font-size: 10.5px; cursor: pointer; padding: 0; color: var(--ink-2); }
.dot.changed { background: var(--gold-soft); border-color: #e3c06c; }
.dot.tanlov { border-color: #c9b8e3; }
.dot.current { background: var(--navy); color: #fff; border-color: var(--navy); }
.kbd { font-family: var(--mono); font-size: 11px; padding: 1px 5px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; background: #fff; }

/* ---------- Xulosa kartalari ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { padding: 14px 16px; }
.stat .k { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.stat .v { font-family: var(--serif); font-size: 26px; font-weight: 600; margin-top: 2px; }
.stat .v small { font-size: 13px; color: var(--ink-3); font-family: var(--sans); font-weight: 400; }
.stat.good { border-left: 4px solid var(--ok); }
.stat.bad { border-left: 4px solid var(--bad); }
.issue-list { margin: 0; padding-left: 18px; font-size: 13px; columns: 2; column-gap: 32px; }
.issue-list li { margin-bottom: 3px; break-inside: avoid; }

/* ---------- Pastki navigatsiya ---------- */
.wizard-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 28px; background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.wizard-nav .summary { font-size: 13px; color: var(--ink-2); display: flex; gap: 18px; flex-wrap: wrap; }
.wizard-nav .summary b { color: var(--ink); }

/* ---------- Dialog va xabarlar ---------- */
.dialog { border: 0; border-radius: 12px; padding: 0; width: min(520px, 92vw); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.dialog::backdrop { background: rgba(24, 33, 47, .45); }
.dialog form { padding: 22px 24px; }
.dialog h3 { font-size: 19px; margin-bottom: 10px; }
.dialog #dialog-body { color: var(--ink-2); font-size: 14px; max-height: 50vh; overflow: auto; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.toasts { position: fixed; right: 20px; bottom: 76px; display: flex; flex-direction: column; gap: 8px; z-index: 50; }
.toast { background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; font-size: 13px; box-shadow: var(--shadow); max-width: 420px; animation: pop .18s ease-out; }
.toast-text { white-space: pre-line; line-height: 1.5; }
.toast.error { background: var(--bad); position: relative; padding: 12px 40px 12px 16px; max-width: 480px; }
.toast-close {
  position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border: 0; border-radius: 6px;
  background: rgba(255, 255, 255, .15); color: #fff; font-size: 18px; line-height: 1; cursor: pointer;
}
.toast-close:hover { background: rgba(255, 255, 255, .3); }
.toast.ok { background: var(--ok); }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }

.empty { text-align: center; padding: 60px 20px; color: var(--ink-3); }
.empty h2 { color: var(--ink); margin-bottom: 6px; }
.hint { font-size: 12.5px; color: var(--ink-3); }
.only-print { display: none; }

/* ---------- Chop etish ---------- */
@media print {
  @page { size: A4 landscape; margin: 10mm; }
  body { background: #fff; font-size: 10px; }
  .topbar, .stepper, .wizard-nav, .toolbar, .toasts, .no-print, .btn, .dots { display: none !important; }
  main { padding: 0; max-width: none; }
  .only-print { display: block; }
  .card { box-shadow: none; }
  .table-wrap { max-height: none; overflow: visible; box-shadow: none; border: 0; }
  .t th, .t td { padding: 2px 4px; border: 1px solid #999; position: static !important; }
  .cell-in { border: 0; background: none !important; width: auto; padding: 0; font-style: normal; color: #000; }
  .t tr.row-bad td { background: none; }
  .stats { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Eksport paneli (Natija) ---------- */
.export-bar { margin-bottom: 18px; }
.export-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.export-name { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 260px; max-width: 640px; }
.export-name .input { flex: 1; min-width: 0; font-family: var(--mono); font-size: 13px; }

/* ---------- O'quv jarayoni grafigi ---------- */
:root {
  --g-s: #ffffff; --g-ft: #d8e6f5; --g-a: #fde7b0; --g-m: #cfead6; --g-b: #e2d6f3;
  --g-d: #f6cfc9; --g-t: #e4e2dc; --g-g: #c9ebe8;
}
.g-wrap { max-height: none; }
.g-table { width: auto; font-size: 12px; }
.g-table th, .g-table td { padding: 2px 3px; }
.g-table th.g-wk { font-size: 10px; font-weight: 500; color: var(--ink-3); min-width: 22px; }
.g-table th.g-month { font-size: 11px; }
.g-table th.g-tot-h { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; font-size: 11px; padding: 6px 2px; }
.g-table td.gc {
  width: 22px; min-width: 22px; height: 28px; text-align: center; font-weight: 700; font-size: 11px;
  cursor: pointer; user-select: none; border-right: 1px solid #e6e1d6; outline-offset: -2px;
}
.g-table td.gc:focus { outline: 2px solid var(--focus); }
.g-table td.g-label { font-weight: 700; text-align: center; }
.g-params { white-space: nowrap; font-size: 12px; }
.g-params label { display: inline-flex; align-items: center; gap: 3px; margin-right: 4px; color: var(--ink-2); }
.g-params .cell-in { text-align: center; padding: 2px 4px; }
.g-s { background: var(--g-s); } .g-ft { background: var(--g-ft); } .g-a { background: var(--g-a); }
.g-m { background: var(--g-m); } .g-b { background: var(--g-b); } .g-d { background: var(--g-d); }
.g-t { background: var(--g-t); } .g-g { background: var(--g-g); }
.t tbody tr:hover td.gc.g-s { background: #fbfaf6; }
td.gc.g-out, .g-sw.g-out { background: repeating-linear-gradient(135deg, #f2f0ea, #f2f0ea 3px, #dedad1 3px, #dedad1 6px); }
td.gc.g-diff, .g-sw.g-diff { box-shadow: inset 0 0 0 2px var(--bad); }
.g-palette { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.g-tool { border: 1px solid var(--line-2); border-radius: 6px; padding: 4px 9px; font-weight: 700; font-size: 12px; cursor: pointer; }
.g-tool[aria-pressed="true"] { outline: 2px solid var(--navy); outline-offset: 1px; }
.g-tool.g-rev { background: #fff; font-weight: 500; }
.g-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 0 4px; font-size: 12px; color: var(--ink-2); }
.g-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.g-sw { display: inline-grid; place-items: center; width: 24px; height: 20px; border: 1px solid var(--line-2); border-radius: 4px; font-weight: 700; font-size: 11px; color: var(--ink); }

/* Natija: formula kataklari va ularning manbasi */
.res-table td[data-fx] { cursor: help; }
.res-table td[data-fx]:focus { outline: 2px solid var(--focus); outline-offset: -2px; }
.res-table td.fx-hl { box-shadow: inset 0 0 0 2px var(--navy); background: #e3ecf6 !important; }
.res-table td.src-hl { background: var(--gold-soft) !important; box-shadow: inset 0 0 0 1px #d9b24e; }

/* ---------- Yuklash / eksport jarayoni ko'rsatkichi ---------- */
.progress-box {
  position: fixed; left: 50%; top: 84px; transform: translateX(-50%); z-index: 60;
  width: min(440px, calc(100vw - 32px)); padding: 14px 16px 12px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--line); box-shadow: 0 12px 34px rgba(24, 33, 47, .18);
}
.progress-box[hidden] { display: none; }
.progress-title { font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.progress-track { position: relative; height: 10px; border-radius: 99px; background: #ebe7de; overflow: hidden; }
.progress-fill { height: 100%; width: 0; border-radius: 99px; background: var(--navy); transition: width .2s ease; }
.progress-track.indeterminate .progress-fill {
  width: 35%; position: absolute; left: 0; transition: none;
  animation: progress-slide 1.1s ease-in-out infinite;
}
@keyframes progress-slide { 0% { left: -35%; } 100% { left: 100%; } }
.progress-text { margin-top: 6px; font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.dropzone.busy { opacity: .55; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .progress-track.indeterminate .progress-fill { animation-duration: 3s; } }
