/* Оформление стенда alfa.platform.samistaff.ru (репозиторий samistaff/samistaff-sami-alfa),
   перенесено как есть, чтобы демо математики выглядело так же, как платформа.
   Правки оформления вносятся в альфу, а сюда переносятся целиком — иначе
   вид разойдётся. Свои добавления демо — в math.css. */
:root{color-scheme:light;--ink:#1B1A18;--muted:#5B5750;--faint:#8C877F;--line:rgba(28,26,22,.1);
--orange:linear-gradient(180deg,#F58A45 0%,#E2601A 55%,#CF4F0C 100%);--graphite:linear-gradient(180deg,#3D3E42 0%,#222326 55%,#151618 100%);--accent:#E2601A;--accent-ink:#C9520F;
--ok:#23613D;--bad:#B3261E;--warn:#A8480E;
--card:linear-gradient(180deg,#FCFBF9 0%,#EFEDE9 100%);
--well:linear-gradient(180deg,#E5E2DC 0%,#F4F3EF 100%);
--tile:linear-gradient(180deg,#E8E5E0 0%,#F3F1ED 100%);
--metal:linear-gradient(180deg,#F4F3EF 0%,#DEDAD4 100%);
--shadow-card:inset 0 1px 0 #fff,0 1px 1px rgba(28,26,22,.08),0 30px 50px -36px rgba(28,26,22,.65);
--shadow-well:inset 0 2px 5px rgba(28,26,22,.16),inset 0 0 0 1px rgba(28,26,22,.07),0 1px 0 rgba(255,255,255,.9);
--shadow-orange:inset 0 1px 0 rgba(255,255,255,.5),inset 0 -2px 0 rgba(120,40,0,.22),0 10px 20px -8px rgba(226,96,26,.85);
--ease:cubic-bezier(.2,.8,.2,1)}
@view-transition{navigation:auto}
*{box-sizing:border-box}
html{background:#C8C9C9}
body{margin:0;color:var(--ink);font:16px/1.55 "Geologica","Segoe UI",system-ui,-apple-system,sans-serif;
-webkit-font-smoothing:antialiased;min-height:100vh;background-color:#C8C9C9;
background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E %3Cfilter id='a' x='0' y='0' width='100%25' height='100%25'%3E %3CfeTurbulence type='fractalNoise' baseFrequency='0.03' numOctaves='3' seed='9' stitchTiles='stitch'/%3E %3CfeColorMatrix values='0 0 0 0 0.24 0 0 0 0 0.24 0 0 0 0 0.24 0.14 0 0 0 -0.066'/%3E %3C/filter%3E %3Cfilter id='b' x='0' y='0' width='100%25' height='100%25'%3E %3CfeTurbulence type='fractalNoise' baseFrequency='0.045' numOctaves='2' seed='17' stitchTiles='stitch'/%3E %3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0.16 0 0 0 -0.08'/%3E %3C/filter%3E %3Cfilter id='c' x='0' y='0' width='100%25' height='100%25'%3E %3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='1' seed='2' stitchTiles='stitch'/%3E %3CfeColorMatrix values='0 0 0 0 0.26 0 0 0 0 0.26 0 0 0 0 0.26 0.05 0 0 0 0'/%3E %3C/filter%3E %3Cfilter id='d' x='0' y='0' width='100%25' height='100%25'%3E %3CfeTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='1' seed='6' stitchTiles='stitch'/%3E %3CfeColorMatrix values='0 0 0 0 0.2 0 0 0 0 0.2 0 0 0 0 0.2 1.6 0 0 0 -1.27'/%3E %3C/filter%3E %3Cfilter id='e' x='0' y='0' width='100%25' height='100%25'%3E %3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='1' seed='13' stitchTiles='stitch'/%3E %3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1.3 0 0 0 -1.04'/%3E %3C/filter%3E %3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E %3Crect width='100%25' height='100%25' filter='url(%23b)'/%3E %3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E %3Crect width='100%25' height='100%25' filter='url(%23d)'/%3E %3Crect width='100%25' height='100%25' filter='url(%23e)'/%3E %3C/svg%3E"),
radial-gradient(ellipse 85% 60% at 22% 0%,rgba(255,255,255,.42),rgba(255,255,255,0) 70%),
radial-gradient(ellipse 70% 55% at 100% 100%,rgba(38,40,43,.12),rgba(38,40,43,0) 70%),
linear-gradient(180deg,#D5D6D6 0%,#C6C8C8 100%);
background-size:420px 420px,100% 100%,100% 100%,100% 100%;
background-repeat:repeat,no-repeat,no-repeat,no-repeat;background-attachment:scroll,fixed,fixed,fixed}
a{color:var(--accent-ink)}
.mono,code{font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace}
code{font-size:.85em}

/* --- оболочка ----------------------------------------------------------- */
.app{display:grid;grid-template-columns:268px minmax(0,1fr);min-height:100vh}
.side{position:sticky;top:0;height:100vh;overflow:auto;display:flex;flex-direction:column;
padding:22px 14px 16px;background:linear-gradient(180deg,#2A2B2E 0%,#1B1C1E 100%);
box-shadow:inset -1px 0 0 rgba(255,255,255,.06),14px 0 34px -26px rgba(0,0,0,.7);color:#D6D2CB}
.brand{display:flex;align-items:center;gap:10px;padding:0 10px 18px;text-decoration:none;color:inherit}
.brand i{display:grid;place-items:center;font-style:normal;font-weight:700;font-size:15px;color:#fff;
width:24px;height:24px;border-radius:8px;background:var(--orange);
box-shadow:inset 0 1px 0 rgba(255,255,255,.5),0 3px 8px -3px rgba(210,85,20,.8)}
.brand b{font-weight:700;font-size:18px;letter-spacing:.14em;color:#fff}
.plain .brand b{color:var(--ink)}
.who{display:flex;align-items:center;gap:12px;padding:12px;border-radius:18px;
background:linear-gradient(180deg,#323337 0%,#26272A 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.08)}
.who .ava{width:40px;height:40px;border-radius:12px;display:flex;align-items:center;justify-content:center;
font:600 14px "IBM Plex Mono",ui-monospace,monospace;color:#F58A45;background:linear-gradient(180deg,#1B1C1E,#232427);
box-shadow:inset 0 2px 4px rgba(0,0,0,.5);flex:none}
.who b{display:block;font-size:14px;color:#fff;font-weight:600;line-height:1.25}
.who span{font-size:12px;color:var(--faint)}
.side nav{display:flex;flex-direction:column;gap:2px;margin:0}
.side nav .grp{font:500 11px "IBM Plex Mono",ui-monospace,monospace;letter-spacing:.1em;color:#6B665F;
text-transform:uppercase;padding:0 14px;margin:18px 0 6px}
.side nav a{display:flex;align-items:center;gap:12px;min-height:44px;padding:8px 14px;border-radius:14px;
font-size:15px;color:#ABA59C;text-decoration:none;transition:background .15s,color .15s}
.side nav a svg{stroke:#8C877F;flex:none}
.side nav a:hover{background:rgba(255,255,255,.06);color:#fff}
.side nav a.on{color:#fff;font-weight:600;background:var(--orange);
box-shadow:inset 0 1px 0 rgba(255,255,255,.45),0 8px 16px -8px rgba(226,96,26,.9);text-shadow:0 1px 0 rgba(120,40,0,.3)}
.side nav a.on svg{stroke:#fff}
.side .grow{flex:1}
.side .foot{display:flex;flex-direction:column;gap:6px;padding:10px 14px 0;font-size:11px;color:#6B665F}
.side .foot a{color:#ABA59C;text-decoration:none;font-size:14px;display:flex;align-items:center;gap:10px}
.side .foot a:hover{color:#fff}
main{min-width:0;padding:30px 44px 72px;max-width:1180px}
.plain main{max-width:62rem;margin:0 auto;padding:26px 24px 72px}
.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px;font-size:14px}
.topbar a{color:var(--muted);text-decoration:none}

/* --- витрина экранов стенда -------------------------------------------- */
.crumbs-wrap{margin:0 0 22px;padding:12px 14px;border-radius:20px;background:rgba(252,251,249,.55);
box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 10px 24px -20px rgba(28,26,22,.6);backdrop-filter:blur(2px)}
.crumbs-label{display:flex;align-items:center;gap:8px;font:600 11px "IBM Plex Mono",ui-monospace,monospace;
letter-spacing:.1em;text-transform:uppercase;color:var(--accent-ink);margin:0 0 10px}
nav.crumbs{display:flex;flex-wrap:wrap;gap:8px;margin:0}
nav.crumbs a{height:36px;padding:0 14px;display:inline-flex;align-items:center;border-radius:999px;
font-size:13px;font-weight:500;color:#3F3C37;text-decoration:none;background:var(--metal);
box-shadow:inset 0 1px 0 #fff,0 6px 14px -10px rgba(28,26,22,.6);transition:transform .15s var(--ease)}
nav.crumbs a:hover{transform:translateY(-1px)}
nav.crumbs a.on{color:#fff;font-weight:600;background:var(--orange);box-shadow:var(--shadow-orange);
text-shadow:0 1px 0 rgba(120,40,0,.3)}

/* --- типографика -------------------------------------------------------- */
.over{font:600 12px "IBM Plex Mono",ui-monospace,monospace;letter-spacing:.08em;color:var(--accent-ink);
text-transform:uppercase;margin:0 0 8px}
h1{font-size:40px;line-height:1.06;margin:0 0 10px;font-weight:600;letter-spacing:-.025em;
text-shadow:0 1px 0 rgba(255,255,255,.55)}
h2{font-size:19px;margin:30px 0 12px;font-weight:600;letter-spacing:-.01em}
h3{font-size:20px;margin:0;font-weight:600;letter-spacing:-.01em}
.lead{color:var(--muted);margin:0 0 20px;font-size:17px;max-width:48rem}
.hint{color:var(--muted);font-size:14px}
.muted{color:var(--muted);font-size:14px}
.faint{color:var(--faint)}
footer{color:var(--faint);font-size:12px;margin-top:40px}
.corner{font-size:14px;color:var(--muted)}
.corner .auth{display:flex;gap:10px}
.corner .auth a{height:48px;padding:0 22px;border-radius:999px;display:inline-flex;align-items:center;font-size:15px;
font-weight:600;color:var(--ink);text-decoration:none;background:#FCFBF9;
box-shadow:inset 0 1px 0 #fff,0 10px 24px -16px rgba(28,26,22,.55)}
.corner .auth a.primary{color:#fff;background:var(--orange);box-shadow:var(--shadow-orange)}
.org-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(18rem,1fr));gap:16px}
.enter-list{display:flex;flex-direction:column;gap:10px;max-width:44rem}
.enter-row button{width:100%;justify-content:flex-start;height:56px;font-weight:500}
.enter-row .mono{margin-left:auto;color:var(--muted);font-size:14px}
.filter-box{max-width:30rem;margin:0 0 16px}
.filter-box input{width:100%}
.request-card{padding-bottom:16px}
.request-card .request-row{padding:0;margin:0;box-shadow:none;background:none}
.rr-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}
.offer-card .rr-links{margin-top:12px}
.corner a{color:var(--muted)}

/* --- карточки и строки формы ------------------------------------------- */
section,.card{border-radius:26px;background:var(--card);box-shadow:var(--shadow-card);
padding:8px 24px 18px;margin:0 0 16px}
.card{padding:22px 24px}
.row{display:grid;grid-template-columns:8rem 1fr;gap:4px 14px;padding:16px 0;
border-bottom:1px solid var(--line);transition:opacity .2s var(--ease)}
.row:last-child{border-bottom:0}
.row[hidden]{display:none}
.row.reveal{animation:rowIn .38s var(--ease)}
@keyframes rowIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.row.bad{background:linear-gradient(180deg,#FBEDE9,#F6DDD6);border-radius:18px;padding-left:14px;padding-right:14px;
border-bottom-color:transparent;margin:4px 0}
.code{font:500 12px "IBM Plex Mono",ui-monospace,monospace;color:var(--faint);padding-top:4px}
.label{font-weight:600}
.label.wide{grid-column:1/-1;font-size:17px}
.row:has(.label.wide) .control,.row:has(.label.wide) .hint,.row:has(.label.wide) .problem{grid-column:1/-1}
.star{color:var(--accent);margin-left:4px}
.control{grid-column:2;margin:6px 0 2px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.hint,.note,.problem{grid-column:2}
.note{color:var(--faint);font-size:13px}
.problem{color:var(--bad);font-weight:500;font-size:14px}

/* --- поля ввода: вдавлены в бетон ----------------------------------------- */
input,select,textarea{font:inherit;font-size:16px;color:var(--ink);border:0;border-radius:16px;
background:var(--well);box-shadow:var(--shadow-well);max-width:100%;
transition:box-shadow .15s var(--ease),background .15s}
input[type=text],input[type=number],input[type=date],select{height:52px;padding:0 16px}
select{appearance:none;-webkit-appearance:none;padding-right:44px;min-width:14rem;cursor:pointer;
background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%235B5750' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center/20px,var(--well)}
select[multiple]{height:auto;padding:8px;background:var(--well);min-width:18rem}
select[multiple] option{padding:8px 12px;border-radius:10px;margin:1px 0}
select[multiple] option:checked{background:#E2601A linear-gradient(180deg,#F58A45,#D9560F);color:#fff}
textarea{width:100%;min-height:96px;padding:14px 16px;resize:vertical}
input:focus,select:focus,textarea:focus{outline:none;background:linear-gradient(180deg,#FFFFFF,#FFF8F3);
box-shadow:inset 0 0 0 2px #E2601A,0 0 0 5px rgba(226,96,26,.16)}
select:focus{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%235B5750' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center/20px,linear-gradient(180deg,#FFFFFF,#FFF8F3)}
input.num{width:8.5rem}
input[type=date]{width:12.5rem}
input[readonly]{opacity:.75}
input[type=file]{height:auto;padding:10px;box-shadow:none;background:none}
input[type=checkbox]{accent-color:#E2601A;width:18px;height:18px;box-shadow:none}
.sep{color:var(--faint)}
span.auto{display:inline-block;padding:8px 0;font-weight:500}
.pair{display:flex;gap:16px;flex-wrap:wrap}
.part{display:flex;flex-direction:column;gap:6px}
.part span{font-size:13px;color:var(--muted)}
.confirm{display:flex;gap:8px;align-items:center;font-size:14px;color:var(--muted);width:100%}

/* выбор «да / нет» — сегмент, выбранное графитом */
.radios{display:inline-flex;gap:4px;padding:5px;border-radius:999px;background:linear-gradient(180deg,#CFCBC4,#DDD9D2);
box-shadow:inset 0 2px 4px rgba(28,26,22,.18),0 1px 0 rgba(255,255,255,.8)}
.radio{position:relative;display:flex;align-items:center;justify-content:center;height:44px;min-width:84px;padding:0 22px;
border-radius:999px;cursor:pointer;color:#3F3C37;font-weight:500;transition:background .15s,color .15s}
.radio input{position:absolute;opacity:0;pointer-events:none}
.radio:has(input:checked){color:#fff;font-weight:600;background:var(--graphite);
box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 6px 12px -6px rgba(0,0,0,.7)}
.radio:has(input:focus-visible){outline:3px solid rgba(226,96,26,.45);outline-offset:2px}

/* выбор нескольких — отдельные кнопки с галочкой */
.kinds{display:flex;flex-wrap:wrap;gap:10px}
.kind{position:relative;display:inline-flex;align-items:center;gap:10px;height:48px;padding:0 20px 0 12px;border-radius:999px;
cursor:pointer;color:#3F3C37;font-weight:500;background:var(--metal);box-shadow:inset 0 1px 0 #fff,0 6px 14px -10px rgba(28,26,22,.6);
transition:background .15s,color .15s}
.kind input{position:absolute;opacity:0;pointer-events:none}
.kind i{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--well);
box-shadow:inset 0 2px 3px rgba(28,26,22,.2)}
.kind i svg{opacity:0;transition:opacity .15s}
.kind:has(input:checked){color:#fff;font-weight:600;background:var(--graphite);
box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 6px 12px -6px rgba(0,0,0,.7)}
.kind:has(input:checked) i{background:var(--orange);box-shadow:var(--shadow-orange)}
.kind:has(input:checked) i svg{opacity:1}
.kind:has(input:focus-visible){outline:3px solid rgba(226,96,26,.45);outline-offset:2px}
.kind[data-tip]:hover::after,.kind[data-tip]:focus-visible::after{content:attr(data-tip);position:absolute;left:0;top:calc(100% + 10px);
z-index:20;width:min(22rem,80vw);padding:12px 14px;border-radius:14px;background:var(--graphite);color:#fff;font-size:14px;
font-weight:400;line-height:1.45;white-space:normal;box-shadow:0 14px 30px -12px rgba(0,0,0,.6)}
textarea.wide{width:100%;min-height:84px}
/* смысловые блоки формы: тонкий контур, номер и заголовок */
.block{border:1px solid rgba(28,26,22,.13);border-radius:30px;padding:14px 14px 2px;margin:0 0 22px;
background:rgba(255,255,255,.16)}
.block-head{display:flex;align-items:center;gap:12px;margin:2px 8px 12px}
.block-head h2{margin:0}
.block-num{min-width:32px;height:32px;padding:0 8px;border-radius:999px;display:grid;place-items:center;font-size:14px;
font-weight:600;color:#fff;background:var(--graphite);box-shadow:inset 0 1px 0 rgba(255,255,255,.22)}
.block section{margin-bottom:12px}
.package{margin:0 0 8px}
.package .block{border-color:rgba(226,96,26,.35)}
.package .block-num{background:var(--orange)}
/* вид работ: заголовок — выбранный вид, внутри профессии, свернуть по «Завершить» */
.work .block-head h2{font-size:22px}
.work section[data-profession]{border-left:4px solid rgba(226,96,26,.55)}
.work-summary{display:none;align-items:center;justify-content:space-between;gap:12px;margin:0 8px 14px;color:var(--muted)}
.work.collapsed section,.work.collapsed .work-actions{display:none}
.work.collapsed .work-summary{display:flex}
.work-actions{margin:4px 0 14px;padding:0 4px}
/* набор выбранных вариантов под списком */
.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.chip{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 6px 0 14px;border-radius:999px;font-size:14px;
color:#fff;background:var(--graphite);box-shadow:inset 0 1px 0 rgba(255,255,255,.2)}
button.chip-x{height:24px;width:24px;min-width:0;padding:0;border-radius:50%;font-size:16px;line-height:1;
background:rgba(255,255,255,.18);box-shadow:none;text-shadow:none}
input.own{max-width:18rem}

/* --- кнопки: выпуклые, глянцевые ---------------------------------------- */
button,.btn{font:inherit;font-size:16px;font-weight:600;height:50px;padding:0 24px;border-radius:999px;border:0;
display:inline-flex;align-items:center;justify-content:center;gap:10px;cursor:pointer;text-decoration:none;
color:#fff;background:var(--orange);box-shadow:var(--shadow-orange);text-shadow:0 1px 0 rgba(120,40,0,.35);
transition:transform .15s var(--ease),filter .15s,box-shadow .15s;white-space:nowrap}
button:hover,.btn:hover{transform:translateY(-1px);filter:brightness(1.05);color:#fff}
button:active,.btn:active{transform:translateY(0) scale(.98)}
button:focus-visible,.btn:focus-visible{outline:3px solid rgba(226,96,26,.45);outline-offset:3px}
.btn.ghost,button.ghost{color:#3F3C37;font-weight:500;text-shadow:none;background:var(--metal);
box-shadow:inset 0 1px 0 #fff,0 6px 14px -10px rgba(28,26,22,.6)}
.btn.ghost:hover,button.ghost:hover{color:var(--ink)}
.btn.dark,button.dark{background:var(--graphite);box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 8px 16px -10px rgba(0,0,0,.8);text-shadow:none}
.btn.small,button.small{height:40px;padding:0 18px;font-size:14px}
button[disabled]{opacity:.5;cursor:not-allowed;transform:none;filter:none}
.actions{display:flex;gap:10px;flex-wrap:wrap;margin:22px 0;align-items:center}
.actions form{margin:0}

/* --- таблицы, итоги, пометки ------------------------------------------- */
table{width:100%;border-collapse:collapse;font-size:15px}
th,td{text-align:left;padding:12px 10px;border-bottom:1px solid var(--line);vertical-align:top}
tr:last-child td{border-bottom:0}
th{font:600 11px "IBM Plex Mono",ui-monospace,monospace;letter-spacing:.08em;text-transform:uppercase;color:var(--faint)}
table.facts td:first-child{color:var(--muted);width:40%}
.verdict{font-weight:600}
.v-ok{color:var(--ok)}.v-bad{color:var(--bad)}.v-part{color:var(--warn)}
.ok{color:var(--ok);font-size:14px;font-weight:600}
.warn{color:var(--warn);font-size:14px;font-weight:600}
.lead.verdict{display:flex;gap:12px;align-items:flex-start;padding:16px 20px;border-radius:20px;color:var(--ink);
font-weight:500;max-width:none}
.lead.verdict::before{content:"";flex:none;width:12px;height:12px;border-radius:50%;margin-top:6px}
.lead.v-ok{background:linear-gradient(180deg,#E3F0E7,#D2E6D8);box-shadow:inset 0 0 0 1px rgba(47,125,79,.18)}
.lead.v-ok::before{background:#2F7D4F;box-shadow:0 0 0 4px rgba(47,125,79,.2)}
.lead.v-bad{background:linear-gradient(180deg,#FDF1E8,#F8E1D0);box-shadow:inset 0 0 0 1px rgba(226,96,26,.22)}
.lead.v-bad::before{background:#E2601A;box-shadow:0 0 0 4px rgba(226,96,26,.2)}
ul.plain{margin:6px 0;padding-left:18px}
.req{font-size:12px;color:var(--bad)}
.cond{font-size:12px;color:var(--warn)}
.demo{font-size:11px;color:var(--accent-ink);border:1px solid var(--accent);border-radius:99px;padding:0 6px}

/* --- составные детали экранов -------------------------------------------- */
.pill{height:28px;padding:0 12px;display:inline-flex;align-items:center;gap:6px;border-radius:999px;
font-size:12px;font-weight:600;white-space:nowrap;text-shadow:none}
.pill.ok{background:linear-gradient(180deg,#E3F0E7,#D2E6D8);color:var(--ok);box-shadow:inset 0 0 0 1px rgba(47,125,79,.2)}
.pill.warn{background:linear-gradient(180deg,#FDF1E8,#F8E1D0);color:var(--warn);box-shadow:inset 0 0 0 1px rgba(226,96,26,.25)}
.pill.wait{background:linear-gradient(180deg,#ECE9E4,#DDD9D2);color:#4F4B45;box-shadow:inset 0 0 0 1px rgba(28,26,22,.08)}
.pill.o{background:var(--orange);color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.5),0 4px 10px -4px rgba(210,85,20,.8);
text-shadow:0 1px 0 rgba(120,40,0,.3)}
.pill.d{background:var(--graphite);color:#fff}
.bar{height:10px;border-radius:999px;background:linear-gradient(180deg,#C6C1B9,#D9D5CE);
box-shadow:inset 0 1px 2px rgba(28,26,22,.22);overflow:hidden;display:flex;flex:1;min-width:60px}
.bar>i{display:block;border-radius:999px;background:linear-gradient(180deg,#F79A5C 0%,#E2601A 60%,#CF4F0C 100%);
box-shadow:inset 0 1px 0 rgba(255,255,255,.55)}
.ic{position:relative;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;overflow:hidden;flex:none}
.ic::before{content:"";position:absolute;left:8%;right:8%;top:5%;height:42%;border-radius:40% 40% 50% 50%;
background:linear-gradient(180deg,rgba(255,255,255,.42),rgba(255,255,255,0))}
.ic svg{position:relative}
.ic.o{background:var(--orange);box-shadow:inset 0 1px 0 rgba(255,255,255,.5),0 6px 12px -6px rgba(210,85,20,.8)}
.ic.d{background:var(--graphite);box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 6px 12px -6px rgba(0,0,0,.7)}
.ic.d::before{background:linear-gradient(180deg,rgba(255,255,255,.2),rgba(255,255,255,0))}
.well{border-radius:18px;background:var(--tile);box-shadow:inset 0 2px 4px rgba(28,26,22,.1),0 1px 0 rgba(255,255,255,.9);padding:14px 16px}
.well .k{font-size:12px;color:var(--muted)}
.well .v{font-size:16px;font-weight:600}
.dark-panel{border-radius:22px;background:linear-gradient(180deg,#2A2B2E 0%,#1B1C1E 100%);
box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 20px 36px -26px rgba(0,0,0,.8);color:#D6D2CB;padding:18px 22px}
.dark-panel b{color:#fff}
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.stack{display:flex;flex-direction:column;gap:12px}
.line{display:flex;align-items:center;gap:14px}
.line.between{justify-content:space-between}
.ring{position:relative;flex:none;border-radius:50%;background:radial-gradient(circle at 50% 35%,#fff 0%,#E9E6E1 70%);
box-shadow:inset 0 -3px 8px rgba(28,26,22,.12),0 12px 24px -16px rgba(28,26,22,.6)}
.ring svg{position:absolute;inset:0}
.ring-in{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}
.ring-in b{font-size:36px;line-height:1;font-weight:600;letter-spacing:-.03em}
.ring-in span{font-size:13px;color:var(--muted);margin-top:4px}

/* --- лендинг ------------------------------------------------------------ */
.tiles{display:flex;flex-direction:column;gap:14px}
a.tile{display:flex;align-items:center;gap:20px;padding:20px 22px 20px 20px;border-radius:24px;text-decoration:none;
color:var(--ink);background:var(--card);box-shadow:var(--shadow-card);transition:transform .18s var(--ease)}
a.tile:hover{transform:translateY(-2px)}
a.tile b{display:block;font-size:22px;font-weight:600}
a.tile span.t{display:block;color:var(--muted);font-size:15px}
a.tile .go{margin-left:auto;width:46px;height:46px;border-radius:50%;flex:none;display:flex;align-items:center;justify-content:center;
background:var(--metal);box-shadow:inset 0 1px 0 #fff,0 4px 10px -6px rgba(28,26,22,.5)}
a.tile:first-child .go{background:var(--orange);box-shadow:var(--shadow-orange)}

/* --- выдача и переговоры ----------------------------------------------- */
.pick{padding:0;overflow:hidden}
.pick .head{padding:24px 28px 18px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;align-items:center}
.pick .who{color:var(--muted);font-size:15px;margin:2px 0 0}
.pick .why{margin:10px 0 0;font-size:15px;color:#3F3C37}
.pick .parts{padding:0 28px 20px;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}
.pick .price{padding:18px 28px;display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;
background:linear-gradient(180deg,#2A2B2E 0%,#1B1C1E 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.08);color:#ABA59C}
.pick .price b{color:#fff;font:600 20px "IBM Plex Mono",ui-monospace,monospace}
.pick .price form{margin:0}
.pick .facts-line{padding:0 28px 18px;display:flex;flex-wrap:wrap;gap:8px}
.pick .picked{color:#9FD9B4;font-weight:600;margin:0}
.bubble{padding:12px 14px;border-radius:18px 18px 18px 6px;max-width:34rem;font-size:15px;
background:var(--tile);box-shadow:inset 0 2px 4px rgba(28,26,22,.08),0 1px 0 rgba(255,255,255,.9)}
.bubble.mine{align-self:flex-end;border-radius:18px 18px 6px 18px;background:var(--graphite);color:#fff;
box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 8px 16px -12px rgba(0,0,0,.8)}
.bubble-meta{font-size:12px;color:var(--faint);padding:0 6px}
.chat{display:flex;flex-direction:column;gap:6px}
.chat .mine-wrap{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.chat .their-wrap{display:flex;flex-direction:column;align-items:flex-start;gap:4px}

/* --- кабинеты ------------------------------------------------------------ */
a.more{display:inline-flex;align-items:center;gap:8px;font-weight:600;font-size:14px;color:var(--accent-ink);text-decoration:none}
.request-row{display:grid;grid-template-columns:minmax(0,1fr) 270px 150px auto;gap:22px;align-items:center;padding:18px 22px}
.rr-title h3{font-size:18px}
.rr-act{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.coverage{display:flex;align-items:center;gap:10px}
.coverage b{font-size:14px;min-width:40px;text-align:right}
.stepper{list-style:none;margin:0;padding:0;display:flex}
.stepper li{flex:1;position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;font-size:11px;color:var(--faint)}
.stepper li::before{content:"";position:absolute;top:8px;left:-50%;width:100%;height:2px;background:#D6D2CB;z-index:0}
.stepper li:first-child::before{display:none}
.stepper li.done::before,.stepper li.now::before{background:#E2601A}
.stepper i{position:relative;z-index:1;width:18px;height:18px;border-radius:50%;
background:linear-gradient(180deg,#D6D2CB,#E5E2DC);box-shadow:inset 0 1px 2px rgba(28,26,22,.2)}
.stepper li.done i{background:var(--orange);box-shadow:inset 0 1px 0 rgba(255,255,255,.5)}
.stepper li.now i{background:#fff;box-shadow:inset 0 0 0 4px #E2601A,0 0 0 4px rgba(226,96,26,.18)}
.stepper li.now{color:var(--ink);font-weight:600}
.gantt{display:flex;flex-direction:column}
.g-row{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,2fr) 170px;gap:16px;align-items:center;padding:12px 0;border-top:1px solid var(--line)}
.g-head{border-top:0;padding:4px 0}
.g-months{position:relative;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));font:500 12px "IBM Plex Mono",ui-monospace,monospace;color:var(--faint)}
.g-months .today{position:absolute;top:18px;height:70px;width:2px;background:repeating-linear-gradient(180deg,#E2601A 0 4px,transparent 4px 8px)}
.g-track{position:relative;height:30px}
.g-track .span{position:absolute;top:4px;height:22px;border-radius:999px;background:linear-gradient(180deg,#F79A5C 0%,#E2601A 60%,#CF4F0C 100%);
box-shadow:inset 0 1px 0 rgba(255,255,255,.55),0 6px 12px -8px rgba(210,85,20,.9)}
.g-pill{display:flex;justify-content:flex-end}

/* --- голос и видео ------------------------------------------------------- */
.mic-btn{width:44px;height:44px;padding:0;flex:none;border-radius:50%;color:#3F3C37;background:var(--metal);
box-shadow:inset 0 1px 0 #fff,0 4px 10px -6px rgba(28,26,22,.6);text-shadow:none}
.mic-btn svg{stroke:#3F3C37}
.mic-btn.listening{background:var(--orange);animation:micPulse 1.1s infinite}
.mic-btn.listening svg{stroke:#fff}
@keyframes micPulse{0%{box-shadow:0 0 0 0 rgba(226,96,26,.55)}70%{box-shadow:0 0 0 10px rgba(226,96,26,0)}100%{box-shadow:0 0 0 0 rgba(226,96,26,0)}}
.wizard-toggle{height:40px;padding:0 16px;font-size:13px;margin:0}
.assist{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;
padding:14px 16px 14px 20px;margin:6px 0 22px;border-radius:22px;background:rgba(252,251,249,.62);
box-shadow:inset 0 1px 0 rgba(255,255,255,.75),0 14px 30px -24px rgba(28,26,22,.6)}
.assist b{display:block;font-size:16px}
.assist span{font-size:14px;color:var(--muted)}
.assist-btns{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.assist-btns button svg{stroke:#fff}
.gallery-groups{display:flex;flex-direction:column;gap:16px}
.matrix{display:block;width:100%;overflow-x:auto}
.matrix table{min-width:72rem}
.matrix input,.matrix select{min-width:8rem;height:44px}
.fab-group{position:fixed;right:20px;bottom:20px;display:flex;flex-direction:column;gap:10px;z-index:40}
.fab{width:58px;height:58px;padding:0;border-radius:50%}
.fab svg{stroke:#fff}
.modal-backdrop{position:fixed;inset:0;background:rgba(20,18,16,.55);display:flex;align-items:center;justify-content:center;z-index:50;padding:16px}
.modal-backdrop[hidden]{display:none}
.modal{border-radius:26px;background:var(--card);box-shadow:var(--shadow-card);padding:22px;max-width:28rem;width:100%;max-height:90vh;overflow:auto}
.modal h3{margin:0 0 8px}
.modal video{width:100%;border-radius:16px;background:#000;max-height:55vh;display:block}
.modal .row-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}

/* --- телефон ------------------------------------------------------------ */
@media (max-width:900px){
  .app{display:block}
  .side{position:static;height:auto;padding:14px 12px 10px}
  .side nav{flex-direction:row;overflow-x:auto;gap:6px;padding-bottom:4px}
  .side nav .grp{display:none}
  .side nav a{white-space:nowrap;min-height:40px}
  .side .grow,.side .foot{display:none}
  .who{display:none}
  main{padding:20px 16px 90px}
  h1{font-size:30px}
  .row{grid-template-columns:1fr}
  .control,.hint,.note,.problem{grid-column:1}
  .grid2,.grid3{grid-template-columns:1fr}
  .pick .head{grid-template-columns:1fr}
  .request-row,.g-row{grid-template-columns:1fr}
  .rr-act{align-items:flex-start}
}
