/* Cabinet: device cards, orders, add-device sheet. Builds on guide.css tokens. */
.sect { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 10px 0 -4px; font-weight: 600; }
.devs, .orders { display: grid; gap: 10px; }
.dev, .order { border: 1.5px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 8px; min-width: 0; }
.dev.warn { border-color: var(--warn); background: var(--warn-soft); }
.dev-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.dev-name { font-weight: 700; font-size: 16px; word-break: break-word; }
.dev-meta { color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 2px 12px; }
.dev-use { font-size: 14px; font-weight: 600; }
.dev-use.ok { color: var(--ok); }
.dev-use.over { color: var(--warn); }
.dev-use.unused, .dev-use.idle { color: var(--muted); font-weight: 500; }
.nets { display: flex; flex-wrap: wrap; gap: 6px; }
.net { font-size: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 99px; padding: 2px 9px; color: var(--muted); }
.explain { font-size: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; }
.row .btn { flex: 1 1 140px; min-height: 42px; }
.btn.add { width: 100%; margin-top: 12px; }
.how { margin-top: 12px; font-size: 14px; color: var(--muted); }
.how summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.how p { margin: 8px 0 0; }
.amount { font-weight: 700; white-space: nowrap; }
.order p { margin: 0; }
.order b { font-size: 15px; }
.steps { list-style: none; display: flex; gap: 4px; padding: 0; margin: 2px 0; counter-reset: s; }
.steps li { flex: 1; font-size: 11px; color: var(--muted); text-align: center; padding-top: 7px; border-top: 3px solid var(--line); }
.steps li.done { border-color: var(--ok); color: var(--ok); }
.steps li.cur { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.paytext { white-space: pre-wrap; background: var(--accent-soft); border-radius: 10px; padding: 10px 12px; font-size: 15px; user-select: all; }
.qrpay { display: grid; justify-items: center; }
.qrpay img { width: min(260px, 100%); background: #fff; border-radius: 12px; padding: 8px; }
.paid { display: grid; gap: 8px; }
.file { font-size: 13px; color: var(--muted); display: grid; gap: 4px; }
.file input { font-size: 13px; max-width: 100%; }
.linkbtn { background: none; border: 0; color: var(--muted); text-decoration: underline; font: inherit; font-size: 13px; padding: 0; justify-self: start; cursor: pointer; }
.order.st-done { border-color: var(--ok); }
.order.st-rejected, .order.st-cancelled { opacity: .7; }
.sheet { border-color: var(--accent); }
.sheet p { margin: 0 0 10px; color: var(--muted); }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-bottom: 10px; }
.choice { border: 1.5px solid var(--line); border-radius: 12px; padding: 10px; display: flex; gap: 8px; align-items: center; cursor: pointer; font-size: 14px; }
.choice input { accent-color: var(--accent); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.text { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 12px; font: inherit; background: var(--card); color: var(--fg); margin-bottom: 4px; }
.text:focus { outline: none; border-color: var(--accent); }
/* setup wizard in the cabinet: numbered steps, the current one highlighted, the button to press pulses */
.step h2 { display: flex; align-items: center; gap: 8px; }
.step .num { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--line); color: var(--fg); font-size: 13px; letter-spacing: 0; }
.step.focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.step.focus .num { background: var(--accent); color: var(--accent-fg); }
.step.done .num { background: var(--ok-soft); color: var(--ok); }
.hint { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.hint.now { margin: 0 0 10px; color: var(--accent); font-weight: 600; font-size: 14px; }
.btn.pulse { animation: btnpulse 1.6s ease-out infinite; }
@keyframes btnpulse { 0% { box-shadow: 0 0 0 0 rgba(10, 102, 216, .55); } 70% { box-shadow: 0 0 0 12px rgba(10, 102, 216, 0); } 100% { box-shadow: 0 0 0 0 rgba(10, 102, 216, 0); } }
@media (prefers-reduced-motion: reduce) { .btn.pulse { animation: none; outline: 3px solid var(--accent); outline-offset: 2px; } }
.qrtimer { font-weight: 700; font-size: 15px; text-align: center; }
.qrtimer.late { color: var(--off); }
.warnbox { background: var(--off-soft); color: var(--off); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
/* support chat */
.chat-fab { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 20; border: 0; border-radius: 99px; padding: 12px 18px; background: var(--accent); color: var(--accent-fg); font: inherit; font-weight: 700; box-shadow: 0 6px 20px rgba(10, 102, 216, .35); cursor: pointer; }
.chat-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 6px; border-radius: 99px; background: var(--off); color: #fff; font-size: 12px; padding: 0 5px; }
.chat { position: fixed; z-index: 30; right: max(16px, env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100dvh - 32px)); background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 40px rgba(0, 0, 0, .2); display: flex; flex-direction: column; overflow: hidden; }
@media (max-width: 560px) { .chat { inset: 0; width: auto; height: auto; border-radius: 0; border: 0; padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); } html.chat-open body { overflow: hidden; } }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.chat-head b { font-size: 17px; }
.chat-x { border: 0; background: none; font-size: 20px; color: var(--muted); cursor: pointer; padding: 4px 8px; }
.chat-list { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.chat-hello { color: var(--muted); font-size: 14px; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-quick button { border: 1.5px solid var(--accent); color: var(--accent); background: var(--card); border-radius: 99px; padding: 7px 12px; font: inherit; font-size: 14px; cursor: pointer; }
.msg { display: grid; max-width: 85%; gap: 2px; }
.msg.me { justify-self: end; align-self: flex-end; justify-items: end; }
.msg.them { align-self: flex-start; }
.bubble { padding: 9px 12px; border-radius: 16px; font-size: 15px; line-height: 1.4; word-break: break-word; }
.msg.me .bubble { background: var(--accent); color: var(--accent-fg); border-bottom-right-radius: 4px; }
.msg.them .bubble { background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg .meta { font-size: 11px; color: var(--muted); padding: 0 4px; }
.typing { display: flex; gap: 4px; padding: 13px 14px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.chat-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--card); }
.chat-form textarea { flex: 1; min-width: 0; resize: none; border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 12px; font: inherit; font-size: 16px; background: var(--bg); color: var(--fg); max-height: 120px; }
.chat-form textarea:focus { outline: none; border-color: var(--accent); }
.chat-form .btn { min-height: 44px; width: 48px; padding: 0; border-radius: 14px; flex: 0 0 auto; }
.wrap { padding-bottom: 90px; }
[hidden] { display: none !important; }
/* 2026-11-05: bigger support entry points (the floating button was too small and sat under the browser bar) */
.support-top { width: 100%; min-height: 54px; font-size: 17px; border-radius: 14px; }
.chat-fab { display: flex; align-items: center; gap: 8px; min-height: 60px; padding: 0 22px 0 18px; font-size: 17px; bottom: calc(28px + env(safe-area-inset-bottom)); }
.chat-fab .ico { font-size: 24px; line-height: 1; }
@media (max-width: 560px) { .chat-fab { left: 50%; right: auto; transform: translateX(-50%); bottom: calc(24px + env(safe-area-inset-bottom)); min-width: 220px; justify-content: center; } }
.wrap { padding-bottom: 120px; }
/* chat: tools, voice, screenshots */
.chat-tool { flex: 0 0 auto; width: 46px; height: 46px; display: grid; place-items: center; font-size: 22px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); cursor: pointer; }
.chat-send { width: 50px !important; }
.chat-form { align-items: flex-end; gap: 6px; padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); }
.chat-rec { display: flex; align-items: center; gap: 10px; padding: 12px; border-top: 1px solid var(--line); background: var(--card); flex-wrap: wrap; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
.chat-rec .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--off); animation: blink 1s infinite; }
.chat-rec #rectime { font-weight: 700; font-variant-numeric: tabular-nums; }
.chat-rec .btn { min-height: 44px; flex: 1 1 100px; }
.shot-msg { display: block; max-width: 100%; max-height: 260px; border-radius: 10px; margin-bottom: 4px; }
.bubble audio { display: block; width: 230px; max-width: 100%; height: 36px; }
.bubble .tr { font-size: 13px; opacity: .85; margin-top: 4px; font-style: italic; }
/* trial banner */
.card.trial { border-color: var(--ok); background: var(--ok-soft); }
.card.trial h2 { color: var(--ok); }
.card.trial p { margin: 0 0 8px; }
.card.trial .tariff { font-size: 15px; }

/* 2026-11-14: «Ключи для людей» */
.team .tbal{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 12px;border-radius:12px;background:rgba(10,102,216,.08);margin-bottom:10px}
.team .tbal b{font-size:1.15em}
.tperson .tkey{border-top:1px solid rgba(127,127,127,.22);padding-top:8px;margin-top:8px}
.tperson .tkey.off{opacity:.72}
.tperson .row{flex-wrap:wrap}
.team .tnote{font-size:.92em;margin:6px 0}
.tperson>summary{cursor:pointer;list-style:none}
.tperson>summary::-webkit-details-marker{display:none}
.tperson>summary .dev-name::before{content:"▸ ";color:#0a66d8}
.tperson[open]>summary .dev-name::before{content:"▾ "}
.tperson .tlast{margin-top:4px}
.tperson .tkey .btn{padding:8px 12px;font-size:.92em}
.tguide{border-radius:12px;background:rgba(24,121,78,.07);padding:10px 12px;margin-bottom:10px}
.tguide>summary{cursor:pointer;font-weight:600}
.tguide ol{margin:8px 0 4px;padding-left:20px;display:grid;gap:6px;line-height:1.45}
.tguide .row{flex-wrap:wrap}
.impbar{background:#fff4d6;border:1px solid #e0b84a;color:#3d2c00}
.team select{font:inherit;padding:4px 8px;margin-left:6px}
