:root {
  --bg: #f5f5f7; --panel: #ffffff; --side: #ecebf0; --text: #1d1d1f; --muted: #6e6e73; --line: #e3e3e8; --line2: #d2d2d7;
  --accent: #0a66d8; --accent-soft: #e6f0fc; --green: #1f9d55; --green-soft: #e3f5ea; --red: #d7263d; --red-soft: #fde8eb;
  --amber: #b26a00; --amber-soft: #fff4dc; --input: #fffbe8; --input-focus: #fff3bf; --row-hover: #f7f9fc; --section: #f3f3f6;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.05);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1c1e; --panel: #232325; --side: #2a2a2d; --text: #f2f2f7; --muted: #98989f; --line: #343438; --line2: #44444a;
    --accent: #4a9eff; --accent-soft: #1d3350; --green: #3ccf7e; --green-soft: #173a27; --red: #ff6b7d; --red-soft: #46202a;
    --amber: #ffb84d; --amber-soft: #3f3218; --input: #2f2c1d; --input-focus: #403a1c; --row-hover: #2a2c31; --section: #2b2b2f;
    --shadow: 0 1px 2px rgba(0,0,0,.3);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 13px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow: hidden; }
#app { display: flex; height: 100vh; }
button, input, select, textarea { font: inherit; color: inherit; }

/* Sidebar */
#sidebar { width: 250px; flex: none; background: var(--side); border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.side-drag { height: 38px; -webkit-app-region: drag; flex: none; }
.brand { padding: 0 16px 10px; }
.brand-title { font-weight: 700; font-size: 15px; }
.brand-sub { color: var(--muted); font-size: 11px; margin-top: 2px; }
#nav { flex: 1; overflow-y: auto; padding: 4px 8px 12px; }
.nav-group { color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; padding: 14px 8px 4px; display: flex; justify-content: space-between; }
.nav-item { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 6px; cursor: default; user-select: none; }
.nav-item:hover { background: rgba(127,127,127,.12); }
.nav-item.active { background: var(--accent); color: #fff; }
.nav-item .ico { width: 18px; text-align: center; opacity: .85; }
.nav-item .lbl { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-item .pct { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.nav-item.active .pct { color: rgba(255,255,255,.85); }
.mini-bar { width: 34px; height: 4px; border-radius: 2px; background: var(--line2); overflow: hidden; flex: none; }
.mini-bar i { display: block; height: 100%; background: var(--green); }
.nav-item.active .mini-bar { background: rgba(255,255,255,.35); }
.nav-item.active .mini-bar i { background: #fff; }
.side-footer { padding: 8px 16px 12px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.save-state.dirty { color: var(--amber); }

/* Main */
#main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
#toolbar { height: 64px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 8px 20px; border-bottom: 1px solid var(--line); background: var(--panel); -webkit-app-region: drag; gap: 16px; }
#toolbar button, #toolbar select, #toolbar input { -webkit-app-region: no-drag; }
.tb-left { min-width: 0; }
#toolbar h1 { font-size: 17px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.view-sub { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70vw; }
.period { display: flex; align-items: center; gap: 4px; }
.period select { height: 28px; border: 1px solid var(--line2); border-radius: 6px; background: var(--panel); padding: 0 8px; min-width: 190px; font-weight: 600; }
.icon-btn { width: 28px; height: 28px; border: 1px solid var(--line2); background: var(--panel); border-radius: 6px; font-size: 16px; line-height: 1; cursor: pointer; }
.icon-btn:hover, .btn:hover { filter: brightness(.96); }
.btn { height: 28px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--line2); background: var(--panel); cursor: pointer; white-space: nowrap; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--red); }
.btn.small { height: 24px; padding: 0 8px; font-size: 12px; }
.btn.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
#content { flex: 1; overflow: auto; padding: 18px 20px 40px; }

/* Cards */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: var(--panel); border-radius: 10px; padding: 14px 16px; box-shadow: var(--shadow); }
.kpi .k { color: var(--muted); font-size: 12px; }
.kpi .v { font-size: 22px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .s { color: var(--muted); font-size: 12px; margin-top: 2px; }
.panel { background: var(--panel); border-radius: 10px; box-shadow: var(--shadow); margin-bottom: 18px; overflow: hidden; }
.panel-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); gap: 10px; flex-wrap: wrap; }
.panel-h h2 { font-size: 14px; margin: 0; }
.panel-b { padding: 14px 16px; }
.grid2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.grid2 > .panel { margin-bottom: 0; }
.muted { color: var(--muted); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.neg { color: var(--red); font-weight: 600; }
.pos { color: var(--green); }
.bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; min-width: 60px; }
.bar i { display: block; height: 100%; background: var(--green); border-radius: 3px; }
.bar.over i { background: var(--red); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 2px 8px; border-radius: 10px; background: var(--section); font-size: 11px; color: var(--muted); }
.chip.green { background: var(--green-soft); color: var(--green); }
.chip.red { background: var(--red-soft); color: var(--red); }
.chip.amber { background: var(--amber-soft); color: var(--amber); }

/* Tables */
table.t { border-collapse: separate; border-spacing: 0; width: 100%; }
table.t th, table.t td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t th { font-weight: 600; color: var(--muted); font-size: 11px; text-align: left; background: var(--panel); position: sticky; top: 0; z-index: 2; }
table.t tbody tr:hover td { background: var(--row-hover); }
table.t tr.click { cursor: pointer; }
table.t tfoot td { font-weight: 700; background: var(--section); border-top: 1px solid var(--line2); }

/* Journal grid */
.grid-wrap { overflow: auto; max-height: calc(100vh - 64px - 42px - 150px); border-top: 1px solid var(--line); }
table.j { border-collapse: separate; border-spacing: 0; min-width: 100%; font-size: 12.5px; }
table.j th, table.j td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 4px 6px; background: var(--panel); }
table.j thead th { position: sticky; z-index: 3; color: var(--muted); font-weight: 600; font-size: 11px; text-align: center; background: var(--panel); }
table.j thead tr:nth-child(1) th { top: 0; height: 30px; }
table.j thead tr:nth-child(2) th { top: 30px; }
table.j .stick { position: sticky; z-index: 2; }
table.j thead .stick { z-index: 4; }
table.j .c-n { left: 0; width: 34px; min-width: 34px; text-align: center; color: var(--muted); }
table.j .c-name { left: 34px; min-width: 300px; max-width: 420px; border-right: 2px solid var(--line2); }
table.j td.c-name .nm { font-weight: 500; }
table.j td.c-name .nt { color: var(--muted); font-size: 11px; }
table.j tr.sec td { background: var(--section); font-weight: 600; font-size: 12px; }
table.j tr.sec td.c-name { background: var(--section); }
table.j tbody tr:hover td { background: var(--row-hover); }
table.j tbody tr:hover td.inp { background: var(--input-focus); }
table.j td.inp { background: var(--input); padding: 0; min-width: 84px; }
table.j td.inp input { width: 100%; border: 0; background: transparent; text-align: right; padding: 5px 6px; outline: none; font-variant-numeric: tabular-nums; }
table.j td.inp input:focus { background: var(--input-focus); box-shadow: inset 0 0 0 2px var(--accent); }
table.j td.inp.has input { font-weight: 600; }
table.j th.brig { min-width: 84px; max-width: 120px; white-space: normal; line-height: 1.2; color: var(--text); }
table.j th.brig .co { color: var(--muted); font-weight: 400; }
table.j tfoot td { position: sticky; bottom: 0; z-index: 2; background: var(--section); font-weight: 700; border-top: 1px solid var(--line2); }
table.j tfoot tr:nth-child(1) td { bottom: 26px; }
table.j tfoot td.stick { z-index: 3; }
table.j .pc { width: 110px; }
table.j .over { background: var(--red-soft) !important; }
table.j input.cell-edit { width: 100%; border: 1px solid var(--line2); border-radius: 4px; padding: 3px 5px; background: var(--panel); }
table.j td.ed { padding: 2px 4px; }
.hist-link { cursor: pointer; }
.hist-link:hover .nm { color: var(--accent); text-decoration: underline; }
.toolrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.search { height: 28px; border: 1px solid var(--line2); border-radius: 6px; padding: 0 10px; width: 240px; background: var(--panel); }
label.chk { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); user-select: none; }
.seg { display: inline-flex; border: 1px solid var(--line2); border-radius: 7px; overflow: hidden; }
.seg button { border: 0; background: var(--panel); padding: 4px 12px; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line2); }
.seg button.on { background: var(--accent); color: #fff; }
.info { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; font-size: 12px; }
.info b { color: var(--muted); font-weight: 500; }

/* Forms */
.form { display: grid; grid-template-columns: 180px 1fr; gap: 8px 14px; align-items: center; }
.form label { color: var(--muted); text-align: right; }
.form input, .form textarea, .form select { border: 1px solid var(--line2); border-radius: 6px; padding: 5px 8px; background: var(--panel); width: 100%; }
.form textarea { min-height: 54px; resize: vertical; }
.blist .nav-item { border-radius: 6px; }
.split { display: grid; grid-template-columns: 260px 1fr; gap: 18px; align-items: start; }

/* Bars chart */
.chart { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding: 8px 4px 0; }
.chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 22px; cursor: pointer; }
.chart .col .b { width: 100%; max-width: 34px; background: var(--accent); border-radius: 4px 4px 0 0; opacity: .75; }
.chart .col.sel .b { opacity: 1; background: var(--green); }
.chart .col .l { font-size: 10px; color: var(--muted); margin-top: 4px; white-space: nowrap; }

/* Modal / toast */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.25); display: flex; align-items: center; justify-content: center; z-index: 50; }
.modal.hidden, .toast.hidden { display: none; }
.modal-card { background: var(--panel); border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.3); width: min(760px, 92vw); max-height: 86vh; overflow: auto; }
.modal-card .panel-h { position: sticky; top: 0; background: var(--panel); z-index: 2; }
.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: #1d1d1f; color: #fff; padding: 8px 16px; border-radius: 8px; z-index: 60; box-shadow: 0 8px 24px rgba(0,0,0,.25); }

/* Act */
.act { background: #fff; color: #000; max-width: 1000px; margin: 0 auto; padding: 28px 34px; border-radius: 10px; box-shadow: var(--shadow); }
.act h2 { text-align: center; margin: 0 0 4px; font-size: 17px; }
.act .sub { text-align: center; margin-bottom: 16px; }
.act table { width: 100%; border-collapse: collapse; font-size: 12px; }
.act th, .act td { border: 1px solid #999; padding: 4px 6px; }
.act th { background: #f0f0f0; }
.act .obj td { background: #f6f6f6; font-weight: 700; }
.act .tot td { font-weight: 700; }
.act .req { margin-top: 16px; font-size: 12px; display: grid; grid-template-columns: 170px 1fr; gap: 2px 10px; }
.act .sign { margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; font-size: 12px; }
.act-controls { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.act-controls select { height: 28px; border: 1px solid var(--line2); border-radius: 6px; background: var(--panel); padding: 0 8px; }

@media print {
  @page { size: A4 landscape; margin: 10mm; }
  body { overflow: visible; background: #fff; color: #000; }
  #sidebar, #toolbar .tb-right, .no-print, .act-controls { display: none !important; }
  #app, #main, #content { display: block; height: auto; overflow: visible; padding: 0; }
  #toolbar { border: 0; height: auto; padding: 0 0 8px; }
  .grid-wrap { max-height: none; overflow: visible; }
  .panel, .act, .kpi { box-shadow: none; border: 0; }
  table.j th, table.j td, table.j td.inp, table.j tfoot td { position: static !important; background: #fff !important; color: #000; }
  table.j td.inp input { padding: 2px; }
}

/* Tabs */
#tabs { flex: none; background: var(--panel); border-bottom: 1px solid var(--line); }
.tabs-row { display: flex; align-items: center; gap: 12px; padding: 6px 20px; min-height: 42px; }
.otabs { display: inline-flex; border: 1px solid var(--line2); border-radius: 8px; overflow: hidden; flex: none; }
.otab { border: 0; background: var(--panel); padding: 5px 14px; cursor: pointer; font-weight: 500; white-space: nowrap; }
.otab + .otab { border-left: 1px solid var(--line2); }
.otab.on { background: var(--accent); color: #fff; }
.stabs { display: flex; gap: 4px; overflow-x: auto; flex: 1; scrollbar-width: thin; padding-bottom: 2px; }
.stab { flex: none; position: relative; border: 1px solid transparent; background: var(--section); border-radius: 6px; padding: 4px 10px 6px; cursor: pointer; white-space: nowrap; font-size: 12px; overflow: hidden; }
.stab:hover { border-color: var(--line2); }
.stab.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.stab i { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--green); }

/* Collapsible sections */
table.j tr.sec .sec-tg { cursor: pointer; user-select: none; }
table.j tr.sec .chev { color: var(--muted); font-size: 11px; }
table.j tr.sec:hover td { background: var(--row-hover); }
.sec-sum { font-weight: 400; color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.sec-sum b { color: var(--text); }

/* Documents (КС-2, КС-3, КС-6а) */
.doc { background: #fff; color: #000; max-width: 1060px; margin: 0 auto 22px; padding: 26px 32px 30px; border-radius: 10px; box-shadow: var(--shadow); font-family: "Times New Roman", Times, serif; font-size: 12px; }
.doc.wide { max-width: none; overflow-x: auto; }
.doc table.rep td:nth-child(2) { min-width: 170px; }
.doc .uf { text-align: right; font-size: 9.5px; line-height: 1.25; margin-bottom: 8px; }
.doc table.hdr { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.doc table.hdr td { padding: 2px 4px; vertical-align: bottom; }
.doc table.hdr td.l { width: 170px; white-space: nowrap; }
.doc table.hdr td.u { border-bottom: 1px solid #000; }
.doc table.hdr td.r { text-align: right; padding-right: 8px; }
.doc table.hdr td.code { width: 120px; border: 1px solid #000; text-align: center; }
.doc table.hdr td.codeh { width: 120px; text-align: center; font-weight: 700; }
.doc table.dn { border-collapse: collapse; margin: 6px 0 4px auto; margin-right: 30%; }
.doc table.dn th, .doc table.dn td { border: 1px solid #000; padding: 2px 10px; text-align: center; font-weight: 400; min-width: 80px; }
.doc h2.dt { text-align: center; font-size: 14px; margin: 10px 0 8px; letter-spacing: .02em; }
.doc .dsub { text-align: center; margin: -4px 0 10px; }
.doc p.sm { margin: 4px 0 8px; }
.doc table.dtab { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.doc table.dtab th, .doc table.dtab td { border: 1px solid #000; padding: 2px 4px; vertical-align: top; }
.doc table.dtab th { font-weight: 400; text-align: center; vertical-align: middle; background: #fff; position: static; color: #000; font-size: 11px; }
.doc table.dtab tr.cn td { text-align: center; font-size: 10px; padding: 0 2px; }
.doc table.dtab td.c { text-align: center; }
.doc table.dtab td.rt { text-align: right; }
.doc table.dtab small { color: #444; font-size: 10px; }
.doc table.dtab tr.obj td { font-weight: 700; background: #f2f2f2; }
.doc table.dtab tr.sec2 td { background: #fafafa; }
.doc table.dtab tr.tot td { font-weight: 700; }
.doc table.dtab tr.big td { border-top: 2px solid #000; }
.doc table.dtab .neg { color: #b00; }
.doc table.rep { font-size: 10.5px; }
.doc table.rep th { font-size: 10px; }
.doc .signs { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 22px; }
.doc .signs .sl { display: flex; justify-content: space-between; font-size: 9px; color: #444; margin-top: 20px; padding-right: 20px; }
.doc .signs .sv { margin-top: -26px; }
.doc .mp { margin-top: 10px; font-size: 11px; }
.doc .req2 { display: grid; grid-template-columns: 90px 1fr; gap: 2px 8px; margin-bottom: 10px; }
.doc .sysblock { margin-top: 14px; break-inside: auto; }
.doc .syshead { margin-bottom: 4px; }
.doc .syshead span { font-size: 11px; color: #333; }
.act-controls input.search { height: 28px; }
@media print {
  #tabs { display: none !important; }
  .doc { box-shadow: none; padding: 0; margin: 0; border-radius: 0; max-width: none; overflow: visible; }
  body.docview #toolbar { display: none !important; }
  .doc table.rep { font-size: 8.5px; } .doc table.rep th { font-size: 8px; } .doc table.rep td:nth-child(2) { min-width: 130px; }
  .doc + .doc { break-before: page; }
  .doc table.dtab thead { display: table-header-group; }
  .doc table.dtab tr { break-inside: avoid; }
}

/* Auth */
.auth { position: fixed; inset: 0; z-index: 80; background: var(--bg); display: flex; align-items: center; justify-content: center; -webkit-app-region: drag; }
.auth.hidden { display: none; }
.auth-card { -webkit-app-region: no-drag; width: 340px; background: var(--panel); border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.12); padding: 30px 28px; text-align: center; }
.auth-card h1 { font-size: 20px; margin: 8px 0 4px; }
.auth-logo { width: 56px; height: 56px; border-radius: 14px; background: var(--accent); color: #fff; font-size: 30px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.auth-card input { display: block; width: 100%; height: 34px; margin-bottom: 10px; border: 1px solid var(--line2); border-radius: 8px; padding: 0 10px; background: var(--panel); }
.auth-err { color: var(--red); min-height: 18px; font-size: 12px; margin-bottom: 6px; }
.user-chip { display: flex; align-items: center; gap: 6px; padding: 8px 12px 0 16px; border-top: 1px solid var(--line); font-size: 12px; }
.user-chip:empty { display: none; }
.user-chip .uname { font-weight: 600; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip .uname:hover { color: var(--accent); }
.user-chip .urole { color: var(--muted); font-size: 11px; flex: 1; white-space: nowrap; }
.user-chip + .side-footer { border-top: 0; }
input:disabled, textarea:disabled, select:disabled { opacity: .55; cursor: not-allowed; }

/* Sidebar objects */
.nav-objhdr { align-items: center; }
.nav-add { border: 0; background: transparent; color: var(--accent); font-size: 11px; font-weight: 600; cursor: pointer; padding: 0 2px; text-transform: none; letter-spacing: 0; }
.nav-add:hover { text-decoration: underline; }
.nav-obj { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 6px; cursor: default; user-select: none; font-weight: 600; margin-top: 2px; }
.nav-obj:hover { background: rgba(127,127,127,.12); }
.nav-obj .chev { width: 12px; color: var(--muted); font-size: 11px; }
.nav-obj .lbl { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-obj .pct { font-size: 11px; color: var(--muted); font-weight: 400; }
.nav-obj.has-active:not(.open) { color: var(--accent); }
.nav-item.sub { padding-left: 26px; }
.settabs { flex-wrap: wrap; }
.auth-where { margin-top: 14px; font-size: 11px; color: var(--muted); }
.auth-where a { color: var(--accent); }
table.jt td { vertical-align: top; }
table.jt .chip { white-space: nowrap; }
table.jt tr.jr-rev td { opacity: .6; }
table.jt details summary { cursor: pointer; font-size: 11px; }

/* Windows / браузер не на Mac: нет «светофора» в заголовке */
body.not-mac .side-drag { height: 12px; }
body.not-mac #toolbar, body.not-mac .side-drag { -webkit-app-region: no-drag; }

/* удержания */
.ded-ed { border: 1px dashed var(--line, #c9ced6); border-radius: 8px; padding: 10px 12px; margin: 10px 0 14px; background: #f8fafc; font-family: -apple-system, "Segoe UI", system-ui, sans-serif; font-size: 13px; }
.ded-ed .ded-h { margin-bottom: 6px; }
.ded-ed .ded-t { width: 100%; margin: 4px 0 8px; }
.ded-ed .ded-t td { padding: 3px 6px; }
.ded-add { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.doc table.dtab tr.secsum td { font-weight: 600; background: #fbfbfb; }
.doc table.dtab tr.hl td { background: #fff8e1; }
@media print { .doc table.dtab tr.hl td { background: none; } }
.auth-rem { display: flex; gap: 6px; align-items: center; margin: 2px 0 8px; font-size: 12px; color: var(--muted, #667); text-align: left; }

.ded-ed tr.ret td, .doc table.dtab tr.ret td { color: #0a7a3d; }
.ded-g { margin: 4px 0 8px; font-size: 12px; }

/* прайс-лист */
.modal-card.wide { width: min(980px, 95vw); }
.pl-tree { margin-top: 10px; max-height: 56vh; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.pl-on { font-weight: 700; margin: 8px 0 4px; }
.pl-tab { margin: 2px 0 6px 6px; }
.pl-tab details { margin-left: 24px; }
.pl-tab summary { cursor: pointer; font-size: 12px; }
.pl-sec { display: flex !important; gap: 6px; align-items: baseline; margin: 3px 0; color: var(--text) !important; }

/* программа для компьютера */
.apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-bottom: 14px; }
.app-card .app-k { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.app-card .app-f { font-size: 12px; word-break: break-all; }
.app-card.rec { outline: 2px solid var(--accent, #2563eb); }
.apps-steps li { margin: 6px 0; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; }

.lic-code { font-size: 20px; letter-spacing: 1px; padding: 10px; margin: 10px 0 6px; background: #f3f5f8; border-radius: 8px; text-align: center; user-select: all; }
.lic-key { width: 100%; min-height: 70px; margin: 10px 0 6px; font-size: 11px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; resize: vertical; word-break: break-all; }
.lic-or { margin: 12px 0 8px; color: var(--muted, #667); font-size: 12px; }
