/* ТСД (PWA /wh) — шаблон Т10 «Шаг ТСД». Тёмная тема как в мобилке «Смен». */
body.tsd { background: var(--surface-base); min-height: 100vh; font-size: 14px; }
.t-wrap { max-width: 390px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; padding-bottom: 76px; position: relative; }
.t-head { padding: 18px 16px 10px; display: flex; align-items: flex-start; gap: 10px; }
.t-head h1 { font-size: 24px; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.t-head .s { color: var(--ink-2); font-size: 13px; margin-top: 3px; }
.t-head .avatar { width: 40px; height: 40px; margin-left: auto; font-size: 12px; background: var(--surface-elevated); color: var(--ink); }
.t-body { padding: 0 16px; display: flex; flex-direction: column; gap: 12px; }
.t-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.t-card.accent { border-color: var(--info); }
.t-card.warn { border-color: var(--accent); background: var(--row-attention); }
.t-cap { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.t-big { height: 56px; border-radius: 12px; border: 0; width: 100%; font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 10px; }
.t-big.amber { background: var(--accent); color: #0A0A0A; }
.t-big.white { background: var(--ink); color: var(--ink-inverse); }
.t-big.ghost { background: transparent; border: 1px solid var(--border-strong); color: var(--ink); height: 48px; font-weight: 600; font-size: 14px; }
.t-row { display: flex; align-items: center; gap: 10px; }
.t-sec { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.t-sec .t-big.ghost { height: 52px; flex-direction: column; gap: 3px; font-size: 12px; }
.t-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 390px; height: 68px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 6px 8px 8px; background: var(--surface-base); border-top: 1px solid var(--border); z-index: 20; }
.t-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; color: var(--ink-muted); border-radius: 10px; }
.t-nav a.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.t-ctx { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.t-ctx .back { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border-strong); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.t-ctx .ttl { font-weight: 700; font-size: 15px; line-height: 1.2; }
.t-ctx .sub { font-family: var(--font-mono); font-size: 11px; color: var(--ink-2); margin-top: 2px; }
.t-online { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--ok-fg); letter-spacing: .06em; flex: none; }
.t-prog { padding: 10px 16px 0; }
.t-prog .row1 { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); margin-bottom: 6px; }
.t-prog .bar { height: 8px; border-radius: 4px; background: var(--surface-elevated); border-color: var(--border); }
.t-instr { text-align: center; padding: 18px 12px; border: 2px dashed var(--border-strong); border-radius: 14px; }
.t-instr .big { font-size: 22px; font-weight: 700; letter-spacing: .01em; text-transform: uppercase; margin-top: 8px; }
.t-instr .s { color: var(--ink-2); font-size: 13px; margin-top: 4px; }
.t-instr.done { border-style: solid; border-color: var(--success); background: var(--ok-bg); text-align: left; padding: 12px 14px; }
.t-stepper { display: grid; grid-template-columns: 56px 1fr 56px; gap: 8px; align-items: center; }
.t-stepper button { height: 56px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface-elevated); font-size: 24px; font-weight: 700; color: var(--ink); }
.t-stepper .v { text-align: center; font-family: var(--font-mono); font-size: 34px; font-weight: 700; }
.t-stepper .v small { display: block; font-size: 11px; color: var(--ink-muted); font-weight: 500; }
.t-field { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface-elevated); font-family: var(--font-mono); font-size: 16px; font-weight: 700; }
.t-chip { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 17px; border: 1px solid var(--border-strong); font-size: 13px; color: var(--ink-2); }
.t-chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.t-last { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }
.t-task { display: block; }
.t-task .top { display: flex; align-items: center; gap: 8px; }
.t-task .nm { font-size: 16px; font-weight: 700; margin-top: 8px; }
.t-task .s { color: var(--ink-2); font-size: 13px; margin-top: 3px; }
.t-task .ft { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-family: var(--font-mono); font-size: 12px; }
.t-list .it { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.t-list .it:last-child { border-bottom: 0; }
.t-hint { font-size: 12px; color: var(--ink-muted); text-align: center; padding: 4px 8px; }
.t-kv { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.t-kv > div { background: var(--surface-elevated); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; }
.t-kv .v { font-family: var(--font-mono); font-size: 18px; font-weight: 700; margin-top: 3px; }
