/* Кабинет партнёра — тот же «тёмное стекло», что и ядро; одна колонка, удобно с телефона. */
body.lk { min-height: 100%; }
/* полоса разделов слева — как в ядре: чёрный ферзь и значки, подпись при наведении (16.11.2026) */
body.lk { padding-left: 64px; }
.lk-bar { display: flex; justify-content: flex-end; padding: 12px 18px 0; }
@media (max-width: 600px) { body.lk { padding-left: 52px; } .lk-bar { padding: 10px 10px 0; } .me { flex-wrap: wrap; justify-content: flex-end; } }
.me { margin-left: auto; display: flex; gap: 10px; align-items: center; font-size: 13px; }
.me .bal { font-family: var(--dots); font-weight: 900; color: var(--lime); }
.lk-main { max-width: 980px; margin: 0 auto; padding: 18px 16px 60px; display: grid; gap: 14px; }
.lk h2 { margin: 4px 0 0; font-size: 22px; }
.lk h3 { margin: 0; font-size: 16px; }
.lk .lead { color: var(--muted); margin: 0; }
.lk .fg textarea, .lk textarea { background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px;
  color: var(--text); font-size: 14px; width: 100%; min-height: 70px; resize: vertical; }
.lk .fg .wide { grid-column: 1 / -1; }
.lk input[type=checkbox], .lk input[type=radio] { accent-color: var(--lime); width: 16px; height: 16px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--text); }
.check a { color: var(--lime); }
.auth { max-width: 640px; margin: 0 auto; width: 100%; }
.kinds { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.kindc { text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px; cursor: pointer;
  display: grid; gap: 6px; }
.kindc b { font-size: 14px; }
.kindc span { font-size: 12.5px; color: var(--muted); }
.kindc.on { border-color: var(--lime); background: var(--lime-soft); }
.lines { width: 100%; border-collapse: collapse; font-size: 13px; }
.lines td { padding: 5px 4px; border-bottom: 1px solid var(--line); }
.lines td.r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lines tr.tot td { font-weight: 700; border-bottom: 0; }
.olist { display: grid; gap: 8px; }
.orow { display: grid; grid-template-columns: 70px minmax(0,1fr) auto; gap: 10px; align-items: center; text-align: left;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; cursor: pointer; }
.orow:hover { background: var(--panel-2); }
.orow .n { font-family: var(--dots); font-weight: 900; font-size: 18px; color: var(--muted); }
.orow .s { font-size: 12px; }
.st { display: inline-block; border-radius: 99px; padding: 3px 10px; font-size: 12px; font-weight: 600; background: var(--panel-2); }
.st.ready { background: var(--lime); color: var(--on-lime); }
.st.revision, .st.sent { background: var(--warn-soft); color: var(--warn); }
.st.in_work { background: var(--blue-soft); color: var(--blue); }
.st.accepted { background: var(--lime-soft); color: var(--lime); }
.st.cancelled, .st.draft { color: var(--muted); }
.steps { display: flex; gap: 4px; flex-wrap: wrap; }
.steps span { font-size: 12px; padding: 4px 10px; border-radius: 99px; background: var(--panel); color: var(--muted); }
.steps span.done { color: var(--lime); }
.steps span.cur { background: var(--lime); color: var(--on-lime); font-weight: 600; }
.files { display: grid; gap: 4px; }
.file { display: flex; gap: 8px; align-items: center; justify-content: space-between; font-size: 13px; padding: 5px 8px; background: rgba(255,255,255,0.03);
  border-radius: 8px; }
.file a { color: var(--text); overflow-wrap: anywhere; }
.chat { display: grid; gap: 8px; max-height: 420px; overflow: auto; }
.msg { padding: 8px 11px; border-radius: 12px; font-size: 13.5px; max-width: 85%; background: var(--panel-2); }
.msg small { display: block; color: var(--muted); font-size: 11px; margin-bottom: 2px; }
.msg.partner { justify-self: end; background: var(--lime-soft); }
.msg.agent { background: var(--blue-soft); }
.offer { border-color: var(--warn); }
.warnline { color: var(--warn); font-size: 13px; }
.cols2 { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px; align-items: start; }
.lk .box { align-content: start; }
.files.many { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); max-height: 240px; overflow: auto; padding-right: 2px; }
.files.many .file { font-size: 12px; padding: 4px 7px; }
@media (max-width: 720px) {
  .kinds, .cols2, .lk .fg { grid-template-columns: 1fr; }
  .orow { grid-template-columns: 48px minmax(0,1fr); }
  .orow > :last-child { grid-column: 2; }
  .me { margin-left: 0; width: 100%; justify-content: space-between; }
}
.cols2 > *, .lk .box, .lk .fg label { min-width: 0; }
.lk .fg input, .lk .fg select { width: 100%; min-width: 0; }
.file { min-width: 0; }
.file a, .file span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* чат заявки — плавающий виджет справа внизу */
.chat-fab { position: fixed; right: 22px; bottom: 22px; z-index: 50; width: 58px; height: 58px; border-radius: 50%; border: 0;
  background: var(--lime); color: var(--on-lime); font-size: 25px; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,0.45);
  display: grid; place-items: center; transition: transform .15s; }
.chat-fab:hover { transform: scale(1.06); }
.chat-fab .badge { position: absolute; top: -3px; right: -3px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px;
  background: #ff5a5f; color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; border: 2px solid #111; }
.chat-win { position: fixed; right: 22px; bottom: 22px; z-index: 50; width: min(390px, calc(100vw - 32px)); height: min(560px, calc(100vh - 110px));
  display: grid; grid-template-rows: auto 1fr auto auto; background: #181c1e; border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px; box-shadow: 0 16px 48px rgba(0,0,0,0.55); overflow: hidden; }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.chat-win .chat { max-height: none; padding: 10px 12px; align-content: start; }
.chat-win .msg { background: var(--panel, #22272b); }
.chat-win .msg.partner { background: var(--lime-soft); }
.chat-win .msg.agent { background: var(--blue-soft); }
.chat-in { display: flex; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--line); }
.chat-in textarea { flex: 1; min-height: 40px; max-height: 120px; resize: vertical; }
.chat-foot { display: flex; justify-content: space-between; align-items: center; padding: 0 12px 10px; gap: 8px; }
@media (max-width: 720px) { .chat-fab { right: 16px; bottom: 16px; } .chat-win { right: 16px; bottom: 16px; } }
#gchat .msg { white-space: pre-line; }
#gchat .msg.new { box-shadow: inset 3px 0 0 var(--lime); background: rgba(185,242,39,0.12); transition: background 1.2s, box-shadow 1.2s; }
#gchat .msg.new.read { background: var(--blue-soft); box-shadow: none; }
/* новые сообщения: подсветка в чате, пилюля в шапке, значок в списке заявок */
.chat-win .msg.new { box-shadow: inset 3px 0 0 var(--lime); background: rgba(185,242,39,0.12); }
.me .msg-pill { margin-left: 0; }
.orow .new-pill { margin-right: 4px; }
.orow:has(.new-pill) { border-color: rgba(185,242,39,0.5); }
.chat-win .msg { transition: background 1.2s, box-shadow 1.2s; }
.chat-win .msg.new.read { background: var(--blue-soft); box-shadow: none; }
.chat-win .msg.agent.new.read { background: var(--blue-soft); }
.chat-win .msg.owner.new.read { background: var(--panel, #22272b); }

/* светлая тема кабинета (16.11.2026) — те же токены, другие значения */
html[data-theme="light"] {
  --ink: #f2f4ef; --solid: #ffffff; --solid-2: #f7f8f5;
  --panel: rgba(30,40,20,0.035); --panel-2: rgba(30,40,20,0.07);
  --text: #1b2116; --muted: #5d6657; --line: rgba(30,40,20,0.15);
  --lime: #5b8f00; --on-lime: #ffffff; --lime-soft: rgba(91,143,0,0.12);
  --blue: #2c5d97; --blue-soft: rgba(44,93,151,0.11);
  --warn: #9a6200; --warn-soft: rgba(154,98,0,0.12); --err: #c0392b; --err-soft: rgba(192,57,43,0.1);
  --plan: #6b7380; --plan-soft: rgba(107,115,128,0.12);
  color-scheme: light;
}
html[data-theme="light"] body { background: radial-gradient(1000px 600px at 60% 30%, rgba(91,143,0,0.06), transparent 60%), var(--ink); }
html[data-theme="light"] .rail button:hover { background: rgba(0,0,0,0.06); }
html[data-theme="light"] .chat-win { background: #ffffff; border-color: var(--line); box-shadow: 0 16px 48px rgba(0,0,0,0.18); }
html[data-theme="light"] .lk .fg input, html[data-theme="light"] .lk .fg select, html[data-theme="light"] .lk textarea,
html[data-theme="light"] .ident input, html[data-theme="light"] .file { background: #ffffff; }
html[data-theme="light"] .aseg button:hover, html[data-theme="light"] .acheck:hover { background: rgba(30,40,20,0.05); }
html[data-theme="light"] .chat-fab .badge { border-color: #ffffff; }
.theme-btn { min-width: 34px; font-size: 15px; line-height: 1; }
.dmg-h .n.ok, .acheck.on .cb { color: var(--on-lime); }

/* машина вручную */
.veh-manual { grid-template-columns: 1fr 1fr 110px; margin-top: 8px; }
.veh-manual input[data-veh="make"], .veh-manual input[data-veh="model"] { text-transform: uppercase; }
@media (max-width: 560px) { .veh-manual { grid-template-columns: 1fr 1fr; } }

/* корректировка Пэ: вкладка у правого края и выезжающая панель */
.pe-tab { position: fixed; right: 0; top: 42%; z-index: 40; writing-mode: vertical-rl; /* без поворота — текст чёткий */
  -webkit-font-smoothing: antialiased; background: var(--lime); color: var(--on-lime); border: 0; border-radius: 10px 0 0 10px; padding: 14px 8px; font: inherit;
  font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,0.3); }
.pe-shade { position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,0.35); }
.pe-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 60; width: min(560px, 100vw); overflow-y: auto;
  background: var(--solid); border-left: 1px solid var(--line); box-shadow: -16px 0 48px rgba(0,0,0,0.35);
  padding: 16px 18px 24px; display: grid; gap: 8px; align-content: start; }
.pe-drawer h4 { margin: 12px 0 2px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pe-top { display: flex; justify-content: space-between; gap: 10px; align-items: start; position: sticky; top: -16px; background: var(--solid); padding: 4px 0 8px; z-index: 1; }
.pe-head { font-size: 12px; font-weight: 600; color: var(--lime); margin-top: 6px; }
.pe-row { display: grid; grid-template-columns: minmax(0,1fr) 92px; gap: 8px; align-items: start; border-radius: 8px; }
.pe-row.on { background: var(--lime-soft); }
.pe-row .acheck { width: 100%; }
.pe-val { display: flex; gap: 4px; align-items: center; justify-content: flex-end; padding-top: 4px; font-size: 12px; text-align: right; }
.pe-val input { width: 62px; text-align: right; background: var(--solid-2); border: 1px solid var(--lime); border-radius: 7px; padding: 4px 6px; color: var(--text); }
.pe-sum { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; }
.pe-sum b { color: var(--text); font-variant-numeric: tabular-nums; } .pe-sum b.bad { color: var(--err); }
.pe-sum .tot { margin-left: auto; } .pe-sum .tot b { color: var(--lime); font-size: 14px; }
.pe-notes { font-size: 12px; color: var(--muted); line-height: 1.45; }
/* акт осмотра (конструктор) */
.act-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.act-head h2 { margin: 0; flex: 1 1 320px; min-width: 0; }
.act-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
a.btn { text-decoration: none; color: var(--text); display: inline-flex; align-items: center; gap: 6px; }
.lk .fg input.bad { border-color: #ff5a5f; box-shadow: 0 0 0 1px #ff5a5f inset; }
.ident { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.ident input { width: 100%; min-width: 0; background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; color: var(--text); font-size: 15px; font-family: ui-monospace, Consolas, monospace; letter-spacing: .04em; text-transform: uppercase; }
.ident input:focus { outline: none; border-color: var(--lime); }
.veh { margin-top: 8px; font-size: 14px; }
@media (max-width: 480px) { .ident { grid-template-columns: 1fr; } }
.actline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.dmg { border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: 8px; background: var(--panel); }
.dmg.open { border-color: var(--lime); }
.dmg-h { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 9px 10px; cursor: pointer; font-size: 13px; }
.dmg-h .n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--line); font-size: 12px; }
.dmg-h .n.ok { background: var(--lime); color: #111; }
.dmg-h .t { min-width: 0; }
.dmg-h .c { font-size: 12px; color: var(--lime); white-space: nowrap; }
.dmg-b { padding: 0 10px 10px; display: grid; gap: 6px; }
.dmg-b .sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
/* выбор в акте (16.11.2026): сегменты для одного варианта, список с квадратиками для нескольких */
.aseg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; max-width: 100%; }
.aseg button { font: inherit; font-size: 12.5px; padding: 6px 12px; background: transparent; color: var(--text); border: 0;
  border-right: 1px solid var(--line); cursor: pointer; transition: background .12s; }
.aseg button:last-child { border-right: 0; }
.aseg button:hover { background: rgba(255,255,255,0.05); }
.aseg button.on { background: var(--lime-soft); color: var(--lime); font-weight: 600; }
.alist { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1px 14px; }
.acheck { font: inherit; font-size: 13px; display: flex; gap: 9px; align-items: flex-start; text-align: left; background: transparent;
  border: 0; border-radius: 6px; padding: 5px 6px; color: var(--muted); cursor: pointer; line-height: 1.35; }
.acheck:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.acheck .cb { flex: none; width: 18px; height: 18px; margin-top: 0; border: 1.5px solid var(--line); border-radius: 4px;
  display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.acheck.on { color: var(--text); }
.acheck.on .cb { background: var(--lime); border-color: var(--lime); color: #111; }
.achips { display: flex; flex-wrap: wrap; gap: 6px; }
.achips .gap { width: 12px; }
.achip { font: inherit; font-size: 12.5px; border-radius: 99px; padding: 5px 11px; background: transparent; border: 1px solid var(--line); color: var(--text); cursor: pointer; }
.achip.on { background: var(--lime-soft); border-color: var(--lime); }
.achip sup { color: var(--lime); margin-right: 3px; font-weight: 700; }
details.box.fold > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0; font-size: inherit; color: inherit; }
details.box.fold > summary::-webkit-details-marker { display: none; }
details.box.fold > summary h4 { margin: 0; }
details.box.fold > summary h4::before { content: "▸ "; color: var(--lime); }
details.box.fold[open] > summary h4::before { content: "▾ "; }
details.box.fold[open] > summary { margin-bottom: 10px; }
details.more summary, details.box summary { font-size: 12.5px; color: var(--muted); cursor: pointer; margin: 4px 0; }
.fg.pre { grid-template-columns: 2fr 1.5fr 2fr auto; align-items: end; }
@media (max-width: 640px) {
  .fg.pre { grid-template-columns: 1fr; }
  .dmg-h { grid-template-columns: 26px 1fr; }
  .dmg-h .c { grid-column: 2; }
  .achip { padding: 7px 12px; }
}

/* макеты (16.11.2026) */
#tpl { display: grid; gap: 14px; }
.pdocs { display: grid; gap: 8px; margin: 10px 0 4px; }
.pdoc { display: grid; grid-template-columns: 22px minmax(0,1fr); gap: 10px; align-items: start; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.pd-dot { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: 12px; font-weight: 700; margin-top: 1px; }
.pd-dot.ok { background: var(--lime); border-color: var(--lime); color: var(--on-lime, #111); }
.pd-main { display: grid; gap: 4px; min-width: 0; }
.pd-file { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 8px; align-items: center; font-size: 13px; }
.pd-file span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-file select { font: inherit; font-size: 11.5px; max-width: 170px; background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 2px 4px; }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-top: 10px; }
.tcard { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.tcard.soon { opacity: .6; }
.tsvc { font-size: 11px; color: var(--lime); border: 1px solid rgba(185,242,39,.4); border-radius: 99px; padding: 1px 8px; white-space: nowrap; }
.tfile { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 10px; align-items: center; }
.tfile .tmain { min-width: 0; }
.tfile .tmain a { display: block; }
/* материалы: что нужно + одна загрузка с перетаскиванием */
.need { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.need .ni { font-size: 12px; border-radius: 99px; padding: 3px 10px; border: 1px solid var(--line); color: var(--muted); }
.need .ni.ok { color: var(--lime); border-color: var(--lime); background: var(--lime-soft); }
.need .ni.miss { color: var(--warn, #f5c469); border-color: rgba(245,196,105,.45); }
.drop { margin-top: 8px; border: 1.5px dashed var(--line); border-radius: var(--r-sm); padding: 16px; display: grid; gap: 8px; justify-items: center; text-align: center; transition: .15s; }
.drop.on { border-color: var(--lime); background: var(--lime-soft); }
.drop.busy { opacity: .7; pointer-events: none; }
.file select.fk { font: inherit; font-size: 11.5px; max-width: 150px; background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 2px 4px; }
button.ni { font: inherit; font-size: 12px; background: transparent; cursor: pointer; }
button.ni:disabled { cursor: default; }
button.ni.on { box-shadow: 0 0 0 1px var(--lime) inset; }
button.ni i { font-style: normal; opacity: .7; }

/* ход заявки и догруженные файлы (12.11.2026) */
.oprog { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 5px; }
.oprog .bar { width: 140px; height: 5px; border-radius: 9px; background: rgba(255,255,255,0.08); overflow: hidden; flex: none; }
.oprog .bar i { display: block; height: 100%; background: var(--warn); border-radius: 9px; transition: width .6s; }
.oprog.full .bar i { background: var(--lime); }
.late { display: grid; gap: 6px; margin: 4px 0 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: rgba(255,255,255,0.02); }
.lf { display: grid; grid-template-columns: 14px minmax(0,1fr); gap: 8px; align-items: start; }
.lf a { color: var(--text, inherit); }
.lf .dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 5px; background: var(--lime); }
.lf.busy .dot { background: var(--warn); animation: lfp 1s ease-in-out infinite; }
@keyframes lfp { 50% { opacity: .3; transform: scale(1.4); } }
.lf .found { color: var(--lime); margin-top: 2px; }

/* новая заявка (16.11.2026): задачи-макеты, методика, загрузка, стоимость */
.nw { grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); }
.tasks { display: grid; gap: 6px; }
.task { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; text-align: left; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px 11px; cursor: pointer; color: var(--text); }
.task:hover { border-color: rgba(185,242,39,0.45); }
.task.on { border-color: var(--lime); background: var(--lime-soft); }
.task .tk { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; border: 1px solid var(--line); font-weight: 700; color: var(--muted); }
.task.on .tk { background: var(--lime); color: var(--on-lime); border-color: var(--lime); }
.task b { display: block; font-size: 14px; } .task small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.hint { color: var(--lime); margin-top: 6px; }
.seg { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 99px; padding: 2px; width: fit-content; }
.seg button { border: 0; background: none; color: var(--muted); border-radius: 99px; padding: 5px 14px; cursor: pointer; font-weight: 600; }
.seg button.on { background: var(--lime); color: var(--on-lime); }
.nw .ni { display: inline-block; font-size: 12px; border-radius: 99px; padding: 2px 9px; border: 1px solid var(--line); margin: 2px 2px 0 0; }
.nw .ni.ok { color: var(--lime); border-color: var(--lime); background: var(--lime-soft); }
.cust summary { cursor: pointer; color: var(--muted); font-size: 12.5px; }
.getlist { margin: 4px 0 0; padding-left: 18px; }
@media (max-width: 760px) { .nw { grid-template-columns: 1fr; } }
.nw .fg label.check { display: flex; flex-direction: row; gap: 8px; align-items: center; }

/* новая заявка — три подблока, тумблер методики в заголовке, кнопки по правому краю (16.11.2026) */
.nwbox { gap: 12px; }
.nw-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.nw-top h4 { margin: 0; }
.sub { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px; display: grid; gap: 8px; background: rgba(255,255,255,0.015); }
.sub-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.nw .fg { margin-top: 2px; }
.tcard.pick { text-align: left; cursor: pointer; background: var(--panel); color: var(--text); font: inherit; }
.tcard.pick:hover { border-color: rgba(185,242,39,0.45); }
.tcard.pick.on { border-color: var(--lime); background: var(--lime-soft); }
.tcard.add { border-style: dashed; }
.tcard.add .btn { justify-self: start; }
.tsvc { font-size: 11px; border-radius: 99px; padding: 1px 8px; border: 1px solid var(--lime); color: var(--lime); white-space: nowrap; }
.sub .tgrid { margin-top: 0; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.note { line-height: 1.45; }
.needs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; }
.need-r { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; border: 1px solid var(--line); border-radius: 9px; padding: 7px 9px; }
.need-r .nd { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.need-r.ok { border-color: var(--lime); background: var(--lime-soft); }
.need-r.ok .nd { background: var(--lime); color: var(--on-lime); border-color: var(--lime); }
.need-r b { font-size: 13px; } .need-r small { display: block; color: var(--muted); font-size: 11.5px; }
.nw-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.nw .drop { margin-top: 2px; }

/* прайс (16.11.2026) */
.pricing { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.ptable { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 6px; }
.ptable td { border-bottom: 1px solid var(--line); padding: 7px 4px; vertical-align: top; }
.ptable td small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 1px; }
.ptable .r { text-align: right; white-space: nowrap; font-weight: 700; }
.ptable.ex td { font-size: 12.5px; }
.pform { display: grid; gap: 6px; margin-top: 6px; }
.pform label { display: grid; grid-template-columns: minmax(0,1fr) auto 132px; gap: 12px; align-items: center; font-size: 13px; color: var(--text);
  border-bottom: 1px solid var(--line); padding: 7px 0; }
.pform label:last-of-type { border-bottom: 0; }
.pform .cmp { font-size: 11.5px; color: var(--muted); white-space: nowrap; background: rgba(255,255,255,0.04); border-radius: 99px; padding: 2px 9px; }
/* поле цены: скруглённое, знак внутри, без стрелок, подсветка при вводе */
.money { position: relative; display: block; }
.pform .money input { width: 100%; height: 38px; box-sizing: border-box; padding: 0 30px 0 12px; text-align: right;
  font: 600 14px var(--font); font-variant-numeric: tabular-nums; color: var(--text);
  background: rgba(255,255,255,0.035); border: 1px solid var(--line); border-radius: 12px; outline: none;
  transition: border-color .15s, background .15s, box-shadow .15s; -moz-appearance: textfield; appearance: textfield; }
.pform .money input::-webkit-outer-spin-button, .pform .money input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pform .money input::placeholder { color: var(--muted); font-weight: 400; }
.pform .money input:hover { border-color: rgba(255,255,255,0.22); }
.pform .money input:focus { border-color: var(--lime); background: var(--lime-soft); box-shadow: 0 0 0 3px rgba(185,242,39,0.12); }
.money i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 13px; color: var(--muted); pointer-events: none; }
.money input:not(:placeholder-shown) + i { color: var(--text); }
html[data-theme="light"] .pform .money input { background: #fff; border-color: rgba(0,0,0,0.14); }
html[data-theme="light"] .pform .money input:focus { background: #fff; box-shadow: 0 0 0 3px rgba(91,138,0,0.15); }
@media (max-width: 760px) { .pricing { grid-template-columns: 1fr; } .pform label { grid-template-columns: 1fr 110px; } .pform .cmp { display: none; } }

/* новая заявка: «входит в экспертизу», свой макет свёрнут, возможные доплаты (16.11.2026) */
.task.inc { cursor: default; opacity: .85; }
.task.inc .tk { background: transparent; color: var(--lime); border-color: var(--lime); }
.task b em { font-style: normal; font-weight: 500; font-size: 11.5px; color: var(--lime); margin-left: 6px; }
.tpl-sub > summary { list-style: none; cursor: pointer; }
.tpl-sub > summary::-webkit-details-marker { display: none; }
.tpl-sub[open] > summary { margin-bottom: 4px; }
.tcard.pick:disabled { opacity: .5; cursor: default; }
.lines.extra td { color: var(--muted); }
.lines.extra td small { display: block; font-size: 11.5px; }
.lines.extra .r { color: var(--text); white-space: nowrap; vertical-align: top; }

/* вкладка «Макеты» (16.11.2026): наши макеты с предпросмотром, документы и свой макет — компактно */
.tplv { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 14px; align-items: start; }
.tcol { display: grid; gap: 14px; }
.tlist { display: grid; gap: 6px; margin-top: 8px; }
.trow { display: grid; grid-template-columns: 34px minmax(0,1fr) auto auto auto; gap: 10px; align-items: center; border: 1px solid var(--line);
  border-radius: 12px; padding: 8px 10px; background: rgba(255,255,255,0.02); }
.trow:hover { border-color: rgba(185,242,39,0.35); }
.tico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--panel); font-size: 17px; }
.trow .tmain { min-width: 0; } .trow .tmain b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow .tmain small { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }
.ib { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer;
  display: grid; place-items: center; font-size: 12px; flex: none; }
.ib:hover { color: var(--err); border-color: var(--err); }
.pdocs2 { display: grid; gap: 6px; margin-top: 8px; }
.pdoc2 { display: grid; grid-template-columns: 24px minmax(0,1fr); gap: 10px; align-items: start; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.pdoc2 .pd-dot { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.pdoc2.ok .pd-dot { background: var(--lime); border-color: var(--lime); color: var(--on-lime); }
.pdoc2 .pd-main b { font-size: 13.5px; } .pdoc2 .pd-main small { display: block; color: var(--muted); font-size: 12px; }
.pdoc2 .pd-file { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 6px; align-items: center; margin-top: 5px; font-size: 12.5px; }
.pdoc2 .pd-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdoc2 .pd-file select { font: inherit; font-size: 11.5px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel);
  color: var(--muted); padding: 0 6px; max-width: 170px; }
.drop.slim { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; padding: 12px; margin-top: 10px; text-align: center; }
.drop.slim > span { font-size: 13px; } .drop.slim small { flex-basis: 100%; color: var(--muted); font-size: 11.5px; }
.drop.slim .inp { flex-basis: 100%; height: 34px; border-radius: 10px; }
.seg2w { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.tseg label { border-radius: 99px; padding: 5px 14px; cursor: pointer; font-weight: 600; font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; }
.tseg label input { display: none; }
.tseg label.on { background: var(--lime); color: var(--on-lime); }
.tseg label.off { opacity: .45; cursor: not-allowed; }
.pv { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,0.6); display: grid; place-items: center; padding: 24px; }
.pv[hidden] { display: none; }
.pv-in { width: min(1100px, 100%); height: min(92vh, 1400px); background: var(--solid, #12161b); border: 1px solid var(--line); border-radius: 16px;
  display: grid; grid-template-rows: auto 1fr; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.pv-h { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.pv-h b { margin-right: auto; }
.pv iframe { width: 100%; height: 100%; border: 0; background: #525659; }
@media (max-width: 900px) { .tplv { grid-template-columns: 1fr; } .trow { grid-template-columns: 30px minmax(0,1fr) auto; } .trow .st { display: none; } }
.mrow { justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: nowrap; }
.mrow span small { font-size: 11px; opacity: .8; }
.mrow b { white-space: nowrap; }
.mtotal { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; font-weight: 700; }
.mtotal span small { display: block; font-weight: 400; color: var(--muted); }
.mtotal b { font-size: 16px; }
/* прайс: строки слева и справа — одной высоты, на одной линии (16.11.2026) */
.pricing { align-items: stretch; }
.pricing > .box > .small.muted:first-of-type { min-height: 36px; }
.ptable { margin-top: 8px; }
.ptable tr:not(.ex tr) td, .pricing .ptable:not(.ex) td { height: 60px; box-sizing: border-box; padding: 6px 4px; vertical-align: middle; }
.pform { gap: 0; margin-top: 8px; }
.pform label { height: 60px; box-sizing: border-box; padding: 0; }
.pform label:last-of-type { border-bottom: 1px solid var(--line); }
.pform .money input { height: 38px; }
.pform .row.end { margin-top: 12px; }
.pricing .ptable:not(.ex) td { line-height: 1.25; padding: 4px; }
.pricing .ptable:not(.ex) td small { line-height: 1.25; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pricing .ptable:not(.ex) tr { height: 60px; }

/* профиль (16.11.2026): реквизиты группами, справа документы и оповещения */
.profv { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); gap: 14px; align-items: start; }
.profv form { display: grid; gap: 10px; margin-top: 8px; }
.pfgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.pf { display: grid; gap: 5px; font-size: 12px; color: var(--muted); min-width: 0; }
.pf.wide { grid-column: 1 / -1; }
.pf input, .pf textarea { width: 100%; box-sizing: border-box; font: 500 14px var(--font); color: var(--text); background: rgba(255,255,255,0.035);
  border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; height: 40px; outline: none; transition: border-color .15s, box-shadow .15s, background .15s; }
.pf textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; line-height: 1.4; }
.pf input::placeholder, .pf textarea::placeholder { color: var(--muted); opacity: .7; font-weight: 400; }
.pf input:hover, .pf textarea:hover { border-color: rgba(255,255,255,0.22); }
.pf input:focus, .pf textarea:focus { border-color: var(--lime); background: var(--lime-soft); box-shadow: 0 0 0 3px rgba(185,242,39,0.12); }
html[data-theme="light"] .pf input, html[data-theme="light"] .pf textarea { background: #fff; border-color: rgba(0,0,0,0.14); }
.cnt-chip { font-size: 11.5px; border-radius: 99px; padding: 2px 10px; border: 1px solid var(--warn, #f5c469); color: var(--warn, #f5c469); white-space: nowrap; }
.cnt-chip.ok { border-color: var(--lime); color: var(--lime); }
.chs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.ch { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; cursor: pointer; font-size: 13px; }
.ch input { display: none; }
.ch.on { border-color: var(--lime); background: var(--lime-soft); color: var(--lime); }
@media (max-width: 900px) { .profv { grid-template-columns: 1fr; } .pfgrid { grid-template-columns: 1fr; } }

/* профиль: документы сверху, реквизиты во всю ширину, группы колонками (16.11.2026) */
.profv { grid-template-columns: 1fr; max-width: 1500px; }
.lk-main:has(.profv) { max-width: 1500px; }
.pdocs-box .pdocs2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.profv form { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); align-items: start; }
.profv form > .nw-actions { grid-column: 1 / -1; }
.profv form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1200px) { .profv form { grid-template-columns: 1fr; } }

/* профиль вертикально: группы одна под другой, поля растут под текст (16.11.2026) */
.profv form, .profv form { grid-template-columns: 1fr !important; }
.profv .pfgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pf textarea.one { height: auto; min-height: 40px; padding: 10px 12px; resize: none; overflow: hidden; line-height: 1.35; white-space: pre-wrap; }
.pf textarea.multi { resize: vertical; overflow: hidden; }
@media (min-width: 1300px) { .profv .pfgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .profv .pf.wide { grid-column: span 2; } .profv .pf.multi-wide { grid-column: 1 / -1; } }
.profv .pf:has(textarea[name="basis"]), .profv .pf:has(textarea[name="bank"]), .profv .pf:has(textarea[name="education"]) { grid-column: 1 / -1; }
.profv .pfgrid { align-items: start; }

/* профиль: настройка кабинета помощником, миниатюры, логотип в шапке (16.11.2026) */
.onb { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; border-color: rgba(185,242,39,0.45);
  background: linear-gradient(90deg, rgba(185,242,39,0.10), rgba(185,242,39,0.02)); margin-bottom: 14px; }
.onb.chk { border-color: var(--warn); background: linear-gradient(90deg, rgba(245,196,105,0.12), rgba(245,196,105,0.02)); }
.onb-ic { width: 44px; height: 44px; border-radius: 14px; background: var(--lime); color: var(--on-lime); display: grid; place-items: center; font-size: 20px; font-weight: 700; }
.onb.chk .onb-ic { background: var(--warn); color: #1d1300; }
.onb b { font-size: 15px; } .onb .small { margin-top: 3px; line-height: 1.45; }
.doubts { margin-top: 8px; font-size: 13px; } .doubts ul { margin: 4px 0 0; padding-left: 18px; }
.spin { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(0,0,0,0.25); border-top-color: var(--on-lime); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pdocs3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; margin-top: 8px; }
.pdoc3 { border: 1px solid var(--line); border-radius: 14px; padding: 10px; display: grid; gap: 8px; align-content: start; }
.pdoc3.ok { border-color: rgba(185,242,39,0.4); }
.pd-top { display: grid; grid-template-columns: 34px 1fr 22px; gap: 10px; align-items: center; }
.pd-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--panel); display: grid; place-items: center; font-size: 17px; }
.pd-top b { font-size: 13.5px; display: block; } .pd-top small { color: var(--muted); font-size: 12px; }
.pd-top .pd-dot { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.pdoc3.ok .pd-dot { background: var(--lime); border-color: var(--lime); color: var(--on-lime); }
.logo-mock { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: center; background: #fff; color: #111; border-radius: 10px; padding: 10px; }
.logo-mock img { width: 96px; height: 56px; object-fit: contain; }
.logo-ph { width: 96px; height: 56px; border: 1.5px dashed #bbb; border-radius: 8px; display: grid; place-items: center; font-size: 11px; color: #888; }
.lm-t b { font-size: 12px; display: block; color: #111; } .lm-t small { display: block; font-size: 10.5px; color: #444; line-height: 1.3; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.thumb { display: grid; gap: 4px; }
.th-img { height: 90px; border-radius: 10px; border: 1px solid var(--line); background: #fff; overflow: hidden; cursor: zoom-in; padding: 0; display: grid; place-items: center; }
.th-img img { width: 100%; height: 100%; object-fit: cover; }
.th-img.pdf { background: var(--panel); color: var(--muted); font-weight: 700; }
.th-img:hover { border-color: var(--lime); }
.th-row { display: grid; grid-template-columns: minmax(0,1fr) 28px; gap: 4px; }
.th-row select { font: inherit; font-size: 11px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); padding: 0 4px; min-width: 0; }
.pf.auto textarea { border-color: var(--warn); background: rgba(245,196,105,0.07); }
.pf span em { font-style: normal; color: var(--warn); font-size: 11px; margin-left: 6px; }
.confirm { margin-right: auto; font-size: 13px; color: var(--text); display: flex; gap: 8px; align-items: center; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.pv-in img { max-width: 100%; max-height: 100%; }

.sortline { display: flex; gap: 8px; align-items: center; font-size: 13px; border-radius: 10px; padding: 7px 10px; }
.sortline.run { background: var(--lime-soft); color: var(--text); }
.sortline.run .spin { width: 14px; height: 14px; border-width: 2px; border-color: rgba(185,242,39,0.3); border-top-color: var(--lime); }
.sortline.ok { background: var(--lime-soft); color: var(--lime); }
.sortline.err { background: var(--warn-soft, rgba(245,196,105,0.14)); color: var(--warn); }

/* материалы заявки (17.11.2026): миниатюры с предпросмотром — ничего не съезжает; подсказка полиса */
.ofiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; max-height: 420px; overflow: auto; padding: 2px; }
.ofile { display: grid; gap: 4px; min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 6px; background: rgba(255,255,255,0.02); }
.of-th { height: 96px; border-radius: 9px; border: 1px solid var(--line); background: #fff; overflow: hidden; padding: 0; cursor: zoom-in; display: grid; place-items: center; }
.of-th img { width: 100%; height: 100%; object-fit: cover; }
.of-th.doc { background: var(--panel); color: var(--muted); font-weight: 700; font-size: 13px; }
.of-th:hover { border-color: var(--lime); }
.of-name { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.of-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px; align-items: center; }
.of-row select.fk { width: 100%; max-width: none; min-width: 0; height: 28px; font-size: 11.5px; border-radius: 8px; background: var(--panel); }
.ni.hint { display: inline-flex; gap: 6px; align-items: baseline; border: 1px dashed var(--blue, #a9c6ea); color: var(--text); border-radius: 99px; padding: 3px 10px; font-size: 12px; }
.ni.hint small { color: var(--muted); }
.need-r.hint { border-style: dashed; border-color: var(--blue, #a9c6ea); }
.need-r.hint small { color: var(--text); }
.ni.hint { flex-basis: 100%; border-radius: 12px; padding: 6px 12px; }

/* 17.11: предпросмотр фото — целиком по экрану; тёмный выпадающий список; заказчик свёрнут; найденные номера */
:root { color-scheme: dark; }
html[data-theme="light"] { color-scheme: light; }
select option { background: var(--solid); color: var(--text); }
.of-row select.fk { color: var(--text); }
.pv-in.img { width: auto; height: auto; max-width: 96vw; max-height: calc(100vh - 48px); }
.pv-pic { display: grid; place-items: center; background: #000; min-height: 0; }
.pv-pic img { display: block; max-width: 96vw; max-height: calc(100vh - 48px - 52px); width: auto; height: auto; object-fit: contain; }
.cust-box { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 6px; }
.cust-box summary { display: flex; align-items: baseline; gap: 10px; cursor: pointer; list-style: none; }
.cust-box summary::-webkit-details-marker { display: none; }
.cust-box summary::before { content: "▸"; color: var(--muted); }
.cust-box[open] summary::before { content: "▾"; }
.cust-box summary h4 { margin: 0; }
.cust-box form { margin-top: 8px; }
.ni small { color: var(--muted); font-weight: 500; margin-left: 4px; }
.need-r small b.found { color: var(--text); font-weight: 600; }

/* логотип кабинета: зелёный ферзь на чёрном (владелец 17.11.2026) */
.brand.lk-brand { background: #07090b; border: 1px solid rgba(185,242,39,0.35); box-shadow: 0 0 14px rgba(185,242,39,0.18); }
.brand.lk-brand svg, html[data-theme="light"] .brand.lk-brand svg { fill: #b9f227; }

/* предупреждение перед отправкой заявки (17.11.2026) */
.pv-in.presend { width: min(620px, 100%); height: auto; }
.presend-b { padding: 14px 16px; display: grid; gap: 10px; }
.presend-b ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.presend-b li { line-height: 1.4; }
/* пометка документа и дубль (18.11.2026) */
.of-note { font-size: 12px; color: var(--lime, #c6f432); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.of-dup { font-size: 12px; color: var(--warn, #f5a524); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* дата ДТП без европротокола (18.11.2026) */
.need .ni.dt { display: inline-flex; align-items: center; gap: 6px; }
.need .ni.dt input { font: inherit; font-size: 12px; background: transparent; color: inherit; border: 0; border-bottom: 1px dashed currentColor;
  padding: 0 2px; color-scheme: dark; }
.need .ni.dt.req { box-shadow: 0 0 0 1px rgba(245,196,105,.45); animation: dt-pulse 1.6s ease-in-out infinite; }
@keyframes dt-pulse { 50% { box-shadow: 0 0 0 3px rgba(245,196,105,.25); } }

/* одна форма «Новая заявка» = черновик (18.11.2026): строки файлов кликабельны, дата ДТП, правая колонка */
button.need-r { font: inherit; color: inherit; text-align: left; background: transparent; cursor: pointer; width: 100%; }
button.need-r.ok { background: var(--lime-soft); }
.need-r.on { box-shadow: 0 0 0 1px var(--lime); }
.need-r.dt input { font: inherit; font-size: 12.5px; margin: 4px 0 2px; background: transparent; color: var(--text); border: 0;
  border-bottom: 1px dashed currentColor; padding: 0 2px; color-scheme: dark; }
:root[data-theme="light"] .need-r.dt input { color-scheme: light; }
.need-r.dt.req { border-color: rgba(245,196,105,.6); animation: dt-pulse 1.6s ease-in-out infinite; }
.need-r.dt.req .nd { color: var(--warn, #f5c469); border-color: rgba(245,196,105,.6); }
.need-r.dt.ok { border-color: var(--lime); background: var(--lime-soft); }
.need-r.dt.ok .nd { background: var(--lime); color: var(--on-lime); border-color: var(--lime); }
.nw .ofiles { margin-top: 8px; }
.nw-side { display: grid; gap: 14px; align-content: start; min-width: 0; }
/* Платёжный QR-код счёта (22.11.2026) — белая подложка, чтобы камера банка читала и в тёмной теме */
.qrpay { margin: 4px 0 10px; }
.qrpay summary { cursor: pointer; font-size: 13px; padding: 4px 0; }
.qrpay img { display: block; background: #fff; padding: 10px; border-radius: 8px; margin: 6px 0; }
/* Реквизиты исполнителя под кнопками оплаты (22.11.2026) */
.seller { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.08); }
.seller h5 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; opacity: .7; }
.seller table { border-collapse: collapse; font-size: 13px; width: 100%; }
.seller td { padding: 2px 0; vertical-align: top; }
.seller td:first-child { opacity: .65; width: 120px; padding-right: 10px; white-space: nowrap; }
.seller td:last-child { word-break: break-word; user-select: all; }
/* Страница входа: блок «Оплата услуг» с реквизитами (22.11.2026, временно — для подключения ЮKassa) */
.auth > .box + .box { margin-top: 14px; }
.auth > .box .row { margin: 10px 0 4px; gap: 8px; }
/* приглашение с подарком на регистрации (22.11.2026) */
.gift { margin: 4px 0 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--lime, #b5e853); }
.gift.bad { border-color: var(--red, #e5534b); }
/* вход без пароля, Telegram, подтверждение почты (24.11.2026) */
.alt-in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.alt-in a { color: var(--lime); text-decoration: none; } .alt-in a:hover { text-decoration: underline; } .alt-in .btn { margin-left: auto; }
.tg-wait { display: flex; align-items: center; gap: 8px; }
.box.verify { display: grid; gap: 6px; margin-bottom: 14px; border-color: var(--warn, #f5c469); }
.box.verify form { gap: 8px; flex-wrap: wrap; } .box.verify input { width: 150px; letter-spacing: .2em; }
.box.tgbox { margin-top: 14px; display: grid; gap: 8px; }
.tg-wait .spin { width: 14px; height: 14px; border-width: 2px; border-color: rgba(185,242,39,0.3); border-top-color: var(--lime); }
.tg-check b { font-family: var(--dots, monospace); font-size: 26px; color: var(--lime); margin: 0 4px; vertical-align: middle; }
/* экран входа (владелец 24.11.2026): только вход, по центру экрана; ниже — оферта и политика */
.auth { min-height: calc(100vh - 140px); display: flex; flex-direction: column; justify-content: center; max-width: 520px; }
.auth-docs { margin-top: 12px; text-align: center; } .auth-docs a { color: inherit; text-underline-offset: 3px; }
.inv-only { margin-top: 10px; } .inv-only a { color: var(--lime); }
/* реквизиты в «Профиле» — раскрывающийся блок (24.11.2026) */
.req-box > summary { list-style: none; cursor: pointer; } .req-box > summary::-webkit-details-marker { display: none; }
.req-box > summary h4::after { content: " ▾"; color: var(--muted); } .req-box:not([open]) > summary h4::after { content: " ▸"; }
.req-box:not([open]) > summary { margin-bottom: 0; }
/* «Макеты» до заполнения реквизитов (24.11.2026) */
.rail button.locked { cursor: not-allowed; }
.rail button.locked svg { opacity: .35; } .rail button.locked:hover svg { opacity: .5; }
/* ход заявки кругом (24.11.2026) */
.ohead { justify-content: space-between; align-items: center; flex-wrap: nowrap; gap: 16px; }
.oring { display: grid; justify-items: end; gap: 2px; flex: none; }
.oring svg { width: 72px; height: 72px; }
.oring .tr { fill: none; stroke: var(--line); stroke-width: 6; }
.oring .val { fill: none; stroke: var(--lime); stroke-width: 6; stroke-linecap: round; transition: stroke-dasharray .6s; }
.oring text { fill: var(--text); font: 700 15px var(--font); }
.oring span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--lime); }
.oring.sent .val, .oring.revision .val { stroke: var(--warn); } .oring.sent span, .oring.revision span { color: var(--warn); }
.oring.draft .val, .oring.cancelled .val { stroke: var(--muted); } .oring.draft span, .oring.cancelled span { color: var(--muted); }
@media (max-width: 560px) { .oring svg { width: 56px; height: 56px; } .ohead h2 { font-size: 20px; } }
