/* ЦЕХ.CNC — сайт. Цвета и шрифты — из дизайн-системы продукта (docs/08, tokens-v2; киоск — tokens v1).
   Правило сайта: цех — тёмный (терминал, пульт), офис — светлый. Фрагменты экранов живут в своей теме. */

@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/ibm-plex-sans-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/ibm-plex-sans-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 500; font-style: normal; font-display: swap; src: url(fonts/ibm-plex-sans-cyrillic-500-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 500; font-style: normal; font-display: swap; src: url(fonts/ibm-plex-sans-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/ibm-plex-sans-cyrillic-600-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/ibm-plex-sans-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/ibm-plex-mono-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/ibm-plex-mono-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-style: normal; font-display: swap; src: url(fonts/ibm-plex-mono-cyrillic-500-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-style: normal; font-display: swap; src: url(fonts/ibm-plex-mono-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/ibm-plex-mono-cyrillic-600-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/ibm-plex-mono-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }


:root {
  --navy-950: #060f1c;
  --navy-900: #0b1729;
  --navy-800: #13243b;
  --navy-700: #203651;
  --navy-600: #2c4767;
  --accent-50: #eff9fa;
  --accent-100: #d7eef2;
  --accent-200: #a9dbe3;
  --accent-300: #6fc0cd;
  --accent-500: #087f96;
  --accent-600: #006980;
  --accent-700: #005166;
  --canvas: #f2f5f9;
  --page-alt: #f5f7fa;
  --surface: #ffffff;
  --surface-sunken: #eef2f7;
  --line-soft: #e9eef4;
  --line: #dde4ec;
  --line-strong: #cdd7e2;
  --text-strong: #101a2b;
  --text: #3a4759;
  --text-muted: #5f6b7c;
  --text-faint: #97a3b4;
  --st-neutral: #55637a;
  --st-plan: #4b5b8f;
  --st-progress: #1d5fd8;
  --st-hold: #a4620a;
  --st-done: #12734a;
  --st-danger: #b3261e;
  --k-bg: #021026;
  --k-surface: #16233b;
  --k-card: #1f2f47;
  --k-border: #33476a;
  --k-text: #ffffff;
  --k-text-sec: #8aa0bd;
  --k-accent: #005870;
  --k-success: #15803d;
  --k-warn: #b45309;
  --k-danger: #b91c1c;
  --k-ring: #4aa6c2;
  --k-warn-text: #fbbf24;
  --signal-red: #ef4444;
  --signal-amber: #f5a623;
  --signal-green: #22c55e;

  --font-ui: 'IBM Plex Sans', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Consolas', 'Courier New', monospace;

  --wrap: 1200px;
  --gutter: 24px;
  --radius: 8px;
  --radius-lg: 14px;
  --header-h: 68px;
  --shadow-card: 0 1px 2px rgba(16, 26, 43, .05), 0 8px 24px -12px rgba(16, 26, 43, .14);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--surface); color: var(--text); font: 400 17px/1.6 var(--font-ui); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-600); text-underline-offset: 3px; }
a:hover { color: var(--accent-700); }
h1, h2, h3, h4, h5 { color: var(--text-strong); margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent-600); outline-offset: 2px; border-radius: 4px; }
.site-footer :focus-visible { outline-color: var(--accent-300); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--surface); color: var(--text-strong); padding: 10px 14px; border-radius: var(--radius); box-shadow: var(--shadow-card); }
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: var(--radius); font: 600 16px/1.2 var(--font-ui); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background-color .15s, border-color .15s, color .15s; }
.btn--primary { background: var(--accent-600); color: #fff; }
.btn--primary:hover { background: var(--accent-700); color: #fff; }
.btn--outline { border-color: var(--line-strong); color: var(--text-strong); background: var(--surface); }
.btn--outline:hover { border-color: var(--accent-600); color: var(--accent-700); }
.btn--small { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* шапка */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(150%) blur(10px); -webkit-backdrop-filter: saturate(150%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header__row { height: var(--header-h); display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 36px; height: 36px; }
.brand__word { font: 600 20px/1 var(--font-ui); letter-spacing: .01em; color: var(--text-strong); }
.brand__word span { font-weight: 400; color: var(--accent-600); }
.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.site-nav a { color: var(--text); text-decoration: none; font-size: 15.5px; font-weight: 500; }
.site-nav a:hover { color: var(--accent-700); }
.site-nav a.btn, .site-nav a.btn:hover { color: #fff; }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-strong); cursor: pointer; }
@media (max-width: 1000px) {
  .site-nav, .site-header__row > .btn { display: none; }
  .menu-toggle { display: flex; align-items: center; justify-content: center; }
  .site-header.is-open .site-nav { display: flex; flex-direction: column; align-items: stretch; gap: 0; position: absolute; left: 0; right: 0; top: var(--header-h); background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; box-shadow: 0 16px 24px -16px rgba(16, 26, 43, .2); }
  .site-header.is-open .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 17px; }
  .site-header.is-open .site-nav a.btn { margin-top: 16px; border-bottom: 0; padding: 0 18px; }
}
@media (min-width: 1001px) { .site-nav .btn { display: none; } }

/* первый экран */
.hero { padding: 64px 0 88px; background: linear-gradient(180deg, var(--surface) 0%, var(--page-alt) 100%); border-bottom: 1px solid var(--line-soft); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.asks { list-style: none; display: grid; gap: 8px; margin-bottom: 28px; }
.ask { display: inline-flex; align-items: baseline; gap: 10px; width: fit-content; max-width: 100%; padding: 8px 14px; border-radius: 12px 12px 12px 4px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; color: var(--text-strong); box-shadow: 0 1px 2px rgba(16, 26, 43, .04); }
.ask b { font-weight: 600; color: var(--accent-700); white-space: nowrap; }
.ask:nth-child(2) { margin-left: 28px; }
.ask:nth-child(3) { margin-left: 56px; }
.hero h1 { font-size: clamp(34px, 3.9vw, 52px); line-height: 1.1; letter-spacing: -.02em; }
.hero__lead { margin-top: 20px; font-size: 19px; line-height: 1.55; max-width: 36em; }
.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 24px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: var(--accent-50); color: var(--accent-700); font-size: 14.5px; font-weight: 500; }
.badge svg { width: 16px; height: 16px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__status { margin-top: 18px; font-size: 14.5px; color: var(--text-muted); }
.browser { border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 2px 4px rgba(16, 26, 43, .04), 0 30px 60px -28px rgba(16, 26, 43, .35); overflow: hidden; }
.browser__bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--page-alt); }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.browser__bar span { margin-left: 12px; font-size: 12.5px; color: var(--text-muted); }
.browser .board { margin: 0; border-radius: 0; box-shadow: none; padding: 12px; }
.hero__caption { margin-top: 12px; font-size: 14px; color: var(--text-muted); }
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__figure { max-width: 760px; }
  .hero { padding: 48px 0 64px; }
}
@media (max-width: 520px) {
  .ask:nth-child(2), .ask:nth-child(3) { margin-left: 0; }
}

/* секции */
.section { padding: 104px 0; }
.section--alt { background: var(--page-alt); }
.section__head { max-width: 760px; }
.section__head--center { margin: 0 auto; text-align: center; }
.section__head h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.15; letter-spacing: -.02em; }
.section__head p { margin-top: 16px; font-size: 18.5px; color: var(--text); }
@media (max-width: 720px) { .section { padding: 72px 0; } }

/* значок в плашке */
.ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--accent-50); color: var(--accent-600); flex-shrink: 0; }
.ico svg { width: 24px; height: 24px; }

/* возможности */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.card h3 { margin-top: 18px; font-size: 18px; line-height: 1.3; }
.card p { margin-top: 8px; font-size: 15.5px; line-height: 1.55; color: var(--text); }
.also { margin-top: 32px; padding: 20px 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px dashed var(--line-strong); font-size: 16px; }
.also b { color: var(--text-strong); }
@media (max-width: 1100px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; gap: 14px; } .card { padding: 20px; display: grid; grid-template-columns: 48px 1fr; gap: 4px 16px; } .card .ico { grid-row: span 2; } .card h3 { margin-top: 2px; } .card p { margin-top: 0; } }

/* экран + текст */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.feature + .feature { margin-top: 112px; }
.feature--flip .feature__text { order: 2; }
.feature--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature__text h3 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; letter-spacing: -.015em; }
.feature__text > p { margin-top: 14px; font-size: 17.5px; }
.checks { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ''; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-50); }
.checks li::after { content: ''; position: absolute; left: 5px; top: calc(.3em + 5px); width: 8px; height: 4px; border-left: 2px solid var(--accent-600); border-bottom: 2px solid var(--accent-600); transform: rotate(-45deg); }
.feature__shot { min-width: 0; }
.shot-caption { margin-top: 12px; font-size: 14px; color: var(--text-muted); }
@media (max-width: 1000px) {
  .feature, .feature--flip { grid-template-columns: 1fr; gap: 32px; }
  .feature--flip .feature__text { order: 0; }
  .feature + .feature { margin-top: 80px; }
  .feature__text { max-width: 680px; }
  .feature__shot { max-width: 820px; }
}

/* как это работает */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; margin-top: 56px; counter-reset: step; position: relative; }
.steps::before { content: ''; position: absolute; top: 24px; left: 10%; right: 10%; height: 2px; background: repeating-linear-gradient(90deg, var(--accent-200) 0 8px, transparent 8px 14px); }
.step { position: relative; text-align: center; counter-increment: step; }
.step .ico { margin: 0 auto; background: var(--accent-600); color: #fff; box-shadow: 0 0 0 6px var(--surface); }
.step__n { display: block; margin-top: 16px; font-size: 13.5px; font-weight: 600; color: var(--accent-700); }
.step__n::before { content: 'Шаг ' counter(step); }
.step h3 { margin-top: 4px; font-size: 18px; }
.step p { margin-top: 8px; font-size: 15.5px; line-height: 1.5; }
.section--alt .step .ico { box-shadow: 0 0 0 6px var(--page-alt); }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; gap: 0; max-width: 560px; }
  .steps::before { top: 24px; bottom: 24px; left: 23px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--accent-200) 0 8px, transparent 8px 14px); }
  .step { display: grid; grid-template-columns: 48px 1fr; gap: 0 20px; text-align: left; padding-bottom: 28px; }
  .step .ico { grid-row: span 3; margin: 0; }
  .step__n { margin-top: 0; }
}

/* для каких производств */
.segments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.segment { display: grid; grid-template-columns: 48px 1fr; gap: 6px 16px; padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.segment .ico { grid-row: span 2; }
.segment h3 { font-size: 18px; line-height: 1.3; margin-top: 2px; }
.segment p { font-size: 15.5px; line-height: 1.55; }
@media (max-width: 1000px) { .segments { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .segments { grid-template-columns: 1fr; gap: 14px; } .segment { padding: 20px; } }

/* размещение */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 56px auto 0; max-width: 1000px; }
.plan { display: flex; flex-direction: column; padding: 32px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.plan--accent { border: 2px solid var(--accent-600); }
.plan__head { display: flex; align-items: center; gap: 16px; }
.plan h3 { font-size: 24px; }
.plan__sub { margin-top: 14px; color: var(--text-muted); }
.plan .checks { margin-top: 20px; margin-bottom: 28px; flex: 1; }
.both { max-width: 1000px; margin: 28px auto 0; text-align: center; font-size: 16px; color: var(--text); }
.both b { color: var(--text-strong); }
@media (max-width: 820px) { .plans { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .plan { padding: 24px; } }

/* почему */
.why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 56px; margin-top: 56px; }
.why__item { display: grid; grid-template-columns: 48px 1fr; gap: 6px 20px; }
.why__item .ico { grid-row: span 2; }
.why__item h3 { font-size: 20px; margin-top: 2px; }
.why__item p { font-size: 16.5px; }
@media (max-width: 820px) { .why { grid-template-columns: 1fr; gap: 28px; } }

/* как начать */
.start { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 56px; counter-reset: st; list-style: none; }
.start li { counter-increment: st; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.start li::before { content: counter(st); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-600); color: #fff; font-weight: 600; font-size: 18px; }
.start h3 { margin-top: 18px; font-size: 19px; }
.start p { margin-top: 8px; font-size: 15.5px; }
.start-cta { margin-top: 36px; text-align: center; }
@media (max-width: 820px) { .start { grid-template-columns: 1fr; gap: 14px; } .start li { padding: 22px; } }

/* вопросы */
.faq { margin: 48px auto 0; max-width: 880px; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative; font-size: 18.5px; font-weight: 600; color: var(--text-strong); line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 8px; top: 30px; width: 10px; height: 10px; border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted); transform: rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 34px; }
.faq details p { padding: 0 48px 24px 0; max-width: 72ch; }

/* лист ожидания */
.waitlist { padding: 104px 0; background: var(--accent-600); background: linear-gradient(135deg, var(--accent-700) 0%, var(--accent-600) 60%, #0a7f95 100%); color: #e6f3f6; }
.waitlist__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.waitlist h2 { color: #fff; font-size: clamp(28px, 3vw, 40px); line-height: 1.15; letter-spacing: -.02em; }
.waitlist__copy p { margin-top: 16px; font-size: 18.5px; }
.waitlist__copy p.small { font-size: 15px; color: #c5e4ea; }
.form { background: var(--surface); color: var(--text); border-radius: var(--radius-lg); padding: 32px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45); }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14.5px; font-weight: 500; color: var(--text-strong); }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; color: var(--text-strong); font-size: 16px; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent-600); outline-offset: 0; border-color: var(--accent-600); }
.field input[aria-invalid="true"] { border-color: var(--st-danger); }
.field__error { font-size: 13.5px; color: var(--st-danger); }
.field__error:empty { display: none; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; font-size: 14.5px; line-height: 1.5; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--accent-600); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.form__hint { font-size: 14px; color: var(--text-muted); }
.form__status { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius); font-size: 15px; }
.form__status:empty { display: none; }
.form__status.is-ok { background: #eef7f2; color: var(--st-done); border: 1px solid #cfe7da; }
.form__status.is-error { background: #fdf3f2; color: var(--st-danger); border: 1px solid #f1c9c4; }
/* Кнопка «Наверх»: шестигранник, как знак логотипа; появляется после первого экрана */
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 40; width: 52px; height: 56px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s, transform .25s, visibility .25s; }
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; }
.to-top__hex { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 10px 16px rgba(6, 15, 28, .35)); }
.to-top__hex path { fill: var(--accent-600); stroke: var(--accent-600); stroke-width: 7; stroke-linejoin: round; transition: fill .15s, stroke .15s; }
.to-top > svg:not(.to-top__hex) { position: relative; width: 22px; height: 22px; transition: transform .2s; }
.to-top:hover .to-top__hex path, .to-top:focus-visible .to-top__hex path { fill: var(--accent-500); stroke: var(--accent-500); }
.to-top:hover > svg:not(.to-top__hex) { transform: translateY(-3px); }
.to-top:active { transform: scale(.94); }
.to-top:focus-visible { outline: 2px solid var(--accent-300); outline-offset: 4px; border-radius: 14px; }
@media (max-width: 600px) { .to-top { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 46px; height: 50px; } .to-top > svg:not(.to-top__hex) { width: 20px; height: 20px; } }
@media (prefers-reduced-motion: reduce) { .to-top, .to-top > svg:not(.to-top__hex) { transition: none; } }

/* Связь письмом (временно вместо формы, R226(т)) */
.contact [hidden] { display: none; }
.contact { background: var(--surface); color: var(--text); border-radius: var(--radius-lg); padding: 32px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45); }
.contact__label { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.contact__mail { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.contact__addr { font-size: clamp(24px, 3vw, 32px); font-weight: 600; letter-spacing: -.01em; color: var(--text-strong); text-decoration: none; overflow-wrap: anywhere; }
.contact__addr:hover { color: var(--accent-600); }
.contact__copy { font: inherit; font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-strong); cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.contact__copy:hover { border-color: var(--accent-600); color: var(--accent-600); }
.contact__copy.is-done { background: var(--accent-50); border-color: var(--accent-300); color: var(--accent-700); }
.contact__write { margin-top: 24px; gap: 10px; }
.contact__write svg { width: 20px; height: 20px; }
.contact__hint { margin-top: 24px; color: var(--text-muted); font-size: 15.5px; }
.contact__list { margin-top: 8px; padding-left: 1.2em; color: var(--text); font-size: 15.5px; }
.contact__list li { margin-top: 4px; }
@media (max-width: 960px) { .waitlist__grid { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 600px) { .form, .contact { padding: 22px; } .form__grid { grid-template-columns: 1fr; } .waitlist { padding: 72px 0; } }

/* подвал */
.site-footer { background: var(--navy-950); color: #8aa0bd; padding: 48px 0 36px; font-size: 14.5px; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(2, minmax(0, 3fr)); gap: 32px; }
.site-footer .brand__word { color: #fff; }
.site-footer .brand__word span { color: #a9bbd0; }
.footer__about { margin-top: 14px; color: #a9bbd0; max-width: 28em; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: #c3d0df; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__copy { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--navy-800); font-size: 13.5px; color: #6f839c; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; gap: 28px; } }

/* страница политики */
.doc { padding: 64px 0 104px; background: var(--surface); }
.doc__body { max-width: 760px; }
.doc h1 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -.02em; }
.doc .doc__date { margin-top: 12px; color: var(--text-muted); font-size: 15px; }
.doc h2 { font-size: 22px; margin-top: 44px; line-height: 1.3; }
.doc p, .doc li { margin-top: 12px; }
.doc ol, .doc ul { padding-left: 1.4em; }
.doc li { padding-left: .2em; }
.doc .doc__n { font-weight: 600; color: var(--text-strong); font-variant-numeric: tabular-nums; }
.doc__note { margin-top: 44px; padding: 20px 24px; border-left: 3px solid var(--accent-600); border-radius: 0 12px 12px 0; background: var(--surface-sunken); }
.doc__note p:first-child { margin-top: 0; }
.doc .doc__note-title { font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 14px; color: var(--text-strong); }
.placeholder { background: #fff3cd; color: #6b4d00; padding: 0 4px; border-radius: 3px; }

/* пульт в первом экране — плотнее */
.board--compact .board__head { padding: 10px 12px; }
.board--compact .board__head h4 { font-size: 15px; }
.board--compact .board__clock { font-size: 24px; }
.board--compact .chip { height: 22px; font-size: 11.5px; padding: 0 8px; }
.board--compact .alarm { font-size: 12px; padding: 6px 10px; }
.board--compact .tiles { gap: 8px; margin-top: 10px; }
.board--compact .tile { min-height: 0; padding: 10px 12px; font-size: 12px; line-height: 1.4; }
.board--compact .tile h5 { font-size: 14px; margin-top: 4px; }
.board--compact .tile__top { font-size: 12px; }
@container (max-width: 760px) { .board--compact .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container (max-width: 480px) { .board--compact .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.segment, .why__item { grid-template-rows: auto 1fr; align-items: start; }
.plan .checks { align-content: start; }
@media (max-width: 560px) { .card { grid-template-rows: auto 1fr; align-items: start; } }
@media (max-width: 960px) { .step { grid-template-rows: auto auto 1fr; align-items: start; } }
.hero h1 { font-size: clamp(32px, 3.5vw, 46px); }
@media (max-width: 1000px) { .site-header__row > .btn.btn--outline { display: inline-flex; } }

/* ===== тёмно-светлый стиль (заход 3): цех — тёмный, офис и выбор — светлый ===== */
.site-header { background: rgba(6, 15, 28, .94); border-bottom-color: rgba(44, 71, 103, .6); }
.site-header .brand__word { color: #fff; }
.site-header .brand__word span { color: #a9bbd0; font-weight: 400; }
.site-nav a { color: #c3d0df; }
.site-nav a:hover { color: #fff; }
.menu-toggle { background: transparent; border-color: var(--navy-600); color: #fff; }
.site-header :focus-visible, .section--dark :focus-visible, .hero :focus-visible, .waitlist__copy :focus-visible { outline-color: var(--accent-300); }
.btn--ghost { border-color: var(--navy-600); color: #dfe8f2; background: transparent; }
.btn--ghost:hover { border-color: var(--accent-300); color: #fff; }
@media (max-width: 1000px) {
  .site-header.is-open .site-nav { background: var(--navy-950); border-bottom-color: var(--navy-700); }
  .site-header.is-open .site-nav a { border-bottom-color: var(--navy-800); }
  .site-header__row > .btn.btn--ghost { display: inline-flex; }
}

.hero { background: var(--navy-950); border-bottom: 0; color: #c3d0df; }
.hero h1 { color: #fff; }
.hero__lead { color: #c3d0df; }
.ask { background: var(--navy-800); border-color: var(--navy-700); color: #e6edf5; box-shadow: none; }
.ask b { color: var(--accent-300); }
.badge { background: rgba(111, 192, 205, .12); color: #bfe6ec; }
.hero__status { color: #8aa0bd; display: flex; align-items: baseline; gap: 10px; }
.hero__status::before { content: ''; position: relative; top: -2px; width: 8px; height: 8px; border-radius: 50%; background: var(--signal-amber); flex-shrink: 0; }
.hero__caption { color: #8aa0bd; }
.hero .browser { border-color: #2c3a50; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .7); }

.section--alt { background: var(--canvas); }
.section--dark { background: var(--navy-900); color: #c3d0df; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .section__head p { color: #c3d0df; }
.section--dark .ico { background: rgba(111, 192, 205, .12); color: var(--accent-300); }
.section--dark .step .ico { background: var(--accent-600); color: #fff; box-shadow: 0 0 0 6px var(--navy-900); }
.section--dark .steps::before { background: repeating-linear-gradient(90deg, var(--navy-600) 0 8px, transparent 8px 14px); }
.section--dark .step__n { color: var(--accent-300); }
.section--dark .step p, .section--dark .why__item p { color: #b6c4d4; }
@media (max-width: 960px) { .section--dark .steps::before { background: repeating-linear-gradient(180deg, var(--navy-600) 0 8px, transparent 8px 14px); } }

.waitlist { background: var(--navy-950); color: #c3d0df; }
.waitlist__copy p.small { color: #8aa0bd; }
.site-footer { border-top: 1px solid var(--navy-800); }


/* ===== живая схема цеха — первый экран (заход 5) ===== */
.shop {
  position: relative; aspect-ratio: 5 / 4; border-radius: 16px; overflow: hidden; container-type: inline-size;
  border: 1px solid var(--navy-700);
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 105, 128, .22), transparent 58%),
    radial-gradient(rgba(111, 192, 205, .09) 1px, transparent 1.2px) 0 0 / 22px 22px,
    var(--navy-900);
}
.shop__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.shop__lines path { fill: none; stroke: rgba(111, 192, 205, .22); stroke-width: 1.5; }
.shop__lines path.is-hot { stroke: rgba(111, 192, 205, .55); transition: stroke .3s; }
.shop__lines circle { fill: #9fe3ee; filter: drop-shadow(0 0 6px rgba(111, 192, 205, .95)); }
.shop__node {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); z-index: 2;
  display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; white-space: nowrap;
  border-radius: 12px; background: rgba(19, 36, 59, .92); border: 1px solid var(--navy-600); color: #e6edf5;
  transition: border-color .3s, box-shadow .3s;
}
.shop__node b { display: block; font-size: 14px; font-weight: 600; line-height: 1.2; }
.shop__node small { display: block; font-size: 12px; line-height: 1.25; color: #8aa0bd; }
.shop__node small[data-vmc-qty] { font-family: var(--font-mono); color: #bfe6ec; }
.shop__ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: rgba(111, 192, 205, .12); color: var(--accent-300); flex-shrink: 0; }
.shop__ico svg { width: 18px; height: 18px; }
.shop__node.is-active { border-color: var(--accent-300); box-shadow: 0 0 0 4px rgba(111, 192, 205, .12), 0 0 26px rgba(111, 192, 205, .28); }
.shop__node[data-node="tech"] { --x: 19%; --y: 15%; }
.shop__node[data-node="master"] { --x: 50%; --y: 9%; }
.shop__node[data-node="board"] { --x: 81%; --y: 15%; }
.shop__node[data-node="vmc"] { --x: 83%; --y: 56%; }
.shop__node[data-node="qc"] { --x: 67%; --y: 89%; }
.shop__node[data-node="store"] { --x: 33%; --y: 89%; }
.shop__node[data-node="saw"] { --x: 17%; --y: 56%; }
.shop__hub { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; width: 132px; height: 148px; display: grid; place-items: center; }
.shop__hub::before, .shop__hub::after { content: ''; position: absolute; inset: 6px; border-radius: 50%; border: 1px solid rgba(111, 192, 205, .35); opacity: 0; }
.shop__hex {
  width: 124px; height: 140px; display: grid; place-content: center; justify-items: center; gap: 2px; text-align: center;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(160deg, #0a7f95 0%, #005166 55%, #013e50 100%); color: #fff;
}
.shop__hex img { width: 34px; height: 34px; margin-bottom: 4px; }
.shop__hex b { font: 600 14px/1.1 var(--font-ui); letter-spacing: .02em; }
.shop__hex small { font-size: 11px; color: #bfe6ec; }
.shop__hub.is-beat .shop__hex { filter: brightness(1.18); transition: filter .2s; }
.shop__toast {
  position: absolute; z-index: 3; pointer-events: none; white-space: nowrap;
  padding: 6px 11px; border-radius: 8px; font-size: 12.5px; font-weight: 500; color: #e6f3f6;
  background: rgba(6, 15, 28, .94); border: 1px solid rgba(111, 192, 205, .55); box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
  animation: shop-toast 2.8s ease forwards;
}
.shop__toast .mono { color: #9fe3ee; }
@keyframes shop-toast { 0% { opacity: 0; transform: translateY(6px); } 12% { opacity: 1; transform: none; } 78% { opacity: 1; } 100% { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: no-preference) {
  .shop__hub::before { animation: shop-ring 3.2s ease-out infinite; }
  .shop__hub::after { animation: shop-ring 3.2s ease-out 1.6s infinite; }
}
@keyframes shop-ring { 0% { opacity: .7; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.9); } }
.shop.is-static .shop__toast { animation: none; opacity: 1; }
@container (max-width: 520px) {
  .shop__node { gap: 7px; padding: 6px 9px 6px 6px; border-radius: 10px; }
  .shop__node b { font-size: 12px; }
  .shop__node small { display: none; }
  .shop__node small[data-vmc-qty] { display: block; font-size: 10.5px; }
  .shop__ico { width: 26px; height: 26px; border-radius: 7px; }
  .shop__ico svg { width: 15px; height: 15px; }
  .shop__hub { width: 92px; height: 104px; }
  .shop__hex { width: 86px; height: 98px; }
  .shop__hex img { width: 24px; height: 24px; margin-bottom: 2px; }
  .shop__hex b { font-size: 11.5px; }
  .shop__hex small { display: none; }
  .shop__toast { font-size: 11px; padding: 5px 8px; }
  .shop__node[data-node="tech"] { --x: 22%; --y: 12%; }
  .shop__node[data-node="board"] { --x: 78%; --y: 12%; }
  .shop__node[data-node="master"] { --x: 50%; --y: 27%; }
  .shop__node[data-node="saw"] { --x: 18%; --y: 58%; }
  .shop__node[data-node="vmc"] { --x: 82%; --y: 58%; }
  .shop__node[data-node="store"] { --x: 27%; --y: 88%; }
  .shop__node[data-node="qc"] { --x: 73%; --y: 88%; }
}
@container (max-width: 520px) { .shop__hub { top: 52%; } }
.shop { aspect-ratio: 5 / 4; }
@media (max-width: 520px) { .shop { aspect-ratio: 4 / 5; } }

/* центральный шестиугольник — скруглённые углы, как у знака логотипа (заход 6) */
.shop__hex { clip-path: none; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 124 140' preserveAspectRatio='none'%3E%3Cpath d='M49.81 6.88Q62 0 74.19 6.88L111.81 28.12Q124 35 124.00 49.00L124.00 91.00Q124 105 111.81 111.88L74.19 133.12Q62 140 49.81 133.12L12.19 111.88Q0 105 0.00 91.00L0.00 49.00Q0 35 12.19 28.12Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 124 140' preserveAspectRatio='none'%3E%3Cpath d='M49.81 6.88Q62 0 74.19 6.88L111.81 28.12Q124 35 124.00 49.00L124.00 91.00Q124 105 111.81 111.88L74.19 133.12Q62 140 49.81 133.12L12.19 111.88Q0 105 0.00 91.00L0.00 49.00Q0 35 12.19 28.12Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }

/* плашки первого экрана — ровная сетка 2 × 2 (заход 7): ширина колонки — по самой длинной плашке в ней */
.hero__grid > div:first-child { container-type: inline-size; }
.badges { display: grid; grid-template-columns: minmax(0, max-content); justify-content: start; }
.badge { width: 100%; }
@container (min-width: 500px) { .badges { grid-template-columns: repeat(2, max-content); } }

/* ===== реакция на наведение (заход 8): черта активной вкладки, подсветка значка, свечение под курсором ===== */
.card, .segment, .plan, .start li { position: relative; overflow: hidden; isolation: isolate; }
.card::before, .segment::before, .plan::before, .start li::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--accent-600);
  transform: scaleX(0); transform-origin: left; transition: transform .35s ease; z-index: 1;
}
.card::after, .segment::after, .plan::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(0, 105, 128, .09), transparent 65%);
}
.ico, .shop__ico { transition: background-color .25s, color .25s, transform .25s, box-shadow .25s; }
.feature__shot > .window, .feature__shot > .kiosk { transition: transform .35s ease, box-shadow .35s ease; }
.badge { transition: background-color .2s, color .2s, box-shadow .2s; }
.btn:active { transform: translateY(1px); }
.faq summary { transition: color .2s; }
.site-nav a:not(.btn) { position: relative; }
.site-nav a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--accent-300); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.shop__node { cursor: default; }

@media (hover: hover) {
  .card, .segment, .plan, .start li { transition: transform .3s ease, box-shadow .3s ease, border-color .3s; }
  .card:hover, .segment:hover, .plan:hover, .start li:hover {
    transform: translateY(-4px); border-color: var(--accent-200);
    box-shadow: 0 2px 4px rgba(16, 26, 43, .04), 0 18px 36px -18px rgba(0, 81, 102, .35);
  }
  .card:hover::before, .segment:hover::before, .plan:hover::before, .start li:hover::after { transform: scaleX(1); }
  .card:hover::after, .segment:hover::after, .plan:hover::after { opacity: 1; }
  .card:hover .ico, .segment:hover .ico, .plan:hover .ico { background: var(--accent-600); color: #fff; transform: scale(1.06); }
  .start li:hover::before { box-shadow: 0 0 0 6px var(--accent-50); }
  .start li::before { transition: box-shadow .3s; }

  .feature:hover .feature__shot > .window, .feature:hover .feature__shot > .kiosk { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(16, 26, 43, .05), 0 28px 50px -24px rgba(0, 81, 102, .45); }
  .feature:hover .feature__shot > .kiosk { box-shadow: 0 0 0 1px #2c3a50, 0 34px 60px -22px rgba(0, 0, 0, .65); }
  .checks li { transition: color .2s; }
  .checks li:hover { color: var(--text-strong); }

  .section--dark .step:hover .ico { transform: scale(1.1); box-shadow: 0 0 0 6px var(--navy-900), 0 0 0 9px rgba(111, 192, 205, .35), 0 0 26px rgba(111, 192, 205, .35); }
  .step h3 { transition: color .2s; }
  .section--dark .step:hover h3 { color: var(--accent-300); }
  .why__item:hover .ico { background: var(--accent-600); color: #fff; box-shadow: 0 0 22px rgba(111, 192, 205, .35); }
  .why__item h3 { transition: color .2s; }
  .why__item:hover h3 { color: var(--accent-300); }

  .badge:hover { background: rgba(111, 192, 205, .2); color: #fff; box-shadow: inset 0 0 0 1px rgba(111, 192, 205, .45); }
  .site-nav a:not(.btn):hover::after { transform: scaleX(1); }
  .faq summary:hover { color: var(--accent-600); }
  .faq summary:hover::after { border-color: var(--accent-600); }
  .shop__node:hover { border-color: var(--accent-300); }
  .shop__node:hover .shop__ico { background: var(--accent-600); color: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  .card:hover, .segment:hover, .plan:hover, .start li:hover,
  .feature:hover .feature__shot > .window, .feature:hover .feature__shot > .kiosk { transform: none; }
  .card::before, .segment::before, .plan::before, .start li::after { transition: none; }
}

/* ===== просмотр программы (заход 9) — по экрану продукта: рисунок слева ≈ ⅔, справа инструменты и текст ===== */
.ncb { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-strong); font: 500 12.5px/1 var(--font-ui); cursor: pointer; white-space: nowrap; }
.ncb:hover { border-color: var(--accent-600); color: var(--accent-700); }
.ncb.is-on { background: var(--accent-50); border-color: var(--accent-500); color: var(--accent-700); }
.ncb--play { min-width: 64px; background: var(--accent-600); border-color: var(--accent-600); color: #fff; }
.ncb--play:hover { background: var(--accent-700); color: #fff; }
.ncw .ncv { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; padding: 12px; background: var(--canvas); }
.ncv__left, .ncv__right { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ncv__toolbar, .ncv__transport { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ncv__speed { display: inline-flex; gap: 4px; margin-left: auto; }
.ncv__transport input[type=range] { flex: 1 1 80px; min-width: 60px; accent-color: var(--accent-600); }
.ncv__stage { position: relative; height: 300px; border-radius: 6px; overflow: hidden; background: #14181d; }
.ncv__svg { width: 100%; height: 100%; display: block; cursor: crosshair; touch-action: manipulation; }
.ncv__nojs { position: absolute; inset: 0; display: grid; place-items: center; color: #c3d0df; font-size: 13px; }
.ncv.is-ready .ncv__nojs { display: none; }
.ncv__coords { font-size: 12.5px; color: var(--text-strong); white-space: pre; }
.ncv__caption { font-size: 12.5px; color: var(--text-muted); min-height: 1.2em; }
.ncv__tools { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; max-height: 150px; overflow: auto; }
.nct { display: grid; grid-template-columns: 10px auto 1fr; gap: 2px 8px; align-items: center; width: 100%; padding: 6px 8px; border: 0; border-bottom: 1px solid var(--line-soft); background: transparent; text-align: left; font: 400 12px/1.3 var(--font-ui); color: var(--text); cursor: pointer; }
.nct:last-child { border-bottom: 0; }
.nct:hover { background: var(--accent-50); }
.nct.is-on { background: var(--accent-100); }
.nct__sw { width: 10px; height: 10px; border-radius: 2px; grid-row: span 2; }
.nct b { font: 600 12px/1.2 var(--font-mono); color: var(--text-strong); }
.nct__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nct__z { grid-column: 2 / 4; display: flex; gap: 6px; align-items: center; color: var(--text-muted); font-family: var(--font-mono); font-size: 11.5px; }
.nct__d { padding: 0 5px; border-radius: 4px; background: var(--surface-sunken); color: var(--text-strong); font-size: 11px; }
.nct--all { grid-template-columns: 1fr; font-weight: 600; color: var(--text-strong); }
.ncv__text { list-style: none; margin: 0; padding: 4px 0; flex: 1 1 auto; height: 250px; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; font-size: 12px; line-height: 1.55; counter-reset: ln; }
.ncv__text li { display: flex; gap: 8px; padding: 0 8px 0 0; cursor: pointer; white-space: pre; color: var(--text-strong); border-left: 3px solid transparent; }
.ncv__text li::before { counter-increment: ln; content: counter(ln); flex: 0 0 26px; text-align: right; color: var(--text-faint); }
.ncv__text li:hover { background: var(--accent-50); }
.ncv__text li.is-cur { background: var(--accent-100); border-left-color: var(--accent-500); }
.ncv__text li.is-cmt { color: var(--text-muted); }
@container (max-width: 640px) {
  .ncw .ncv { grid-template-columns: 1fr; }
  .ncv__stage { height: 260px; }
  .ncv__text { height: 180px; }
  .ncv__speed { margin-left: 0; }
}

/* ===== 3D-модель (заход 9) — по окну продукта: светлая сталь, тёмные рёбра, виды и «Вписать» ===== */
.m3d__toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.m3d__sep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }
.m3d__stage { position: relative; height: 340px; background: linear-gradient(180deg, #f7f9fb 0%, #e9eef4 100%); cursor: grab; touch-action: none; }
.m3d__stage:active { cursor: grabbing; }
.m3d__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.m3d__state { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center; color: var(--text-muted); font-size: 14px; }
.m3d.is-ready .m3d__state { display: none; }
.m3d__foot { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between; padding: 10px 12px; background: var(--surface); border-top: 1px solid var(--line); font-size: 12.5px; }
.m3d__size { font-weight: 600; color: var(--text-strong); }
.m3d__note { color: var(--text-muted); }
@container (max-width: 520px) { .m3d__stage { height: 280px; } }

/* ===== форма: размещение, парк станков, стойки (заход 9) ===== */
.fset { border: 0; margin: 0; padding: 0; min-width: 0; }
.fset legend { padding: 0; margin-bottom: 8px; font-size: 14.5px; font-weight: 500; color: var(--text-strong); }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.seg__opt { position: relative; }
.seg__opt input, .chips-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg__opt span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 10px; text-align: center; border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: 15px; color: var(--text-strong); cursor: pointer; transition: border-color .15s, background-color .15s; }
.seg__opt span:hover, .chips-pick span:hover { border-color: var(--accent-500); }
.seg__opt input:checked + span { border-color: var(--accent-600); background: var(--accent-50); color: var(--accent-700); font-weight: 600; box-shadow: inset 0 0 0 1px var(--accent-600); }
.seg__opt input:focus-visible + span, .chips-pick input:focus-visible + span { outline: 3px solid var(--accent-600); outline-offset: 2px; }
.park { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.park__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--line-soft); }
.park__name { font-size: 15px; color: var(--text-strong); }
.park__name small { display: block; font-size: 12.5px; color: var(--text-muted); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; flex-shrink: 0; }
.stepper__btn { width: 40px; height: 40px; border: 0; background: var(--surface-sunken); color: var(--text-strong); font: 600 20px/1 var(--font-ui); cursor: pointer; }
.stepper__btn:hover { background: var(--accent-100); color: var(--accent-700); }
.stepper input { width: 56px; height: 40px; border: 0; border-left: 1px solid var(--line-strong); border-right: 1px solid var(--line-strong); text-align: center; font: 600 16px/1 var(--font-mono); color: var(--text-strong); -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: 2px solid var(--accent-600); outline-offset: -2px; }
.park__total { padding: 10px 12px; background: var(--page-alt); font-size: 15px; color: var(--text); text-align: right; }
.park__total b { font-family: var(--font-mono); color: var(--text-strong); }
.chips-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-pick label { position: relative; }
.chips-pick span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14.5px; color: var(--text-strong); cursor: pointer; transition: border-color .15s, background-color .15s; }
.chips-pick input:checked + span { border-color: var(--accent-600); background: var(--accent-600); color: #fff; }
@media (max-width: 480px) { .seg { grid-template-columns: 1fr; } .park__name { font-size: 14px; } }

/* ---------- фрагменты экранов продукта ---------- */
/* ---------- окна фрагментов ---------- */
.window {
  border-radius: 10px; overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(16, 26, 43, .06), 0 12px 32px -12px rgba(16, 26, 43, .18);
  font: 400 14px/1.45 var(--font-ui); color: var(--text);
  container-type: inline-size;
}
.window__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; min-height: 44px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--surface); font-size: 13px; color: var(--text-muted); }
.window__bar b { color: var(--text-strong); font-weight: 500; }
.window__bar .sep { color: var(--text-faint); }
.window__body { background: var(--canvas); padding: 16px; }
.w-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 14px; }
.w-title h4 { font-size: 18px; line-height: 1.25; }
.w-title .sub { width: 100%; font-size: 13px; color: var(--text-muted); }
.w-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.w-card + .w-card { margin-top: 12px; }
.w-card__head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); font-weight: 600; color: var(--text-strong); font-size: 14px; }
.w-card__head .grow { flex: 1; }
.w-btn { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-strong); font: 500 13px/1 var(--font-ui); white-space: nowrap; }
.w-btn--primary { background: var(--accent-600); border-color: var(--accent-600); color: #fff; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 11px; font: 500 12px/1 var(--font-ui); white-space: nowrap; }
.tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag--done { color: var(--st-done); background: #e6f3ec; }
.tag--hold { color: var(--st-hold); background: #fbf0e0; }
.tag--danger { color: var(--st-danger); background: #fbe9e7; }
.tag--progress { color: var(--st-progress); background: #e8effc; }
.tag--neutral { color: var(--st-neutral); background: var(--surface-sunken); }
.w-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.w-table th { text-align: left; font-weight: 500; font-size: 12.5px; color: #55637a; background: var(--surface-sunken); padding: 8px 10px; white-space: nowrap; }
.w-table td { padding: 9px 10px; border-top: 1px solid var(--line-soft); vertical-align: top; color: var(--text-strong); white-space: nowrap; }
.w-table td.wrap { white-space: normal; }
.w-table td .muted, .w-muted { color: var(--text-muted); font-size: 12.5px; }
.w-table .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.w-scroll { overflow-x: auto; }
@container (max-width: 520px) {
  .w-table td { white-space: normal; }
  .w-table td:first-child { white-space: nowrap; }
  .w-table td, .w-table th { padding-left: 7px; padding-right: 7px; }
  .tag { padding: 0 7px; font-size: 11.5px; }
  .w-card__head .w-btn { display: none; }
  .window__body { padding: 12px; }
}

/* технолог: операционный лист */
.oplist { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 12px; }
.ops { display: grid; gap: 8px; align-content: start; }
.op { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; font-size: 13px; }
.op b { color: var(--text-strong); font-weight: 600; font-size: 13.5px; }
.op .mono { font-size: 12.5px; color: var(--text-muted); }
.op__wc { display: block; color: var(--text-muted); margin-top: 2px; }
.op--active { border-color: var(--accent-600); box-shadow: inset 3px 0 0 var(--accent-600); background: var(--accent-50); }
.op__state { display: block; margin-top: 6px; }
@container (max-width: 760px) {
  .oplist { grid-template-columns: 1fr; }
  .ops { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
@container (max-width: 460px) { .col-hide-sm { display: none; } }

/* мастер: сменное задание */
.ss-head { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 12px 14px; font-size: 13px; }
.ss-head span { display: block; color: var(--text-muted); font-size: 12.5px; }
.ss-head b { color: var(--text-strong); font-weight: 500; }
.ss-warn { display: block; color: var(--st-hold); font-size: 12.5px; margin-top: 2px; }
@container (max-width: 520px) { .ss-head { grid-template-columns: 1fr 1fr; } }

/* склад: резка прутка */
.cut { padding: 16px 14px 14px; }
.cut__meta { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; color: var(--text-muted); }
.cut__meta b { color: var(--text-strong); font-weight: 500; }
.bar { margin-top: 18px; display: flex; height: 44px; border-radius: 4px; overflow: hidden; border: 1px solid #8796a8; background: #8796a8; gap: 1px; }
.bar__piece { flex: 120 1 0; background: linear-gradient(#c9d3de, #aebbc9); }
.bar__rest { flex: 170 1 0; background: repeating-linear-gradient(135deg, #f4d9a8 0 6px, #e9c07a 6px 12px); }
.bar__scale { display: flex; justify-content: space-between; margin-top: 6px; font: 400 12px/1 var(--font-mono); color: var(--text-muted); }
.cut__legend { margin-top: 16px; display: grid; gap: 8px; font-size: 13.5px; }
.cut__legend div { display: flex; gap: 10px; align-items: flex-start; }
.swatch { flex-shrink: 0; width: 14px; height: 14px; margin-top: 3px; border-radius: 2px; border: 1px solid #8796a8; }
.swatch--piece { background: #bcc7d4; }
.swatch--rest { background: repeating-linear-gradient(135deg, #f4d9a8 0 3px, #e9c07a 3px 6px); }

/* ОТК: протокол */
.qc-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.3fr); gap: 14px; padding: 14px; align-items: start; }
.qc-row + .qc-row { border-top: 1px solid var(--line-soft); }
.qc-row span.lbl { display: block; font-size: 12.5px; color: var(--text-muted); margin-bottom: 4px; }
.qc-param { font: 500 15px/1.3 var(--font-mono); color: var(--text-strong); }
.qc-input { display: flex; gap: 8px; align-items: center; }
.qc-input input {
  width: 100%; max-width: 120px; height: 36px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 6px;
  font: 500 15px/1 var(--font-mono); color: var(--text-strong); background: #fff;
}
.qc-input input:focus { outline: 2px solid var(--accent-600); outline-offset: 0; border-color: var(--accent-600); }
.qc-result { font-weight: 600; font-size: 14px; }
.qc-result.is-pass { color: var(--st-done); }
.qc-result.is-fail { color: var(--st-danger); }
.qc-scale { position: relative; height: 8px; margin-top: 10px; background: var(--surface-sunken); border-radius: 4px; }
.qc-scale__ok { position: absolute; top: 0; bottom: 0; left: 20%; width: 50%; background: #b9dfc9; border-radius: 4px; }
.qc-scale__mark { position: absolute; top: -4px; width: 3px; height: 16px; margin-left: -1px; border-radius: 2px; background: var(--text-strong); transition: left .2s; }
@media (prefers-reduced-motion: reduce) { .qc-scale__mark { transition: none; } }
.qc-scale__ticks { display: flex; justify-content: space-between; margin-top: 4px; font: 400 11.5px/1 var(--font-mono); color: var(--text-muted); }
.nc { margin: 0 14px 14px; padding: 12px 14px; border-radius: var(--radius); background: #fdf3f2; border: 1px solid #f1c9c4; }
.nc[hidden] { display: none; }
.nc__title { font-weight: 600; color: var(--st-danger); font-size: 14px; }
.nc p { font-size: 13px; margin-top: 4px; color: var(--text); }
.nc__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.qc-ok { margin: 0 14px 14px; padding: 10px 14px; border-radius: var(--radius); background: #eef7f2; border: 1px solid #cfe7da; font-size: 13px; color: var(--st-done); }
.qc-ok[hidden] { display: none; }
@container (max-width: 560px) {
  .qc-row { grid-template-columns: 1fr 1fr; }
  .qc-row > :first-child { grid-column: 1 / -1; }
}

/* история партии */
.hist { list-style: none; padding: 6px 14px 10px; }
.hist li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; padding: 10px 0; border-top: 1px solid var(--line-soft); font-size: 13.5px; }
.hist li:first-child { border-top: 0; }
.hist time { font: 400 12.5px/1.5 var(--font-mono); color: var(--text-muted); }
.hist b { color: var(--text-strong); font-weight: 600; }
.hist span { display: block; color: var(--text-muted); font-size: 12.5px; }
@container (max-width: 420px) { .hist li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- киоск (тёмный экран панели) ---------- */
.kiosk {
  container-type: inline-size;
  border-radius: 14px; padding: 10px; background: #1b2433;
  box-shadow: 0 0 0 1px #2c3a50, 0 30px 60px -20px rgba(0, 0, 0, .6);
}
.kiosk__screen {
  background: var(--k-bg); color: var(--k-text); border-radius: 6px; overflow: hidden;
  font-family: var(--font-ui);
  font-size: clamp(10px, 1.25cqw, 16px); /* 1em = 16 «пикселей панели» на ширине 1280 */
  aspect-ratio: 16 / 10;
  display: flex; flex-direction: column;
}
.k-head { display: flex; align-items: center; gap: 1em; height: 4.5em; padding: 0 1em; background: var(--k-surface); border-bottom: 1px solid var(--k-border); flex-shrink: 0; }
.k-back { display: inline-flex; align-items: center; height: 3.5em; padding: 0 1em; border: 1px solid var(--k-border); border-radius: .5em; font-size: .95em; white-space: nowrap; }
.k-title { font-weight: 600; font-size: 1.05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-head .grow { flex: 1; }
.k-lamp { width: 1em; height: 2.4em; display: flex; flex-direction: column; align-items: center; }
.k-lamp i { width: .9em; height: 1.5em; border-radius: .3em; background: var(--signal-green); box-shadow: 0 0 .8em rgba(34, 197, 94, .8); }
.k-lamp s { width: .2em; flex: 1; background: #8796a8; }
.k-lock { width: 3.5em; height: 3.5em; border: 1px solid var(--k-border); border-radius: .5em; display: grid; place-items: center; flex-shrink: 0; }
.k-status { margin: 0 12.5%; padding: .5em 1em; background: var(--k-success); font-weight: 600; font-size: .95em; border-radius: 0 0 .5em .5em; }
.k-main { flex: 1; display: grid; grid-template-columns: minmax(0, 37fr) minmax(0, 17fr); gap: 1.25em; padding: 1em 12.5% 0; align-content: start; }
.k-card { background: var(--k-card); border: 1px solid var(--k-border); border-radius: .5em; }
.k-card > div { padding: .9em 1em; border-top: 1px solid var(--k-border); }
.k-card > div:first-child { border-top: 0; }
.k-lbl { display: block; font-size: .72em; letter-spacing: .06em; color: var(--k-text-sec); font-weight: 500; margin-bottom: .35em; }
.k-val { font-size: 1em; }
.k-val b { font-weight: 600; font-size: 1.05em; }
.k-pair { display: flex; gap: 2em; }
.k-docs { display: grid; gap: .55em; align-content: start; }
.k-doc { display: flex; align-items: center; height: 4.75em; padding: 0 1.1em; border: 1px solid var(--k-border); border-radius: .5em; font-weight: 500; font-size: 1.05em; }
.k-foot { display: flex; align-items: center; gap: .75em; height: 6.25em; padding: 0 1em; background: var(--k-surface); border-top: 1px solid var(--k-border); flex-shrink: 0; }
.k-link { display: inline-flex; align-items: center; gap: .5em; height: 1.7em; padding: 0 .75em; border: 1px solid var(--k-border); border-radius: .85em; font-size: .8em; color: var(--k-text-sec); white-space: nowrap; }
.k-link::before { content: ''; width: .55em; height: .55em; border-radius: 50%; background: var(--k-success); }
.k-actions { flex: 1; display: flex; justify-content: center; gap: .75em; }
.k-btn {
  display: inline-flex; align-items: center; justify-content: center; height: 4.75em; padding: 0 1.6em;
  border-radius: .5em; border: 1px solid var(--k-border); background: transparent; color: #fff;
  font: 600 1.05em/1 var(--font-ui); white-space: nowrap;
}
button.k-btn { cursor: pointer; }
.k-btn--accent { background: var(--k-accent); border-color: var(--k-accent); }
button.k-btn--accent:hover { background: #00485c; }
.k-btn--success { background: var(--k-success); border-color: var(--k-success); }
.k-btn--danger { background: var(--k-danger); border-color: var(--k-danger); }
.k-qty-done { color: #22c55e; }
@container (max-width: 640px) {
  .kiosk__screen { aspect-ratio: auto; font-size: 11px; }
  .k-main { grid-template-columns: 1fr; padding: 1em 1em 1.25em; }
  .k-docs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .k-doc { height: 3.6em; font-size: .95em; padding: 0 .7em; line-height: 1.15; }
  .k-status { margin: 0 1em; }
  .k-foot { height: auto; flex-wrap: wrap; padding: .9em 1em; }
  .k-actions { flex-wrap: wrap; justify-content: flex-start; }
  .k-btn { height: 3.8em; padding: 0 1.1em; }
  .k-link { order: 2; }
  .k-hide-sm { display: none; }
}

/* магазин станка */
.k-mag { flex: 1; padding: 1em; display: flex; flex-direction: column; gap: .8em; }
.k-mag__top { display: flex; align-items: center; justify-content: space-between; font-weight: 600; }
.k-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .75em; }
.k-slot { border: 1px solid var(--k-border); border-radius: .5em; padding: .55em .65em; min-height: 6.4em; font-size: .92em; line-height: 1.25; }
.k-slot b { display: block; font: 600 1.3em/1.2 var(--font-mono); color: #8aa0bd; }
.k-slot.is-busy { background: var(--k-card); }
.k-slot.is-busy b { color: #fff; }
.k-slot small { display: block; color: var(--k-text-sec); font-size: .9em; margin-top: .2em; }
.k-slot .warn { color: var(--k-warn-text); }
.k-slot--empty span { color: var(--k-text-sec); }
.k-check { margin: 0 1em 1em; border: 1px solid var(--k-border); border-radius: .5em; background: var(--k-card); padding: .8em 1em; display: grid; gap: .45em; }
.k-check b { font-weight: 600; }
.k-check .ok { color: #22c55e; }
.k-check .need { color: var(--k-warn-text); }
@container (max-width: 420px) { .k-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@container (max-width: 640px) {
  .k-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .k-slot { min-height: 5.6em; }
  .k-slot.k-hide-sm { display: none; }
}

/* ---------- пульт ---------- */
.board { margin-top: 56px; border-radius: 12px; background: var(--canvas); padding: 16px; container-type: inline-size; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .55); }
.board__head { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: center; }
.board__head h4 { font-size: 18px; }
.board__clock { font: 600 30px/1 var(--font-mono); color: var(--text-strong); grid-row: span 2; align-self: center; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 12px; color: #fff; font: 600 12.5px/1 var(--font-ui); }
.chip--work { background: #15803d; } .chip--setup { background: #1d4ed8; } .chip--pause { background: #b45309; }
.chip--issue { background: #b91c1c; } .chip--idle { background: #475569; } .chip--nodata { background: #334155; }
.alarms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.alarm { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 6px; color: #fff; font-size: 13px; font-weight: 500; }
.alarm--red { background: #b91c1c; } .alarm--amber { background: #a4620a; }
.alarm .mono { opacity: .9; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.tile { border-radius: var(--radius); padding: 12px 14px 14px; color: #fff; min-height: 168px; font-size: 13px; line-height: 1.45; }
.tile__top { display: flex; justify-content: space-between; gap: 10px; font: 600 13px/1.2 var(--font-mono); opacity: .95; }
.tile h5 { margin: 6px 0 2px; font-size: 16px; line-height: 1.25; color: #fff; font-weight: 600; }
.tile__state { font-weight: 600; margin-bottom: 4px; }
.tile p { opacity: .92; }
.tile--work { background: #15803d; } .tile--setup { background: #1d4ed8; } .tile--pause { background: #b45309; }
.tile--issue { background: #b91c1c; } .tile--idle { background: #475569; }
.tile--nodata { background: repeating-linear-gradient(135deg, #334155 0 14px, #3b4a5f 14px 28px); }
@container (max-width: 760px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (max-width: 460px) {
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 0; }
  .board__clock { font-size: 22px; }
}
@media (max-width: 860px) { 

.rdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.rdot--done { background: var(--st-done); }
.rdot--danger { background: var(--st-danger); }
.rline { display: block; padding-left: 16px; }
.ss-warn.rline { color: var(--st-danger); }
