/* Приложение для зала — оформление D+ «Ценник» (макет out/design-D-plus.html, спецификация §5.9). */
:root { --bg:#F6F4EC; --paper:#FFFFFF; --ink:#1B2227; --muted:#5C666D; --line:#DDD8C8; --tag:#FBC311; --tagInk:#1B2227;
        --dash:#C9C4B2; --nav:#1B2227; --navInk:#5C666D; --warn-bg:#FFF3C4; --warn-ink:#6B5000; --danger:#B3261E; --ok:#17694F;
        --ground:var(--bg); --cta:#1B2227; --ctaInk:#FBC311; --tile:#FFFFFF;
        /* детали C «Стекло и свет» (план 23) */
        --navOn:#1B2227; --glassNav:rgba(255,255,255,.88); --glassTop:rgba(246,244,236,.72); --glassEdge:rgba(255,255,255,.75);
        --gloss:linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,0) 46%); --hair:rgba(27,34,39,.12);
        --lift:inset 0 1px 0 #fff, 0 3px 8px -5px rgba(27,34,39,.35); --ring:0 0 0 3px rgba(27,34,39,.035);
        --well:rgba(27,34,39,.06); --wellIn:inset 0 1px 3px rgba(27,34,39,.10); --thumb:var(--paper); --thumbInk:var(--ink); --thumbIcon:#8A6A00;
        --swOff:rgba(27,34,39,.10); --fabHalo:rgba(255,255,255,.55); --ctaArrow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B2227' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
        --spring:cubic-bezier(.32,.72,0,1); --soft:cubic-bezier(.2,.8,.2,1); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg:#14181B; --paper:#1F2529; --ink:#ECEEEA; --muted:#A5AEB3; --line:#343C41; --dash:#343C41; --nav:#262E33;
          --warn-bg:#3A3316; --warn-ink:#FBD883; --danger:#F2786D; --ok:#56BC93; --cta:#FBC311; --ctaInk:#1B2227; --tile:#262E33;
            --navInk:#B8C0C4; --navOn:#FBC311; --glassNav:rgba(31,37,41,.82); --glassTop:rgba(20,24,27,.68); --glassEdge:rgba(255,255,255,.08);
            --gloss:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0) 46%); --hair:rgba(255,255,255,.08);
            --lift:inset 0 1px 0 rgba(255,255,255,.07), 0 3px 8px -5px rgba(0,0,0,.6); --ring:0 0 0 3px rgba(255,255,255,.025);
            --well:rgba(255,255,255,.05); --wellIn:inset 0 1px 3px rgba(0,0,0,.4); --thumb:#343C41; --thumbInk:#FBC311; --thumbIcon:#FBC311;
            --swOff:rgba(255,255,255,.08); --fabHalo:rgba(255,255,255,.08); --ctaArrow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FBC311' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); }
}
:root[data-theme="dark"] { --bg:#14181B; --paper:#1F2529; --ink:#ECEEEA; --muted:#A5AEB3; --line:#343C41; --dash:#343C41; --nav:#262E33;
          --warn-bg:#3A3316; --warn-ink:#FBD883; --danger:#F2786D; --ok:#56BC93; --cta:#FBC311; --ctaInk:#1B2227; --tile:#262E33;
          --navInk:#B8C0C4; --navOn:#FBC311; --glassNav:rgba(31,37,41,.82); --glassTop:rgba(20,24,27,.68); --glassEdge:rgba(255,255,255,.08);
          --gloss:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0) 46%); --hair:rgba(255,255,255,.08);
          --lift:inset 0 1px 0 rgba(255,255,255,.07), 0 3px 8px -5px rgba(0,0,0,.6); --ring:0 0 0 3px rgba(255,255,255,.025);
          --well:rgba(255,255,255,.05); --wellIn:inset 0 1px 3px rgba(0,0,0,.4); --thumb:#343C41; --thumbInk:#FBC311; --thumbIcon:#FBC311;
          --swOff:rgba(255,255,255,.08); --fabHalo:rgba(255,255,255,.08); --ctaArrow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FBC311' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); }
body { background: var(--bg); color: var(--ink); font-family: Onest, system-ui, sans-serif; -webkit-tap-highlight-color: transparent; }
main { max-width: 560px; padding: 0 0 calc(110px + env(safe-area-inset-bottom)); }
svg.i { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
button { font-family: inherit; }
.tap { cursor: pointer; }
.tap:active { transform: scale(.98); }

/* Шапка */
#top { position: sticky; top: 0; z-index: 9; margin: 0; padding: calc(12px + env(safe-area-inset-top)) max(16px, calc((100% - 528px) / 2)) 6px; display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 52px;
  background: var(--glassTop); -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%); box-shadow: 0 1px 0 var(--hair); }
.who { display: flex; gap: 10px; align-items: center; min-width: 0; }
button.who { background: none; border: 0; padding: 0; margin: 0; width: auto; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ava { width: 40px; height: 40px; border-radius: 50%; background: #1B2227; color: #FBC311; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px #FBC311; display: grid; place-items: center; flex: none; font-weight: 800; }
.who b { display: block; font-size: 15px; line-height: 1.2; } .who small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.date { background: #1B2227; color: #FBC311; border-radius: 8px; padding: 4px 8px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.date.stale { background: var(--danger); color: #fff; }
.back { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 0; background: var(--paper); color: var(--ink); padding: 0; box-shadow: var(--lift), 0 4px 14px rgba(27,34,39,.12); }
#banner { margin: 4px 16px 0; padding: 8px 12px; background: var(--warn-bg); color: var(--warn-ink); border-radius: 12px; font-size: 14px; font-weight: 600; }

/* Главный */
.hello { padding: 6px 16px 0; font-size: 30px; font-weight: 900; line-height: 1.02; letter-spacing: -.02em; margin: 0; }
.scanbig { margin: 14px 16px; height: 140px; border-radius: 22px; background: var(--tag); color: var(--tagInk); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: 16px; font-weight: 900; font-size: 22px; border: 0; width: calc(100% - 32px); text-align: left; }
.scanbig::before { content: ""; position: absolute; right: -20px; top: 16px; width: 150px; height: 66px; background: repeating-linear-gradient(90deg, #1B2227 0 3px, transparent 3px 6px, #1B2227 6px 8px, transparent 8px 13px); transform: rotate(-8deg); }
.scanbig small { font-size: 13px; font-weight: 600; }
.field { margin: 0 16px; background: var(--paper); border: 2px solid var(--ink); border-radius: 16px; padding: 0 14px; display: flex; gap: 8px; align-items: center; color: var(--muted); }
.field input { border: 0; padding: 13px 0; background: transparent; outline: none; color: var(--ink); font-size: 16px; }
.hints { margin: 6px 16px 0; background: var(--paper); border-radius: 16px; border: 1px solid var(--line); overflow: hidden; }
.hints:empty { display: none; }
.hint-row { display: block; width: 100%; text-align: left; background: transparent; color: var(--ink); border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 12px 14px; font-weight: 400; font-size: 14px; }
.hint-row:first-child { border-top: 0; } .hint-row b { font-variant-numeric: tabular-nums; }
.h3 { margin: 20px 16px 8px; font-size: 17px; font-weight: 900; }
.recents { display: flex; gap: 10px; padding: 8px 16px 4px; overflow-x: auto; scrollbar-width: none; }
.mini { flex: none; width: 132px; background: var(--tag); color: var(--tagInk); border-radius: 4px 4px 14px 14px; padding: 12px 10px 10px; position: relative; border: 0; text-align: left; font-weight: 400; }
.mini::before { content: ""; position: absolute; top: -6px; left: 50%; width: 11px; height: 11px; margin-left: -6px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px #1B2227; }
.mini small { font-size: 10px; font-weight: 800; display: block; } .mini b { display: block; font-size: 13px; line-height: 1.15; margin: 4px 0 6px; height: 45px; overflow: hidden; }
.mini .st { font-size: 22px; font-weight: 900; } .mini .st span { font-size: 10px; font-weight: 700; }

/* Стартовый экран: логотип ЦС WORK и плитки функций */
.brand { display: flex; align-items: flex-end; gap: 8px; margin: 10px 16px 0; color: var(--ink); }
.brand svg.cs { height: 40px; }
.badge { background: #FBC311; color: #1B2227; font-weight: 900; font-size: 14px; border-radius: 6px; padding: 1px 6px; margin-bottom: 1px; letter-spacing: .02em; }
/* WORK ровно по центру: строка обрезается по высоте заглавных, отступы сверху и снизу равны (iOS 18.2+, Chrome 133+) */
@supports (text-box: trim-both cap alphabetic) { .badge { text-box: trim-both cap alphabetic; padding: 6px 6px; } }
.tile2 { display: block; position: relative; overflow: hidden; margin: 0 14px 12px; width: calc(100% - 28px); min-height: 118px; border-radius: 20px;
  background: var(--tile); border: 1px solid var(--line); color: var(--ink); padding: 16px; text-align: left; font-weight: 400; }
.tile2 .tname { display: block; font-size: 26px; font-weight: 900; letter-spacing: -.01em; }
.tile2 .tdesc { display: block; color: var(--muted); font-size: 13px; font-weight: 600; margin-top: 4px; max-width: 220px; }
.tile2 .corner { position: absolute; right: 0; bottom: 0; width: 84px; height: 42px; background: #FBC311; clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
  display: flex; align-items: center; justify-content: flex-end; padding-right: 16px; color: #1B2227; }
.tile2 .corner svg { width: 24px; height: 24px; }
.tile2:disabled { opacity: .55; }
.badge2 { display: inline-block; margin-top: 12px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; background: #FBC311; color: #1B2227; border-radius: 999px; padding: 3px 9px; }
.hello + .tile2 { margin-top: 18px; }
/* Подпись внизу главной: прижата к низу экрана над меню, при длинной главной - просто после плиток */
main:has(> .home-foot) { display: flex; flex-direction: column; min-height: calc(100dvh - 72px); }
.home-foot { margin: auto 16px 0; padding: 24px 0 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center;
  font-size: 12px; font-weight: 600; line-height: 1.35; color: var(--muted); text-decoration: none; }
.home-foot .sib { background: #FBC311; color: #1B2227; letter-spacing: .12em; font-size: .92em; padding: 1px 5px; border-radius: 4px; }
.home-foot b { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: #FBC311; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Стартовый экран: половинные плитки по две в ряд, счётчик отработки */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 14px 12px; }
.grid2 .tile2 { margin: 0; width: 100%; min-height: 118px; padding: 14px 12px; }
.grid2 .tile2 .tname { font-size: 18px; line-height: 1.1; }
.grid2 .tile2 .tdesc { font-size: 12px; max-width: none; }
.grid2 .tile2 .corner { width: 58px; height: 34px; padding-right: 12px; }
.grid2 .tile2 .corner svg { width: 20px; height: 20px; }
.grid2 .full { grid-column: 1 / -1; }
.count { position: relative; z-index: 1; display: inline-block; max-width: calc(100% - 46px); margin-top: 8px; background: #FBC311; color: #1B2227; border-radius: 999px; padding: 3px 9px; font-size: 11px; font-weight: 800; line-height: 1.3; }
.count.zero { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.count:empty { display: none; }

/* Вкладки нижней кнопки «Заявки» */
/* утопленная дорожка; выбранная вкладка - светлый бегунок (с .slide бегунок отдельный и переезжает, его ставит PT.slide) */
.tabs { position: relative; display: flex; gap: 6px; margin: 12px 14px 4px; background: var(--well); box-shadow: var(--wellIn); border: 0; border-radius: 999px; padding: 4px; }
.tabs button { position: relative; z-index: 1; flex: 1; padding: 10px 8px; border-radius: 999px; font-weight: 800; font-size: 14px; color: var(--muted); background: transparent; border: 0; transition: color .3s var(--soft); }
.tabs button.on { background: var(--thumb); color: var(--thumbInk); box-shadow: var(--lift), 0 4px 14px rgba(27,34,39,.16); }
.tabs .thumb { position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 999px; background: var(--thumb); box-shadow: var(--lift), 0 4px 14px rgba(27,34,39,.16); transition: transform .5s var(--spring), width .5s var(--spring); }
.tabs.slide button.on { background: transparent; box-shadow: none; }

/* Карточка заявки на заказ (список и отработка) */
.cc-card { display: block; width: calc(100% - 28px); text-align: left; font-weight: 400; }
.cc-row { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.cc-sup { font-weight: 800; font-size: 15px; margin-top: 4px; }
.cc-day { flex: none; border-radius: 8px; padding: 2px 8px; font-size: 11px; font-weight: 800; background: var(--bg); color: var(--ink); white-space: nowrap; }
.cc-day.today { background: #FBC311; color: #1B2227; }
.cc-items { margin-top: 8px; border-top: 1px dashed var(--dash); }
.cc-it { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 7px 0; border-bottom: 1px dashed var(--dash); font-size: 14px; }
.cc-it .nm { font-weight: 600; } .cc-it .chip { font-size: 10px; padding: 1px 6px; }
.cc-it .art { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.cc-it .q { grid-row: span 2; align-self: center; border: 1.5px solid var(--line); border-radius: 8px; padding: 2px 8px; font-weight: 800; font-size: 13px; white-space: nowrap; }
.cc-st { margin-top: 10px; } .cc-ord { margin-top: 6px; font-size: 13px; color: var(--muted); } .cc-ord b { color: var(--ink); font-size: 17px; font-variant-numeric: tabular-nums; }
.cc-note { margin-top: 8px; font-size: 13px; color: var(--muted); } .cc-note b { color: var(--ink); }
.cc-act { display: flex; gap: 8px; margin-top: 10px; }
.cc-act input { flex: 1; min-width: 0; font-size: 16px; border: 2px solid var(--line); border-radius: 12px; padding: 9px 10px; background: var(--bg); color: var(--ink); }
.cc-card .cc-act button { flex: none; margin: 0; border-radius: 12px; padding: 9px 14px; font-weight: 900; background: #FBC311; color: #1B2227; border: 0; }
.cc-card .cc-act button.sec { background: transparent; border: 2px solid var(--ink); color: var(--ink); }
.cc-card .cc-act button.danger { background: #B3261E; color: #fff; }
.cc-card .cc-link { display: block; margin-top: 8px; background: transparent; border: 0; border-radius: 0; padding: 4px 0; color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: underline; }
.cc-msg { color: var(--danger); font-size: 12px; font-weight: 700; margin-top: 4px; } .cc-msg:empty { display: none; }

/* Карточка */
.chips { display: flex; gap: 6px; padding: 4px 16px 0; flex-wrap: wrap; }
.chip { font-size: 12px; font-weight: 800; border-radius: 999px; padding: 5px 10px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); }
.chip.g { background: #17694F; color: #fff; border-color: #17694F; } .chip.y { background: #FBC311; color: #1B2227; border-color: #FBC311; } .chip.r { background: #B3261E; color: #fff; border-color: #B3261E; }
.codes { padding: 8px 16px 0; font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; font-variant-numeric: tabular-nums; }
.codes span { display: flex; align-items: center; gap: 6px; } .codes svg { width: 16px; height: 16px; }
.tag2 { margin: 16px 14px 10px; background: var(--tag); color: var(--tagInk); border-radius: 6px 6px 22px 22px; position: relative; padding: 16px; box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.tag2::before { content: ""; position: absolute; top: -9px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 3px #1B2227; }
.tag2 h2 { margin: 0 0 12px; font-size: 19px; line-height: 1.15; font-weight: 900; }
.stock { display: flex; align-items: flex-end; justify-content: space-between; border-top: 2px solid #1B2227; padding-top: 8px; }
.stock small { font-size: 11px; font-weight: 800; text-transform: uppercase; display: block; }
.stock b { font-size: 52px; line-height: .95; font-weight: 900; font-variant-numeric: tabular-nums; }
.stock .tr { text-align: right; font-size: 13px; font-weight: 800; }
.kv { margin: 0 14px; }
.kv > div, .kv > button { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 2px; font-size: 14px; border: 0; border-bottom: 1px solid var(--line); width: 100%; background: transparent; color: var(--ink); font-weight: 400; border-radius: 0; text-align: left; }
.kv span { color: var(--muted); } .kv b { font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 4px; }
.kv > .mins-more { display: block; padding: 0; border: 0; }
.kv .more { display: flex; justify-content: space-between; padding: 8px 2px 8px 14px; font-size: 13px; border-bottom: 1px solid var(--line); }
.kv .chev { width: 16px; height: 16px; color: var(--muted); transition: transform .2s; } .kv .open .chev { transform: rotate(90deg); }
.plaque { margin: 10px 14px 0; border-radius: 14px; padding: 10px 12px; font-size: 13px; font-weight: 700; display: flex; gap: 8px; align-items: flex-start; background: var(--warn-bg); color: var(--warn-ink); }
.plaque.lead b { display: block; font-weight: 700; } .plaque.lead .l2 { display: block; font-weight: 500; }
.plaque.lead a { color: inherit; text-decoration: underline; text-underline-offset: 3px; margin-right: 12px; white-space: nowrap; }
.plaque.lead .nm { margin-right: 12px; white-space: nowrap; }
.ask { margin: 16px 16px 8px; font-weight: 900; font-size: 15px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 14px; }
.tiles.one { grid-template-columns: 1fr; }
.tile { height: 92px; border-radius: 18px; background: var(--tile); border: 1px solid var(--line); position: relative; overflow: hidden; padding: 12px; font-weight: 900; font-size: 17px; text-align: left; color: var(--ink); display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; width: 100%; }
.tile small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.tile .corner { position: absolute; right: 0; bottom: 0; width: 70px; height: 34px; background: #FBC311; clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); display: flex; align-items: center; justify-content: flex-end; padding-right: 12px; color: #1B2227; }
.tile .corner svg { width: 22px; height: 22px; }
.tile.off { opacity: .45; } .tile.off .corner { background: var(--line); }
.action { margin: 12px 14px 0; height: 50px; border-radius: 999px; background: var(--paper); border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; font-size: 15px; color: var(--ink); width: calc(100% - 28px); }
.action:disabled, .action.off { opacity: .45; }
.reason { margin: 6px 16px 0; font-size: 12px; color: var(--muted); text-align: center; }

/* Чек «Почему мало / много» */
.receipt { margin: 10px 14px; background: var(--paper); border-radius: 4px; padding: 14px 16px 20px; position: relative; box-shadow: 0 8px 22px rgba(27,34,39,.12); font-size: 14px; }
.receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; background: radial-gradient(circle at 6px 0, var(--paper) 6px, transparent 6.5px) 0 0 / 12px 8px repeat-x; }
.receipt h2 { margin: 0 0 4px; font-size: 16px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.receipt .sub { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.line { display: grid; grid-template-columns: 26px 1fr; gap: 6px; padding: 10px 0; border-bottom: 1px dashed var(--dash); }
.line b { display: block; } .line span { display: block; color: var(--muted); font-size: 13px; }
.line.nodata { opacity: .6; }
.line .i.r { color: var(--danger); } .line .i.y { color: #8A6A00; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .line .i.y { color: #FBC311; }
}
:root[data-theme="dark"] .line .i.y { color: #FBC311; }
.total { display: flex; justify-content: space-between; font-weight: 900; padding-top: 10px; }
.info { margin: 16px 14px 0; border: 1px dashed var(--dash); border-radius: 14px; padding: 10px 12px; font-size: 14px; color: var(--ink); display: flex; gap: 8px; align-items: center; font-weight: 700; }
.cta { margin: 18px 14px 0; height: 54px; border-radius: 16px; background: var(--cta); color: var(--ctaInk); display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 900; font-size: 16px; border: 0; width: calc(100% - 28px); }
.cta:disabled { opacity: .45; }
.hint { margin: 8px 16px; font-size: 12px; color: var(--muted); text-align: center; }
.err-block { margin: 12px 14px; background: #B3261E; color: #fff; border-radius: 16px; padding: 14px; } .err-block b { display: block; font-size: 15px; } .err-block span { display: block; font-size: 13px; opacity: .92; }
.err-block button { margin-top: 10px; background: #fff; color: #1B2227; }

/* Заявка и профиль */
.form { margin: 0 16px; }
.form label { display: block; margin: 16px 0 6px; font-weight: 800; font-size: 14px; }
.form input, .form textarea, .form select { font-size: 16px; border: 2px solid var(--ink); border-radius: 14px; padding: 12px 14px; background: var(--paper); color: var(--ink); width: 100%; font-family: inherit; }
.form input.qty { font-size: 24px; font-weight: 900; }
.form .muted { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
/* тип минимума: две карточки-выбора */
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.form .opts label { margin: 0; font-weight: 400; font-size: inherit; }
.opts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt { display: flex; flex-direction: column; gap: 3px; min-height: 64px; height: 100%; padding: 10px 12px; border-radius: 18px; border: 1px solid var(--hair); background: var(--paper) var(--gloss); color: var(--ink);
  box-shadow: var(--lift), 0 6px 14px -8px rgba(27,34,39,.35); transition: background-color .3s var(--soft), box-shadow .35s var(--spring), transform .35s var(--spring); }
.opts label:active .opt { transform: scale(.97); }
.opt b { font-size: 15px; font-weight: 900; line-height: 1.15; }
.opt small { font-size: 12px; font-weight: 600; color: var(--muted); line-height: 1.2; }
.opts input:checked + .opt { background: var(--tag) linear-gradient(180deg, rgba(255,255,255,.45), rgba(255,255,255,0)); border-color: var(--tag); color: var(--tagInk);
  box-shadow: 0 0 0 3px rgba(251,195,17,.25), 0 10px 20px -10px rgba(251,195,17,.9), inset 0 1px 0 rgba(255,255,255,.6); }
.opts input:checked + .opt small { color: var(--tagInk); opacity: .75; }
.opts input:disabled + .opt { opacity: .45; border-style: dashed; }
.opts input:focus-visible + .opt { outline: 3px solid var(--tag); outline-offset: 2px; }
.capline { display: flex; justify-content: space-between; margin-top: 10px; font-size: 14px; color: var(--muted); }
.capline b { color: var(--ink); }
.form input.cc-qty { width: 84px; padding: 8px 6px; text-align: center; font-size: 18px; font-weight: 900; border-radius: 12px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
/* position: relative - скрытый кружок выбора остаётся внутри таблетки и не растягивает страницу вбок (лента фильтров в админке) */
.seg label { position: relative; margin: 0; font-weight: 800; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; justify-content: center; padding: 0 16px; border-radius: 999px; border: 1px solid var(--hair); background: var(--paper) var(--gloss); color: var(--ink);
  box-shadow: var(--lift); transition: background-color .3s var(--soft), color .3s var(--soft), border-color .3s var(--soft), transform .35s var(--spring); }
.seg label:active span { transform: scale(.94); }
.seg input:checked + span { background: var(--cta) linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0)); color: var(--ctaInk); border-color: var(--cta); box-shadow: 0 8px 16px -8px rgba(27,34,39,.7); }
.seg input:focus-visible + span { outline: 3px solid var(--tag); outline-offset: 2px; }
.links { margin: 20px 14px 0; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.links a, .links button { display: flex; align-items: center; gap: 12px; padding: 14px; border: 0; border-top: 1px solid var(--line); width: 100%; background: transparent; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; border-radius: 0; }
.links > :first-child { border-top: 0; }

/* Мои заявки */
.req { color: var(--ink); margin: 10px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; }
.req.focus { box-shadow: 0 0 0 3px var(--tag); }
.req .meta { color: var(--muted); font-size: 12px; font-weight: 600; } .req .nm { font-weight: 700; margin: 4px 0 8px; }
.req .chip { display: inline-block; } .req .small { font-size: 13px; color: var(--muted); margin-top: 6px; }
.req button { margin-top: 10px; background: transparent; border: 2px solid var(--ink); color: var(--ink); border-radius: 999px; padding: 8px 16px; }
.empty { margin: 16px; color: var(--muted); }

/* Нижняя панель: капсула с подписями и круглой кнопкой сканера */
.navbar { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); max-width: 540px; margin: 0 auto; height: 68px; background: var(--glassNav); border: 1px solid var(--glassEdge); border-radius: 26px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; z-index: 10;
  -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%); box-shadow: inset 0 1px 0 var(--glassEdge), 0 16px 36px rgba(27,34,39,.22); }
.navbar button { position: relative; background: transparent; color: var(--navInk); font-size: 11px; font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; border: 0; min-height: 52px; justify-content: center; border-radius: 14px; transition: color .3s var(--soft); }
.navbar button.on { color: var(--navOn); }
.navbar button[data-nav]::after { content: ""; position: absolute; bottom: 2px; left: 50%; width: 18px; height: 4px; margin-left: -9px; border-radius: 999px; background: #FBC311; transform: scaleX(0); transition: transform .45s var(--spring); }
.navbar button.on::after { transform: scaleX(1); }
.navbar .fab { width: 60px; height: 60px; min-height: 0; border-radius: 50%; background: #FBC311; color: #1B2227; padding: 0; margin: -26px auto 0; border: 0; transition: transform .35s var(--spring);
  box-shadow: 0 0 0 5px var(--fabHalo), 0 12px 26px rgba(251,195,17,.45), inset 0 2px 0 rgba(255,255,255,.6); }
.navbar .fab:active { transform: scale(.93); }
.navbar .fab svg { width: 26px; height: 26px; }

/* Сканер */
#scan { position: fixed; inset: 0; z-index: 20; background: #000; }
#scanVideo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#scanFrame { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 100vmax rgba(0,0,0,.45); border-radius: 10px; }
#scanFrame i { position: absolute; width: 34px; height: 34px; border: 4px solid #FBC311; transition: border-color .15s; }
#scanFrame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
#scanFrame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 10px 0 0; }
#scanFrame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 10px; }
#scanFrame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }
#scanFrame.hit i { border-color: #17694F; }
#scanCap { position: absolute; left: 16px; right: 16px; top: calc(50% + 130px); color: #fff; text-align: center; font-size: 15px; font-weight: 600; }
#scanErr { position: absolute; left: 12px; right: 12px; top: calc(16px + env(safe-area-inset-top)); background: #B3261E; color: #fff; border-radius: 16px; padding: 14px; box-shadow: 0 6px 24px rgba(0,0,0,.4); }
#scanErr b { display: block; font-size: 17px; } #scanErr span { display: block; font-size: 14px; opacity: .92; }
.scan-bar { position: absolute; left: 16px; right: 16px; bottom: calc(24px + env(safe-area-inset-bottom)); display: flex; gap: 10px; }
.scan-bar button { flex: 1; height: 52px; border-radius: 999px; font-weight: 800; background: #FBC311; color: #1B2227; border: 0; }
.scan-bar button.secondary { background: rgba(255,255,255,.12); color: #fff; border: 2px solid rgba(255,255,255,.6); }
#scanTorch.on { background: #fff; color: #1B2227; }

#toast { position: fixed; left: 16px; right: 16px; bottom: calc(92px + env(safe-area-inset-bottom)); max-width: 520px; margin: 0 auto; background: #1B2227; color: #fff; border-radius: 14px; padding: 12px 14px; font-size: 14px; font-weight: 600; display: flex; gap: 8px; align-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.25); z-index: 30; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .tap:active { transform: none; } }

/* Загрузка списка на компьютере: таблица проверки */
.up-head { margin: 12px 16px 0; font-weight: 800; }
.up-wrap { margin: 10px 16px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.up-tbl { border-collapse: collapse; width: 100%; font-size: 14px; }
.up-tbl th, .up-tbl td { text-align: left; padding: 8px 10px; border-bottom: 1px dashed var(--dash); vertical-align: top; }
.up-tbl th { color: var(--muted); font-size: 12px; white-space: nowrap; }
.up-tbl td:nth-child(1), .up-tbl td:nth-child(2) { white-space: nowrap; }
.up-tbl td:nth-child(3) { min-width: 160px; } .up-tbl td:nth-child(6) { min-width: 180px; }
.up-tbl .chip { display: inline-block; white-space: normal; }
.up-bar { display: flex; gap: 12px; align-items: center; margin: 14px 16px 0; flex-wrap: wrap; }
.up-bar .cta { margin: 0; width: auto; padding: 0 7px 0 24px; } /* как у остальных главных кнопок (план 23): кружок у края */
.up-tbl td:nth-child(6) .chip { white-space: normal; }
/* Кнопка и ссылка рядом с «Новый запрос» */
.z-sec { background: transparent; border: 2px solid var(--ink); color: var(--ink); border-radius: 999px; padding: 0 18px; min-height: 44px; font-weight: 800; }
.z-link { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }
:root[data-theme="dark"] .z-link { color: #FBC311; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .z-link { color: #FBC311; } }
/* Проверка списка на компьютере: широкая область */
@media (min-width: 900px) { body.wide-up main { max-width: 1100px; } body.wide-up #top { padding-left: max(16px, calc((100% - 1068px) / 2)); padding-right: max(16px, calc((100% - 1068px) / 2)); } }

/* ===== Детали C «Стекло и свет» (план 23, спецификация 2026-11-01-detali-vizuala-c-design.md) ===== */
/* Плитки: глянец сверху, тонкая подложка по краю, отклик на касание; отступы прежние */
.tile2, .tile { border-color: var(--hair); background-image: var(--gloss); box-shadow: var(--ring), var(--lift), 0 10px 24px -12px rgba(27,34,39,.25); transition: transform .35s var(--spring); }
.tile2 .corner, .tile .corner { background-image: linear-gradient(180deg, rgba(255,255,255,.45), rgba(255,255,255,0) 60%); }
.tile2:active, .tile:active { transform: scale(.975); }
/* Главная кнопка: капсула, значок (или стрелка) в круге справа */
.cta { border-radius: 999px; justify-content: flex-start; padding: 0 7px 0 24px; box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 10px 24px -8px rgba(27,34,39,.35); transition: transform .35s var(--spring); }
.cta svg.i { order: 2; margin-left: auto; width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: var(--ctaInk); color: var(--cta); transition: transform .45s var(--spring); }
.cta:not(:has(svg.i))::after { content: ""; flex: none; margin-left: auto; width: 40px; height: 40px; border-radius: 50%; background: var(--ctaInk) var(--ctaArrow) center / 20px no-repeat; transition: transform .45s var(--spring); }
.cta:active { transform: scale(.97); }
.cta:active svg.i, .cta:active::after { transform: translateX(3px); }
.cta:disabled { box-shadow: none; }
/* Кнопка-действие: капсула с глянцем, значок в круге слева; без значка - текст по центру */
.action { height: 56px; border: 1px solid var(--hair); justify-content: flex-start; padding: 0 6px; gap: 12px; background-image: var(--gloss); box-shadow: var(--lift), 0 6px 16px -8px rgba(27,34,39,.3); transition: transform .35s var(--spring); }
.action svg.i { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--cta); color: var(--ctaInk); }
.action:not(:has(svg.i)) { justify-content: center; padding: 0 20px; }
.action:active { transform: scale(.97); }
/* «+ Товар» в новой заявке СС */
#ccArtAdd { border-radius: 999px; padding: 10px 18px; background-image: linear-gradient(180deg, rgba(255,255,255,.45), rgba(255,255,255,0)); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 6px 14px -6px rgba(251,195,17,.7); transition: transform .35s var(--spring); }
#ccArtAdd:active { transform: scale(.96); }
/* Дорожка с бегунком (выбор одного из 2-3, разметка PT.ui.slider, бегунок по --i ставит PT.slide) */
.seg-run { position: relative; display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); padding: 4px; border-radius: 999px; background: var(--well); box-shadow: var(--wellIn); }
.seg-run label { position: relative; z-index: 1; margin: 0; cursor: pointer; }
.seg-run input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg-run label > span { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border-radius: 999px; font-weight: 800; font-size: 14px; color: var(--muted); transition: color .35s var(--soft); }
.seg-run label > span svg.i { width: 17px; height: 17px; }
.seg-run input:checked + span { color: var(--thumbInk); }
.seg-run input:checked + span svg.i { color: var(--thumbIcon); }
.seg-run input:focus-visible + span { outline: 3px solid var(--tag); outline-offset: 2px; }
.seg-run .thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / var(--n, 3)); border-radius: 999px; background: var(--thumb);
  box-shadow: var(--lift), 0 4px 14px rgba(27,34,39,.16); transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .5s var(--spring); }
/* Тумблер «да / нет» внутри строки .swrow (разметка PT.ui.swRow): зелёный = включено */
.sw { position: relative; display: inline-block; flex: none; margin: 0; }
.sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw .track { position: relative; display: block; width: 60px; height: 36px; border-radius: 999px; background: var(--swOff); box-shadow: var(--wellIn); transition: background-color .35s var(--soft); }
.sw .knob { position: absolute; top: 3px; left: 3px; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: #5C666D; display: grid; place-items: center;
  box-shadow: 0 3px 8px rgba(27,34,39,.25); transition: transform .5s var(--spring), color .3s var(--soft); }
.sw .knob svg.i { width: 15px; height: 15px; }
.sw input:checked + .track { background: var(--ok); }
.sw input:checked + .track .knob { transform: translateX(24px); color: var(--ok); }
.sw .ic-on, .sw input:checked + .track .ic-off { display: none; }
.sw input:checked + .track .ic-on { display: block; }
.sw input:focus-visible + .track { outline: 3px solid var(--tag); outline-offset: 3px; }
.sw input:disabled + .track { opacity: .45; }
/* Карточка строк с тумблером, как в настройках iPhone: стекло по теме (глянец, тонкая кромка), строки через линию;
   строка - одна метка, нажимается целиком; пояснение - мелко под карточкой (.swfoot) */
.swcard { margin-top: 18px; border-radius: 18px; overflow: hidden; background: var(--paper) var(--gloss); border: 1px solid var(--hair);
  box-shadow: var(--ring), var(--lift), 0 10px 24px -14px rgba(27,34,39,.25); }
.swrow, .form label.swrow { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 58px; margin: 0; padding: 10px 12px 10px 16px;
  cursor: pointer; font-weight: 800; font-size: 14px; -webkit-tap-highlight-color: transparent; transition: background-color .25s var(--soft); }
.swrow + .swrow { border-top: 1px solid var(--hair); }
.swrow:active { background-color: var(--well); }
.swrow:has(input:disabled) { cursor: default; background-color: transparent; }
.swrow:has(input:disabled) .swt { opacity: .55; }
.swt { min-width: 0; }
.form label + .swcard { margin-top: 0; }  /* карточка сразу под заголовком группы («Админ ЦС») */
.swfoot { margin: 6px 16px 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
