/* The cabinet after sign-in (new design, step 2, 2026-11-06;
   docs/DESIGN-DECISION-2026-11-05.md section 2): the shell of variant 01
   «Консоль» (the menu on the left, the user at the bottom of it, a search
   and «Привязать ПК» on top) and the PC tiles of variant 02, with a list
   view next to them. The session (#sessionView) keeps the old look until
   step 3. Everything is under .app / .dlgWrap: the old global rules of
   index.html (dark inputs and buttons) still serve the session and do not
   leak in here, a class beats a tag. */

.iconSprite { position:absolute; width:0; height:0; overflow:hidden; }
body.inSession .app { display:none !important; }
body:not(.inSession) #sessionView { display:none !important; }
body:not(.signedOut):not(.inSession) { padding:0; background:#f3f5f9; }
body:not(.signedOut):not(.inSession) > .verFoot { display:none; } /* the shell has its own footer */

.app, .dlgWrap {
  --bg:#f3f5f9; --surf:#fff; --line:#e2e6ee; --line2:#eef1f6; --line-in:#cfd5e1; --ink:#141d3a; --mut:#5b6580;
  --navy:#101C4B; --navy2:#1b2a63; --or:#FF4D24; --ok:#13794a; --okbg:#e3f3ea; --warn:#8a5300; --warnbg:#fff1d6;
  --bad:#b42d1a; --badbg:#fde8e4; --sh:0 1px 2px rgba(16,28,75,.05), 0 8px 24px rgba(16,28,75,.06);
  font:14px/1.45 Manrope, system-ui, -apple-system, "Segoe UI", sans-serif; color:var(--ink);
  -webkit-font-smoothing:antialiased;
}
.app *, .dlgWrap *, .app *::before, .dlgWrap *::before { box-sizing:border-box; }
.app .ic, .dlgWrap .ic { width:20px; height:20px; flex:none; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.app :focus-visible, .dlgWrap :focus-visible { outline:2px solid var(--or); outline-offset:2px; }

/* the shell */
.app { display:grid; grid-template-columns:248px minmax(0,1fr); min-height:100vh; min-height:100dvh; background:var(--bg); }
.side { position:sticky; top:0; height:100vh; height:100dvh; display:flex; flex-direction:column; gap:6px; padding:18px 12px 14px; background:var(--navy); color:#cfd6ee; overflow:auto; z-index:40; }
.sideLogo { display:block; width:128px; height:auto; margin:2px 8px 18px; }
.sideNav { display:flex; flex-direction:column; gap:2px; }
.sideNav2 { margin-top:14px; padding-top:12px; border-top:1px solid rgba(255,255,255,.1); }
.app .nv { position:relative; display:flex; align-items:center; gap:10px; width:100%; height:40px; margin:0; padding:0 10px; border:0; border-radius:8px; background:none; color:#dfe4f5; font:inherit; font-weight:600; text-align:left; text-decoration:none; cursor:pointer; }
.app .nv em { margin-left:auto; font-style:normal; font-size:12px; background:rgba(255,255,255,.1); padding:1px 8px; border-radius:10px; }
.app .nv.on { background:rgba(255,255,255,.1); color:#fff; }
.app .nv.on::before { content:""; position:absolute; left:-12px; top:8px; bottom:8px; width:3px; border-radius:0 3px 3px 0; background:var(--or); }
@media (hover:hover) { .app .nv:hover { background:rgba(255,255,255,.07); } }
.sideMe { margin-top:auto; display:flex; align-items:center; gap:10px; padding:12px 4px 0; border-top:1px solid rgba(255,255,255,.1); }
.sideMeT { min-width:0; flex:1; }
.sideMeT b { display:block; color:#fff; font-size:13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sideMeT small { display:block; font-size:12px; color:#97a1c6; }
.av { display:inline-grid; place-items:center; width:32px; height:32px; border-radius:50%; background:var(--or); color:var(--navy); font-weight:800; font-size:12px; flex:none; text-transform:uppercase; }
.sideBg { display:none; }
.app .ibtn, .dlgWrap .ibtn { display:inline-grid; place-items:center; width:36px; height:36px; margin:0; padding:0; border:0; border-radius:8px; background:transparent; color:inherit; cursor:pointer; flex:none; }
@media (hover:hover) { .app .ibtn:hover, .dlgWrap .ibtn:hover { background:rgba(16,28,75,.07); } .side .ibtn:hover { background:rgba(255,255,255,.1); } }

.main { display:flex; flex-direction:column; min-width:0; }
.top { position:sticky; top:0; z-index:20; display:flex; align-items:center; gap:12px; height:60px; padding:0 24px; background:var(--surf); border-bottom:1px solid var(--line); }
.burger { display:none !important; }
.crumb { font-weight:700; color:var(--mut); font-size:13px; white-space:nowrap; }
.searchForm { display:contents; }
.app label.search { position:relative; display:flex; align-items:center; margin:0 0 0 auto; width:min(380px, 40%); }
.app .search .ic { position:absolute; left:10px; top:50%; transform:translateY(-50%); width:18px; height:18px; color:var(--mut); pointer-events:none; }
.app #pcSearch { width:100%; height:36px; padding:0 12px 0 36px; border:1px solid var(--line); border-radius:8px; background:var(--bg); color:var(--ink); font:inherit; font-size:14px; }
body:not([data-view="pcs"]) .search { visibility:hidden; }
.content { flex:1; padding:24px; }
.cabFoot { padding:12px 24px 18px; text-align:center; font-size:12px; color:var(--mut); }
.page { max-width:1240px; margin:0 auto; display:flex; flex-direction:column; gap:16px; }
.app h1 { display:block; margin:0; font-size:22px; line-height:1.2; font-weight:800; letter-spacing:-.01em; color:var(--ink); }
.app h2, .dlgWrap h2 { display:flex; align-items:center; gap:8px; margin:0 0 12px; font-size:16px; font-weight:800; color:var(--ink); }
.app h2 .ic { color:var(--or); }
.sub { margin:4px 0 0; color:var(--mut); }
.muted { color:var(--mut); font-size:13px; }
.ph { display:flex; align-items:flex-end; justify-content:space-between; gap:12px 16px; flex-wrap:wrap; }
.tb { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }

/* buttons, fields (the shell and its dialogs) */
.app .btn, .dlgWrap .btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; height:38px; margin:0; padding:0 14px; border:1px solid var(--navy); border-radius:8px; background:var(--navy); color:#fff; font:inherit; font-weight:700; font-size:14px; white-space:nowrap; text-decoration:none; cursor:pointer; transition:transform .12s cubic-bezier(.23,1,.32,1), background-color .15s; }
.app .btn:active, .dlgWrap .btn:active { transform:scale(.97); }
.app .btn .ic, .dlgWrap .btn .ic { width:18px; height:18px; }
.app .btn.sm, .dlgWrap .btn.sm { height:32px; padding:0 10px; font-size:13px; }
.app .btn.ghost, .dlgWrap .btn.ghost, .app .smallbtn, .dlgWrap .smallbtn { background:var(--surf); color:var(--ink); border:1px solid var(--line-in); }
.app .btn.go, .dlgWrap .btn.go { background:var(--or); border-color:var(--or); color:var(--navy); }
.app .btn.danger, .dlgWrap .btn.danger { background:var(--bad); border-color:var(--bad); color:#fff; }
.app .btn.wide, .dlgWrap .btn.wide { width:100%; }
.app .btn:disabled, .dlgWrap .btn:disabled, .app .smallbtn:disabled { opacity:.45; cursor:not-allowed; transform:none; }
@media (hover:hover) {
  .app .btn:not(:disabled):hover, .dlgWrap .btn:not(:disabled):hover { background:var(--navy2); }
  .app .btn.ghost:not(:disabled):hover, .dlgWrap .btn.ghost:not(:disabled):hover, .app .smallbtn:not(:disabled):hover { background:#f6f8fb; }
  .app .btn.go:not(:disabled):hover, .dlgWrap .btn.go:not(:disabled):hover { background:#ff6a46; }
  .app .btn.danger:not(:disabled):hover, .dlgWrap .btn.danger:not(:disabled):hover { background:#9e2614; }
}
.app .smallbtn { height:34px; padding:0 12px; border-radius:8px; font:inherit; font-size:13px; font-weight:700; cursor:pointer; }
.app input:not([type=checkbox]):not([type=radio]), .dlgWrap input, .app select, .dlgWrap select {
  max-width:100%; height:40px; margin:0; padding:0 12px; border:1px solid var(--line-in); border-radius:8px; background:#fff; color:var(--ink); font:inherit; font-size:15px;
}
/* textarea: the support sheet; the old index.html has no rule for it, the
   browser's own (another font, a gray frame) showed */
.dlgWrap textarea { display:block; width:100%; min-height:44px; margin:0; padding:10px 12px; border:1px solid var(--line-in); border-radius:8px; background:#fff; color:var(--ink); font:inherit; font-size:15px; line-height:1.45; resize:vertical; }
.dlgWrap textarea::placeholder { color:#8a93ab; }
.app input:focus, .dlgWrap input:focus, .app select:focus, .dlgWrap select:focus, .dlgWrap textarea:focus { border-color:var(--navy2); outline:2px solid rgba(255,77,36,.3); outline-offset:0; }
.app label, .dlgWrap label { display:block; margin:0 0 6px; font-size:13px; font-weight:700; color:var(--ink); }
.app .hint, .dlgWrap .hint { margin:6px 0 0; font-size:12px; color:var(--mut); }
.app pre.codes { background:var(--line2); border:1px solid var(--line); color:var(--ink); padding:10px 12px; border-radius:8px; font:600 14px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.app .pill { display:inline-flex; align-items:center; height:22px; padding:0 9px; border-radius:11px; font-size:12px; font-weight:700; }
.app .pill.open { background:var(--okbg); color:var(--ok); }
.app .pill.closed { background:var(--line2); color:var(--mut); }
.app .pill.guest { background:var(--warnbg); color:var(--warn); }
.app code, .dlgWrap code { font:12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color:var(--mut); }

/* filters and the view switch */
.chips { display:inline-flex; background:var(--surf); border:1px solid var(--line); border-radius:9px; padding:3px; gap:2px; }
.app .chips button { display:flex; align-items:center; gap:6px; height:30px; margin:0; padding:0 12px; border:0; border-radius:7px; background:none; color:var(--mut); font:inherit; font-weight:700; cursor:pointer; }
.app .chips button em { font-style:normal; font-size:12px; opacity:.75; }
.app .chips button.on { background:var(--navy); color:#fff; }
.seg { display:inline-flex; background:var(--line2); border-radius:9px; padding:3px; gap:2px; }
.app .seg button { display:inline-flex; align-items:center; gap:6px; height:30px; margin:0; padding:0 10px; border:0; border-radius:7px; background:none; color:var(--mut); font:inherit; font-size:13px; font-weight:700; cursor:pointer; }
.app .seg button .ic { width:16px; height:16px; }
.app .seg button.on { background:#fff; color:var(--ink); box-shadow:0 1px 2px rgba(0,0,0,.12); }
body[data-pcmode="tiles"] #pcListCard, body[data-pcmode="list"] #pcGrid { display:none; }

/* tiles (variant 02) */
.pcs { display:grid; grid-template-columns:repeat(auto-fill, minmax(280px, 1fr)); gap:18px; }
.pc { display:flex; flex-direction:column; background:var(--surf); border:1px solid var(--line); border-radius:14px; box-shadow:var(--sh); transition:transform .2s cubic-bezier(.23,1,.32,1), box-shadow .2s; min-width:0; }
@media (hover:hover) { .pc:hover { transform:translateY(-2px); box-shadow:0 2px 4px rgba(16,28,75,.06), 0 16px 36px rgba(16,28,75,.1); } }
.pcTh { position:relative; margin:8px 8px 0; aspect-ratio:16/9; border-radius:10px; overflow:hidden; display:grid; place-items:center; background:radial-gradient(120% 140% at 80% 0%, #2a3c86 0, #101C4B 55%, #0b1430 100%); color:#cfd6ee; }
.pcTh .osIc { width:44px; height:44px; opacity:.9; }
.pcTh .pcHost { position:absolute; left:12px; bottom:10px; right:12px; font-size:12px; color:#b9c2e6; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pc.off .pcTh { filter:grayscale(.9) brightness(.75); }
/* the tile's snapshot (PROTOCOL §44): over the placeholder once loaded */
.pcSnap { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0; transition:opacity .25s; }
.pcSnap.ready { opacity:1; }
body.blurSnaps .pcSnap { filter:blur(9px) saturate(.85); transform:scale(1.08); }
.pcSnapAt { position:absolute; right:10px; bottom:10px; height:22px; padding:0 8px; border-radius:11px; display:flex; align-items:center; background:rgba(0,0,0,.55); color:#fff; font-size:11px; font-weight:700; }
.pcTh:has(.pcSnap.ready) .pcHost { display:none; }
.app .blurBtn { display:inline-flex; align-items:center; gap:6px; height:36px; margin:0; padding:0 10px; border:1px solid var(--line); border-radius:9px; background:var(--surf); color:var(--mut); font:inherit; font-size:13px; font-weight:700; cursor:pointer; }
.app .blurBtn .ic { width:16px; height:16px; }
.app .blurBtn[aria-pressed="true"] { background:var(--navy); border-color:var(--navy); color:#fff; }
.snapRow { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.snapRow .hint { margin:0; }
.pcSt { position:absolute; left:10px; top:10px; display:flex; align-items:center; gap:6px; height:26px; padding:0 10px; border-radius:13px; background:rgba(255,255,255,.94); color:var(--ink); font-size:12px; font-weight:800; }
.dot2 { width:8px; height:8px; border-radius:50%; background:#9aa3b5; flex:none; }
.dot2.on { background:#15a05a; box-shadow:0 0 0 3px #d5f0e2; }
.dot2.warn, .dot2.boot { background:var(--or); animation:kpPulse 1.6s ease-in-out infinite; }
@keyframes kpPulse { 0%,100% { box-shadow:0 0 0 0 rgba(255,77,36,.55); } 50% { box-shadow:0 0 0 5px rgba(255,77,36,0); } }
.pcB { display:flex; flex-direction:column; gap:8px; padding:12px 14px 14px; flex:1; }
.pcN { display:flex; align-items:flex-start; justify-content:space-between; gap:8px; }
.pcN > div { min-width:0; }
.pcN h3 { margin:0; font-size:16px; line-height:1.25; font-weight:800; color:var(--ink); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pcN small { display:block; font-size:12px; color:var(--mut); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pcMeta { display:flex; flex-wrap:wrap; gap:6px 10px; align-items:center; font-size:12px; color:var(--mut); }
.pcA { display:flex; gap:6px; align-items:center; margin-top:auto; padding-top:4px; }
.pcA .btn.go { flex:1; }
.app .pcA .btn { padding:0 11px; }
.pcNote { font-size:12px; color:var(--warn); background:var(--warnbg); border-radius:8px; padding:8px 10px; }
/* web 1.162.0: the OS of a PC (§60), a PC without a screen, the OS filter */
.pcOs { position:absolute; right:10px; top:10px; display:flex; align-items:center; gap:5px; height:26px; padding:0 9px; border-radius:13px; background:rgba(255,255,255,.94); color:var(--ink); font-size:12px; font-weight:800; max-width:45%; }
.pcOs .ic { width:14px; height:14px; }
.pcOs span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pcNoScr { display:flex; flex-direction:column; align-items:center; gap:4px; padding:0 16px; text-align:center; color:#cfd6ee; }
.pcNoScr .ic { width:40px; height:40px; stroke-width:1.5; opacity:.9; }
.pcNoScr b { font-size:14px; font-weight:800; color:#fff; }
.pcNoScr small { font-size:12px; color:#b9c2e6; }
.pc.noScreen .pcTh { background:radial-gradient(120% 140% at 80% 0%, #24406a 0, #0f2a45 55%, #0a1a2e 100%); }
.pc.noScreen .pcTh .pcHost { text-align:center; }
.app .btn .soon { font-size:11px; font-weight:700; opacity:.8; }
.app .chips button.zero:not(.on) { opacity:.55; }
.osCell .osName { display:inline-flex; align-items:center; gap:6px; }
.osCell .osMini { width:14px; height:14px; color:var(--mut); }
.tbl td small.noScrMark { color:var(--warn); font-weight:700; }
.ver { display:inline-block; font:600 12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding:1px 7px; border-radius:6px; background:var(--line2); color:var(--ink); }
.ver.old { background:var(--warnbg); color:var(--warn); }

/* the list (variant 01) */
.card { background:var(--surf); border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.card.pad { padding:18px 20px; overflow:visible; }
.card:has(> .tbl) { overflow-x:auto; }
.tbl { width:100%; border-collapse:collapse; font-size:14px; }
.tbl th { text-align:left; font-size:12px; font-weight:700; color:var(--mut); padding:10px 14px; background:#f8f9fc; border-bottom:1px solid var(--line); white-space:nowrap; }
.tbl td { padding:11px 14px; border-bottom:1px solid var(--line2); vertical-align:middle; }
.tbl tbody tr:last-child td { border-bottom:0; }
.tbl td small { display:block; font-size:12px; color:var(--mut); }
.tbl .c-act { text-align:right; white-space:nowrap; }
.tbl .acts { display:inline-flex; gap:6px; align-items:center; }
.st { display:inline-flex; align-items:center; gap:7px; font-weight:600; white-space:nowrap; }
.st.on { color:var(--ok); }
.st.off { color:var(--mut); font-weight:500; }
.st.warn, .st.boot { color:var(--warn); }
.empty { color:var(--mut); text-align:center; padding:28px 12px; }
.empty:empty { display:none; }
.pager { display:flex; align-items:center; gap:10px; justify-content:center; }

/* security */
.cards2 { display:grid; grid-template-columns:repeat(auto-fit, minmax(340px, 1fr)); gap:16px; align-items:start; }
.cards2 > [hidden] { display:none !important; }
#totpPanel > div > div[style*="display:flex"] { flex-wrap:wrap; margin-top:6px; }
#totpPanel input[style*="width:"] { width:auto !important; flex:1 1 150px; }
#inviteLink { width:100%; margin-top:10px; font-size:12px; }

/* dialogs */
.dlgWrap { position:fixed; inset:0; z-index:900; display:flex; align-items:center; justify-content:center; padding:16px; background:rgba(9,14,35,.5); }
.dlgWrap[hidden] { display:none; }
.dlg { width:min(520px, 100%); max-height:100%; overflow:auto; background:var(--surf); color:var(--ink); border-radius:16px; padding:20px 22px 22px; box-shadow:0 30px 80px rgba(0,0,0,.3); animation:kpDlg .18s cubic-bezier(.23,1,.32,1); }
.dlgSm { width:min(400px, 100%); display:flex; flex-direction:column; gap:10px; }
@keyframes kpDlg { from { opacity:0; transform:translateY(8px) scale(.98); } }
.dlgHead { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:0 0 6px; }
.dlgHead h2 { margin:0; font-size:18px; }
.dlgId { margin:0 0 14px; }
.dlgWrap .field { margin:0 0 16px; }
.dlgWrap .field input:not([type=checkbox]), .dlgWrap .field select { width:100%; }
.dlgWrap .dangerZone { padding-top:14px; border-top:1px solid var(--line); display:flex; flex-direction:column; gap:8px; }
.dlgWrap .dangerZone label { margin:0; }
.dlgWrap .dangerZone .btn { align-self:flex-start; }
.claimRow { display:flex; gap:8px; margin-top:8px; }
.claimRow input { flex:1; min-width:0; }
.steps { margin:6px 0 0; padding-left:22px; display:flex; flex-direction:column; gap:14px; }
.steps li { padding-left:4px; }
.setupRow { display:flex; flex-wrap:wrap; gap:8px 12px; align-items:center; margin-top:8px; }
/* the installer for the account (stage 9, web/installcodes.js) */
.bindLead { margin:4px 0 0; font-size:14px; line-height:1.45; }
.osWarn { margin:8px 0 0; padding:9px 12px; border-radius:8px; background:var(--warnbg); color:var(--warn); font-size:13px; line-height:1.45; font-weight:600; }
.dlgWrap .btn.wrapBtn { white-space:normal; height:auto; min-height:38px; padding:8px 14px; text-align:left; max-width:100%; }
.dlgWrap select.usesSel { width:auto; height:26px; padding:0 4px; margin:0 2px; font-size:12px; border-radius:6px; vertical-align:middle; }
.ownCodes { margin-top:12px; }
.ownCodes h3, .dlgWrap h3.bindAlt { margin:0 0 6px; font-size:14px; }
.dlgWrap h3.bindAlt { margin-top:18px; padding-top:14px; border-top:1px solid var(--line); }
.ownCodes ul { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:6px; }
.codeRow { display:flex; flex-wrap:wrap; align-items:center; gap:4px 10px; padding:8px 10px; border:1px solid var(--line); border-radius:8px; font-size:13px; }
.codeRow .codeWhat { flex:1 1 200px; min-width:0; display:flex; flex-direction:column; gap:2px; }
.codeRow .muted { font-size:12px; }
.codeRow .codeUsed { font-size:13px; }
.editCode { display:block; margin-top:2px; }
#ownSetupStatus .btn { margin-left:4px; vertical-align:middle; }
/* the Linux tab of «Привязать ПК» (stage C of the Linux client, web/installcodes.js) */
.bindTabsRow { margin:6px 0 12px; }
.bindTabsRow .supTabs { max-width:320px; }
.cmdBox { margin:6px 0 0; padding:10px 12px; border:1px solid var(--line); border-radius:8px; background:var(--line2); color:var(--ink); font:12.5px/1.5 ui-monospace, Menlo, Consolas, monospace; white-space:pre-wrap; overflow-wrap:anywhere; user-select:all; }
.linuxCmd { margin-top:12px; }
.linuxCmd .setupRow { margin-top:8px; }
.linuxHelp { margin-top:12px; font-size:13px; line-height:1.45; }
.linuxHelp summary { cursor:pointer; font-weight:700; }
.linuxHelp ul { margin:8px 0 0; padding-left:20px; display:flex; flex-direction:column; gap:6px; }
.linuxHelp code { font-size:12px; overflow-wrap:anywhere; }
#linuxStatus .btn { margin-left:4px; vertical-align:middle; }
#pinDlgInput { width:100%; font-size:20px; letter-spacing:.2em; text-align:center; height:48px; }
/* a PC without a PIN (agent 0.10.36, web/pinoffer.js): the dialog that
   offers one, and the quiet «без PIN» on the tile and in the list */
.dlgWrap input.pinNewIn { width:100%; font-size:20px; letter-spacing:.2em; text-align:center; height:48px; }
.dlgWrap input.pinNewIn::placeholder { letter-spacing:0; font-size:15px; }
.dlgWrap input.pinNewIn.err { border-color:var(--bad); }
.pinNewMsg { padding:8px 10px; border-radius:8px; background:var(--badbg); color:var(--bad); font-size:13px; font-weight:600; }
.pinNewMsg[hidden] { display:none; }
.dlgWrap .hint.pinWhy { margin:0; font-size:12.5px; line-height:1.45; }
.dlgWrap #pinNewSkipHint { margin:-4px 0 0; }
.noPin { display:inline-block; padding:1px 7px; border-radius:6px; background:var(--line2); color:var(--mut); font-size:12px; font-weight:700; white-space:nowrap; }
.tbl td small .noPin { margin-top:3px; }

/* support (2026-11-07, the owner: "it does not match our design, the fonts
   and so on"): a sheet on the right, the same over the cabinet and over
   the session (the class beats the old tag rules there). The head, the
   tabs and the answer stay put, the middle scrolls. */
.dlgWrap.supPanel { justify-content:flex-end; align-items:stretch; padding:0; z-index:950; animation:kpShade .2s ease-out; }
@keyframes kpShade { from { background:rgba(9,14,35,0); } }
.supBox { display:flex; flex-direction:column; width:min(480px, 100vw); height:100%; background:var(--surf); color:var(--ink); box-shadow:-24px 0 64px rgba(9,14,35,.25); animation:kpSheet .28s cubic-bezier(.32,.72,0,1); }
@keyframes kpSheet { from { transform:translateX(100%); } }
.supHead { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 14px 14px 20px; flex:none; }
.supHeadT { display:flex; align-items:center; gap:12px; min-width:0; }
.supHeadIc { display:grid; place-items:center; width:40px; height:40px; border-radius:11px; background:var(--navy); color:var(--or); flex:none; }
.dlgWrap .supHead h2 { margin:0; font-size:18px; line-height:1.2; }
.supHead small { display:block; margin-top:2px; font-size:12.5px; color:var(--mut); }
.supTabsRow { flex:none; padding:0 20px 14px; border-bottom:1px solid var(--line); }
.supTabs { display:grid; grid-template-columns:1fr 1fr; gap:2px; padding:3px; border-radius:10px; background:var(--line2); }
.dlgWrap .supTabs button { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-width:0; height:34px; margin:0; padding:0 8px; border:0; border-radius:8px; background:none; color:var(--mut); font:inherit; font-size:13.5px; font-weight:700; white-space:nowrap; cursor:pointer; transition:background-color .15s, color .15s; }
.dlgWrap .supTabs button.on { background:var(--surf); color:var(--ink); box-shadow:0 1px 2px rgba(16,28,75,.14); }
@media (hover:hover) { .dlgWrap .supTabs button:not(.on):hover { background:rgba(255,255,255,.6); color:var(--ink); } }
.supTabs em { display:inline-grid; place-items:center; min-width:20px; height:20px; padding:0 6px; border-radius:10px; background:var(--line); color:var(--mut); font-style:normal; font-size:11.5px; font-weight:800; font-variant-numeric:tabular-nums; }
.supTabs em.unread { background:var(--or); color:#fff; }
.supBody { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:18px 20px 22px; }
#supText { min-height:150px; }
.supNote { margin:12px 0 0; padding:10px 12px; border-radius:9px; background:var(--line2); color:var(--ink); font-size:13px; line-height:1.4; }
.supNote:empty { display:none; }
.supNote.ok { background:var(--okbg); color:var(--ok); }
.supNote.bad { background:var(--badbg); color:var(--bad); }
.supNote.info { background:var(--warnbg); color:var(--warn); }
.supInfo { display:flex; align-items:flex-start; gap:10px; margin-top:18px; padding:12px 14px; border:1px solid var(--line2); border-radius:10px; background:#f7f9fc; color:var(--mut); font-size:12.5px; line-height:1.45; }
.dlgWrap .supInfo .ic { width:18px; height:18px; margin-top:1px; color:var(--ok); }

/* the list: cards, an orange edge on an unread answer */
.supList { display:flex; flex-direction:column; gap:10px; }
.supList > .supNote { margin:0 0 2px; }
.dlgWrap .supItem { position:relative; display:flex; flex-direction:column; gap:6px; width:100%; margin:0; padding:13px 14px 13px 16px; border:1px solid var(--line); border-radius:12px; background:var(--surf); color:var(--ink); font:inherit; text-align:left; cursor:pointer; overflow:hidden; box-shadow:0 1px 2px rgba(16,28,75,.04); transition:border-color .15s, box-shadow .15s, transform .12s cubic-bezier(.23,1,.32,1); }
.dlgWrap .supItem:active { transform:scale(.99); }
@media (hover:hover) { .dlgWrap .supItem:hover { border-color:var(--line-in); box-shadow:0 2px 12px rgba(16,28,75,.08); } }
.dlgWrap .supItem.unread { border-color:#ffcabd; background:#fffaf8; }
.supItem.unread::before { content:""; position:absolute; left:0; top:0; bottom:0; width:4px; background:var(--or); }
.supItemTop { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.supItemT { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; font-size:14.5px; font-weight:800; line-height:1.35; overflow-wrap:anywhere; }
.supItemMeta { display:flex; align-items:center; flex-wrap:wrap; gap:6px 8px; font-size:12.5px; color:var(--mut); }
.supNewMark { display:inline-flex; align-items:center; gap:5px; height:20px; margin-left:auto; padding:0 8px; border-radius:10px; background:#ffe8e1; color:#b3300d; font-size:11.5px; font-weight:800; white-space:nowrap; }
.supNewMark::before { content:""; width:6px; height:6px; border-radius:50%; background:var(--or); }
.supPill { display:inline-flex; align-items:center; flex:none; height:22px; padding:0 9px; border-radius:11px; font-size:12px; font-weight:700; white-space:nowrap; }
.supPill:empty { display:none; }
.supPill.st-new { background:#e8edfb; color:#1b2a63; }
.supPill.st-open { background:var(--warnbg); color:var(--warn); }
.supPill.st-closed { background:var(--line2); color:var(--mut); }
.supEmpty { display:flex; flex-direction:column; align-items:center; gap:6px; padding:40px 12px 24px; text-align:center; }
.supEmptyIc { display:grid; place-items:center; width:60px; height:60px; margin-bottom:8px; border-radius:18px; background:var(--line2); color:var(--navy); }
.dlgWrap .supEmptyIc .ic { width:28px; height:28px; }
.supEmpty b { font-size:16px; font-weight:800; }
.supEmpty p { max-width:300px; margin:0 0 12px; color:var(--mut); font-size:13.5px; }

/* the conversation: a chat, the client on the right, support on the left */
.dlgWrap .supBack { margin:0 0 14px; padding:0 12px 0 8px; }
.supThreadHead { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.supTitle { min-width:0; font-size:17px; font-weight:800; line-height:1.3; overflow-wrap:anywhere; }
.supMeta { margin:4px 0 18px; font-size:12.5px; color:var(--mut); }
.supMsgs { display:flex; flex-direction:column; gap:14px; }
.supMsg { display:flex; flex-direction:column; max-width:86%; min-width:0; }
.supMsg.mine { align-self:flex-end; align-items:flex-end; }
.supMsg.support { align-self:flex-start; align-items:flex-start; }
.supMsgWho { display:flex; align-items:center; gap:6px; margin:0 0 4px 4px; font-size:12px; font-weight:800; color:var(--navy); }
.supMsgWho::before { content:""; width:8px; height:8px; border-radius:50%; background:var(--or); }
.supMsgB { max-width:100%; padding:10px 14px; border-radius:16px; font-size:14px; line-height:1.5; white-space:pre-wrap; overflow-wrap:anywhere; }
.supMsg.mine .supMsgB { border-bottom-right-radius:5px; background:var(--navy); color:#fff; }
.supMsg.support .supMsgB { border-bottom-left-radius:5px; background:#eef1f6; color:var(--ink); }
.supMsgAt { margin:4px 6px 0; font-size:11.5px; color:var(--mut); }
.supCompose { flex:none; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:8px; padding:12px 20px calc(12px + env(safe-area-inset-bottom, 0px)); border-top:1px solid var(--line); background:var(--surf); }
.dlgWrap .supCompose textarea { height:46px; min-height:44px; max-height:160px; resize:none; }
.dlgWrap .supCompose .btn { height:44px; }
.supCompose .supNote { order:-1; grid-column:1 / -1; margin:0; }

/* a toast of the cabinet: the session's own (#pageToast) is not on screen there */
.supToast { position:fixed; left:50%; bottom:22px; z-index:960; display:flex; align-items:center; gap:12px; max-width:calc(100vw - 24px); padding:10px 8px 10px 16px; border-radius:12px; background:#101C4B; color:#fff; font:600 14px/1.35 Manrope, system-ui, sans-serif; box-shadow:0 18px 50px rgba(9,14,35,.35); transform:translateX(-50%); animation:kpToast .3s cubic-bezier(.23,1,.32,1); }
.supToast[hidden] { display:none; }
.supToast::before { content:""; flex:none; width:10px; height:10px; border-radius:50%; background:#FF4D24; box-shadow:0 0 0 4px rgba(255,77,36,.25); }
.supToast button { flex:none; height:32px; margin:0; padding:0 12px; border:0; border-radius:8px; background:#FF4D24; color:#101C4B; font:inherit; font-weight:800; cursor:pointer; }
.supToast button:hover { background:#ff6a46; }
.supToast .supToastX { width:32px; padding:0; background:transparent; color:#b9c2e6; font-size:20px; line-height:1; }
.supToast .supToastX:hover { background:rgba(255,255,255,.1); color:#fff; }
@keyframes kpToast { from { opacity:0; transform:translate(-50%, 12px); } }

/* the unread dot (2026-11-07, the owner: "twice as big, and it should wink
   now and then to draw the eye"): the number inside, a short push and a
   ring going out every 2.5 s */
.supportBtn { position:relative; }
.supDot { position:absolute; top:-9px; right:-8px; z-index:1; display:inline-grid; place-items:center; min-width:22px; height:22px; padding:0 5px; border:2px solid #fff; border-radius:11px; background:#FF4D24; color:#fff; font:800 12px/1 Manrope, system-ui, sans-serif; font-variant-numeric:tabular-nums; box-sizing:border-box; pointer-events:none; animation:kpWink 2.5s cubic-bezier(.23,1,.32,1) infinite; }
.supDot[hidden] { display:none; }
.supDot::after { content:""; position:absolute; inset:-2px; border-radius:inherit; box-shadow:0 0 0 2px #FF4D24; opacity:0; animation:kpRing 2.5s ease-out infinite; }
.app .nv .supDot { position:relative; top:auto; right:auto; margin-left:auto; border-color:var(--navy); }
@keyframes kpWink { 0%, 76%, 100% { transform:scale(1); } 82% { transform:scale(1.3); } 89% { transform:scale(.92); } 95% { transform:scale(1.05); } }
@keyframes kpRing { 0%, 76% { opacity:0; transform:scale(1); } 79% { opacity:.85; } 100% { opacity:0; transform:scale(2.1); } }

@media (max-width:520px) {
  .supBox { box-shadow:none; }
  .supHead { padding:12px 8px 12px 16px; }
  .supTabsRow { padding:0 16px 12px; }
  .dlgWrap .supTabs button { padding:0 4px; font-size:13px; }
  .supBody { padding:16px; }
  .supCompose { padding:10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .supMsg { max-width:92%; }
  .supToast { bottom:14px; }
}

/* the session's own bar (old look until step 3) */
.sessTop { display:flex; align-items:center; gap:12px; margin:0 0 12px; font-family:Manrope, system-ui, sans-serif; }
.sessTop b { color:#e7ebf7; font-size:15px; }

/* folders of the PCs (web/folders.js, web 1.149.0; the mock-up's variant
   А): a header line per folder, «Основные» on top always open, the
   others fold by the arrow (the height animates); the same headers as
   rows of the list view */
.app #folderAddBtn[hidden], .app .fadd[hidden], .fdraft[hidden] { display:none; }
#pcGrid.fwrap { display:flex; flex-direction:column; gap:6px; }
.fsec { --fc:var(--mut); }
.fsec + .fsec { border-top:1px solid var(--line); padding-top:6px; }
.fhead { display:flex; align-items:center; gap:4px; min-height:48px; min-width:0; }
.app .fhBtn { display:flex; align-items:center; gap:10px; flex:1; min-width:0; height:48px; margin:0; padding:0 10px 0 6px; border:0; border-radius:10px; background:none; color:var(--ink); font:inherit; text-align:left; cursor:pointer; }
.app .fhBtn:disabled { cursor:default; opacity:1; }
.app .fhBtn.fhIcons { flex:none; padding-right:0; }
@media (hover:hover) { .app .fhBtn:not(:disabled):hover { background:rgba(16,28,75,.05); } }
.app .fhBtn .chev { width:18px; height:18px; color:var(--mut); transition:transform .22s cubic-bezier(.23,1,.32,1); }
.fsec.closed .fhBtn .chev, .fgroup.closed .fhBtn .chev { transform:rotate(-90deg); }
.app .fhBtn .fic, .fdraft .fic { width:20px; height:20px; color:var(--fc, var(--mut)); }
.fsec.fmain .fhBtn .fic, .fgroup.fmain .fhBtn .fic { color:var(--or); }
.fname { font-weight:800; font-size:15px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }
.fcount { display:flex; align-items:center; gap:8px; margin-left:4px; color:var(--mut); font-size:13px; white-space:nowrap; }
.fdots { display:inline-flex; align-items:center; gap:3px; }
.fdots i { width:7px; height:7px; border-radius:50%; background:#c3c9d6; }
.fdots i.on { background:#15a05a; }
.fdots em { font-style:normal; font-size:12px; margin-left:2px; }
.fhint { margin-left:8px; color:var(--mut); font-size:12px; font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }
.fsearch { margin-left:8px; font-size:12px; color:var(--or); font-weight:700; white-space:nowrap; }
.app .fmore { color:var(--mut); flex:none; }
.fbody { display:grid; grid-template-rows:1fr; transition:grid-template-rows .26s cubic-bezier(.23,1,.32,1), opacity .2s; }
.fsec.closed .fbody { grid-template-rows:0fr; opacity:0; }
.fbody > div { overflow:hidden; min-height:0; }
.fsec.closed .fbody > div { visibility:hidden; transition:visibility 0s .26s; }
.finner { padding:4px 0 18px; }
.fempty { margin:2px 0 4px 36px; padding:14px 16px; border:1.5px dashed var(--line-in); border-radius:12px; color:var(--mut); font-size:13px; }
.app .fnameIn { flex:1; min-width:0; height:36px; margin:0 0 0 4px; padding:0 10px; border:1px solid var(--or); border-radius:8px; background:var(--surf); color:var(--ink); font:inherit; font-weight:800; font-size:15px; outline:none; }
.app .fadd { display:flex; align-items:center; gap:10px; width:100%; height:46px; margin:0; padding:0 12px; border:1.5px dashed var(--line-in); border-radius:12px; background:none; color:var(--mut); font:inherit; font-weight:700; cursor:pointer; }
.app .fadd .ic { width:18px; height:18px; }
@media (hover:hover) { .app .fadd:hover { border-color:var(--navy); color:var(--ink); } }
.fdraft { padding:4px 6px 8px; border:1.5px dashed var(--or); border-radius:12px; }
.fdraft .fhIcons { display:inline-grid; place-items:center; width:30px; flex:none; }
.fdraftHint { color:var(--mut); font-size:12px; white-space:nowrap; margin-left:6px; }
.fdraftErr { color:var(--bad); font-size:13px; padding:0 8px; }
.fdraftErr:empty { display:none; }
/* drag and drop (the mouse only) */
.pc[draggable="true"] { cursor:grab; }
.pc.dragging { opacity:.45; }
.fsec.drop > .fhead { outline:2px dashed var(--or); outline-offset:-2px; border-radius:10px; background:#fff3ee; }
.fsec.drop .fempty { border-color:var(--or); color:var(--ink); }
/* the list view: a folder's header is a row */
.tbl .fhRow td { padding:2px 6px; background:#f8f9fc; border-bottom:1px solid var(--line); }
.tbl .fgroup + .fgroup .fhRow td { border-top:1px solid var(--line); }
.tbl .fgroup.closed tr:not(.fhRow) { display:none; }
.tbl .fEmptyRow td { color:var(--mut); font-size:13px; }
/* the menus of «⋯»: the body's, not under .app */
.fpop { position:fixed; z-index:950; min-width:220px; max-width:min(320px, calc(100vw - 16px)); max-height:calc(100vh - 16px); overflow:auto; padding:6px; background:#fff; border:1px solid #e2e6ee; border-radius:12px; box-shadow:0 12px 32px rgba(16,28,75,.18); font:14px/1.4 Manrope, system-ui, -apple-system, "Segoe UI", sans-serif; color:#141d3a; animation:kpDlg .14s cubic-bezier(.23,1,.32,1); }
.fpop h4 { margin:6px 10px 4px; font-size:12px; color:#5b6580; font-weight:700; }
.fpop .fpopNote { margin:4px 10px 6px; font-size:12px; color:#5b6580; }
.fpop button { display:flex; align-items:center; gap:10px; width:100%; min-height:38px; margin:0; padding:0 10px; border:0; border-radius:8px; background:none; color:inherit; font:inherit; text-align:left; cursor:pointer; }
.fpop button span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.fpop button:hover, .fpop button:focus-visible { background:#f2f4f9; outline:none; }
.fpop .ic { width:18px; height:18px; flex:none; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; color:#5b6580; }
.fpop button.cur { font-weight:800; }
.fpop button.cur .ic { color:#13794a; }
.fpop button.bad { color:#b42d1a; }
.fpop button.bad .ic { color:#b42d1a; }
.fpop button:disabled { opacity:.45; cursor:default; }
.fpop hr { border:0; border-top:1px solid #eef1f6; margin:6px 4px; }
.fpop .fcolors { display:flex; gap:8px; padding:6px 10px 8px; }
.fpop .fcolors button { width:26px; min-height:26px; height:26px; padding:0; border-radius:50%; border:2px solid #fff; box-shadow:0 0 0 1px #cfd5e1; }
.fpop .fcolors button.cur { box-shadow:0 0 0 2px #141d3a; }
.fdelBtns { display:flex; gap:8px; justify-content:flex-end; flex-wrap:wrap; margin-top:16px; }
/* as wide as its words, up to the screen (left:50% alone left it half the
   screen: three lines on a phone) */
#folderToast { width:max-content; max-width:calc(100vw - 24px); }

/* a phone or a narrow window: the menu slides in */
@media (max-width:900px) {
  .app { grid-template-columns:1fr; }
  .side { position:fixed; left:0; top:0; bottom:0; width:272px; transform:translateX(-100%); transition:transform .24s cubic-bezier(.32,.72,0,1); }
  body.navOpen .side { transform:none; box-shadow:20px 0 60px rgba(0,0,0,.3); }
  body.navOpen .sideBg { display:block; position:fixed; inset:0; background:rgba(9,14,35,.45); z-index:39; }
  .burger { display:inline-grid !important; }
  .top { padding:0 12px; gap:8px; }
  .app label.search { width:auto; flex:1; min-width:0; }
  .crumb { display:none; }
  .top .btn span { display:none; }
  .top .btn { padding:0 10px; }
  .content { padding:16px 14px 24px; }
  .pcs { grid-template-columns:1fr; gap:14px; }
  .tbl thead { display:none; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display:block; width:100%; }
  .tbl tr { padding:12px 14px; border-bottom:1px solid var(--line2); }
  .tbl td { border:0; padding:3px 0; }
  .tbl .c-act { text-align:left; padding-top:8px; }
  /* folders: the header row as a line, no hints that do not fit */
  .tbl .fhRow { padding:0; }
  .tbl .fhRow td { padding:2px 4px; }
  .tbl .fgroup.closed tr:not(.fhRow) { display:none; }
  .fhint, .fdraftHint { display:none; }
  .fempty { margin-left:0; }
  /* the row's buttons wrap: «⋯» (the folder) went past the card's edge */
  .tbl .acts { display:flex; flex-wrap:wrap; }
  .cards2 { grid-template-columns:1fr; }
}
@media (max-width:420px) {
  .app .seg button span, .app .blurBtn span { display:none; }
  .ph .tb { width:100%; justify-content:space-between; }
  .fcount .fdots { display:none; }
}
@media (prefers-reduced-motion:reduce) {
  .pc, .side, .dlg, .app .btn, .dot2.warn, .dot2.boot { transition:none; animation:none; }
  .fbody, .app .fhBtn .chev, .fpop { transition:none; animation:none; }
  .supDot, .supDot::after, .dlgWrap.supPanel, .supBox, .supToast, .dlgWrap .supItem, .dlgWrap .supTabs button { transition:none; animation:none; }
}

/* 2FA setup (2026-11-08): steps, the QR code, the key in big letters */
.app .totpSteps { margin:8px 0 6px; padding-left:20px; display:grid; gap:12px; }
.app .totpSteps li { line-height:1.5; }
.app .totpApps a { color:var(--accent, #ff6a3d); }
.app .totpQrWrap { margin:8px 0; width:232px; max-width:100%; background:#fff; border-radius:8px; padding:0; line-height:0; }
.app .totpQrWrap canvas { width:232px; max-width:100%; height:auto; image-rendering:pixelated; }
.app .totpOpen { display:inline-block; text-decoration:none; }
.app .totpKeyRow { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin:6px 0 2px; }
.app .totpKey { font:600 17px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing:.06em; background:var(--line2); border:1px solid var(--line); border-radius:8px; padding:8px 12px; color:var(--ink); user-select:all; max-width:100%; }
/* a grid item takes its content's width otherwise: on a phone the card
   came out 3 px wider than the screen */
.app #totpPanel, .app .totpSetup, .app .totpSteps li { min-width:0; overflow-wrap:anywhere; }
.app .totpConfirmCode { width:110px !important; font-size:16px; }
.app .linkbtn { background:none; border:0; padding:0; color:var(--accent, #ff6a3d); cursor:pointer; font:inherit; text-decoration:underline; }
/* «Устройства, с которых входили» (web/knowndevices.js, 2026-11-08): the whole width, the table scrolls on a phone */
#knownDevicesPanel { grid-column:1 / -1; }
.tblWrap { overflow-x:auto; }
#knownDevicesTable td small { color:var(--mut); }
/* «Активные входы» (web/knowndevices.js, 2026-11-08): the same look as the
   devices; on a narrow screen the rows stack and each line says what it is */
#signInsPanel { grid-column:1 / -1; }
#signInsTable td small { color:var(--mut); }
/* web 1.144.0: the old sign-ins without a browser, one row */
#signInsTable tr.old td:first-child { color:var(--mut); }
#signInsTable .lbl { display:none; color:var(--mut); }
#signInsTable td.c-act { text-align:right; }
.signInsBtns { display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; }
.signInsBtns .btn { white-space:normal; height:auto; min-height:32px; padding-top:6px; padding-bottom:6px; text-align:left; }
@media (max-width:900px) {
  #signInsTable .lbl { display:inline; }
  #signInsTable td.c-act { text-align:left; }
}

/* «Оповещения» (web/alerts.js, stage F, 2026-11-27): the table as the other
   lists; on a narrow screen the rows stack and each line says what it is */
.alBar { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:16px 0 12px; }
.alH2 { margin-top:28px !important; }
.app .hint.alWarn { color:var(--bad); font-weight:700; }
#alertsTable .lbl, #alertsLog .lbl { display:none; color:var(--mut); }
#alertsTable td small { color:var(--mut); }
.app .alChk { display:inline-flex; align-items:center; gap:8px; margin:0; font-weight:600; cursor:pointer; }
.app .alChk input { width:20px; height:20px; margin:0; accent-color:var(--navy); cursor:pointer; }
.app .alChk span { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.alMaint select { width:100%; max-width:240px; }
@media (max-width:900px) {
  #alertsTable .lbl, #alertsLog .lbl { display:inline; }
  .app .alChk span { position:static; width:auto; height:auto; overflow:visible; clip:auto; }
  #alertsTable tr { padding:14px; }
  #alertsTable td { padding:5px 0; }
  .alMaint select { max-width:none; }
}
