/* =============================================================================
   MyDriveSpace design system — Cloud Web Hosting theme, DSM-style layouts.
   White surfaces, flat colours (no gradients), DM Sans headings, Inter Tight body.
   ============================================================================= */
:root {
  --accent: #4C21FF;                 /* brand colour — overridden from Control Panel → Appearance */
  --accent-soft: color-mix(in srgb, var(--accent) 9%, #fff);
  --accent-line: color-mix(in srgb, var(--accent) 28%, #fff);
  --accent-ink: color-mix(in srgb, var(--accent) 82%, #000);
  --navy: #04162E; --deep: #1E1450;
  --bg: #F4F5FF; --bg-2: #EEF0FA; --surface: #FFFFFF; --surface-2: #F8F9FD; --surface-3: #F1F3F9;
  --text: #0D0D13; --text-2: #3B3F4C; --muted: #6B7080; --faint: #9A9FB0;
  --border: #E4E7F0; --border-2: #D3D8E4;
  --ok: #00A383; --warn: #E08A00; --err: #E5383B; --info: #1F7AE0; --orange: #F66426;
  --ok-soft: #E3F7F2; --warn-soft: #FFF4DE; --err-soft: #FDECEC; --info-soft: #E6F0FC;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 7px 15px rgba(46, 46, 46, .06), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-lg: 0 24px 64px -16px rgba(4, 22, 46, .28), 0 6px 18px rgba(4, 22, 46, .08);
  --radius: 12px; --radius-sm: 8px; --radius-lg: 16px;
  --f-head: "DM Sans", "Inter Tight", system-ui, sans-serif;
  --f-body: "Inter Tight", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;
  --pattern: radial-gradient(rgba(76, 33, 255, .07) 1px, transparent 1.3px) 0 0 / 22px 22px;
  --tb: 48px;                        /* desktop taskbar height */
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
/* Comfortable density on computer screens. 1.19.2 (owner): 100 % browser zoom looks like the browser's 110 % used to —
   the earlier .9 / .8 × 1.1. Applies to every page (desktop, apps, Drive, viewer, shared links). Phones and tablets keep full size. */
@media (min-width: 1100px) and (pointer: fine) { html { zoom: .99; } }
@media (min-width: 1440px) and (pointer: fine) { html { zoom: .88; } }
body { font: 14px/1.5 var(--f-body); color: var(--text-2); background: var(--bg); -webkit-font-smoothing: antialiased; overflow: hidden; letter-spacing: .1px; }
#app { height: 100%; }
a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; font-family: var(--f-head); font-weight: 700; color: var(--text); letter-spacing: -.01em; }
h1 { font-size: 26px; } h2 { font-size: 19px; } h3 { font-size: 15.5px; font-weight: 600; } h4 { font-size: 13.5px; font-weight: 600; }
p { margin: 0 0 .75em; }
code, .mono { font-family: var(--mono); font-size: 12.5px; }
::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: #CDD2DE; border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; } ::-webkit-scrollbar-thumb:hover { background-color: #B5BCCC; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 12.5px; } .tiny { font-size: 11.5px; } .bold { font-weight: 600; color: var(--text); }
.row { display: flex; align-items: center; gap: 8px; } .col { display: flex; flex-direction: column; gap: 8px; }
.wrap { flex-wrap: wrap; } .grow { flex: 1; min-width: 0; } .end { justify-content: flex-end; } .between { justify-content: space-between; }
.gap-0 { gap: 0; } .gap-4 { gap: 4px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.center { display: grid; place-items: center; } .hidden { display: none !important; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 15px; border-radius: var(--radius-sm); border: 1px solid var(--border-2);
  background: var(--surface); color: var(--text); font: 500 13.5px var(--f-head); letter-spacing: .2px; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s, color .12s, box-shadow .12s; user-select: none; text-decoration: none !important; }
.btn:hover { background: var(--surface-3); border-color: #C3C9D8; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn.danger { background: var(--err); border-color: var(--err); color: #fff; } .btn.danger:hover { background: #C92E31; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); } .btn.ghost:hover { background: var(--surface-3); }
.btn.soft { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); } .btn.soft:hover { background: color-mix(in srgb, var(--accent) 15%, #fff); }
.btn.sm { height: 28px; padding: 0 11px; font-size: 12.5px; border-radius: 7px; }
.btn.lg { height: 44px; padding: 0 22px; font-size: 15px; border-radius: 10px; }
.btn.icon { width: 34px; padding: 0; } .btn.icon.sm { width: 28px; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-group { display: inline-flex; } .btn-group .btn { border-radius: 0; } .btn-group .btn:first-child { border-radius: 8px 0 0 8px; } .btn-group .btn:last-child { border-radius: 0 8px 8px 0; } .btn-group .btn + .btn { margin-left: -1px; }
.btn-group .btn.active { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent-line); position: relative; z-index: 1; }
.pill-btn { height: 26px; padding: 0 14px; border-radius: 20px; border: 0; background: var(--surface-3); color: var(--text); font: 500 12.5px var(--f-head); cursor: pointer; }
.pill-btn:hover { background: #E3E7F1; } .pill-btn.primary { background: var(--accent-soft); color: var(--accent-ink); } .pill-btn:disabled { color: var(--faint); cursor: default; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > label { font-weight: 500; font-size: 13px; color: var(--text); font-family: var(--f-head); }
.field .hint { font-size: 12px; color: var(--muted); }
.input, select.input, textarea.input { width: 100%; height: 36px; padding: 0 11px; border-radius: var(--radius-sm); border: 1px solid var(--border-2); background: #fff; color: var(--text); font: 14px var(--f-body); transition: border-color .12s, box-shadow .12s; }
textarea.input { height: auto; min-height: 92px; padding: 9px 11px; resize: vertical; line-height: 1.5; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.input:disabled { background: var(--surface-2); color: var(--muted); }
.input.lg { height: 46px; font-size: 15px; border-radius: 10px; padding: 0 14px; }
.input-group { display: flex; } .input-group .input { border-radius: 8px 0 0 8px; } .input-group .btn { border-radius: 0 8px 8px 0; margin-left: -1px; height: 36px; }
.search-box { position: relative; } .search-box svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--faint); pointer-events: none; }
.search-box .input { padding-left: 34px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; color: var(--text-2); }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.toggle { position: relative; width: 38px; height: 22px; flex: none; cursor: pointer; }
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle span { position: absolute; inset: 0; background: #CBD1DD; border-radius: 22px; transition: background .18s; }
.toggle span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .18s; }
.toggle input:checked + span { background: var(--accent); } .toggle input:checked + span::after { transform: translateX(16px); }
.toggle input:disabled + span { opacity: .5; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.setting-row:last-child { border-bottom: 0; }
@media (max-width: 560px) { .setting-row { flex-wrap: wrap; row-gap: 8px; } .setting-row > div:first-child { flex: 1 1 170px; } }   /* phones: a wide control goes under its text */
.setting-row .t { font-weight: 600; color: var(--text); font-family: var(--f-head); } .setting-row .d { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.section-title { font: 600 12px var(--f-head); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 22px 0 10px; }
.section-title:first-child { margin-top: 0; }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.card.flat { box-shadow: none; } .card.pad-0 { padding: 0; } .card.tint { background: var(--surface-2); }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.card-title h3 { margin: 0; }
.stat { display: flex; flex-direction: column; gap: 2px; } .stat .v { font: 700 24px var(--f-head); color: var(--text); letter-spacing: -.02em; } .stat .l { font-size: 12.5px; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 20px; font: 600 11.5px var(--f-head); background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: #00795F; } .badge.warn { background: var(--warn-soft); color: #A86400; } .badge.err { background: var(--err-soft); color: #B4232A; } .badge.info { background: var(--info-soft); color: #155FB0; } .badge.accent { background: var(--accent-soft); color: var(--accent-ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); display: inline-block; flex: none; } .dot.ok { background: var(--ok); } .dot.warn { background: var(--warn); } .dot.err { background: var(--err); } .dot.info { background: var(--info); }
.alert { padding: 11px 14px; border-radius: 10px; border: 1px solid; font-size: 13px; display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; color: var(--text-2); }
.alert svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.alert.info { background: var(--info-soft); border-color: #C9DDF7; } .alert.info svg { color: var(--info); }
.alert.warn { background: var(--warn-soft); border-color: #F4DDAE; } .alert.warn svg { color: var(--warn); }
.alert.err { background: var(--err-soft); border-color: #F5C8C9; color: #9C1E24; } .alert.err svg { color: var(--err); }
.alert.ok { background: var(--ok-soft); border-color: #BDE8DD; } .alert.ok svg { color: var(--ok); }
.progress { height: 6px; border-radius: 6px; background: #E8EBF3; overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 6px; background: var(--accent); transition: width .35s; }
.progress.warn > i { background: var(--warn); } .progress.err > i { background: var(--err); } .progress.ok > i { background: var(--ok); }
.spinner { width: 20px; height: 20px; border: 2.5px solid #DDE1EC; border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { padding: 48px 20px; text-align: center; color: var(--muted); }
.empty svg { width: 44px; height: 44px; opacity: .45; margin-bottom: 8px; }
.kbd { font: 11px var(--mono); padding: 2px 6px; border: 1px solid var(--border-2); border-bottom-width: 2px; border-radius: 5px; background: var(--surface-2); }
.code-box { font-family: var(--mono); font-size: 13px; background: var(--surface-2); border: 1px dashed var(--border-2); border-radius: 9px; padding: 10px 12px; word-break: break-all; user-select: all; color: var(--text); }
.kv { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 8px 16px; font-size: 13.5px; } .kv > :nth-child(odd) { color: var(--muted); } .kv > :nth-child(even) { color: var(--text); word-break: break-word; }

/* ---------- tables ---------- */
.table-wrap { overflow: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font: 500 12.5px var(--f-head); color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--surface); position: sticky; top: 0; z-index: 1; white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--text-2); }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #F7F8FE; }
.table tr.sel, .table tr.sel:hover { background: var(--accent-soft) !important; }
.table .actions { text-align: right; white-space: nowrap; }
.table tr.clickable { cursor: pointer; }

/* ---------- tabs ---------- */
/* the base line is an inset shadow (not a border + negative margins) so the bar never shows a scrollbar */
.tabs { display: flex; gap: 4px; box-shadow: inset 0 -1px 0 var(--border); margin-bottom: 18px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { background: none; border: 0; padding: 10px 12px; font: 500 13.5px var(--f-head); color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; flex: none; }
.tabs button:hover { color: var(--text); } .tabs button.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- modal (DSM style; .wizard = coloured header) ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(4, 22, 46, .38); display: grid; place-items: center; z-index: 5000; padding: 16px; animation: fade .14s; }
.modal { background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-lg); width: min(540px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; animation: pop .16s cubic-bezier(.2,.9,.3,1.15); overflow: hidden; }
.modal.wide { width: min(820px, 100%); } .modal.xwide { width: min(1100px, 100%); }
.modal-head { padding: 16px 20px 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-head h3 { margin: 0; font-size: 16px; }
.modal.wizard .modal-head { background: var(--accent); color: #fff; padding: 14px 22px 24px; flex-direction: column; align-items: stretch; gap: 14px; }
.modal.wizard .modal-head .wz-app { display: flex; justify-content: space-between; align-items: center; font: 600 13px var(--f-head); }
.modal.wizard .modal-head h3 { color: #fff; font-size: 20px; }
.modal.wizard .modal-head .btn.ghost { color: #fff; } .modal.wizard .modal-head .btn.ghost:hover { background: rgba(255,255,255,.15); }
.modal-body { padding: 10px 20px 18px; overflow: auto; }
.modal.wizard .modal-body { padding: 22px 24px; min-height: 220px; }
.modal-foot { padding: 12px 20px 16px; display: flex; justify-content: flex-end; align-items: center; gap: 8px; border-top: 1px solid var(--border); }
@keyframes fade { from { opacity: 0; } } @keyframes pop { from { opacity: 0; transform: scale(.97) translateY(6px); } }

/* ---------- toasts & context menu ---------- */
.toasts { position: fixed; top: 54px; right: 16px; z-index: 9000; display: flex; flex-direction: column; gap: 8px; max-width: calc(100vw - 32px); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 10px; align-items: flex-start; background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow-lg); border-radius: 12px; padding: 12px 14px; min-width: 280px; max-width: 420px; animation: pop .18s; font-size: 13.5px; }
.toast .ti { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; background: var(--info); }
.toast .ti svg { width: 13px; height: 13px; } .toast.ok .ti { background: var(--ok); } .toast.err .ti { background: var(--err); } .toast.warn .ti { background: var(--warn); }
.menu { position: fixed; z-index: 6000; min-width: 210px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 5px; animation: pop .1s; }
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border: 0; background: none; color: var(--text); font: 13.5px var(--f-body); border-radius: 7px; cursor: pointer; text-align: left; }
.menu button:hover { background: var(--accent-soft); color: var(--accent-ink); } .menu button.danger { color: var(--err); } .menu button.danger:hover { background: var(--err-soft); color: var(--err); }
.menu button svg { width: 16px; height: 16px; color: var(--muted); } .menu button:hover svg { color: inherit; }
.menu hr { border: 0; border-top: 1px solid var(--border); margin: 4px 2px; }

/* ---------- login portal (two-step, illustration + card) ---------- */
.portal { position: relative; height: 100%; overflow: auto; background: #06142B; background-size: cover; background-position: center; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; }
.portal::before { content: ""; position: absolute; inset: 0; background: radial-gradient(rgba(140, 180, 255, .28) 1px, transparent 1.4px) 0 0 / 46px 46px, radial-gradient(rgba(140, 180, 255, .16) 1px, transparent 1.4px) 23px 23px / 46px 46px; pointer-events: none; }
.portal.custom::before { display: none; }
.portal-logo { position: absolute; top: 26px; left: 34px; height: 54px; z-index: 2; }
.portal-logo img { height: 54px; max-width: 220px; object-fit: contain; }
.portal-art { position: relative; z-index: 1; display: grid; place-items: center; padding: 40px; }
.portal-art img { width: min(560px, 90%); height: auto; }
.portal-side { position: relative; z-index: 1; display: grid; place-items: center; padding: 30px 24px; }
/* sign-in card: header (logo + portal) · body · footer strip — the same card for sign-in, 2-step, forgot and reset */
.login-card { position: relative; width: min(430px, 100%); background: #fff; border-radius: 18px; box-shadow: 0 1px 2px rgba(4, 22, 46, .2), 0 28px 70px rgba(0, 0, 0, .34); overflow: hidden; display: flex; flex-direction: column; }
/* 1.24.7 (owner): tight — 10 px from the logo to the first line of the card, no divider */
.lc-head { display: flex; align-items: center; gap: var(--lc-gap, 14px); padding: 22px 32px 0; }
/* 1.24.8: size from Appearance (--lc-logo / --lc-logo-c, automatic = 46 px built-in, 32 px high uploaded) and the space
   to the name (--lc-gap); an uploaded logo has no box or padding around it, so the space set is the space you see */
/* 1.24.9: the logo keeps its own proportions at every size — the exact height (px) is set on the IMAGE and its width
   follows (width: auto); nothing around it clips or stretches it. (1.24.8 set the height on the wrapper and 100 % on
   the image: the browser could not resolve that, used the picture's own size and the wrapper cropped it.) A very wide
   logo takes at most half of the header (the name keeps the other half) and is then shown whole (object-fit: contain),
   never cut or stretched. */
.lc-logo { display: flex; align-items: center; flex: none; max-width: 50%; min-width: 0; line-height: 0; }
.lc-logo img { display: block; height: var(--lc-logo, 46px); width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.lc-logo.custom img { height: var(--lc-logo-c, 32px); filter: none; }
.lc-head-t { flex: 1 1 auto; } .lc-brand .brand-name-img { max-width: 100%; object-fit: contain; object-position: left center; }
.lc-head-t { min-width: 0; } .lc-brand { font: 700 18px var(--f-head); color: var(--text); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-portal { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.lc-body { padding: 10px 32px 26px; min-height: 330px; display: flex; flex-direction: column; }
.lc-body:has(.lc-signin) { min-height: 0; }
.lc-body form, .lc-state { display: flex; flex-direction: column; flex: 1; }
.lc-title { font: 700 24px/1.25 var(--f-head); color: var(--text); margin: 0 0 6px; letter-spacing: -.015em; }
.lc-sub { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0 0 22px; }
/* the sign-in heading: one line, 8 px above the first field */
.lc-sub.lc-lead { font-family: var(--f-body); font-weight: 500; color: var(--text-2); line-height: 1.35; margin: 0 0 8px; }
/* no space is kept for an error that is not there (it appears above the button when there is one) */
.lc-signin .lc-error:empty { min-height: 0; margin: 0; }
.lc-signin .lc-btn { margin-top: 18px; }
.lc-signin .lc-error:not(:empty) + .lc-btn { margin-top: 4px; }
.lc-hint { color: var(--muted); font-size: 12.5px; margin: -10px 0 22px; }
.lc-field { display: block; margin-bottom: 14px; }
.lc-label { display: block; font: 600 12.5px var(--f-head); color: var(--text-2); margin-bottom: 6px; }
.lc-box { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px; border: 1.5px solid var(--border); border-radius: 12px; background: #fff; color: var(--faint); transition: border-color .15s, box-shadow .15s; }
.lc-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.lc-box input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: 15.5px var(--f-body); color: var(--text); height: 100%; }
.lc-box input.lc-code, .lc-code { letter-spacing: .35em; font: 600 18px var(--f-mono, monospace); }
.lc-eye { position: relative; border: 0; background: none; color: var(--faint); cursor: pointer; padding: 4px; display: grid; place-items: center; border-radius: 8px; }
.lc-eye:hover { color: var(--text-2); background: var(--surface-2); }
.lc-eye-off { position: absolute; left: 50%; top: 50%; width: 20px; height: 2px; background: currentColor; transform: translate(-50%, -50%) rotate(-45deg); border-radius: 2px; box-shadow: 0 0 0 1.5px #fff; }
.lc-user { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); margin: 0 0 18px; font-size: 14px; color: var(--text); }
.lc-av { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font: 700 13px var(--f-head); flex: none; }
.lc-user button { border: 0; background: #fff; color: var(--accent); cursor: pointer; font: 600 12.5px var(--f-head); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); }
.lc-user button:hover { border-color: var(--accent); }
.lc-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 4px; }
.lc-link { color: var(--accent); font: 600 13px var(--f-head); text-decoration: none; }
.lc-link:hover { text-decoration: underline; }
.lc-alt { text-align: center; margin-top: 16px; }
.lc-wrong .lc-box { border-color: var(--err); color: var(--err); } .lc-wrong .lc-box:focus-within { box-shadow: 0 0 0 4px color-mix(in srgb, var(--err) 14%, transparent); }
.lc-back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font: 600 13px var(--f-head); text-decoration: none; margin: 0 0 12px; align-self: flex-start; }
.lc-back svg { transform: rotate(180deg); } .lc-back:hover { color: var(--accent); }
.login-card .lc-error { display: flex; gap: 6px; align-items: flex-start; color: var(--err); font-size: 13px; min-height: 20px; margin: 4px 0 12px; }
.login-card .lc-error svg { flex: none; margin-top: 1px; }
.lc-btn { margin-top: auto; height: 50px; width: 100%; border: 0; border-radius: 12px; background: var(--accent); color: #fff; font: 600 15.5px var(--f-head); display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; transition: background .15s, transform .1s; }
.lc-btn:hover { background: var(--accent-ink); } .lc-btn:active { transform: translateY(1px); } .lc-btn:disabled { opacity: .65; cursor: default; }
.lc-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 2px; }
.lc-state { align-items: flex-start; }
.lc-state-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft, #EEE9FF); color: var(--accent); margin-bottom: 18px; }
.lc-state-ic.ok { background: var(--ok-soft); color: var(--ok); } .lc-state-ic.err { background: var(--err-soft); color: var(--err); } .lc-state-ic.info { background: var(--info-soft); color: var(--info); }
.lc-state > .spinner { margin: auto; }
.lc-meter { display: flex; align-items: center; gap: 5px; margin: -6px 0 14px; font-size: 12px; color: var(--muted); }
.lc-meter i { flex: 1; max-width: 46px; height: 4px; border-radius: 4px; background: var(--line); }
.lc-meter span { margin-left: 6px; }
.lc-meter[data-s="1"] i:nth-child(-n+1) { background: var(--err); } .lc-meter[data-s="2"] i:nth-child(-n+2) { background: var(--warn); }
.lc-meter[data-s="3"] i:nth-child(-n+3) { background: var(--ok); } .lc-meter[data-s="4"] i:nth-child(-n+4) { background: var(--ok); }
.lc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 32px; background: var(--surface-2); border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.lc-foot span { display: inline-flex; align-items: center; gap: 6px; } .lc-foot a { color: var(--muted); text-decoration: none; } .lc-foot a:hover { color: var(--accent); }
/* portal designs (Control Panel → Login Portal) */
.portal.bg-color::before, .portal.bg-image::before { display: none; }
.portal.layout-left { grid-template-columns: 1fr 1.1fr; }
.portal.layout-left .portal-side { order: -1; }
.portal.layout-center { grid-template-columns: 1fr; }
.portal.layout-center .login-card { box-shadow: 0 24px 70px rgba(4, 22, 46, .18); }
.portal.light .login-card { border: 1px solid var(--line); }
@media (max-width: 900px) { .portal.layout-left .portal-side { order: 0; } }
@media (max-width: 900px) { .portal { grid-template-columns: 1fr; } .portal-art { display: none; } .portal-side { padding: 70px 16px 24px; align-items: start; } }
@media (max-width: 480px) { .lc-logo img { height: min(var(--lc-logo, 46px), 64px); } .lc-logo.custom img { height: min(var(--lc-logo-c, 32px), 64px); } .lc-head { gap: min(var(--lc-gap, 14px), 20px); } }
@media (max-width: 480px) { .lc-head, .lc-body, .lc-foot { padding-left: 22px; padding-right: 22px; } .lc-title { font-size: 21px; } .login-card { border-radius: 16px; } }

/* setup wizard & simple auth cards */
.auth-page { height: 100%; overflow: auto; display: grid; place-items: center; padding: 24px 16px; background: var(--bg); position: relative; }
.auth-page::before { content: ""; position: absolute; inset: 0; background: var(--pattern); pointer-events: none; }
.auth-card { position: relative; width: min(440px, 100%); background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 34px 32px 26px; }
.auth-card.wide { width: min(660px, 100%); }
.brand-mark { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.brand-mark img { width: 46px; height: 46px; border-radius: 12px; object-fit: contain; }
.brand-mark .n { font: 700 20px var(--f-head); color: var(--text); letter-spacing: -.02em; } .brand-mark .t { font-size: 12.5px; color: var(--muted); }
.powered { text-align: center; margin-top: 18px; font-size: 12px; color: var(--muted); }
.steps { display: flex; gap: 6px; margin-bottom: 22px; } .steps i { flex: 1; height: 4px; border-radius: 4px; background: var(--border); } .steps i.on { background: var(--accent); }
.code-input { font: 600 18px var(--mono); letter-spacing: .12em; text-align: center; }

/* ---------- desktop (DSM layout) ---------- */
.desktop { position: relative; height: 100%; overflow: hidden; background-color: #EEF0FA; background-size: cover; background-position: center; }
.desktop.wp-cwh-light { background: #F4F5FF var(--pattern); }
.desktop.wp-cwh-navy { background-color: #06142B; }
.desktop.wp-cwh-navy::before { content: ""; position: absolute; inset: 0; background: radial-gradient(rgba(140, 180, 255, .28) 1px, transparent 1.4px) 0 0 / 46px 46px; pointer-events: none; }
.desktop.wp-plain { background: #EEF0F5; }
.desktop.wp-lavender { background: #E9E6FF; }
.taskbar { position: absolute; top: 0; left: 0; right: 0; height: var(--tb); background: rgba(255,255,255,.88); backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid rgba(4,22,46,.08); display: flex; align-items: stretch; z-index: 3000; }
.taskbar .tb-btn { height: var(--tb); min-width: 48px; padding: 0 13px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: transparent; color: #2A2F3D; cursor: pointer; font: 500 13px var(--f-head); position: relative; }
.taskbar .tb-btn:hover, .taskbar .tb-btn.on { background: rgba(4,22,46,.07); }
.taskbar .tb-btn svg { width: 21px; height: 21px; }
.taskbar .tb-start { min-width: 58px; margin: 5px 6px 5px 6px; height: calc(var(--tb) - 10px); border-radius: 10px; background: var(--accent); color: #fff; gap: 8px; padding: 0 14px; font: 600 14px var(--f-head); }
.taskbar .tb-start:hover, .taskbar .tb-start.on { background: var(--accent-ink); color: #fff; } .taskbar .tb-start svg { width: 22px; height: 22px; }
.taskbar .tb-app { max-width: 190px; border-right: 1px solid rgba(4,22,46,.06); }
.taskbar .tb-app.on { box-shadow: inset 0 -2px 0 var(--accent); }
.taskbar .tb-app.min { opacity: .65; }
.taskbar .tb-right { margin-left: auto; display: flex; }
.tb-count { position: absolute; top: 5px; right: 6px; min-width: 16px; height: 16px; border-radius: 10px; background: var(--err); color: #fff; font: 700 10px var(--f-head); display: grid; place-items: center; padding: 0 4px; }
.desk-icons { position: absolute; top: calc(var(--tb) + 18px); left: 14px; bottom: 14px; display: grid; grid-auto-flow: column; grid-template-rows: repeat(auto-fill, 112px); grid-auto-columns: 104px; gap: 6px; z-index: 1; align-content: start; }
.desk-icon { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 4px; border-radius: 10px; cursor: pointer; text-align: center; font: 500 12.5px var(--f-head); border: 0; background: none; color: #1B1F2B; }
.desk-icon:hover { background: rgba(255,255,255,.55); } .desk-icon.sel { background: rgba(76,33,255,.12); }
.desktop.dark-wp .desk-icon { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); } .desktop.dark-wp .desk-icon:hover { background: rgba(255,255,255,.12); }
.app-ic { display: block; flex: none; } .app-ic svg { width: 100%; height: 100%; display: block; }
/* 1.24.1: the Drive app shows the branding logo (any shape: fitted inside the icon square, never stretched) */
.app-ic.brand-ic { display: flex; align-items: center; justify-content: center; } .app-ic.brand-ic img { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; border-radius: 22%; display: block; user-select: none; -webkit-user-drag: none; }
.main-menu { position: absolute; top: var(--tb); left: 0; width: min(760px, 100vw); max-height: calc(100% - var(--tb)); overflow: auto; background: rgba(255,255,255,.97); backdrop-filter: blur(20px); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); padding: 18px 20px 22px; z-index: 3500; animation: fade .12s; border-radius: 0 0 14px 0; }
.main-menu .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 6px; margin-top: 14px; }
.main-menu .item { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 14px 6px; border-radius: 12px; border: 0; background: none; cursor: pointer; color: var(--text); font: 500 12.5px var(--f-head); text-align: center; }
.main-menu .item:hover { background: var(--accent-soft); }
.panel-pop { position: absolute; top: calc(var(--tb) + 6px); right: 8px; width: min(380px, calc(100vw - 16px)); max-height: calc(100% - 60px); overflow: auto; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 3500; animation: pop .12s; }
.panel-pop .pp-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); font: 600 14px var(--f-head); color: var(--text); }
.widgets { position: absolute; top: calc(var(--tb) + 10px); right: 10px; width: 330px; display: flex; flex-direction: column; gap: 8px; z-index: 2; max-height: calc(100% - 60px); overflow: auto; }
.widget { background: rgba(255,255,255,.96); border: 1px solid rgba(4,22,46,.08); border-radius: 10px; padding: 12px 14px; box-shadow: var(--shadow); }
.widget h4 { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 0 0 10px; }
.widget h4 .app-ic { width: 18px; height: 18px; }
.widget .w-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 4px 0; color: var(--text-2); }
.widget .w-kv { display: grid; grid-template-columns: 96px 1fr; gap: 6px; font-size: 12.5px; } .widget .w-kv b { color: var(--text); font-weight: 600; }
.widget .w-bar { display: grid; grid-template-columns: 44px 1fr 40px; gap: 10px; align-items: center; font-size: 12.5px; margin: 6px 0; }
@media (max-width: 1150px) { .widgets { display: none; } }

/* ---------- windows ---------- */
.window { position: absolute; display: flex; flex-direction: column; background: var(--surface); border-radius: 10px; box-shadow: var(--shadow-lg); border: 1px solid rgba(4,22,46,.12); overflow: hidden; min-width: 380px; min-height: 260px; animation: winopen .16s cubic-bezier(.2,.9,.3,1.1); }
@keyframes winopen { from { opacity: 0; transform: scale(.975); } }
.window.max { left: 0 !important; top: var(--tb) !important; width: 100% !important; height: calc(100% - var(--tb)) !important; border-radius: 0; border: 0; }
.window.min { display: none; }
.win-title { height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 6px 0 14px; background: #fff; border-bottom: 1px solid var(--border); cursor: default; user-select: none; flex: none; }
.window.inactive .win-title { background: #FAFBFD; } .window.inactive .win-title .ttl { opacity: .7; }
.win-title .ttl { flex: 1; font: 600 13.5px var(--f-head); color: var(--text); display: flex; align-items: center; gap: 10px; min-width: 0; }
.win-title .ttl .app-ic { width: 22px; height: 22px; }
.win-ctrl { display: flex; gap: 2px; } .win-ctrl button { width: 32px; height: 30px; border: 0; background: none; border-radius: 6px; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.win-ctrl button:hover { background: var(--surface-3); color: var(--text); } .win-ctrl button.close:hover { background: var(--err); color: #fff; }
.win-ctrl svg { width: 15px; height: 15px; }
.win-body { flex: 1; min-height: 0; overflow: auto; position: relative; background: #fff; }
.win-resize { position: absolute; right: 0; bottom: 0; width: 16px; height: 16px; cursor: nwse-resize; z-index: 5; }
@media (max-width: 760px) { .window { left: 0 !important; top: var(--tb) !important; width: 100% !important; height: calc(100% - var(--tb)) !important; border-radius: 0; min-width: 0; } .desk-icons { grid-auto-columns: 88px; } }

/* ---------- app layout with sidebar (DSM 7) ---------- */
.app-layout { display: flex; height: 100%; min-height: 0; }
.app-side { width: 228px; flex: none; border-right: 1px solid var(--border); background: #fff; padding: 12px 10px; overflow: auto; }
.app-side .grp { font: 600 11px var(--f-head); text-transform: uppercase; letter-spacing: .07em; color: var(--faint); padding: 14px 10px 6px; }
.app-side .grp:first-child { padding-top: 4px; }
.app-side button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 8px; font: 500 13.5px var(--f-head); color: var(--text-2); cursor: pointer; text-align: left; margin-bottom: 1px; }
.app-side button:hover { background: var(--surface-3); }
.app-side button.active { background: var(--accent-soft); color: var(--accent-ink); }
.app-side button > svg { width: 17px; height: 17px; flex: none; color: var(--muted); } .app-side button.active > svg { color: var(--accent); }
.app-side button .app-ic { width: 22px; height: 22px; }
.app-main { flex: 1; min-width: 0; overflow: auto; padding: 20px 24px; background: #fff; }
.app-main.flush { padding: 0; display: flex; flex-direction: column; }
.app-main.soft { background: var(--surface-2); }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head h2 { margin: 0; }
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
@media (max-width: 760px) { .app-side { width: 62px; padding: 8px 6px; } .app-side button span:not(.app-ic), .app-side .grp { display: none; } .tabs { gap: 2px; } .tabs button { padding: 10px 7px; } .app-side button { justify-content: center; } .app-main { padding: 14px; } }

/* ---------- Control Panel home (DSM grid) ---------- */
.cp-home { padding: 14px 26px 30px; }
.cp-home .cp-search { max-width: 360px; margin: 6px auto 8px; }
.cp-cat { font: 600 15px var(--f-head); color: var(--accent); margin: 22px 0 8px; padding-bottom: 8px; border-bottom: 1px dashed var(--border-2); }
.cp-grid { display: grid; grid-template-columns: repeat(auto-fill, 128px); gap: 4px; }
.cp-item { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 6px 12px; border: 0; background: none; border-radius: 10px; cursor: pointer; font: 500 13px var(--f-body); color: var(--text-2); text-align: center; line-height: 1.3; }
.cp-item:hover { background: var(--accent-soft); color: var(--accent-ink); }
.cp-item .app-ic { width: 42px; height: 42px; }

/* ---------- Package Center ---------- */
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.pkg-card { display: flex; gap: 16px; padding: 18px 16px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #fff; cursor: pointer; min-height: 120px; }
.pkg-card:hover { background: #FAFBFF; }
.pkg-card .app-ic { width: 58px; height: 58px; }
.pkg-card .pn { font: 600 14px var(--f-head); color: var(--text); line-height: 1.3; }
.pkg-card .pc { font-size: 12.5px; color: var(--muted); margin: 3px 0 10px; }
.pkg-card .ps { font-size: 12.5px; color: var(--info); margin: 3px 0 10px; }
.pkg-hero { display: flex; gap: 20px; align-items: flex-start; }
.pkg-hero .app-ic { width: 80px; height: 80px; }

/* ---------- Container Manager ---------- */
.cm-health { display: flex; align-items: center; gap: 14px; }
.cm-health .big { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--ok); flex: none; }
.cm-health .big.warn { background: var(--warn); } .cm-health .big svg { width: 24px; height: 24px; }
.cm-list-line { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; color: var(--text-2); border-top: 1px solid var(--border); }
.st-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--faint); } .st-dot.run { background: var(--ok); } .st-dot.stop { background: #C2C7D3; } .st-dot.err { background: var(--err); } .st-dot.used { background: var(--info); }
.reg-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--border); cursor: pointer; }
.reg-row:hover { background: #F7F8FE; } .reg-row.sel { background: var(--accent-soft); }
.reg-row .rn { font: 600 13.5px var(--f-head); color: var(--text); } .reg-row .rd { font-size: 12px; color: var(--muted); }

/* ---------- Storage Manager ---------- */
.vol-card { display: flex; gap: 16px; align-items: center; }
.vol-card .app-ic { width: 46px; height: 46px; }
.disk-slot { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.disk-slot .bay { width: 34px; height: 48px; border-radius: 6px; background: #2A3245; position: relative; flex: none; }
.disk-slot .bay::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 7px; height: 4px; border-radius: 2px; background: var(--ok); }
.disk-slot .bay.warn::after { background: var(--warn); } .disk-slot .bay.err::after { background: var(--err); } .disk-slot .bay.idle::after { background: #6B7489; }

/* ---------- file browser ---------- */
.fb { display: flex; flex-direction: column; height: 100%; min-height: 0; position: relative; background: #fff; }
.fb-toolbar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); flex-wrap: wrap; background: #fff; }
.crumbs { display: flex; align-items: center; gap: 2px; min-width: 0; overflow-x: auto; flex: 1; }
.crumbs button { border: 0; background: none; padding: 5px 8px; border-radius: 7px; font: 500 14px var(--f-head); color: var(--muted); cursor: pointer; white-space: nowrap; }
.crumbs button:hover { background: var(--surface-3); color: var(--text); } .crumbs button:last-child { color: var(--text); font-weight: 600; }
.crumbs svg { width: 14px; height: 14px; color: var(--faint); flex: none; }
.fb-body { flex: 1; overflow: auto; position: relative; min-height: 0; }
.fb-list .table th { cursor: pointer; } .fb-list .table td { padding: 8px 12px; }
.fb-list .name { display: flex; align-items: center; gap: 11px; min-width: 0; color: var(--text); }
.fb-list .name .fi { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 6px; overflow: hidden; }
.fb-list .name .fi img { width: 100%; height: 100%; object-fit: cover; }
.fi svg { width: 26px; height: 26px; }
.fb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; padding: 16px; }
.fb-tile { border: 1px solid var(--border); border-radius: 12px; background: #fff; cursor: default; overflow: hidden; display: flex; flex-direction: column; user-select: none; transition: box-shadow .12s, border-color .12s; }
.fb-tile:hover { box-shadow: var(--shadow); border-color: var(--border-2); }
.fb-tile.sel { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 18%, transparent); }
.fb-tile .thumb { aspect-ratio: 4/3; display: grid; place-items: center; background: var(--surface-2); overflow: hidden; }
.fb-tile .thumb img { width: 100%; height: 100%; object-fit: cover; } .fb-tile .thumb svg { width: 50px; height: 50px; }
.fb-tile .meta { padding: 9px 11px; font-size: 13px; } .fb-tile .meta .n { font-weight: 600; color: var(--text); }
.fb-drop { position: absolute; inset: 10px; border: 2px dashed var(--accent); border-radius: 14px; background: color-mix(in srgb, var(--accent) 6%, #fff); display: grid; place-items: center; z-index: 20; font: 600 16px var(--f-head); color: var(--accent); pointer-events: none; }
.fb-status { padding: 7px 14px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); display: flex; gap: 14px; background: var(--surface-2); }
.uploader { position: absolute; right: 16px; bottom: 16px; width: 370px; max-width: calc(100% - 32px); background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 30; overflow: hidden; }
.uploader .uh { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--navy); color: #fff; font: 600 13.5px var(--f-head); }
.uploader .uh .btn.ghost { color: #fff; } .uploader .uh .btn.ghost:hover { background: rgba(255,255,255,.14); }
.uploader .ul { max-height: 260px; overflow: auto; }
.uploader .ui { padding: 9px 14px; border-bottom: 1px solid var(--border); font-size: 12.5px; }
.uploader .ui:last-child { border-bottom: 0; }

/* ---------- preview ---------- */
.preview-bg { position: fixed; inset: 0; background: rgba(4, 10, 22, .94); z-index: 5500; display: flex; flex-direction: column; animation: fade .15s; }
.preview-top { height: 58px; display: flex; align-items: center; gap: 10px; padding: 0 16px; color: #fff; flex: none; }
.preview-top .btn.ghost { color: #fff; } .preview-top .btn.ghost:hover { background: rgba(255,255,255,.12); }
.preview-stage { flex: 1; min-height: 0; display: grid; place-items: center; padding: 0 64px 22px; position: relative; }
.preview-stage img, .preview-stage video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.preview-stage iframe, .preview-stage .text-view { width: min(1100px, 100%); height: 100%; border: 0; background: #fff; border-radius: 8px; }
.preview-stage .text-view { color: var(--text); font: 13px/1.6 var(--mono); padding: 0; display: flex; flex-direction: column; }
.preview-stage .text-view textarea { flex: 1; border: 0; resize: none; padding: 16px 18px; font: inherit; background: transparent; color: inherit; outline: none; }
.preview-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; display: grid; place-items: center; }
.preview-nav:hover { background: rgba(255,255,255,.22); } .preview-nav.l { left: 12px; } .preview-nav.r { right: 12px; } .preview-nav svg { width: 22px; height: 22px; }
.watermark-overlay { position: absolute; inset: 0; pointer-events: none; display: grid; place-items: center; overflow: hidden; }
.watermark-overlay span { transform: rotate(-30deg); font: 700 42px var(--f-head); color: rgba(255,255,255,.28); white-space: nowrap; }
.no-save { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* ---------- Drive ---------- */
.drive { display: grid; grid-template-columns: 252px 1fr; grid-template-rows: 64px 1fr; height: 100%; background: var(--bg); }
.drive-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 0 18px; background: #fff; border-bottom: 1px solid var(--border); }
.drive-top .logo { display: flex; align-items: center; gap: 10px; width: 222px; font: 700 18px var(--f-head); color: var(--text); letter-spacing: -.02em; }
.drive-top .logo img { width: 34px; height: 34px; border-radius: 9px; object-fit: contain; }
.drive-search { flex: 1; max-width: 680px; position: relative; }
.drive-search input { width: 100%; height: 42px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); padding: 0 16px 0 44px; font: 14.5px var(--f-body); color: var(--text); }
.drive-search input:focus { outline: none; background: #fff; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent); }
.drive-search svg { position: absolute; left: 15px; top: 12px; width: 18px; height: 18px; color: var(--faint); }
.drive-nav { padding: 14px 12px; overflow: auto; display: flex; flex-direction: column; background: var(--bg); }
.drive-nav .new { height: 48px; border-radius: 12px; border: 0; padding: 0 22px 0 16px; display: inline-flex; align-items: center; gap: 12px; background: var(--accent); color: #fff; font: 600 14.5px var(--f-head); cursor: pointer; margin: 2px 0 16px; align-self: flex-start; box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 28%, transparent); }
.drive-nav .new:hover { background: var(--accent-ink); } .drive-nav .new svg { width: 20px; height: 20px; }
.drive-nav button.nav { display: flex; align-items: center; gap: 13px; padding: 0 14px; height: 40px; border-radius: 10px; border: 0; background: none; color: var(--text-2); font: 500 14px var(--f-head); cursor: pointer; width: 100%; text-align: left; }
.drive-nav button.nav:hover { background: #fff; } .drive-nav button.nav.active { background: #fff; color: var(--accent); box-shadow: var(--shadow-sm); }
.drive-nav button.nav svg { width: 19px; height: 19px; }
.drive-main { margin: 0 14px 14px 0; background: #fff; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; min-height: 0; border: 1px solid var(--border); }
.quota-box { margin-top: auto; padding: 14px; font-size: 12.5px; color: var(--muted); background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font: 700 13px var(--f-head); flex: none; }
@media (max-width: 860px) {
  .drive { grid-template-columns: 1fr; grid-template-rows: 60px auto 1fr; }
  .drive-top .logo { width: auto; } .drive-top .logo span { display: none; }
  .drive-nav { flex-direction: row; overflow-x: auto; padding: 8px; gap: 4px; align-items: center; } .drive-nav .new { margin: 0; height: 40px; flex: none; } .drive-nav button.nav { width: auto; flex: none; } .quota-box { display: none; }
  .drive-main { margin: 0; border-radius: 0; border: 0; }
}

/* ---------- public share page ---------- */
.share-page { height: 100%; overflow: auto; background: var(--bg); position: relative; }
.share-top { height: 60px; display: flex; align-items: center; gap: 12px; padding: 0 22px; background: #fff; border-bottom: 1px solid var(--border); font: 700 16px var(--f-head); color: var(--text); }
.share-wrap { max-width: 1100px; margin: 24px auto; padding: 0 16px; }

/* ---------- charts & misc ---------- */
.chart-legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); flex-wrap: wrap; } .chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 90px; gap: 10px; align-items: center; font-size: 13px; padding: 5px 0; }
.gauge { width: 92px; height: 92px; position: relative; } .gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); } .gauge .v { position: absolute; inset: 0; display: grid; place-items: center; font: 700 18px var(--f-head); color: var(--text); }
.term { background: #0B1020; height: 100%; padding: 8px; }
.conn-line { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.conn-line:last-child { border-bottom: 0; }
.conn-line code { flex: 1; background: var(--surface-2); padding: 6px 10px; border-radius: 7px; color: var(--text); overflow: auto; white-space: nowrap; }
.choice { display: flex; gap: 12px; align-items: flex-start; text-align: left; cursor: pointer; padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: #fff; font: inherit; color: inherit; }
.choice:hover { border-color: var(--border-2); } .choice.on { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent); background: color-mix(in srgb, var(--accent) 3%, #fff); }
.choice svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 1px; }
.wp-pick { display: grid; grid-template-columns: repeat(auto-fill, 150px); gap: 12px; }
.wp-pick button { height: 92px; border-radius: 10px; border: 2px solid var(--border); cursor: pointer; background-size: cover; background-position: center; position: relative; padding: 0; }
.wp-pick button.on { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.wp-pick button span { position: absolute; left: 6px; bottom: 6px; font: 600 11px var(--f-head); background: rgba(255,255,255,.9); color: var(--text); padding: 2px 7px; border-radius: 6px; }
.tile-ic { width: 36px; height: 36px; border-radius: 10px; display: inline-grid; place-items: center; color: #fff; background: var(--accent); flex: none; }
.tile-ic svg { width: 19px; height: 19px; } .tile-ic.lg { width: 64px; height: 64px; border-radius: 18px; } .tile-ic.lg svg { width: 32px; height: 32px; } .tile-ic.ok { background: var(--ok); }

/* ---------------------------------------------------------------- Domain & SSL, Login Portal, File Services */
.err-text { color: var(--err); } .warn-text { color: var(--warn); }
.ssl-pill { display: inline-flex; flex-direction: column; gap: 3px; cursor: help; }
.ssl-pill .badge { display: inline-flex; align-items: center; gap: 5px; width: max-content; }
.ssl-pill .badge svg { width: 13px; height: 13px; }
.table tr.row-err > td { background: var(--err-soft); }
.table tr.row-warn > td { background: var(--warn-soft); }
.table tr.detail > td { padding-top: 0; }
.ssl-fail { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: flex-start; background: var(--err-soft); border-radius: 10px; padding: 8px 12px; }
.ssl-fail pre { margin: 6px 0 0; white-space: pre-wrap; color: var(--text-2); max-width: 720px; font-family: var(--f-mono, ui-monospace, monospace); }
.help-card h4 { margin: 0 0 8px; } .help-card ol { margin: 0 0 8px; padding-left: 20px; line-height: 1.7; }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-row .choice { flex-direction: column; gap: 4px; } .choice-row .choice input { position: absolute; opacity: 0; pointer-events: none; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; background: #fff; }
.seg button { border: 0; background: none; padding: 7px 14px; font: 500 13px var(--f-head); color: var(--text-2); cursor: pointer; border-right: 1px solid var(--border); }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--accent); color: #fff; }
fieldset.plain { border: 0; padding: 0; margin: 0; min-width: 0; } fieldset.plain:disabled { opacity: .55; }
.svc.svc-err { border-color: color-mix(in srgb, var(--err) 45%, var(--border)); }
.spinner.sm { width: 12px; height: 12px; border-width: 2px; vertical-align: -2px; }
/* portal preview (scaled-down sign-in page) */
.portal-preview { position: relative; height: 260px; border-radius: 12px; overflow: hidden; background: #06142B; background-size: cover; background-position: center; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; border: 1px solid var(--border); }
.portal-preview.layout-left { grid-template-columns: 1fr 1.1fr; } .portal-preview.layout-left .pp-card { order: -1; }
.portal-preview.layout-center { grid-template-columns: 1fr; } .portal-preview.layout-center .pp-card { justify-self: center; }
.portal-preview .pp-logo { position: absolute; top: 12px; left: 14px; height: 22px; max-width: 110px; object-fit: contain; }
.portal-preview .pp-art { display: grid; place-items: center; padding: 18px; } .portal-preview .pp-art img { width: 90%; }
.portal-preview .pp-card { position: relative; justify-self: center; width: 168px; background: #fff; border-radius: 9px; box-shadow: 0 10px 30px rgba(0, 0, 0, .28); overflow: hidden; display: flex; flex-direction: column; }
.portal-preview .pp-head { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.portal-preview .pp-mark { width: 16px; height: 16px; flex: none; display: grid; place-items: center; overflow: hidden; }
.portal-preview .pp-mark img { width: 16px; height: 16px; object-fit: contain; }
.portal-preview .pp-brand { font: 700 9.5px var(--f-head); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.portal-preview .pp-body { padding: 10px 10px 12px; }
.portal-preview .pp-title { font: 700 11px var(--f-head); color: var(--text); }
.portal-preview .pp-welcome { font-size: 7.5px; color: var(--muted); margin: 2px 0 8px; height: 18px; overflow: hidden; line-height: 1.25; }
.portal-preview .pp-line { height: 17px; border: 1px solid var(--border); border-radius: 5px; margin: 0 0 7px; }
.portal-preview .pp-go { height: 18px; border-radius: 5px; background: var(--accent); margin-top: 10px; }
.portal-preview .pp-foot { height: 13px; background: var(--surface-2); border-top: 1px solid var(--line); }
@media (max-width: 900px) { .choice-row { grid-template-columns: 1fr; } }

/* Personal → Display: desktop icon sizes */
.desk-icons.icons-small { grid-template-rows: repeat(auto-fill, 96px); grid-auto-columns: 88px; }
.desk-icons.icons-large { grid-template-rows: repeat(auto-fill, 134px); grid-auto-columns: 124px; }
.desk-icons.icons-small .desk-icon { font-size: 11.5px; } .desk-icons.icons-large .desk-icon { font-size: 13.5px; }
.desktop:not(.dark-wp) .desk-icon { color: var(--text); text-shadow: none; }
.wp-thumb { width: 220px; height: 124px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); display: block; }
.menu button:disabled { opacity: .55; cursor: default; background: none; }

.svc-save { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }

/* Share dialog: Public link / Permissions */
.share-tabs .tabs { margin-top: -6px; }
.link-panel { display: flex; flex-direction: column; gap: 4px; }
.lp-switch { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); cursor: pointer; margin-bottom: 6px; }
.lp-sec { font: 600 12.5px var(--f-head); color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; margin: 14px 0 6px; padding-bottom: 6px; border-bottom: 1px dashed var(--border); }
.lp-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; } .lp-row .check { min-width: 170px; }
.lp-pw { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 200px; max-width: 320px; } .lp-pw .input { flex: 1; }
.lp-link { display: flex; gap: 8px; } .lp-link .input { flex: 1; font-size: 13px; }
.lp-foot { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.lp-more { margin-top: 12px; } .lp-more summary { cursor: pointer; color: var(--accent); font: 500 13px var(--f-head); margin-bottom: 8px; }
.lp-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 9px; padding: 0 10px; background: #fff; }
.lp-search .input { border: 0; padding-left: 0; box-shadow: none; } .lp-search svg { color: var(--faint); }
.lp-results { border: 1px solid var(--border); border-radius: 9px; margin-top: 4px; max-height: 180px; overflow: auto; padding: 4px; background: #fff; }
.lp-results button { display: flex; gap: 10px; align-items: center; width: 100%; border: 0; background: none; padding: 6px 8px; border-radius: 7px; cursor: pointer; text-align: left; }
.lp-results button:hover { background: var(--accent-soft); }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font: 500 12.5px var(--f-head); }
.chip button { border: 0; background: none; color: inherit; cursor: pointer; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; }
.chip button:hover { background: rgba(76, 33, 255, .15); }
.avatar.sm { width: 26px; height: 26px; font-size: 12px; }

/* ---------------------------------------------------------------- Storage Manager */
.ok-text { color: var(--ok); } .accent-text { color: var(--accent); } .info-text { color: var(--info); }
.st-dot { position: absolute; right: -3px; bottom: -3px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; background: var(--faint); }
.st-dot.ok { background: var(--ok); } .st-dot.warn { background: var(--warn); } .st-dot.err { background: var(--err); } .st-dot.info { background: var(--info); }
.app-side button.sub { padding-left: 38px; font-size: 12.5px; position: relative; } .app-side button.sub .st-dot { position: static; width: 9px; height: 9px; border: 0; flex: none; }
/* status banners: healthy = softly tinted card; never a coloured edge */
.sm-banner { display: flex; align-items: center; gap: 18px; position: relative; overflow: hidden; }
.sm-banner.ok { background: color-mix(in srgb, var(--ok-soft) 55%, #fff); border-color: color-mix(in srgb, var(--ok) 18%, #fff); }   /* no coloured edges: the card itself carries the state */
@media (max-width: 640px) { .sm-banner { flex-wrap: wrap; } }
/* Storage Manager warnings: what is wrong + Fix */
.sm-warnings { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 12px; }
.sm-warn { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.sm-warn.error { background: color-mix(in srgb, var(--err-soft) 55%, #fff); border-color: color-mix(in srgb, var(--err) 25%, #fff); }
.sm-warn.warning { background: color-mix(in srgb, var(--warn-soft) 55%, #fff); border-color: color-mix(in srgb, var(--warn) 25%, #fff); }
.sm-warn.info { background: color-mix(in srgb, var(--info-soft) 55%, #fff); }
.sm-warn-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; color: #fff; background: var(--warn); }
.sm-warn.error .sm-warn-ic { background: var(--err); } .sm-warn.info .sm-warn-ic { background: var(--info); }
.sm-warn-t { font-weight: 600; margin-bottom: 2px; }
.sm-warn > .btn { flex: none; align-self: center; white-space: nowrap; }
.sm-fix-res { display: flex; gap: 6px; align-items: flex-start; margin-top: 8px; font-size: 13px; padding: 6px 9px; border-radius: 7px; }
.sm-fix-res.ok { color: var(--ok); background: var(--ok-soft); } .sm-fix-res.err { color: var(--err); background: var(--err-soft); }
.sm-fix-res svg { flex: none; margin-top: 2px; }
.mt-4 { margin-top: 4px; }
@media (max-width: 640px) { .sm-warn { flex-wrap: wrap; } .sm-warn > .btn { margin-left: 46px; } }
.sm-banner h2 { margin: 0 0 2px; } .sm-banner.ok h2 { color: var(--ok); } .sm-banner.warn h2 { color: var(--warn); } .sm-banner.err h2 { color: var(--err); }
.sm-badge { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--ok); flex: none; }
.sm-banner.warn .sm-badge { background: var(--warn); } .sm-banner.err .sm-badge { background: var(--err); }
.notice { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; margin-top: 8px; font-size: 13.5px; background: var(--warn-soft); }
.notice.error { background: var(--err-soft); } .notice.info { background: var(--info-soft); } .notice.warning { background: var(--warn-soft); }
.notice svg { flex: none; } .notice.error svg { color: var(--err); } .notice.warning svg { color: var(--warn); } .notice.info svg { color: var(--info); } .notice span { flex: 1; }
.vol-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.vol-tile { display: flex; gap: 14px; align-items: center; text-align: left; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); cursor: pointer; font: inherit; }
.vol-tile:hover { border-color: var(--accent); } .vol-tile .grow { display: flex; flex-direction: column; gap: 4px; min-width: 0; } .vol-tile .progress { margin: 4px 0 2px; }
.vt-ic { position: relative; display: inline-flex; flex: none; }
.drive-sum { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.drv { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; }
.pool { padding: 0; overflow: hidden; } .pool.err { border-color: color-mix(in srgb, var(--err) 40%, var(--border)); } .pool.warn { border-color: color-mix(in srgb, var(--warn) 45%, var(--border)); }
.pool-head { display: flex; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer; } .pool-head:hover { background: var(--surface-2); }
.pool-body { padding: 4px 18px 18px; border-top: 1px solid var(--line); background: var(--surface-2); }
.kv2 { display: grid; grid-template-columns: 180px 1fr; gap: 8px 16px; margin: 14px 0 4px; font-size: 13.5px; align-items: center; } .kv2 > span:nth-child(odd) { color: var(--muted); }
.vol-inner { display: flex; gap: 14px; align-items: center; margin-top: 14px; padding: 14px; background: #fff; border: 1px solid var(--border); border-radius: 12px; } .vol-inner .progress { margin: 6px 0 2px; }
.steps { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; } .steps span { padding: 5px 12px; border-radius: 999px; background: var(--surface-3); font: 500 12.5px var(--f-head); color: var(--muted); }
.steps span.on { background: var(--accent); color: #fff; } .steps span.done { background: var(--accent-soft); color: var(--accent); }
.choice-list { display: grid; gap: 8px; } .choice-list .choice input { margin-top: 3px; } .choice.disabled { opacity: .5; cursor: not-allowed; }
.drive-row { display: flex; align-items: center; gap: 16px; width: 100%; padding: 12px 16px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; font: inherit; cursor: pointer; }
.drive-row:last-child { border-bottom: 0; } .drive-row:hover { background: var(--surface-2); } .drive-row.sel { background: var(--accent-soft); }
.drive-ic { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--surface-3); color: var(--text-2); flex: none; }
.drive-ic .tag { position: absolute; top: -6px; left: -6px; font: 700 9px var(--f-head); background: var(--text-2); color: #fff; border-radius: 4px; padding: 1px 4px; }
.cand { border-color: color-mix(in srgb, var(--info) 40%, var(--border)); }
/* 1.22: drives from another NAS (Synology …) */
.fx-card { border-color: color-mix(in srgb, var(--info) 40%, var(--border)); }
.fx-vol { display: flex; gap: 14px; align-items: center; margin-top: 12px; padding: 14px; background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.fx-folders { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; } .fx-folders .chip { padding: 3px 10px; gap: 5px; }
.fx-compat { padding: 12px; border: 1px solid color-mix(in srgb, var(--warn) 45%, var(--border)); border-radius: 10px; background: #fff; }
.fx-job { margin-top: 10px; } .fx-job .progress { margin-top: 6px; }
.fx-help { display: flex; gap: 8px; align-items: flex-start; } .fx-help svg { flex: none; margin-top: 2px; }
@media (max-width: 560px) { .fx-vol { flex-wrap: wrap; } .fx-card .pool-head { flex-wrap: wrap; row-gap: 10px; } .fx-card .pool-head > .grow { flex: 1 1 calc(100% - 70px); min-width: 0; } }
@media (max-width: 760px) { .kv2 { grid-template-columns: 1fr; } .drive-row > span:nth-child(3) { display: none; } }

/* Troubleshoot */
.ts-group { padding: 12px 16px; font: 600 12.5px var(--f-head); text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.ts-row { display: flex; gap: 14px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); } .ts-row:last-child { border-bottom: 0; }
.ts-row.err { background: color-mix(in srgb, var(--err-soft) 60%, #fff); } .ts-row.warn { background: color-mix(in srgb, var(--warn-soft) 60%, #fff); }
.ts-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: var(--ok); flex: none; }
.ts-ic.warn { background: var(--warn); } .ts-ic.err { background: var(--err); } .ts-ic.info { background: var(--info); }
.ts-detail { margin-top: 2px; white-space: pre-wrap; }
.portal-lang { position: absolute; top: 30px; right: 34px; z-index: 3; }
.portal-lang select { appearance: none; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.1); color: #fff; border-radius: 999px; padding: 6px 30px 6px 14px; font: 500 13px var(--f-head); cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; }
.portal-lang select option { color: var(--text); }
.portal.light .portal-lang select { border-color: var(--border); background-color: #fff; color: var(--text);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230D0D13' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* toolbar note (e.g. "certificates renew automatically") — vertically centred with the buttons */
.tb-note { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: 12.5px; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.tb-note.ok svg { color: var(--ok); } .tb-note.warn svg { color: var(--warn); }

/* Package Center → System */
.auto-upd { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 10px; align-items: stretch; margin-top: 10px; }
.auto-upd .choice { margin: 0; } .auto-upd-time { display: flex; flex-direction: column; gap: 4px; justify-content: center; } .auto-upd-time select { width: 120px; }
@media (max-width: 760px) { .auto-upd { grid-template-columns: 1fr; } }
.os-pkgs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; max-height: 140px; overflow: auto; }
.table-wrap.flat { border: 0; border-radius: 0; }
.rec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.rec-card { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.hist { display: flex; flex-direction: column; } .hist-row { display: flex; gap: 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); } .hist-row:last-child { border-bottom: 0; }
.hist-row > .tiny { width: 150px; flex: none; } .badge.accent { background: var(--accent-soft); color: var(--accent-ink); }
@media (max-width: 640px) { .hist-row { flex-wrap: wrap; } .hist-row > .tiny { width: auto; } }
.di-ic { position: relative; display: inline-flex; }
.di-badge { position: absolute; top: -5px; right: -7px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font: 700 11px/19px var(--f-head); font-style: normal; text-shadow: none; box-shadow: 0 0 0 2px #fff; }
.di-badge.sec { background: var(--err); }
/* notification panel */
.notif-list { padding: 6px 8px 8px; }
.notif { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 10px 30px 10px 10px; border-radius: 10px; }
.notif + .notif { margin-top: 2px; }
.notif.unread { background: var(--accent-soft); } .notif.unread .notif-t::after { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: 6px; vertical-align: 1px; }
.notif.link { cursor: pointer; } .notif.link:hover { background: var(--surface-2); } .notif.unread.link:hover { background: color-mix(in srgb, var(--accent-soft) 70%, #fff); }
.notif-ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; color: #fff; background: var(--info); }
.notif-ic.ok { background: var(--ok); } .notif-ic.warn { background: var(--warn); } .notif-ic.err { background: var(--err); }
.notif-t { font: 600 13px var(--f-head); color: var(--text); }
.notif-b { font-size: 12.5px; color: var(--text-2); margin-top: 2px; white-space: pre-line; overflow-wrap: anywhere; }
.notif-m { display: flex; gap: 10px; justify-content: space-between; font-size: 11.5px; color: var(--faint); margin-top: 4px; }
.notif-go { color: var(--accent); font-weight: 600; }
.notif-x { position: absolute; top: 8px; right: 6px; width: 22px; height: 22px; border: 0; border-radius: 6px; background: none; color: var(--faint); cursor: pointer; display: grid; place-items: center; opacity: 0; }
.notif:hover .notif-x, .notif-x:focus-visible { opacity: 1; } .notif-x:hover { background: var(--line); color: var(--text); }
@media (pointer: coarse) { .notif-x { opacity: 1; } }
.drive-bell { position: relative; } .drive-bell .tb-count { position: absolute; top: 3px; right: 2px; }
.panel-pop.drive-notifs { position: absolute; top: 46px; right: 0; left: auto; width: min(380px, calc(100vw - 24px)); max-height: 70vh; overflow: auto; z-index: 50; }
.notif-events { display: flex; flex-direction: column; gap: 10px; } .ne-row { display: flex; gap: 10px; align-items: flex-start; } .ne-ic { flex: none; }
/* phone: the breadcrumb gets its own full-width line; toolbar buttons show icons only */
@media (max-width: 560px) {
  .fb-toolbar > .btn.icon.ghost:first-child { order: -2; }
  .fb-toolbar .crumbs { flex: 1 1 calc(100% - 50px); order: -1; }
  .fb-toolbar .btn.sm > span { display: none; }
  .fb-toolbar .btn.sm { padding: 0 9px; }
}
.sm-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.sm-stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; } .sm-stat b { font: 700 17px var(--f-head); color: var(--text); }
@media (max-width: 760px) { .sm-stats { grid-template-columns: repeat(2, 1fr); } }

/* ======================= App Store ======================= */
.store { display: grid; grid-template-columns: 236px 1fr; height: 100%; min-height: 0; background: var(--bg, #F4F5FF); }
.st-side { display: flex; flex-direction: column; gap: 2px; padding: 18px 12px; margin: 10px 0 10px 10px; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: auto; }
.st-brand { font: 700 24px var(--f-head); color: var(--text); padding: 4px 10px 14px; letter-spacing: -.02em; }
.st-search { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border: 1px solid var(--border); border-radius: 12px; margin: 0 2px 12px; color: var(--faint); }
.st-search input { border: 0; outline: 0; flex: 1; min-width: 0; font: 14px var(--f-body); background: transparent; color: var(--text); }
.st-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent); }
.st-nav { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 1px solid transparent; border-radius: 10px; background: none; cursor: pointer; font: 500 14px var(--f-head); color: var(--text-2); text-align: left; }
.st-nav:hover { background: var(--surface-2); } .st-nav.on { background: #fff; border-color: var(--line); box-shadow: 0 2px 8px rgba(13, 13, 40, .06); color: var(--text); }
.st-ic { width: 22px; height: 22px; display: grid; place-items: center; flex: none; }
.st-count { font: 600 11.5px var(--f-head); color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 1px 8px; }
.st-count.upd { background: var(--warn); color: #fff; } .st-count.upd.sec { background: var(--err); }
.st-group { display: flex; align-items: center; justify-content: space-between; margin: 14px 4px 4px 10px; font: 600 12.5px var(--f-head); color: var(--muted); background: none; border: 0; cursor: pointer; padding: 0; }
.st-note { padding: 4px 10px; } .st-foot { margin-top: auto; padding: 14px 4px 0; }
.st-main { overflow: auto; padding: 20px 26px 30px; min-width: 0; }
.st-hero { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(300px, 1.25fr); gap: 26px; align-items: center; margin-bottom: 10px; }
.st-hero h1 { font: 800 clamp(34px, 4.4vw, 56px)/1.02 var(--f-head); letter-spacing: -.04em; margin: 0 0 14px; color: var(--text); }
.st-hero h1 .lt { color: #B9BECB; }
.st-hero p { max-width: 420px; margin: 0 0 18px; line-height: 1.55; }
.st-banner { position: relative; height: 260px; border-radius: 20px; overflow: hidden; cursor: pointer; color: #fff; display: flex; align-items: flex-end; padding: 22px 24px; }
.st-banner-dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1.4px); background-size: 22px 22px; }
.st-banner-t { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px; max-width: 58%; }
.st-banner-name { font: 700 22px var(--f-head); margin-top: 8px; } .st-banner-tag { font: 600 15px var(--f-head); opacity: .9; }
.st-banner-cta { margin-top: 8px; font: 600 13px var(--f-head); opacity: .8; }
.st-banner-art { position: absolute; right: 26px; top: 50%; transform: translateY(-50%) rotate(-8deg); opacity: .95; filter: drop-shadow(0 18px 30px rgba(0,0,0,.35)); }
.st-dots { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 6px 0 4px; }
.st-dots > button:not(.st-next) { width: 10px; height: 10px; border-radius: 50%; border: 0; background: #D6D9E4; cursor: pointer; padding: 0; }
.st-dots > button.on { background: var(--text); transform: scale(1.15); }
.st-next { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; margin-left: 6px; }
.st-h { font: 700 22px var(--f-head); letter-spacing: -.02em; color: var(--text); margin: 22px 0 12px; }
.st-trend { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 16px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.st-tcard { border: 1px solid var(--line); background: #fff; border-radius: 18px; overflow: hidden; padding: 0; cursor: pointer; text-align: left; transition: transform .15s, box-shadow .15s; }
.st-tcard:hover, .st-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(13, 13, 40, .09); }
.st-tart { position: relative; height: 160px; display: grid; place-items: center; overflow: hidden; }
.st-tart-dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(13,13,40,.10) 1px, transparent 1.4px); background-size: 18px 18px; }
.st-tart > .app-ic { position: relative; filter: drop-shadow(0 12px 20px rgba(13,13,40,.18)); }
.st-tmeta { display: flex; align-items: center; gap: 10px; padding: 12px 14px 14px; }
.st-tmeta b { display: block; font: 700 15px var(--f-head); color: var(--text); } .st-tmeta span { display: block; font-size: 12.5px; color: var(--muted); }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.st-card { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; cursor: pointer; text-align: left; transition: transform .15s, box-shadow .15s; min-width: 0; }
.st-cn { font: 700 15px var(--f-head); color: var(--text); } .st-ct { font-size: 12.5px; color: var(--muted); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-cm { display: flex; gap: 6px; margin-top: 8px; align-items: center; flex-wrap: wrap; }
.ap-head { display: flex; gap: 20px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px; margin-bottom: 16px; position: relative; overflow: hidden; }
.ap-head.live { background: color-mix(in srgb, var(--ok-soft) 35%, #fff); }
.ap-head h1 { font: 800 28px var(--f-head); letter-spacing: -.02em; margin: 0; color: var(--text); }
.ap-dev { color: var(--accent); font: 600 14px var(--f-head); margin-top: 2px; }
.ap-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.ap-actions { display: flex; gap: 8px; align-items: center; flex: none; }
.btn.lg { height: 44px; padding: 0 20px; font-size: 15px; border-radius: 12px; }
.ap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.perm { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); } .perm:first-of-type { border-top: 0; }
.perm-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); flex: none; }
.perm-ic.ok { background: var(--ok-soft); color: var(--ok); } .perm-ic.err { background: var(--err-soft); color: var(--err); }
.perm-t { font: 600 14px var(--f-head); color: var(--text); margin-bottom: 3px; } .perm-i { font-size: 13px; color: var(--text-2); margin-top: 3px; line-height: 1.45; }
.ap-url { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; margin-top: 8px; color: var(--muted); }
.ap-url a { color: var(--accent); font: 500 14px var(--f-mono, monospace); text-decoration: none; }
.addr-list { display: flex; gap: 8px; flex-wrap: wrap; min-height: 32px; align-items: center; }
.addr-chip { display: inline-flex; gap: 6px; align-items: center; padding: 6px 6px 6px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font: 600 13px var(--f-head); }
.addr-chip button { border: 0; background: rgba(255,255,255,.7); width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: inherit; }
.my-list { display: flex; flex-direction: column; gap: 8px; }
.my-row { display: flex; gap: 14px; align-items: center; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; }
.my-row:hover { box-shadow: 0 6px 18px rgba(13,13,40,.07); }
.mt-24 { margin-top: 24px; }
@media (max-width: 980px) { .st-hero { grid-template-columns: 1fr; } .ap-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .store { grid-template-columns: 1fr; grid-template-rows: auto 1fr; } .st-side { flex-direction: row; margin: 8px 8px 0; padding: 8px; border-radius: 14px; overflow-x: auto; overflow-y: hidden; } .st-brand, .st-group, .st-note, .st-foot { display: none; } .st-search { min-width: 150px; margin: 0; } .st-nav { width: auto; white-space: nowrap; } .st-main { padding: 14px; } .ap-head { flex-wrap: wrap; } .st-banner-art { display: none; } .st-banner-t { max-width: 100%; } }

/* ======================= Virtual Machines ======================= */
.os-logo { display: inline-flex; flex: none; } .os-logo svg { width: 100%; height: 100%; }
.vm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.vm-card { display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; }
.vm-top { display: flex; gap: 12px; align-items: center; } .vm-name { font: 700 16px var(--f-head); color: var(--text); }
.vm-specs { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-2); } .vm-specs span { display: inline-flex; gap: 5px; align-items: center; }
.vm-prog { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 10px; background: var(--info-soft); color: var(--text-2); }
.vm-err { padding: 10px 12px; border-radius: 10px; background: var(--err-soft); color: #B4232A; white-space: pre-line; }
.vm-url { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); }
.vm-url a { color: var(--accent); font: 500 13px var(--f-mono, monospace); text-decoration: none; }
.vm-actions { display: flex; gap: 10px; align-items: center; justify-content: space-between; min-height: 32px; }
.vm-empty { text-align: center; padding: 40px 20px; } .vm-empty h3 { margin: 16px 0 6px; } .vm-empty p { max-width: 460px; margin: 0 auto 18px; }
.vm-empty-art { display: flex; justify-content: center; gap: 12px; }
.vm-empty-art .os-logo:nth-child(odd) { transform: translateY(-6px); }
.os-sec { font: 700 16px var(--f-head); color: var(--text); margin: 6px 0 12px; }
.os-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px 16px; margin-bottom: 14px; }
.os-item { display: flex; gap: 12px; align-items: center; } .os-item b { font: 700 14px var(--f-head); }
.btn.xs { height: 24px; padding: 0 10px; font-size: 12px; border-radius: 999px; margin-top: 4px; }
.os-hr { border: 0; border-top: 1px solid var(--line); margin: 16px auto; width: 30%; }
.vm-pick { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; background: var(--surface-2); }
.pick-list { display: flex; flex-direction: column; max-height: 360px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.pick-row { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border: 0; border-bottom: 1px solid var(--line); background: #fff; cursor: pointer; text-align: left; font: 14px var(--f-body); }
.pick-row:hover { background: var(--surface-2); } .pick-row:last-child { border-bottom: 0; }

/* ======================= Drive (premium) ======================= */
.dstation { display: grid; grid-template-columns: 300px 1fr; height: 100%; background: #F3F4F8; color: var(--text); }
.ds-side { display: flex; flex-direction: column; gap: 12px; padding: 22px 16px 16px 20px; overflow: auto; min-height: 0; }
.ds-brand { display: flex; align-items: center; gap: 12px; padding: 2px 4px 6px; }
/* 1.25.1: these sizes are for the LOGO only — the product-name image (.brand-name-img) keeps its own proportions */
.ds-brand img:not(.brand-name-img) { width: 40px; height: 40px; border-radius: 11px; flex: none; }
.ds-brand .brand-name-img { flex: 0 1 auto; min-width: 0; max-width: 100%; object-fit: contain; object-position: left center; } .ds-brand span { font: 700 28px var(--f-head); letter-spacing: -.02em; flex: 1; }
.ds-close { display: none; }
.ds-search { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 10px 0 14px; background: #fff; border-radius: 14px; border: 1px solid #ECEEF3; color: var(--text); }
.ds-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 15.5px var(--f-body); color: var(--text); }
.ds-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent); }
.ds-search kbd { font: 600 11.5px var(--f-head); color: var(--muted); border: 1px solid var(--line); border-radius: 7px; padding: 3px 7px; background: var(--surface-2); }
.ds-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 1.5px solid transparent; border-radius: 12px; background: none; cursor: pointer; text-align: left; font: 500 15.5px var(--f-head); color: var(--text); }
.ds-item:hover { background: #fff; } .ds-card .ds-item:hover { background: var(--surface-2); }
.ds-item.on { border-color: #2A6BFF; background: #fff; }
.ds-item-ic { width: 22px; display: grid; place-items: center; flex: none; }
.ds-card { background: #fff; border: 1px solid #ECEEF3; border-radius: 18px; padding: 10px 8px; display: flex; flex-direction: column; gap: 2px; }
.ds-card-h { font: 600 13.5px var(--f-head); color: var(--muted); padding: 6px 12px 6px; }
.ds-hint { font-size: 12px; color: var(--faint); padding: 4px 12px 6px; }
.ds-grip { color: #C3C8D4; } .ds-size { font: 600 12px var(--f-head); border: 1px solid var(--line); border-radius: 8px; padding: 2px 8px; color: var(--text-2); }
.ds-unpin { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; color: var(--faint); opacity: 0; }
.ds-item:hover .ds-unpin { opacity: 1; } .ds-unpin:hover { background: var(--line); color: var(--text); }
.ds-quota-card { margin-top: auto; padding: 12px 0 4px; }
.ds-quota-card .ds-powered { padding: 0 6px; }
.ds-right { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 10px 16px 16px 4px; }
.ds-top { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 4px 8px; }
.ds-menu, .ds-top-brand { display: none; }
.ds-top-brand { align-items: center; gap: 8px; font: 700 17px var(--f-head); } .ds-top-brand img:not(.brand-name-img) { width: 30px; height: 30px; border-radius: 8px; } .ds-top-brand .brand-name-img { max-width: 160px; object-fit: contain; }
.ds-new { height: 40px; border-radius: 12px; }
.ds-user { height: 42px; gap: 8px; border-radius: 12px; }
.ds-main { flex: 1; min-height: 0; display: flex; }
.ds-main > .fb, .ds-main > .fb + * { flex: 1; }
.ds-main .fb { background: #fff; border: 1px solid #E6E8EF; border-radius: 22px; box-shadow: 0 1px 2px rgba(13,13,40,.04); overflow: hidden; }
.ds-head { display: flex; align-items: center; gap: 10px; padding: 18px 20px 10px 18px; flex-wrap: wrap; }
.ds-nav { display: flex; gap: 2px; }
.ds-ib { width: 40px; height: 40px; border: 0; border-radius: 11px; background: none; color: var(--text); display: grid; place-items: center; cursor: pointer; }
.ds-ib:hover:not(:disabled) { background: var(--surface-2); } .ds-ib:disabled { color: #C9CDD7; cursor: default; }
.ds-title { font: 500 28px var(--f-head); letter-spacing: -.02em; margin: 0 2px 0 6px; max-width: 40vw; }
.ds-count { font: 500 13.5px var(--f-head); color: var(--text-2); border: 1px solid #DADDE6; border-radius: 9px; padding: 3px 9px; white-space: nowrap; }
.ds-acts { display: flex; gap: 2px; } .ds-acts.sel { background: var(--accent-soft); border-radius: 12px; padding: 2px; }
.ds-import { height: 46px; padding: 0 18px; border-radius: 13px; font-size: 16px; gap: 8px; }
.ds-sep { width: 1px; height: 28px; background: var(--line); margin: 0 4px; }
.ds-view { display: flex; background: #F1F2F6; border-radius: 12px; padding: 3px; }
.ds-view button { width: 40px; height: 36px; border: 0; border-radius: 9px; background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.ds-view button.on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(13,13,40,.12); }
.ds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 18px 10px; padding: 18px 20px 30px; align-content: start; }
.ds-tile { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 14px 10px 12px; border-radius: 16px; cursor: default; border: 1.5px solid transparent; user-select: none; }
.ds-tile:hover { background: #F6F7FA; } .ds-tile.sel { background: #EEF3FF; border-color: #2A6BFF; }
.ds-ic { position: relative; width: 104px; height: 96px; display: grid; place-items: center; margin-bottom: 12px; }
.ds-folder { width: 96px; height: 80px; filter: drop-shadow(0 2px 2px rgba(180, 110, 0, .15)); }
.ds-folder-mark { position: absolute; right: 10px; bottom: 14px; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: #C77800; display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.ds-doc { position: relative; width: 80px; height: 96px; display: block; } .ds-doc svg { width: 80px; height: 96px; filter: drop-shadow(0 2px 3px rgba(13,13,40,.12)); }
.ds-badge { position: absolute; left: -8px; bottom: 16px; color: #fff; font: 800 13px/1 var(--f-head); padding: 5px 7px; border-radius: 6px; letter-spacing: .02em; box-shadow: 0 0 0 2px #fff; }
.ds-thumb { width: 104px; height: 96px; border-radius: 14px; overflow: hidden; display: block; position: relative; background: var(--surface-2); box-shadow: 0 2px 6px rgba(13,13,40,.12); }
.ds-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ds-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; }
.ds-star { position: absolute; top: 0; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: #FFB400; color: #fff; display: grid; place-items: center; }
.ds-name { font: 500 15px/1.35 var(--f-head); color: var(--text); word-break: break-all; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 100%; }
.ds-date { font-size: 13.5px; color: #9CA1AE; margin-top: 6px; }
.ds-foot { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-top: 1px solid #ECEEF3; background: #fff; }
.ds-crumbs { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; color: var(--text-2); scrollbar-width: none; }
.ds-crumbs button { border: 0; background: none; padding: 4px 6px; border-radius: 7px; font: 500 15px var(--f-head); color: var(--text-2); cursor: pointer; white-space: nowrap; }
.ds-crumbs button:hover { background: var(--surface-2); } .ds-crumbs button.cur { color: var(--text); font-weight: 700; } .ds-crumbs i { font-style: normal; color: #A8ADB9; }
.ds-quota { display: inline-flex; align-items: center; gap: 10px; border: 1px solid #E3E5EC; border-radius: 12px; padding: 7px 12px; font-size: 14.5px; white-space: nowrap; }
.ds-bar { display: inline-flex; gap: 2px; } .ds-bar i { width: 5px; height: 12px; border-radius: 2px; background: #E1E4EB; } .ds-bar i.on { background: #00B37E; }
.ds-scrim { display: none; }
.ds-main .fb-list { padding: 4px 8px; }
@media (max-width: 900px) {
  .dstation { grid-template-columns: 1fr; }
  .ds-side { position: fixed; z-index: 60; top: 0; bottom: 0; left: 0; width: min(320px, 86vw); background: #F3F4F8; transform: translateX(-102%); transition: transform .2s; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
  .dstation.drawer .ds-side { transform: none; } .dstation.drawer .ds-scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(10, 14, 30, .35); }
  .ds-close, .ds-menu { display: grid; } .ds-top-brand { display: inline-flex; } .ds-user-n { display: none; }
  .ds-right { padding: 6px 8px 8px; } .ds-title { font-size: 22px; max-width: 46vw; }
  .ds-head { padding: 12px 12px 6px; gap: 4px; } .ds-import span, .ds-acts:not(.sel) { display: none; } .ds-import { height: 40px; padding: 0 12px; } .ds-sep { display: none; }
  .ds-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px 4px; padding: 10px 10px 24px; }
  .ds-ic { width: 84px; height: 78px; } .ds-folder { width: 80px; height: 66px; } .ds-doc, .ds-doc svg { width: 64px; height: 78px; } .ds-thumb { width: 84px; height: 78px; }
  .ds-name { font-size: 13.5px; } .ds-date { font-size: 12px; }
  .ds-foot { flex-wrap: wrap; gap: 8px; padding: 10px 12px; } .ds-quota { font-size: 13px; }
}

/* ======================= Backup ======================= */
.bk-side { padding-top: 16px; } .bk-brand { font: 700 26px var(--f-head); letter-spacing: -.02em; padding: 4px 12px 14px; }
.bk-empty { text-align: center; padding: 44px 20px; } .bk-empty p { max-width: 520px; margin: 6px auto 18px; }
.bk-empty-art { width: 84px; height: 84px; border-radius: 24px; margin: 0 auto 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.nb { display: flex; flex-direction: column; gap: 10px; }
.nb-step { display: flex; align-items: center; gap: 14px; }
.nb-dot { width: 26px; height: 26px; border-radius: 50%; border: 2px dashed #22C55E; display: grid; place-items: center; flex: none; color: #fff; }
.nb-dot.done { background: #22C55E; border-style: solid; }
.nb-title { font: 500 22px var(--f-head); color: #9CA1AE; } .nb-title.active { color: #2A6BFF; }
.nb-list { display: flex; flex-direction: column; gap: 10px; margin-left: 12px; padding-left: 26px; border-left: 2px solid #D5D9E2; padding-bottom: 6px; }
.nb-row { background: #fff; border: 1px solid transparent; border-radius: 14px; box-shadow: 0 1px 2px rgba(13,13,40,.05); }
.nb-row.on { border-color: #D9DDE6; box-shadow: 0 4px 14px rgba(13,13,40,.07); }
.nb-row-h { display: flex; align-items: center; gap: 10px; padding: 16px 16px 16px 18px; cursor: pointer; font: 500 17px var(--f-head); color: #9CA1AE; }
.nb-row.on .nb-row-h, .nb-row-h:hover { color: var(--text); } .nb-row.off .nb-row-h { cursor: default; color: #B8BCC6; }
.nb-plus { width: 32px; height: 32px; border-radius: 9px; background: #1F5BFF; color: #fff; display: grid; place-items: center; }
.nb-fields { padding: 0 18px 16px; } .nb-shares { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.nb-opts { margin-top: 6px; }
.modal .nb-list { background: none; }
.st-nav:focus { outline: none; } .st-nav:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.st-search input { font-size: 14.5px; }
.vm-app { min-height: 100%; height: 100%; overflow: auto; }
@media (max-width: 900px) { .ds-top-brand { font-size: 0; gap: 0; } .ds-top-brand .brand-name-img { display: none; } .ds-new { font-size: 0; width: 40px; padding: 0; justify-content: center; gap: 0; } .ds-head > .ds-ib:last-child { display: none; } .ds-top { gap: 4px; } }
.vm-state { display: flex; align-items: center; gap: 8px; font-size: 13px; min-width: 0; }
.vm-dot { width: 9px; height: 9px; border-radius: 50%; background: #B7BDCB; flex: none; } .vm-dot.ok { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); } .vm-dot.err { background: var(--err); } .vm-dot.info { background: var(--info); }
.vm-card.st-ok { background: color-mix(in srgb, var(--ok-soft) 35%, #fff); }
.vm-log { margin: 0; height: 52vh; overflow: auto; background: #0F1420; color: #D8DEEA; border-radius: 12px; padding: 14px; font: 12.5px/1.55 var(--f-mono, monospace); white-space: pre-wrap; word-break: break-word; }
.vm-actions { justify-content: flex-start; flex-wrap: wrap; }

/* ======================= Drive: storage, profile menu, activity, background tasks ======================= */
.sbar { display: inline-flex; gap: 3px; align-items: center; }
.sbar i { flex: 1; min-width: 4px; height: 12px; border-radius: 3px; background: #E3E6ED; }
.sbar i.on { background: #00B37E; } .sbar.warn i.on { background: var(--warn); } .sbar.err i.on { background: var(--err); }
.ds-storage { display: flex; flex-direction: column; gap: 8px; width: 100%; text-align: left; padding: 14px; border: 1px solid #ECEEF3; border-radius: 18px; background: #fff; cursor: pointer; font: inherit; color: var(--text); }
.ds-storage:hover { box-shadow: 0 6px 18px rgba(13,13,40,.07); }
.ds-storage .sbar { display: flex; } .ds-storage-t { display: inline-flex; gap: 6px; align-items: center; font: 600 13.5px var(--f-head); color: var(--text-2); }
.ds-storage-v b { font: 700 20px var(--f-head); } .ds-storage-v span { color: var(--muted); font-size: 13px; }
.ds-powered { padding: 0 4px; }
.ds-chip { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border: 1px solid #E3E5EC; border-radius: 12px; background: #fff; cursor: pointer; font: 13px var(--f-head); color: var(--text-2); white-space: nowrap; }
.ds-chip .sbar { width: 64px; } .ds-chip .sbar i { height: 10px; } .ds-chip b { color: var(--text); }
.pm-wrap { position: relative; }
.ds-avatar { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #4C9BFF; color: #fff; font: 700 16px var(--f-head); cursor: pointer; display: grid; place-items: center; flex: none; box-shadow: 0 0 0 3px #fff, 0 0 0 4px #E3E5EC; }
.ds-avatar.lg { width: 46px; height: 46px; font-size: 18px; box-shadow: none; }
.pm { position: absolute; right: 0; top: 50px; z-index: 70; width: 300px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 44px rgba(13,13,40,.16); padding: 8px; }
.pm-head { display: flex; gap: 12px; align-items: center; padding: 10px 10px 12px; } .pm-name { font: 700 16px var(--f-head); }
.pm-usage { display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 10px 12px; margin-bottom: 6px; border: 0; border-radius: 12px; background: var(--surface-2); cursor: pointer; text-align: left; font: inherit; color: var(--text); }
.pm-usage .sbar { display: flex; }
.pm-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; border: 0; border-radius: 10px; background: none; cursor: pointer; font: 500 14px var(--f-head); color: var(--text); text-align: left; }
.pm-item:hover { background: var(--surface-2); } .pm-item svg { color: var(--muted); }
.pm hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.usage-ring { display: flex; gap: 22px; align-items: center; margin-bottom: 14px; } .usage-ring svg { width: 120px; height: 120px; flex: none; display: block; }
.uq-ring { position: relative; flex: none; } .uq-pct { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font: 700 20px var(--f-head); color: var(--text); }
.uq-pct small { font: 500 11px var(--f-body); color: var(--muted); }
.uq-bar { height: 8px; border-radius: 99px; background: #ECEEF3; overflow: hidden; margin: 0 0 14px; } .uq-bar i { display: block; height: 100%; border-radius: 99px; }
.uq-list { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 10px; }
.uq-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-size: 13.5px; color: var(--text-2); } .uq-row + .uq-row { border-top: 1px solid var(--border); }
.uq-row b { color: var(--text); font-weight: 600; } .uq-row .btn { margin-left: 4px; }
.uq-ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); flex: none; }
.pm-uv b { font: 700 18px var(--f-head); color: var(--text); }
.usage-big { font: 800 28px var(--f-head); }
.dev-list { display: flex; flex-direction: column; gap: 8px; }
.dev { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.dev-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.about { display: flex; gap: 16px; align-items: center; } .about img:not(.brand-name-img) { width: 64px; height: 64px; border-radius: 16px; flex: none; } .about .brand-name-img { max-width: 100%; object-fit: contain; } .about-n { font: 800 22px var(--f-head); }
.ds-panel .ds-head { border-bottom: 1px solid #ECEEF3; padding-bottom: 14px; }
.ds-view.seg button { width: auto; padding: 0 12px; font: 500 13px var(--f-head); }
.act-list { display: flex; flex-direction: column; padding: 6px 18px 20px; }
.act { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #F0F1F5; }
.act-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); flex: none; } .act-ic.err { background: var(--err-soft); color: var(--err); }
.la-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.la-stats div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; } .la-stats b { font: 800 22px var(--f-head); } .la-stats span { font-size: 12.5px; color: var(--muted); }
.bt-card { position: fixed; right: 18px; bottom: 18px; z-index: 65; width: min(400px, calc(100vw - 24px)); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 44px rgba(13,13,40,.18); overflow: hidden; }
.bt-h { display: flex; gap: 10px; align-items: center; padding: 12px 10px 10px 14px; }
.bt-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; } .bt-ic.ok { background: var(--ok-soft); color: var(--ok); } .bt-ic.err { background: var(--err-soft); color: var(--err); }
.bt-total { margin: 0 14px 8px; }
.bt-list { border-top: 1px solid var(--line); max-height: 220px; overflow: auto; }
.bt-row { display: flex; gap: 10px; align-items: center; padding: 8px 14px; font-size: 13px; border-bottom: 1px solid #F3F4F7; } .bt-pct { width: 40px; text-align: right; font-weight: 600; }
.bt-table tr.sel td { background: #EEF3FF; } .bt-table td { font-size: 13px; }
@media (max-width: 900px) { .ds-chip { display: none; } .pm { position: fixed; right: 8px; top: 56px; width: calc(100vw - 16px); max-width: 340px; } }

/* ======================= Domain & SSL ======================= */
.dm-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.dm-stats { display: flex; gap: 10px; } .dm-stats div { display: flex; flex-direction: column; padding: 8px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; min-width: 96px; }
.dm-stats b { font: 800 20px var(--f-head); } .dm-stats span { font-size: 12px; color: var(--muted); }
.dm-actions { display: flex; align-items: center; gap: 10px; } .dm-actions .tb-note { margin-left: 0; }
.dm-list { display: flex; flex-direction: column; gap: 10px; }
.dm-row { display: grid; grid-template-columns: minmax(220px, 2fr) 130px 140px minmax(180px, 1.6fr) 250px; gap: 14px; align-items: center; }
.dm-headrow { padding: 0 16px; font: 600 12px var(--f-head); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.dm-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.dm-card:hover { box-shadow: 0 6px 18px rgba(13,13,40,.06); }
.dm-name { display: flex; gap: 12px; align-items: center; min-width: 0; } .dm-name a { display: block; color: var(--text); text-decoration: none; } .dm-name a:hover { color: var(--accent); }
.dm-ic { width: 38px; height: 38px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.dm-btns { display: flex; gap: 6px; justify-content: flex-end; }
.dm-fail { display: flex; gap: 14px; align-items: flex-start; margin-top: 12px; padding: 12px; border-radius: 10px; background: var(--err-soft); }
.dm-fail pre { white-space: pre-wrap; margin: 4px 0 0; color: #8A1F24; } .dm-fail-btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.help-card summary { cursor: pointer; list-style: none; } .help-card summary::-webkit-details-marker { display: none; } .help-card summary::after { content: '▾'; float: right; color: var(--muted); }
.warn-text { color: var(--warn); }
@media (max-width: 1100px) { .dm-row { grid-template-columns: 1fr 1fr; } .dm-headrow { display: none; } .dm-btns { grid-column: 1 / -1; justify-content: flex-start; } }
/* desktop widgets: customize (add / remove / reorder / size) */
.w-tools { display: flex; justify-content: flex-end; gap: 6px; }
.w-custom { opacity: .0; transition: opacity .15s; } .widgets:hover .w-custom, .w-custom:focus-visible { opacity: 1; }
.widgets.editing .widget { outline: 2px dashed #C9CFE0; outline-offset: -2px; cursor: grab; }
.widget.dragging { opacity: .45; }
.w-edit { display: flex; align-items: center; gap: 6px; margin: -4px -4px 10px; padding: 4px 4px 8px; border-bottom: 1px solid var(--line); font-size: 13px; }
.w-grip { color: var(--muted); cursor: grab; display: grid; place-items: center; }
.widget.w-s .w-row:nth-of-type(n+4), .widget.w-s .w-kv, .widget.w-s svg.spark, .widget.w-s .mb-8:nth-of-type(n+3) { display: none; }
.widget.w-s { padding-bottom: 10px; }
.w-empty { text-align: center; color: var(--muted); }
/* Resource Monitor */
.rm-gauges { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 215px), 1fr)); gap: 14px; }   /* fits the window, not the browser */
.rm-gauge { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; color: var(--text); }
.rm-gauge svg { width: 78px; height: 78px; flex: none; } .rm-gauge > div { min-width: 0; } .rm-gl { font: 700 16px var(--f-head); }
.rm-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 18px; } .rm-facts div { display: flex; flex-direction: column; min-width: 0; }
@media (max-width: 620px) { .rm-facts { grid-template-columns: 1fr; } }
/* Container Manager (Phase 8) — tinted cards, no coloured edges */
.cm-wrap { display: grid; gap: 14px; }
.cm-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; background: #C2C7D3; vertical-align: middle; }
.cm-dot.run { background: var(--ok); } .cm-dot.err { background: var(--err); } .cm-dot.warn { background: var(--warn); } .cm-dot.used { background: var(--info); }
.cm-banner { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.cm-banner h2 { margin: 0 0 2px; font-size: 18px; }
.cm-banner.ok { background: linear-gradient(135deg, var(--ok-soft), #fff 70%); border-color: #CDEFE6; }
.cm-banner.warn { background: linear-gradient(135deg, var(--warn-soft), #fff 70%); border-color: #F4DDAE; }
.cm-bi { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; color: #fff; background: var(--ok); }
.cm-banner.warn .cm-bi { background: var(--warn); } .cm-bi svg { width: 22px; height: 22px; }
.cm-probs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cm-prob { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: #fff; border: 1px solid #F4DDAE; font-size: 12px; }
.cm-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cm-tile { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 12px; align-items: center; text-align: left; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--text); font: inherit; transition: box-shadow .15s, transform .15s; }
.cm-tile:hover { box-shadow: 0 6px 20px rgba(16, 24, 40, .07); transform: translateY(-1px); }
.cm-ti { grid-row: 1 / 4; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.cm-tl { font-size: 12px; color: var(--muted); } .cm-tv { font: 700 20px var(--f-head); line-height: 1.2; } .cm-ts { font-size: 12px; color: var(--muted); }
.cm-cols { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 14px; }
.cm-top { display: grid; grid-template-columns: minmax(0, 1fr) 110px 48px; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.cm-top:first-of-type { border-top: 0; }
.cm-tn { display: flex; flex-direction: column; min-width: 0; font-size: 13px; font-weight: 600; }
.cm-bars { display: grid; gap: 4px; } .cm-bars span { height: 5px; border-radius: 4px; background: #EEF0F6; overflow: hidden; }
.cm-bars i { display: block; height: 100%; border-radius: 4px; background: var(--accent); } .cm-bars .mem i { background: #20B2AA; }
.cm-tp { text-align: right; font-variant-numeric: tabular-nums; }
.cm-legend { display: flex; gap: 14px; margin-top: 8px; } .cm-legend i { display: inline-block; width: 10px; height: 4px; border-radius: 2px; margin-right: 5px; vertical-align: middle; background: var(--accent); } .cm-legend i.m { background: #20B2AA; }
.cm-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cm-bar .seg button { display: inline-flex; gap: 6px; align-items: center; }
.cm-n { font-size: 11px; padding: 0 6px; border-radius: 999px; background: rgba(0, 0, 0, .07); } .seg button.on .cm-n { background: rgba(255, 255, 255, .25); }
.cm-search { width: 240px; }
.cm-list { display: grid; gap: 8px; }
.cm-row { display: grid; grid-template-columns: 38px minmax(0, 1.6fr) minmax(0, 1.1fr) minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; cursor: default; transition: box-shadow .15s, border-color .15s; }
.cm-row:hover { box-shadow: 0 4px 16px rgba(16, 24, 40, .06); }
.cm-row.sel { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(76, 33, 255, .10); }
.cm-av { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font: 700 15px var(--f-head); }
.cm-main { min-width: 0; } .cm-name { display: flex; gap: 8px; align-items: center; min-width: 0; }
.cm-st { display: flex; flex-direction: column; gap: 3px; min-width: 0; align-items: flex-start; }
.cm-pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 8px; border-radius: 999px; font: 600 12px var(--f-head); background: #F1F2F6; color: var(--text-2); }
.cm-pill.run { background: var(--ok-soft); color: #00795F; } .cm-pill.err { background: var(--err-soft); color: #B4232A; } .cm-pill.warn { background: var(--warn-soft); color: #A86400; }
.cm-ports { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.cm-port { font-size: 11.5px; padding: 2px 8px; border-radius: 7px; background: #F3F4F8; color: var(--text-2); white-space: nowrap; }
.cm-acts { display: flex; gap: 2px; }
@media (max-width: 1100px) { .cm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cm-cols { grid-template-columns: 1fr; } .cm-row { grid-template-columns: 38px minmax(0, 1fr) auto; } .cm-st { grid-column: 2; } .cm-ports { display: none; } .cm-acts { grid-row: 1; grid-column: 3; } }
@media (max-width: 620px) { .cm-tiles { grid-template-columns: 1fr; } .cm-search { width: 100%; } }

/* ---- Recycle bin (File Station + Drive) ---- */
.rb-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px 10px; flex-wrap: wrap; }
.rb-head h2 { margin: 0; font-size: 18px; } .rb-head .btn { flex: none; }
.rb-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); flex: none; }
.rb-bar { display: flex; align-items: center; gap: 8px; padding: 8px 18px 10px; border-bottom: 1px solid var(--border); flex-wrap: wrap; min-height: 46px; }
.rb-search { width: 240px; max-width: 100%; }
.rb-table tbody tr { cursor: pointer; } .rb-table tbody tr.sel { background: var(--accent-soft); }
.rb-table td.actions { white-space: nowrap; text-align: right; }
@media (max-width: 700px) { .rb-table th:nth-child(3), .rb-table td:nth-child(3), .rb-table th:nth-child(5), .rb-table td:nth-child(5) { display: none; } .rb-search { width: 100%; } }

/* ---- update cards (App Store) ---- */
.upd-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--warn-soft); color: var(--text-2); }
.upd-card b { color: var(--text); } .upd-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--warn); flex: none; }

/* ---- desktop widget detail windows ---- */
.cu-list { display: flex; flex-direction: column; gap: 14px; }
.cu-user { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.cu-head { display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: var(--surface-2); }
.cu-av { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font: 700 16px var(--f-head); flex: none; }
.cu-table { font-size: 13px; } .cu-table td.actions { text-align: right; }
.hd-banner { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; margin-bottom: 14px; background: var(--ok-soft); }
.hd-banner.warn { background: var(--warn-soft); } .hd-banner.err { background: var(--err-soft); } .hd-banner h2 { margin: 0; font-size: 17px; }
.hd-ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--ok); flex: none; }
.hd-banner.warn .hd-ic { background: var(--warn); } .hd-banner.err .hd-ic { background: var(--err); }
.hd-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.hd-tile { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hd-tile span { font-size: 12px; color: var(--muted); } .hd-tile b { font: 700 19px var(--f-head); color: var(--text); } .hd-tile small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-group { margin-bottom: 12px; } .hd-group h4 { margin: 0 0 6px; color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
.hd-row { display: flex; gap: 10px; align-items: center; padding: 9px 4px; border-top: 1px solid var(--border); }
.hd-dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--ok); flex: none; }
.hd-dot.warn { background: var(--warn); } .hd-dot.err { background: var(--err); }
@media (max-width: 760px) { .hd-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- Security Advisor ---- */
.sa { display: flex; height: 100%; min-height: 0; }
.sa-side { width: 220px; flex: none; border-right: 1px solid var(--border); background: #fff; padding: 12px 10px; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.sa-sep { font: 600 11px var(--f-head); text-transform: uppercase; letter-spacing: .07em; color: var(--faint); padding: 14px 10px 6px; }
.sa-nav { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 9px; background: none; cursor: pointer; font: 500 13.5px var(--f-head); color: var(--text-2); text-align: left; }
.sa-nav:hover { background: var(--surface-2); } .sa-nav.on { background: var(--accent-soft); color: var(--accent-ink); }
.sa-nav > svg:last-child { color: var(--ok); }
.sa-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center; font: 700 11px var(--f-head); color: #fff; background: var(--warn); } .sa-n.err { background: var(--err); }
.sa-main { flex: 1; min-width: 0; overflow: auto; }
.sa-hero { display: flex; align-items: center; gap: 20px; padding: 20px 22px; border-radius: 16px; color: #fff; background: var(--ok); margin-bottom: 16px; flex-wrap: wrap; }
.sa-hero.warn { background: #C97A00; } .sa-hero.err { background: #D23033; } .sa-hero h2 { margin: 0 0 4px; color: #fff; font-size: 21px; } .sa-hero .btn { background: #fff; border-color: #fff; color: var(--text); }
.sa-gauge { position: relative; width: 96px; height: 96px; flex: none; } .sa-gauge svg { width: 100%; height: 100%; }
.sa-gauge b { position: absolute; inset: 0; display: grid; place-items: center; font: 800 28px var(--f-head); color: #fff; }
.sa-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.sa-card { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: #fff; cursor: pointer; text-align: left; font: inherit; color: var(--text-2); }
.sa-card:hover { box-shadow: var(--shadow); } .sa-card b { color: var(--text); font-family: var(--f-head); }
.sa-cic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--ok-soft); color: var(--ok); }
.sa-cic.warn { background: var(--warn-soft); color: var(--warn); } .sa-cic.err { background: var(--err-soft); color: var(--err); }
.sa-frac { font: 700 14px var(--f-head); color: var(--muted); }
.sa-list { border: 1px solid var(--border); border-radius: 14px; background: #fff; overflow: hidden; }
.sa-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; } .sa-row + .sa-row { border-top: 1px solid var(--border); }
.sa-t { font: 600 14px var(--f-head); color: var(--text); }
.sa-dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--ok); flex: none; }
.sa-row.warn .sa-dot { background: var(--warn); } .sa-row.err .sa-dot { background: var(--err); }
.sa-pass { font: 600 12.5px var(--f-head); color: var(--ok); }
.sa-allgood { display: flex; gap: 12px; align-items: center; padding: 16px; margin-top: 16px; border-radius: 14px; background: var(--ok-soft); color: var(--ok); } .sa-allgood b { color: var(--text); }
.sa-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sa-tile { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: #fff; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sa-tile span { font-size: 12px; color: var(--muted); } .sa-tile b { font: 700 18px var(--f-head); color: var(--text); } .sa-tile small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) { .sa { flex-direction: column; } .sa-side { width: auto; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--border); } .sa-sep { display: none; } .sa-nav { flex: none; } .sa-tiles { grid-template-columns: 1fr; } }

/* ---- Control Panel → Client Apps ---- */
.ca-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.ca-card { margin: 0; display: flex; flex-direction: column; }
.ca-card .seg { align-self: flex-start; }
.ca-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.ca-file { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.mt-12 { margin-top: 12px; }
.ga-mine { background: var(--accent-soft); border-radius: 12px; } .ga-na { font-size: 12px; color: var(--faint); white-space: nowrap; }
.ga-addr { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.locked-input { display: flex; align-items: center; gap: 8px; background: var(--surface-2); color: var(--muted); cursor: not-allowed; }
.vm-plan { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 10px 14px; margin-bottom: 14px; border-radius: 12px; background: var(--surface-2); font-size: 13px; color: var(--text-2); }
.vm-plan span { display: inline-flex; align-items: center; gap: 6px; } .vm-plan b { color: var(--text); }

/* ---- Control Panel → API & Billing ---- */
.ab-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 12px; margin-bottom: 16px; }
.ab-way { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.ab-way b { font-family: var(--f-head); color: var(--text); font-size: 15px; } .ab-way .btn { flex: none; }
.ab-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent); }
.ab-ic.warn { background: var(--warn-soft); color: var(--warn); }
.ab-new { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 14px; background: var(--ok-soft); color: var(--ok); margin-bottom: 16px; } .ab-new b { color: var(--text); }
.ab-can { display: flex; gap: 10px; align-items: flex-start; } .ab-can + .ab-can { margin-top: 10px; } .ab-can ul { margin: 4px 0 0; padding-left: 18px; }
.ab-cic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--surface-3); color: var(--text-2); }
.ab-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.danger-text { color: var(--err) !important; }
/* Security Advisor banner: tinted card (status colour on the gauge only) */
.sa-hero { color: var(--text-2); background: var(--ok-soft); --sa: var(--ok); }
.sa-hero.warn { background: var(--warn-soft); --sa: var(--warn); } .sa-hero.err { background: var(--err-soft); --sa: var(--err); }
.sa-hero h2 { color: var(--text); } .sa-hero .btn { background: #fff; border-color: var(--border); }
.sa-gauge circle:first-child { stroke: rgba(4,22,46,.08); } .sa-gauge circle:last-child { stroke: var(--sa); } .sa-gauge b { color: var(--sa); }

/* ---- Public link page: centred column, fixed header + footer, only the items scroll ---- */
.sp { height: 100%; display: flex; flex-direction: column; background: var(--bg); }
.sp-top { flex: none; height: 56px; display: flex; align-items: center; gap: 10px; padding: 0 20px; background: #fff; border-bottom: 1px solid var(--border); font: 700 16px var(--f-head); color: var(--text); }
.sp-top img:not(.brand-name-img) { width: 30px; height: 30px; border-radius: 8px; object-fit: contain; } .sp-top .brand-name-img { min-width: 0; max-width: 220px; object-fit: contain; }
.sp-col { flex: 1; min-height: 0; width: 100%; max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column; background: #fff; border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
.sp-head { flex: none; padding: 18px 22px 0; border-bottom: 1px solid var(--border); background: #fff; }
.sp-title { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; }
.sp-title h1 { margin: 0; font: 600 22px var(--f-head); color: var(--text); letter-spacing: -.01em; }
.sp-menu { width: 40px; height: 40px; color: var(--accent); }
.sp-note { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--text-2); background: var(--info-soft); border-radius: 10px; padding: 8px 12px; margin-bottom: 12px; }
.sp-crumbs { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; padding: 0 0 10px; color: var(--faint); }
.sp-crumbs button { border: 0; background: none; padding: 4px 6px; border-radius: 6px; cursor: pointer; font: 500 13.5px var(--f-head); color: var(--muted); } .sp-crumbs button:hover { background: var(--surface-2); } .sp-crumbs button.on { color: var(--text); }
.sp-cols { display: grid; grid-template-columns: minmax(0, 1fr) 110px 190px 44px; align-items: center; margin: 0 -22px; padding: 0 22px; border-top: 1px solid var(--border); background: var(--surface-2); }
.sp-cols button { border: 0; background: none; text-align: left; padding: 9px 4px; cursor: pointer; font: 500 12.5px var(--f-head); color: var(--muted); display: inline-flex; align-items: center; gap: 4px; } .sp-cols button:hover { color: var(--text); }
.sp-cols.grid { display: flex; gap: 6px; } .sp-cols.grid button { padding: 9px 8px; }
.sp-body { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; position: relative; }
.sp-body.single { display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--surface-2); }
.sp-preview { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.sp-preview img, .sp-preview video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; box-shadow: var(--shadow); background: #fff; }
.sp-preview iframe { width: 100%; height: 100%; border: 0; border-radius: 10px; background: #fff; box-shadow: var(--shadow); }
.sp-audio { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.sp-center { flex: 1; height: 100%; display: flex; align-items: center; justify-content: center; padding: 30px; }
.sp-msg { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: var(--text-2); max-width: 420px; } .sp-msg h2 { margin: 6px 0 0; } .sp-msg .btn { margin-top: 8px; }
.sp-list .sp-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px 190px 44px; align-items: center; padding: 0 22px; min-height: 46px; border-bottom: 1px solid var(--border); cursor: pointer; font-size: 14px; }
.sp-list.compact .sp-row { min-height: 34px; font-size: 13px; }
.sp-row:hover { background: var(--accent-soft); } .sp-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.sp-name { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--text); padding-right: 8px; }
.sp-c-size, .sp-c-time { font-size: 13px; padding: 0 4px; white-space: nowrap; } .sp-c-act { display: flex; justify-content: flex-end; }
.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; padding: 18px 22px; }
.sp-tile { display: flex; flex-direction: column; gap: 6px; padding: 6px; border: 1px solid transparent; border-radius: 12px; background: none; cursor: pointer; font: inherit; color: var(--text); min-width: 0; }
.sp-tile:hover { background: var(--accent-soft); border-color: var(--accent-line); }
.sp-thumb { position: relative; aspect-ratio: 1; border-radius: 9px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.sp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sp-play { position: absolute; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.55); color: #fff; }
.sp-tn { font-size: 12.5px; text-align: center; }
.sp-foot { flex: none; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 22px; border-top: 1px solid var(--border); background: #fff; font-size: 13px; color: var(--muted); }
.sp-foot b { color: var(--text); } .sp-powered { font-size: 12px; color: var(--faint); } .sp-powered a { color: var(--accent); }
@media (max-width: 700px) {
  .sp-col { border: 0; } .sp-head { padding: 12px 14px 0; } .sp-title h1 { font-size: 18px; } .sp-dl span, .sp-hide-s { display: none; }
  .sp-cols, .sp-list .sp-row { grid-template-columns: minmax(0, 1fr) 80px 40px; } .sp-cols { margin: 0 -14px; padding: 0 14px; } .sp-list .sp-row { padding: 0 14px; } .sp-c-time { display: none; }
  .sp-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; padding: 10px; } .sp-foot { padding: 0 14px; } .sp-powered { display: none; }
}
.la-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; background: var(--info); vertical-align: middle; } .la-dot.download { background: var(--accent); }
.nowrap { white-space: nowrap; }

/* 1.7: easier to read — right-click menu +10 %, messages +5 %, upload panel +5 % */
.menu { min-width: 232px; padding: 6px; border-radius: 11px; }
.menu button { padding: 8px 11px; font-size: 14.85px; gap: 11px; border-radius: 8px; }
.menu button svg { width: 17.6px; height: 17.6px; }
.menu hr { margin: 5px 2px; }
.toast { font-size: 14.2px; min-width: 294px; max-width: 441px; padding: 13px 15px; } .toast .ti { width: 23px; height: 23px; }
.alert { font-size: 13.65px; } .login-card .lc-error { font-size: 13.65px; } .field .err, .error-text { font-size: 13.65px; }
.bt-card { zoom: 1.05; }

/* ---- Public link page, full width (1.8): uses the whole window like Google Drive; header + footer span the width ---- */
.sp { background: #fff; }
.sp-top { height: 60px; padding: 0 24px; border-bottom: 0; background: var(--bg); }
.sp-col { max-width: none; margin: 0; border: 0; background: #fff; }
.sp-head { padding: 18px 28px 0; border-bottom: 0; }
.sp-title { gap: 14px; padding-bottom: 14px; }
.sp-title h1 { font: 500 26px var(--f-head); letter-spacing: -.015em; }
.sp-views { display: inline-flex; border: 1px solid var(--border-2); border-radius: 999px; overflow: hidden; flex: none; }
.sp-views button { height: 38px; min-width: 52px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; border: 0; background: #fff; color: var(--text-2); cursor: pointer; }
.sp-views button + button { border-left: 1px solid var(--border-2); }
.sp-views button.on { background: var(--accent-soft); color: var(--accent-ink); }
.sp-cols, .sp-list .sp-row { grid-template-columns: minmax(0, 1fr) minmax(140px, 18%) minmax(150px, 15%) minmax(100px, 10%) 48px; }
.sp-cols { margin: 0 -28px; padding: 0 28px; background: #fff; border-top: 0; border-bottom: 1px solid var(--border); }
.sp-cols button, .sp-cols > span { padding: 12px 4px; font: 600 13.5px var(--f-head); color: var(--text-2); }
.sp-cols.grid { display: flex; align-items: center; gap: 4px; }
.sp-cols.grid > span { font-weight: 500; color: var(--muted); }
.sp-cols.grid button { border-radius: 999px; padding: 6px 12px; } .sp-cols.grid button.on { background: var(--accent-soft); color: var(--accent-ink); }
.sp-list .sp-row { padding: 0 28px; min-height: 50px; font-size: 14.5px; }
.sp-c-own { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; }
.sp-c-size, .sp-c-time { font-size: 13.5px; }
.sp-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; padding: 22px 28px; }
.sp-thumb { border-radius: 12px; }
.sp-tn { font-size: 13px; }
.sp-body.single { background: var(--bg); }
.sp-foot { padding: 0 28px; min-height: 48px; background: #fff; }
@media (min-width: 1800px) { .sp-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
@media (max-width: 900px) { .sp-c-own { display: none; } .sp-cols, .sp-list .sp-row { grid-template-columns: minmax(0, 1fr) 130px 90px 44px; } }
@media (max-width: 700px) {
  .sp-top { padding: 0 14px; } .sp-head { padding: 12px 14px 0; } .sp-title h1 { font-size: 19px; }
  .sp-cols, .sp-list .sp-row { grid-template-columns: minmax(0, 1fr) 80px 40px; } .sp-cols { margin: 0 -14px; padding: 0 14px; } .sp-list .sp-row { padding: 0 14px; }
  .sp-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; padding: 12px 14px; } .sp-foot { padding: 0 14px; }
  .sp-views button { min-width: 42px; padding: 0 10px; } .sp-views button svg:first-child:not(:last-child) { display: none; }
}

/* ---- Log Center (1.8): fixed column widths, time never wraps, per-client logs ---- */
.lc-side { width: 230px; }
.lc-side .soft { background: var(--surface-2); }
.lc-usearch { display: flex; align-items: center; gap: 6px; margin: 0 4px 6px; padding: 0 10px; height: 34px; border: 1px solid var(--border); border-radius: 9px; color: var(--faint); }
.lc-usearch input { border: 0; outline: 0; flex: 1; min-width: 0; font: 13px var(--f-body); background: transparent; color: var(--text); }
.lc-users { display: flex; flex-direction: column; gap: 1px; }
.app-side .lc-user { display: flex; align-items: center; gap: 9px; min-height: 42px; }
.lc-user b { display: block; font-weight: 600; font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; } .lc-user small { display: block; font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.lc-av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent-ink); font: 700 12px var(--f-head); }
.lc-av.sm { width: 22px; height: 22px; font-size: 11px; }
.lc-tools { flex-wrap: wrap; gap: 8px; } .lc-q { max-width: 300px; flex: 1 1 200px; } .lc-lvl { width: 140px; }
.lc-chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 6px 0 6px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font: 600 13px var(--f-head); }
.lc-chip button { width: 22px; height: 22px; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; display: grid; place-items: center; } .lc-chip button:hover { background: rgba(0,0,0,.06); }
.lc-table { table-layout: fixed; min-width: 760px; }
.lc-table col.c-time { width: 150px; } .lc-table col.c-lvl { width: 76px; } .lc-table col.c-cat { width: 128px; } .lc-table col.c-user { width: 140px; } .lc-table col.c-ip { width: 132px; }
.lc-table td { vertical-align: middle; } .lc-ev { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mono-num { font-variant-numeric: tabular-nums; font-size: 12.5px; color: var(--text-2); }
.lc-ulink { border: 0; background: none; padding: 0; font: inherit; color: var(--accent); cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; } .lc-ulink:hover { text-decoration: underline; }
.lc-app .fb-body { overflow: auto; }
@media (max-width: 760px) { .lc-side { width: auto; } }

/* ---- Sign-in card (1.8): larger and better proportioned on computer screens, unchanged on phones ---- */
@media (min-width: 700px) {
  .login-card { width: min(500px, 100%); border-radius: 22px; }
  .lc-head { padding: 26px 40px 0; } .lc-body { padding: 10px 40px 30px; min-height: 360px; } .lc-body:has(.lc-signin) { min-height: 0; } .lc-foot { padding: 14px 40px; }
  .lc-title { font-size: 28px; } .lc-sub { font-size: 15px; } .lc-sub.lc-lead { font-size: 16px; }
  .lc-box { height: 54px; border-radius: 13px; } .lc-box input { font-size: 16px; }
  .lc-label { font-size: 13.5px; }
  .lc-btn { height: 54px; font-size: 16px; border-radius: 13px; }
}
.lc-tools > .lc-lvl { flex: 0 0 150px; width: 150px; } .lc-tools > .lc-q { flex: 1 1 180px; width: auto; min-width: 140px; } .lc-tools > .grow { flex: 1 1 0; min-width: 0; }

/* ---- built-in privacy policy page ---- */
.pp-page { height: 100%; overflow: auto; background: var(--bg); }
.pp-top { display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 24px; background: #fff; border-bottom: 1px solid var(--border); font: 700 16px var(--f-head); color: var(--text); }
.pp-top img:not(.brand-name-img) { width: 30px; height: 30px; border-radius: 8px; } .pp-top .brand-name-img { max-width: 220px; object-fit: contain; }
.pp-doc { max-width: 760px; margin: 28px auto 60px; padding: 34px 40px; background: #fff; border-radius: 18px; border: 1px solid var(--border); line-height: 1.65; color: var(--text-2); }
.pp-doc h1 { margin: 0; font: 700 30px var(--f-head); color: var(--text); } .pp-doc h2 { margin: 26px 0 6px; font: 700 17px var(--f-head); color: var(--text); }
@media (max-width: 700px) { .pp-doc { margin: 0; border-radius: 0; border: 0; padding: 22px 18px; } }
/* suspended / disabled account card on the sign-in page */
.lc-blocked .lc-state-ic.warn { background: var(--err-soft, #FDEFEF); color: var(--err, #B42828); }
/* suspended / disabled card: full-width actions like the phone apps — primary, soft, then a quiet link */
.lc-blocked .lc-actions { align-self: stretch; width: 100%; }
.lc-blocked .lc-btn { margin-top: 0; }
.lc-btn.soft { background: var(--accent-soft, #EEE9FF); color: var(--accent-ink, #3A16D1); } .lc-btn.soft:hover { background: color-mix(in srgb, var(--accent) 16%, var(--accent-soft, #EEE9FF)); }
.lc-btn.link { background: transparent; color: var(--accent); height: 42px; } .lc-btn.link:hover { background: var(--surface-2); }
.lc-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); color: var(--text-2); font-size: 14px; line-height: 1.5; margin: 0 0 20px; text-align: left; }
.lc-note svg { color: var(--ok); flex: none; margin-top: 1px; }
.lc-actions { display: grid; gap: 10px; margin-top: auto; }
.lc-btn.ghost { background: var(--surface-2); color: var(--text); } .lc-btn.ghost:hover { background: var(--surface-3); }
a.lc-btn { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.choice.off { opacity: .55; cursor: not-allowed; } .choice-row { flex-wrap: wrap; }
.sf-list { display: grid; gap: 10px; } .sf-row { display: flex; gap: 10px; align-items: flex-start; }
.sf-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--ok-soft); color: var(--ok); }

/* ---- same names (1.10): Replace / Keep both / Skip ---- */
.cf-compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin-bottom: 10px; }
.cf-side { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--surface-2); min-width: 0; }
.cf-same { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #00795F; background: var(--ok-soft); border-radius: 10px; padding: 7px 10px; margin-bottom: 10px; }
.cf-same.warn { color: #A86400; background: var(--warn-soft); }
.cf-opts { display: grid; gap: 8px; margin-top: 4px; }
.cf-opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 12px 14px; cursor: pointer; color: var(--text); font: inherit; transition: border-color .12s, background .12s; }
.cf-opt:hover, .cf-opt:focus-visible { border-color: var(--accent-line); background: var(--accent-soft); outline: none; }
.cf-opt b { display: block; font-size: 14.5px; } .cf-opt .tiny { display: block; margin-top: 2px; line-height: 1.4; }
.cf-opt.ghost { background: var(--surface-2); }
.cf-ic { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.cf-list { max-height: 46vh; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.cf-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.cf-row:last-child { border-bottom: 0; }
.cf-tag { color: #00795F; font-weight: 600; }
.cf-seg { display: inline-flex; flex: none; background: var(--surface-3); border-radius: 9px; padding: 2px; }
.cf-seg button { border: 0; background: transparent; padding: 5px 9px; border-radius: 7px; font: 600 12px var(--f-body, inherit); color: var(--text-2); cursor: pointer; white-space: nowrap; }
.cf-seg button.on { background: var(--surface); color: var(--accent); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
@media (max-width: 560px) { .cf-compare { grid-template-columns: 1fr; } .cf-compare > svg { transform: rotate(90deg); justify-self: center; } .cf-row { flex-wrap: wrap; } }
/* ---- PDF preview: loading state (large files) ---- */
.pdf-view { position: relative; width: min(1100px, 100%); height: 100%; }
.pdf-view iframe { width: 100%; height: 100%; border: 0; border-radius: 8px; background: #525659; }
.sp-preview .pdf-view { width: 100%; }
.pdf-wait { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #fff; background: #525659; border-radius: 8px; text-align: center; padding: 20px; }
.pdf-wait .spinner { width: 34px; height: 34px; border: 3px solid rgba(255,255,255,.25); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; margin-bottom: 6px; }
.pdf-wait .small { opacity: .8; } .pdf-wait .btn { margin-top: 8px; }
.pdf-wait .pdf-bar { width: min(280px, 70%); height: 6px; background: rgba(255,255,255,.18); }
.pdf-wait .pdf-bar i { background: #fff; }
/* ---- 1.12 Network & Security ---- */
.net-pending { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); margin-bottom: 16px; }
.net-pending.lost { background: var(--err-soft); border-color: color-mix(in srgb, var(--err) 35%, transparent); }
.net-pending-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: #A86400; flex: none; }
.net-pending.lost .net-pending-ic { color: var(--err); }
.net-bar { display: flex; gap: 8px; align-items: center; margin: 4px 0 12px; flex-wrap: wrap; }
.net-dd { position: relative; }
.net-menu { position: absolute; top: calc(100% + 4px); left: 0; z-index: 20; min-width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 4px; }
.net-menu button { display: flex; gap: 8px; align-items: center; width: 100%; border: 0; background: none; padding: 9px 10px; border-radius: 7px; cursor: pointer; font: inherit; color: var(--text); text-align: left; }
.net-menu button:hover { background: var(--accent-soft); }
.net-list { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.net-row { display: grid; grid-template-columns: 44px 1fr minmax(160px, 34%); gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); cursor: pointer; }
.net-row:last-child { border-bottom: 0; }
.net-row:hover { background: var(--surface-2); }
.net-row.on { background: var(--accent-soft); }
.net-row.member { padding-left: 36px; }
.net-dot { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; }
.net-dot.up { background: var(--info-soft); color: var(--info); } .net-dot.down { background: var(--surface-3); color: var(--muted); }
.net-ok { color: var(--info); }
.net-addr .mono { font-size: 13px; }
.net-more { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px 18px; padding-top: 6px; }
.net-more div { display: flex; flex-direction: column; } .net-more span { font-size: 12px; color: var(--muted); } .net-more b { font-weight: 500; font-size: 13px; word-break: break-all; }
.net-form { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; }
.net-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; padding-left: 24px; }
.net-fields.off { opacity: .55; }
.net-small { max-width: 220px; } .net-tiny { width: 90px; } select.input.net-unit { width: 120px; flex: none; }
.net-modes { display: grid; gap: 8px; } .net-modes.two { grid-template-columns: 1fr 1fr; }
.net-mode { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.net-mode.on { border-color: var(--accent-line); background: var(--accent-soft); }
.net-mode input { margin-top: 3px; }
.net-ports { display: flex; flex-direction: column; gap: 6px; }
.net-order td { vertical-align: middle; }
.sec-tabs { position: sticky; top: -20px; margin-top: -16px; padding-top: 16px; z-index: 5; background: var(--surface, #fff); }
@media (max-width: 760px) { .sec-tabs { top: -14px; margin-top: -14px; padding-top: 14px; } }
.sec-card-h { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 12px; }
.sec-card-h h3 { margin: 0 0 2px; }
.sec-check { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 14px; } .sec-check input { margin-top: 3px; }
.sec-check.off { opacity: .55; }
.sec-sub { padding: 4px 0 8px 26px; }
.sec-list { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sec-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 999px; background: var(--surface-3); font-size: 13px; }
.sec-chip button { border: 0; background: none; cursor: pointer; color: var(--muted); display: grid; place-items: center; padding: 2px; border-radius: 50%; } .sec-chip button:hover { background: var(--surface); color: var(--err); }
.sec-radios { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.sec-pick { max-height: 220px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; display: flex; flex-direction: column; gap: 4px; }
.sec-save { display: flex; justify-content: flex-end; margin: -6px 0 16px; }
.sec-card .sec-save { margin: 10px 0 0; }
.fw-table td { vertical-align: middle; }
@media (max-width: 700px) { .net-row { grid-template-columns: 40px 1fr; } .net-addr { grid-column: 2; } .net-fields, .net-modes.two { grid-template-columns: 1fr; padding-left: 0; } }

/* Resource Monitor → Network (1.13) */
.tr-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.tr-periods { flex-wrap: wrap; }
.tr-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 12px; }
.tr-tiles .card { padding: 14px 16px; }
.tr-v { font: 700 20px var(--f-head); color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-v.live { font-size: 16px; white-space: normal; display: flex; flex-wrap: wrap; gap: 0 10px; } .tr-v.in { color: #1F7AE0; } .tr-v.out { color: #4C21FF; }
.tr-chart { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; gap: 4px 8px; }
.tr-axis { display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; color: var(--muted); text-align: right; white-space: nowrap; }
.tr-plot { display: flex; align-items: flex-end; gap: 2px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to top, transparent 0, transparent calc(50% - 1px), var(--line) calc(50% - 1px), var(--line) 50%); }
.tr-b { flex: 1; min-width: 2px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 1px; cursor: default; }
.tr-b:hover { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.tr-b i { display: block; border-radius: 2px 2px 0 0; min-height: 0; } .tr-b i.in { background: #1F7AE0; border-radius: 0; } .tr-b i.out { background: #4C21FF; }
.tr-x { grid-column: 2; display: flex; gap: 2px; font-size: 10.5px; color: var(--muted); } .tr-x span { flex: 1; min-width: 2px; white-space: nowrap; overflow: visible; }
.tr-key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; } .tr-key.in { background: #1F7AE0; } .tr-key.out { background: #4C21FF; }
.tr-search { max-width: 280px; }
.tr-table td.num, .tr-table th.num, .table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tr-user { cursor: pointer; } .tr-user.on td { background: var(--surface-2); }
.tr-share { display: inline-block; width: 70px; height: 6px; border-radius: 4px; background: var(--surface-2); overflow: hidden; vertical-align: middle; margin-right: 6px; } .tr-share i { display: block; height: 100%; background: var(--accent); }
.tr-detail td { background: var(--surface-2); padding: 10px 16px 14px; }
.tr-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.tr-chip { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; display: flex; flex-direction: column; font-size: 12px; } .tr-chip b { font-size: 12.5px; } .tr-chip.sub { border-style: dashed; }
/* Panel backup (1.13) */
.pb-status { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 12px; font-size: 13px; color: var(--text-2); } .pb-status > div { display: flex; gap: 8px; align-items: flex-start; } .pb-status svg { flex: none; margin-top: 2px; color: var(--muted); }
.pb-job { display: flex; align-items: center; gap: 8px; }
.pb-restored { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; } .pb-restored ul { margin: 0; padding-left: 4px; list-style: none; display: grid; gap: 3px; }
.link-btn { color: var(--accent); cursor: pointer; text-decoration: underline; }
.pr { min-width: 0; }
.pr-wait { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 26px 10px; }
.pr-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.pr-counts { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin-bottom: 12px; }
.pr-counts div { background: var(--surface-2); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; } .pr-counts b { font: 700 18px var(--f-head); } .pr-counts span { font-size: 11.5px; color: var(--muted); }
.pr-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px; border: 1.5px dashed var(--border-2); border-radius: 14px; cursor: pointer; color: var(--text-2); }
.pr-drop:hover { border-color: var(--accent); color: var(--accent); }
.pr-found { display: flex; flex-direction: column; gap: 8px; }
.pr-item { display: flex; gap: 12px; align-items: center; text-align: left; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; font: inherit; color: inherit; }
.pr-item:hover { border-color: var(--accent); }
.pr-empty { padding: 14px; background: var(--surface-2); border-radius: 12px; }
.setup-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0 6px; }
.setup-choice button { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; text-align: left; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; font: inherit; color: inherit; }
.setup-choice button:hover { border-color: var(--accent); } .setup-choice b { font-size: 15px; }
@media (max-width: 560px) { .setup-choice { grid-template-columns: 1fr; } }

/* 1.14 desktop personalisation: drag to rearrange, Control Panel shortcuts, apps pinned to the taskbar */
.ta-c { text-align: center; }
.desk-icon { touch-action: none; user-select: none; -webkit-user-select: none; }
.desk-icon.drag-src { opacity: .28; }
.desk-icons.dragging .desk-icon:not(.drag-src) { transition: transform .12s; }
.desk-icons.dragging, .desk-icons.dragging * { cursor: grabbing !important; }
.desk-ghost { position: fixed; z-index: 4000; pointer-events: none; transform: translate(-50%, -40%); display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 6px; width: 100px; border-radius: 10px; background: rgba(255,255,255,.72); box-shadow: 0 10px 30px rgba(4,22,46,.22); font: 500 12px var(--f-head); color: #1B1F2B; text-align: center; }
.di-link { position: absolute; left: -3px; bottom: -3px; width: 18px; height: 18px; border-radius: 6px; background: #fff; color: var(--accent); font: 700 12px/18px var(--f-head); font-style: normal; box-shadow: 0 1px 4px rgba(0,0,0,.25); text-align: center; }
.taskbar .tb-pin { min-width: 46px; padding: 0 11px; }
.taskbar .tb-pin:not(.open) .tb-pin-t { display: none; }
.taskbar .tb-pin.open::after { content: ''; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--accent); }
.taskbar .tb-pin.open.on::after { display: none; }
@media (max-width: 760px) { .taskbar .tb-pin .tb-pin-t { display: none; } }

/* 1.14 Drive → Usage */
.us-body { overflow: auto; padding: 4px 4px 24px; }
.us-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.us-page h3 { margin: 0 0 10px; font: 600 15px var(--f-head); } .us-page h4 { margin: 0 0 8px; font: 600 13px var(--f-head); }
.us-ringrow { align-items: center; margin: 6px 0 14px; } .us-ringrow .uq-ring svg { width: 104px; height: 104px; display: block; }
.us-big { font: 700 24px var(--f-head); color: var(--text); font-variant-numeric: tabular-nums; }
.us-stack { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--surface-2); margin-bottom: 10px; } .us-stack i { display: block; min-width: 2px; }
.us-types { display: grid; gap: 6px; } .us-type { display: flex; align-items: center; gap: 10px; font-size: 13.5px; } .us-type b { min-width: 76px; text-align: right; font-variant-numeric: tabular-nums; }
.us-dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.us-folders { display: grid; gap: 8px; } .us-folder { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; font-size: 13.5px; } .us-folder b { font-variant-numeric: tabular-nums; }
.us-bar { grid-column: 2 / 4; height: 5px; border-radius: 3px; background: var(--surface-2); overflow: hidden; } .us-bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.us-hist svg { width: 100%; height: 110px; display: block; } .us-area { fill: color-mix(in srgb, var(--accent) 14%, transparent); } .us-line { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.us-quota { stroke: var(--err); stroke-dasharray: 5 4; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.us-page .seg { flex-wrap: wrap; }
.us-page h3.mt-16 { margin-top: 20px; }
.lock-box { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--surface-2); }
/* 1.14 Ransomware Protection */
.gd-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 8px; }
.gd-task { padding: 6px 0; border-bottom: 1px solid var(--line); } .gd-task:last-child { border-bottom: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
/* 1.14 UPS */
.ups-state { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-top: 8px; background: var(--surface-2); }
.ups-state.ok { border-color: color-mix(in srgb, var(--ok, #0E9F6E) 40%, transparent); } .ups-state.warn { border-color: var(--warn); background: color-mix(in srgb, var(--warn) 8%, transparent); } .ups-state.err { border-color: var(--err); background: color-mix(in srgb, var(--err) 8%, transparent); }
.ups-big { display: flex; align-items: center; gap: 8px; font: 600 15px var(--f-head); }
.ups-meters { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-top: 10px; } .ups-meters > div { display: flex; flex-direction: column; gap: 3px; } .ups-meters b { font: 700 18px var(--f-head); }
.ups-events { display: grid; gap: 6px; max-height: 220px; overflow: auto; }
.ups-test { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 10px; border: 1px dashed var(--warn); border-radius: 10px; }
/* 1.14 online editor */
.office-page { position: fixed; inset: 0; display: flex; flex-direction: column; background: var(--bg, #fff); }
.office-frame { flex: 1; min-height: 0; } .office-frame iframe { border: 0; }
.office-note { display: flex; align-items: center; gap: 8px; padding: 6px 14px; font-size: 13px; background: color-mix(in srgb, var(--warn) 14%, transparent); }
.office-load, .office-err { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; padding: 24px; }
.office-err h2 { margin: 6px 0 0; font: 600 20px var(--f-head); } .office-err p { color: var(--muted); max-width: 520px; }
/* Office Docs (1.17): a slim bar above the in-browser editor */
.ob { background: #fff; }
.ob-bar { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 12px 0 8px; border-bottom: 1px solid var(--border); background: #fff; flex: none; }
.ob-back { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--text-2); }
.ob-back:hover { background: var(--hover, #F3F4F8); color: var(--text); }
.ob-doc { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; color: #fff; background: #2F6FED; flex: none; }
.ob-doc.ob-xlsx, .ob-doc.ob-xls, .ob-doc.ob-ods, .ob-doc.ob-csv { background: #1E8E50; }
.ob-doc.ob-pptx, .ob-doc.ob-ppt, .ob-doc.ob-odp { background: #D9532A; }
.ob-doc.ob-pdf { background: #C8382E; }
.ob-name { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.ob-name b { font: 600 14px var(--f-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ob-status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ob-status.ok { color: var(--ok, #15803D); } .ob-status.err { color: var(--err, #DC2626); } .ob-status.busy { color: var(--text-2); }
.ob-status .spinner.sm { width: 11px; height: 11px; border-width: 2px; }
.ob-acts { display: flex; gap: 8px; flex: none; }
.ob-body { position: relative; flex: 1; min-height: 0; }
.ob-frame { width: 100%; height: 100%; border: 0; display: block; }
.ob-cover { position: absolute; inset: 0; display: grid; place-items: center; background: #fff; }
.ob-load { display: grid; justify-items: center; gap: 10px; color: var(--text-2); font-size: 14px; }
@media (max-width: 640px) { .ob-acts .btn { padding: 0 10px; } .ob-status { display: none; } }

/* 1.15 drive health */
.dh-role { width: 220px; }
@media (max-width: 760px) { .dh-role { display: none; } }
.dh-card { display: flex; flex-direction: column; gap: 14px; }
.dh-head { display: flex; align-items: center; gap: 14px; }
.dh-badge { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--surface-3); color: var(--muted); }
.dh-badge.ok { background: var(--ok-soft); color: #00795F; } .dh-badge.warn { background: var(--warn-soft); color: #A86400; } .dh-badge.err { background: var(--err-soft); color: #B4232A; }
.dh-risk { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.dh-issues { display: flex; flex-direction: column; gap: 8px; } .dh-issues .alert { margin: 0; }
.dh-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px 18px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dh-stats .stat .v { font-size: 18px; }
.dh-sub { display: flex; flex-direction: column; gap: 8px; }
.dh-trends { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.dh-trend { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.dh-trend-h { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; font-size: 12.5px; margin-bottom: 6px; }
.dh-svg { width: 100%; height: 70px; display: block; }
/* 1.15 e-mail alerts */
.ma-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 16px; }
.ma-cat { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.ma-cat input { margin-top: 3px; } .ma-cat .t { font-weight: 600; color: var(--text); font-size: 13.5px; } .ma-cat .d { font-size: 12px; color: var(--muted); }
.ma-log td { font-size: 12.5px; } .ma-log .err-text { max-width: 280px; }
/* 1.15 My Apps */
.my-use { display: flex; gap: 12px; margin-top: 2px; }
/* App Store (1.17): live progress of install / uninstall / start / stop / update */
.op-box { width: 280px; display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.op-box.compact { width: auto; max-width: 420px; padding: 0; border: 0; background: none; gap: 3px; margin-top: 4px; }
.op-top { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.op-top .op-pct { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--text-2); }
.op-box.compact .op-top { font-size: 12px; }
.op-step { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op-box .progress > i { transition: width .9s ease; }
.op-box .spinner.sm, .badge .spinner.sm { width: 11px; height: 11px; border-width: 2px; }
.app-log { max-height: 60vh; overflow: auto; margin: 0; padding: 12px 14px; background: #0F1320; color: #D7DCEA; border-radius: 10px; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-all; }

/* ================= Document Viewer (1.18): PDFs and notes ================= */
.dv { position: fixed; inset: 0; display: flex; flex-direction: column; background: var(--bg-2, #F5F6FA); }
.dv-card { margin: auto; display: grid; justify-items: center; gap: 10px; text-align: center; padding: 32px; max-width: 520px; color: var(--text-2); }
.dv-card h2 { margin: 4px 0 0; font: 600 20px var(--f-head); color: var(--text); } .dv-card p { margin: 0; color: var(--muted); }
.dv-body { flex: 1; min-height: 0; display: flex; }
.dv-media { align-items: center; justify-content: center; background: #1B1F2A; padding: 16px; }
.dv-media img, .dv-media video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.dv-media .dv-card { background: #fff; border-radius: 16px; color: var(--text-2); }
.dv-sep { width: 1px; height: 22px; background: var(--border); margin: 0 4px; flex: none; }
.dv-tools, .dv-toolbar { display: flex; align-items: center; gap: 2px; padding: 6px 10px; background: #fff; border-bottom: 1px solid var(--border); flex: none; overflow-x: auto; scrollbar-width: none; }
.dv-tools .btn, .dv-toolbar .btn { flex: none; }
.dv-tb-t { font: 700 12.5px var(--f-head); min-width: 16px; display: inline-block; }
.dv-toolbar .btn.on, .dv-tools .btn.on { background: var(--accent-soft); color: var(--accent); }
.dv-toolbar .btn.danger { color: var(--err); }
/* notes */
.dv-notes { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr; }
.dv-notes.m-split { grid-template-columns: 1fr 1fr; }
.dv-text { width: 100%; height: 100%; border: 0; resize: none; outline: none; padding: 28px max(24px, calc((100% - 820px) / 2)); font: 15px/1.7 var(--f-body); color: var(--text); background: #fff; }
.dv-notes.m-split .dv-text { padding: 24px 28px; border-right: 1px solid var(--border); }
.dv-text.plain { font: 14px/1.6 var(--mono, ui-monospace, Menlo, monospace); }
.dv-md { overflow: auto; padding: 28px max(24px, calc((100% - 820px) / 2)); background: #fff; font: 15px/1.7 var(--f-body); color: var(--text); }
.dv-notes.m-split .dv-md { padding: 24px 32px; background: #FCFCFE; }
.dv-md h1, .dv-md h2, .dv-md h3, .dv-md h4 { font-family: var(--f-head); line-height: 1.25; margin: 1.2em 0 .5em; }
.dv-md h1 { font-size: 28px; } .dv-md h2 { font-size: 22px; } .dv-md h3 { font-size: 18px; }
.dv-md > :first-child { margin-top: 0; }
.dv-md p { margin: 0 0 .9em; } .dv-md ul, .dv-md ol { margin: 0 0 .9em; padding-left: 1.4em; }
.dv-md li.md-task { list-style: none; margin-left: -1.3em; } .dv-md li.md-task input { margin-right: 6px; accent-color: var(--accent); }
.dv-md blockquote { margin: 0 0 .9em; padding: 4px 16px; border-left: 3px solid var(--accent-line, #C9C2FF); color: var(--text-2); }
.dv-md code { font: 13px var(--mono, monospace); background: #F1F2F7; padding: 1px 5px; border-radius: 5px; }
.dv-md pre.md-code { background: #F6F7FB; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; overflow: auto; }
.dv-md pre.md-code code { background: none; padding: 0; }
.dv-md hr { border: 0; border-top: 1px solid var(--border); margin: 1.4em 0; }
.dv-md a { color: var(--accent); }
.dv-md .md-table { overflow: auto; margin: 0 0 1em; } .dv-md table { border-collapse: collapse; } .dv-md th, .dv-md td { border: 1px solid var(--border); padding: 6px 12px; text-align: left; } .dv-md th { background: #F6F7FB; }
.dv-foot { display: flex; justify-content: space-between; padding: 6px 16px; font-size: 12px; color: var(--muted); background: #fff; border-top: 1px solid var(--border); flex: none; }
@media (max-width: 760px) { .dv-notes.m-split { grid-template-columns: 1fr; } .dv-notes.m-split .dv-md { display: none; } }
/* PDF */
.dv-pdf .dv-toolbar { gap: 4px; }
.dv-pg { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); white-space: nowrap; }
.dv-pg .input { width: 48px; height: 30px; padding: 0 6px; text-align: center; }
.dv-zoom { min-width: 58px; font-variant-numeric: tabular-nums; }
.dv-tools-pdf { display: inline-flex; gap: 2px; }
.dv-colors { display: inline-flex; gap: 5px; align-items: center; margin: 0 4px; }
.dv-c { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border); cursor: pointer; padding: 0; }
.dv-c.on { box-shadow: 0 0 0 2px var(--accent); }
.dv-selbar { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; padding-left: 8px; border-left: 1px solid var(--border); }
.dv-main { flex: 1; min-height: 0; display: flex; position: relative; }
.dv-side { width: 210px; flex: none; overflow: auto; background: #fff; border-right: 1px solid var(--border); padding: 12px; }
.dv-hits { display: grid; gap: 4px; margin-top: 10px; }
.dv-hit { display: flex; justify-content: space-between; border: 1px solid var(--border); background: #fff; border-radius: 8px; padding: 7px 10px; font-size: 13px; cursor: pointer; }
.dv-hit.on, .dv-hit:hover { border-color: var(--accent); }
.dv-thumbs { display: grid; gap: 12px; align-content: start; justify-items: center; }
.dv-thumb { width: 150px; display: grid; gap: 4px; }
.dv-tbimg { width: 100%; border: 2px solid transparent; border-radius: 6px; background: #fff; box-shadow: 0 1px 4px rgba(16,24,40,.14); padding: 0; cursor: pointer; display: grid; place-items: center; overflow: hidden; }
.dv-tbimg img { width: 100%; height: 100%; object-fit: contain; display: block; }
.dv-thumb.on .dv-tbimg { border-color: var(--accent); }
.dv-tbbar { display: flex; align-items: center; justify-content: space-between; color: var(--text-2); }
.dv-tbacts { display: inline-flex; gap: 2px; }
.dv-tbacts button { border: 0; background: none; padding: 3px; border-radius: 5px; color: var(--text-2); cursor: pointer; display: grid; }
.dv-tbacts button:hover { background: var(--surface-2, #F1F2F7); color: var(--text); }
.dv-pages { flex: 1; min-width: 0; position: relative; display: flex; }
.dv-busy { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: #1F2433; color: #fff; padding: 9px 16px; border-radius: 10px; font-size: 13px; display: flex; gap: 8px; align-items: center; box-shadow: var(--shadow); z-index: 20; }
.dv-ov { position: absolute; inset: 0; overflow: visible; }
.dv-obj { pointer-events: none; }
.dv-selrect { fill: none; stroke: var(--accent, #4C21FF); stroke-width: 1.5; stroke-dasharray: 4 3; }
.dv-handle { fill: #fff; stroke: var(--accent, #4C21FF); stroke-width: 1.5; }
.dv-textprev { margin-top: 12px; padding: 10px 12px; border: 1px dashed var(--border); border-radius: 8px; font-family: Helvetica, Arial, sans-serif; white-space: pre-wrap; min-height: 44px; }
.dv-signpad { width: 100%; height: 180px; border: 1px dashed var(--border-2, #CBD2E1); border-radius: 10px; background: #fff; touch-action: none; cursor: crosshair; }
.dv-signtype { margin-top: 10px; padding: 14px; border: 1px dashed var(--border); border-radius: 10px; font: italic 38px "Segoe Script", "Brush Script MT", "Lucida Handwriting", cursive; color: #111827; min-height: 70px; }
.dv-form { display: grid; gap: 10px; max-height: 60vh; overflow: auto; }
.dv-field { display: grid; gap: 4px; }
@media (max-width: 760px) { .dv-side { position: absolute; z-index: 5; top: 0; bottom: 0; box-shadow: var(--shadow); } .dv-selbar { margin-left: 4px; } }
/* page rendering (pdf.js on canvases) */
.pp-scroll { flex: 1; overflow: auto; padding: 16px 24px 40px; display: flex; flex-direction: column; align-items: center; gap: 14px; background: #E9ECF2; }
.pp-page { position: relative; flex: none; background: #fff; box-shadow: 0 1px 3px rgba(16,24,40,.12), 0 4px 14px rgba(16,24,40,.08); }
.pp-page canvas { display: block; }
.pp-ov { position: absolute; inset: 0; z-index: 3; touch-action: none; }
.dv-pages.tool-select .pp-ov, .dv-pages.ro .pp-ov { pointer-events: none; }   /* text can be selected; drawings catch clicks themselves */
.dv-hitbox { fill: transparent; pointer-events: all; cursor: move; }
.pp-wait { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.pp-wait.err { color: var(--err); padding: 20px; text-align: center; }
.pp-page .textLayer { position: absolute; text-align: initial; inset: 0; overflow: clip; opacity: 1; line-height: 1; -webkit-text-size-adjust: none; text-size-adjust: none; forced-color-adjust: none; transform-origin: 0 0; caret-color: CanvasText; z-index: 2;
  --min-font-size: 1; --text-scale-factor: calc(var(--total-scale-factor) * var(--min-font-size)); --min-font-size-inv: calc(1 / var(--min-font-size)); }
.pp-page .textLayer :is(span, br) { color: transparent; position: absolute; white-space: pre; cursor: text; transform-origin: 0% 0%; user-select: text; }
.pp-page .textLayer > :not(.markedContent), .pp-page .textLayer .markedContent span:not(.markedContent) { z-index: 1; --font-height: 0; font-size: calc(var(--text-scale-factor) * var(--font-height)); --scale-x: 1; --rotate: 0deg; transform: rotate(var(--rotate)) scaleX(var(--scale-x)) scale(var(--min-font-size-inv)); }
.pp-page .textLayer .markedContent { display: contents; }
.pp-page .textLayer ::selection { background: rgba(76, 33, 255, .28); }
.pp-page .textLayer span.pp-hit { background: rgba(250, 204, 21, .55); border-radius: 2px; }
.pp-print { display: none; }
@media print { body.pp-printing > *:not(.pp-print) { display: none !important; } body.pp-printing .pp-print { display: block; } .pp-print img { display: block; width: 100%; page-break-after: always; break-after: page; } @page { margin: 0; } }
/* the PDF preview (File Station / Drive / shared links) drawn by MyDriveSpace */
.pdf-view.pdf-own { display: flex; flex-direction: column; background: #E9ECF2; border-radius: 8px; overflow: hidden; }
.pdf-tb { display: flex; align-items: center; gap: 6px; padding: 6px 10px; background: #fff; border-bottom: 1px solid var(--border); color: var(--text-2); }
.pdf-own .pp-scroll { padding: 14px; }
/* pdf.js text layer on turned pages (from pdf_viewer.css) */
.pp-page .textLayer[data-main-rotation="90"] { transform: rotate(90deg) translateY(-100%); }
.pp-page .textLayer[data-main-rotation="180"] { transform: rotate(180deg) translate(-100%, -100%); }
.pp-page .textLayer[data-main-rotation="270"] { transform: rotate(270deg) translateX(-100%); }

/* ================= 1.19: bigger, responsive previews; video player; archive viewer ================= */
.preview-stage { padding: 0 60px 14px; }
.preview-stage .pdf-view { width: min(1280px, 100%); }
.preview-stage iframe, .preview-stage .text-view { width: min(1280px, 100%); }
@media (max-width: 760px) {
  .preview-top { height: 52px; padding: 0 8px; gap: 6px; }
  .preview-top .btn.ghost span { display: none; }
  .preview-stage { padding: 0 4px 6px; }
  .preview-nav { width: 34px; height: 34px; opacity: .75; }
}
/* video: fills the stage (scaled up when small), keeps its shape, black bars only where needed */
.vp { position: relative; width: 100%; height: 100%; max-width: 1600px; display: flex; align-items: center; justify-content: center; }
.vp video { width: 100%; height: 100%; max-height: 100%; object-fit: contain; background: #000; border-radius: 8px; display: block; }
.vp-wait { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.vp-wait .spinner { width: 42px; height: 42px; border: 3px solid rgba(255,255,255,.25); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.vp-err { flex-direction: column; gap: 10px; color: #fff; text-align: center; padding: 24px; max-width: 520px; }
.vp-err .small { opacity: .8; }
.sp-preview .vp { height: 100%; } .sp-preview .vp video { box-shadow: var(--shadow); }
.sp-preview .vp-err { color: var(--text-2); }
.dv-media .vp { max-width: none; }
/* archive viewer (ZIP / TAR) */
.av { width: min(1000px, 100%); height: 100%; display: flex; flex-direction: column; background: #fff; border-radius: 12px; overflow: hidden; color: var(--text); box-shadow: var(--shadow); }
.av-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); flex: none; color: var(--text); }
.av-head > .icon, .av-head > svg { color: #E0A000; }
.av-search { display: flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: 9px; padding: 0 10px; height: 34px; color: var(--muted); width: 220px; }
.av-search input { border: 0; outline: none; background: none; font: inherit; font-size: 13px; color: var(--text); width: 100%; }
.av-crumbs { display: flex; align-items: center; gap: 2px; padding: 8px 12px; border-bottom: 1px solid var(--border); flex: none; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.av-crumbs button { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; padding: 4px 7px; border-radius: 7px; cursor: pointer; color: var(--text-2); font: inherit; }
.av-crumbs button:hover { background: var(--surface-2, #F1F2F7); } .av-crumbs button.on { color: var(--text); font-weight: 600; }
.av-note { display: flex; align-items: center; gap: 8px; padding: 8px 16px; font-size: 12.5px; background: color-mix(in srgb, var(--warn) 12%, transparent); flex: none; }
.av-list { flex: 1; min-height: 0; overflow: auto; padding: 4px 0; }
.av-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 16px; border: 0; border-bottom: 1px solid #F0F1F5; background: none; text-align: left; cursor: pointer; font: inherit; font-size: 14px; color: var(--text); }
.av-row:hover { background: #F6F7FB; }
.av-ic { width: 22px; display: grid; place-items: center; color: #E0A000; flex: none; }
.av-size { width: 90px; text-align: right; font-size: 12.5px; color: var(--muted); flex: none; font-variant-numeric: tabular-nums; }
.av-date { width: 150px; text-align: right; font-size: 12.5px; color: var(--muted); flex: none; }
.av-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 30px; text-align: center; color: var(--text-2); }
.av-entry { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.av-entry-bar { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-bottom: 1px solid var(--border); flex: none; color: var(--text-2); }
.av-media { flex: 1; min-height: 0; display: grid; place-items: center; background: #F3F4F8; padding: 12px; }
.av-media img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: var(--shadow-sm); }
.av-text { flex: 1; margin: 0; overflow: auto; padding: 14px 18px; font: 13px/1.6 var(--mono, ui-monospace, monospace); white-space: pre-wrap; word-break: break-word; background: #FBFBFD; }
.av-pdf { flex: 1; min-height: 0; display: flex; } .av-pdf .pdf-view { width: 100%; height: 100%; border-radius: 0; }
.dv-arch { flex: 1; display: grid; place-items: center; padding: 16px; background: #1B1F2A; }
.sp-preview .av { height: 100%; }
@media (max-width: 760px) { .av-date { display: none; } .av-search { width: 140px; } .av { border-radius: 8px; } .av-size { width: 70px; } }

/* 1.19.1: the player fits its space exactly (sized from the video shape in VideoPlayer) — controls never off screen */
.preview-stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.vp { position: relative; width: 100%; height: 100%; max-width: none; min-width: 0; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.vp-box { position: relative; flex: none; border-radius: 8px; overflow: hidden; background: #000; box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.vp-box video, .preview-stage .vp-box video, .sp-preview .vp-box video { display: block; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; background: #000; border-radius: 0; box-shadow: none; }
.vp-err { width: auto; height: auto; }

/* 1.19.3: Resource Monitor explanation line */
.rm-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--border); font-size: 12px; color: var(--text-2); line-height: 1.5; }
.rm-note svg { flex: none; margin-top: 1px; color: var(--accent); }

/* 1.20 — Recycle Bin: deleted accounts / files, and the restore pop-up with progress (minimize → chip in the corner) */
.bin-row { cursor: pointer; }
.bin-row.selected td { background: var(--accent-soft, #EEF3FF); }
.bin-files { padding: 14px 16px; }
.bf-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bf-all { display: flex; align-items: center; gap: 8px; }
.bf-note { margin: 6px 0 8px; }
.bf-crumbs { margin: 4px 0 6px; flex: none; }
.bf-empty { padding: 14px 4px; }
.table.compact td { padding-top: 6px; padding-bottom: 6px; }
.danger-text, .danger-text svg { color: var(--err); }
.jobpop-bg { z-index: 8600; }
.modal.jobpop { width: min(480px, calc(100vw - 32px)); }
.jp-state { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.jp-ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft, #EEF3FF); color: var(--accent); flex: none; }
.jp-state.running .jp-ic svg { animation: spin 1.2s linear infinite; }
.jp-state.done .jp-ic { background: var(--ok-soft); color: var(--ok); }
.jp-state.failed .jp-ic { background: var(--err-soft); color: var(--err); }
.jp-state.cancelled .jp-ic { background: var(--surface-3); color: var(--muted); }
.jp-pct { font: 700 26px var(--f-head); color: var(--text); font-variant-numeric: tabular-nums; }
.jobpop .progress { height: 10px; }
.jp-counts { margin: 8px 0 12px; min-height: 18px; font-variant-numeric: tabular-nums; }
.jp-note { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.jobpop .alert { margin: 6px 0 0; }
.job-chip { position: fixed; right: 16px; z-index: 8500; width: 290px; max-width: calc(100vw - 32px); display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center;
  padding: 9px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface, #fff); box-shadow: 0 8px 28px rgba(16, 24, 40, .16); cursor: pointer; text-align: left; font: inherit; color: var(--text); }
.job-chip:hover { border-color: var(--accent); }
.jc-ic { grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft, #EEF3FF); color: var(--accent); }
.job-chip.running .jc-ic svg { animation: spin 1.2s linear infinite; }
.job-chip.done .jc-ic { background: var(--ok-soft); color: var(--ok); } .job-chip.failed .jc-ic { background: var(--err-soft); color: var(--err); }
.jc-txt { display: flex; flex-direction: column; min-width: 0; font-size: 12.5px; line-height: 1.3; }
.jc-txt b, .jc-txt span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .jc-txt span { color: var(--muted); }
.jc-bar { height: 4px; border-radius: 4px; background: #E8EBF3; overflow: hidden; }
.jc-bar i { display: block; height: 100%; background: var(--accent); transition: width .35s; }
.job-chip.done .jc-bar i { background: var(--ok); } .job-chip.failed .jc-bar i { background: var(--err); }

/* 1.23: Drive → Cloud Sync */
.cs-body { padding: 4px 20px 24px; }
.cs-intro { max-width: 560px; margin: 10px auto; } .cs-provs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 4px 0 18px; }
.cs-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 6px; border: 1px solid var(--border); border-radius: 999px; font: 500 12.5px var(--f-head); background: #fff; }
.cs-prov { width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center; color: #fff; flex: none; }
.cs-chip .cs-prov { width: 24px; height: 24px; border-radius: 7px; } .cs-conn .cs-prov { width: 28px; height: 28px; border-radius: 8px; }
.cs-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 14px; }
.cs-task { border: 1px solid var(--border); border-radius: 14px; padding: 14px; background: #fff; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cs-task.off { opacity: .72; }
.cs-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cs-route { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; }
.cs-end { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1 1 0; padding: 7px 10px; border-radius: 9px; background: var(--surface-2); color: var(--text-2); }
.cs-end svg { flex: none; color: var(--muted); }
.cs-arrow { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); border: 1px solid var(--border); background: #fff; }
/* the arrow points from where files come from to where they go: My Drive (left / top) ↔ cloud (right / bottom) */
.cs-arrow:not(.both) svg { transform: rotate(90deg); }
.cs-prog .progress { margin: 6px 0 4px; } .cs-res { display: flex; flex-direction: column; gap: 3px; min-height: 38px; }
.cs-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.cs-conns { margin-top: 22px; max-width: 760px; }
.cs-conn { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); } .cs-conn:last-child { border-bottom: 0; }
.cs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.cs-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px; border: 1.5px solid var(--border); border-radius: 12px; background: #fff; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.cs-card:hover:not(:disabled) { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); } .cs-card.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cs-card.disabled { opacity: .55; cursor: not-allowed; }
.cs-picker { border: 1px solid var(--border); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.cs-picker .crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.cs-picker-list { height: 230px; overflow: auto; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cs-pick-row { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 0; background: none; cursor: pointer; text-align: left; font: inherit; color: inherit; border-radius: 6px; }
.cs-pick-row:hover { background: var(--surface-2); } .cs-pick-row > span { flex: 1 1 auto; min-width: 0; } .cs-pick-row > svg:last-child { color: var(--muted); }
.cs-local { display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid var(--border); border-radius: 10px; }
.cs-log { max-height: 320px; overflow: auto; white-space: pre-wrap; font: 12px/1.5 var(--f-mono, monospace); background: var(--surface-2); padding: 10px; border-radius: 8px; margin: 0; }
@media (max-width: 760px) { .cs-body { padding: 4px 12px 20px; } .cs-list { grid-template-columns: 1fr; } .cs-folders { grid-template-columns: 1fr; } .cs-route { flex-wrap: wrap; } .cs-end { flex-basis: 100%; } .cs-arrow { margin: 0 auto; } .cs-arrow:not(.both) svg { transform: rotate(180deg); } }
.cs-redirect { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: -4px 0 12px; } .cs-redirect code { word-break: break-all; }
.cs-app { padding: 14px 0; border-top: 1px solid var(--border); } .cs-app ol { margin: 6px 0; padding-left: 20px; } .cs-app li { margin: 3px 0; }

/* ---- 1.24.1: full-page errors (same design as the server's error pages in web/errors — cloudwebhost.in/404) ---- */
.ep { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; overflow: auto; padding: 72px 0; background: #fff;
  text-align: center; color: #666; font-family: var(--f-body); font-size: 17px; line-height: 1.8; letter-spacing: .2px; }
.ep::before { content: ""; position: fixed; top: calc(50% - 400px); left: 50%; width: 720px; height: 480px; border-radius: 50%; background: radial-gradient(circle, #7c5cff2e, #fff0 70%); transform: translate(-50%); pointer-events: none; }
.ep-inner { position: relative; width: 100%; max-width: 860px; margin: auto; padding: 0 10px; }
.ep p { margin: 0; }
.ep-code { background: linear-gradient(135deg, #7b5cff, #3a18c9 60%, #f66426); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-family: var(--f-head); font-size: 150px; font-weight: 700; line-height: 1; letter-spacing: -6px; }
.ep h1 { margin: 10px 0 0; color: #0D0D13; font-family: var(--f-head); font-size: 42px; font-weight: 600; line-height: 1.2; letter-spacing: -.8px; }
.ep-text { max-width: 560px; margin: 14px auto 0 !important; }
.ep-detail { max-width: 560px; margin: 10px auto 0 !important; font-size: 14.5px; color: #8a8a96; overflow-wrap: anywhere; }
.ep-btns { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin-top: 30px; }
.ep-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 17px 35px; border: 1px solid transparent; border-radius: 12px;
  font-family: var(--f-head); font-size: 16px; font-weight: 500; line-height: 1.2; letter-spacing: .3px; white-space: nowrap; text-decoration: none !important;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease; }
.ep-btn svg, .ep-links .ico svg { width: 15px; height: 15px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ep-btn.orange { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(202deg, #F66426 0%, #E30F0F 100%); border-color: #F66426; color: #fff; }
.ep-btn.orange::after { content: ""; position: absolute; top: 0; left: -75%; z-index: -1; width: 50%; height: 100%; background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skew(-20deg); transition: left .6s ease; }
.ep-btn.orange:hover { transform: translateY(-2px); box-shadow: 0 10px 24px #e30f0f47; } .ep-btn.orange:hover::after { left: 130%; }
.ep-btn.line { border-color: #643FFF; background: #fff; color: #643FFF; } .ep-btn.line:hover { background: #643FFF; color: #fff; }
.ep-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 48px 0 0; padding: 0; list-style: none; text-align: left; }
.ep-links a { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 1px solid #ECEAF5; border-radius: 16px; background: #fff; color: #0D0D13;
  font-family: var(--f-head); font-size: 15.5px; font-weight: 600; line-height: 1.3; text-decoration: none !important; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.ep-links a:hover { border-color: #643FFF; transform: translateY(-3px); box-shadow: 0 14px 28px #4c21ff1a; }
.ep-links .ico { flex: none; display: inline-flex; width: 38px; height: 38px; padding: 10px; border-radius: 12px; background: #f2eeff; color: #643FFF; }
.ep-links .ico svg { width: 18px; height: 18px; stroke-width: 2.2; }
.ep-links small { display: block; margin-top: 2px; color: #666; font-family: var(--f-body); font-size: 13px; font-weight: 400; }
.ep-status { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 8px 16px; border: 1px solid #ECEAF5; border-radius: 999px; background: #fff; color: #0D0D13; font-size: 14.5px; font-weight: 500; }
.ep-status .dot { width: 9px; height: 9px; border-radius: 50%; background: #F66426; animation: ep-ping 1.6s infinite; } .ep-status.ok .dot { background: #00B090; animation: none; }
@keyframes ep-ping { 0% { box-shadow: 0 0 0 0 #f6642666; } 70% { box-shadow: 0 0 0 10px #f6642600; } 100% { box-shadow: 0 0 0 0 #f6642600; } }
@media (max-width: 767px) {
  .ep { font-size: 16px; padding: 48px 0; } .ep-inner { padding: 0 16px; } .ep-code { font-size: 100px; letter-spacing: -4px; } .ep h1 { font-size: 30px; }
  .ep-btn { padding: 15px 28px; flex: 1 1 100%; } .ep-links { grid-template-columns: 1fr; }
}

/* ---- 1.24.1: App Store → System — live progress of updates / installs / uninstalls ---- */
.sj { padding: 18px 20px; }
.sj-head { display: flex; align-items: center; gap: 14px; }
.sj-head h2 { margin: 0; font-size: 18px; }
.sj-badge { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; color: #fff; background: var(--warn); }
.sj-badge.ok { background: var(--ok); } .sj-badge.err { background: var(--err); } .sj-badge.run { background: var(--accent); }
.sj-badge .spin, .spin { animation: spin 1.6s linear infinite; }
.sj-pct { font: 700 34px/1 var(--f-head); color: var(--text); letter-spacing: -1px; white-space: nowrap; } .sj-pct small { font-size: 16px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.sj-bar { height: 10px; margin-top: 14px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.sj-bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .5s ease; }
.sj-bar.ok i { background: var(--ok); } .sj-bar.err i { background: var(--err); }
.sj-bar.run i { background-image: linear-gradient(45deg, rgba(255,255,255,.18) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.18) 50%, rgba(255,255,255,.18) 75%, transparent 75%); background-size: 18px 18px; animation: sj-move 1s linear infinite; }
@keyframes sj-move { to { background-position: 18px 0; } }
.sj-detail { margin-top: 8px; color: var(--text-2); min-height: 1.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sj-steps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sj-step { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 1px solid var(--border); border-radius: 99px; font-size: 12.5px; color: var(--muted); background: #fff; }
.sj-step b { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: var(--surface-3); color: var(--text-2); font-size: 11px; }
.sj-step em { font-style: normal; font-weight: 600; color: var(--accent); }
.sj-step.running { border-color: var(--accent-line); color: var(--text); } .sj-step.running b { background: var(--accent); color: #fff; }
.sj-step.done { color: var(--text-2); } .sj-step.done b { background: var(--ok); color: #fff; } .sj-step.done svg { color: var(--ok); }
.sj-step.failed { border-color: var(--err); color: var(--err); } .sj-step.failed b { background: var(--err); color: #fff; }
.sj-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.seg.sm button { padding: 5px 10px; font-size: 12px; }
.sj-list { max-height: 380px; overflow: auto; margin-top: 8px; border: 1px solid var(--border); border-radius: 10px; position: relative; }
.sj-row { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--border); }
.sj-row:last-child { border-bottom: 0; }
.sj-row.busy { background: var(--accent-soft); }
.sj-row .sj-name { min-width: 0; } .sj-row .sj-name b { color: var(--text); font-weight: 600; } .sj-row .mono { overflow-wrap: anywhere; }
.sj-ic { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; }
.sj-row.done .sj-ic, .sj-row.later .sj-ic { background: var(--ok-soft); color: var(--ok); } .sj-row.failed .sj-ic { background: var(--err-soft); color: var(--err); }
.sj-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border-2); }
.sj-st { flex: none; width: 104px; text-align: right; color: var(--muted); } .sj-row.busy .sj-st { color: var(--accent-ink); font-weight: 600; } .sj-row.failed .sj-st { color: var(--err); } .sj-row.done .sj-st { color: var(--ok); }
.sj-mini { flex: none; width: 90px; height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.sj-mini i { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width .4s ease; }
.sj-row.done .sj-mini i, .sj-row.later .sj-mini i { background: var(--ok); } .sj-row.failed .sj-mini i { background: var(--err); }
.sj-p { flex: none; width: 44px; text-align: right; color: var(--text-2); }
@media (max-width: 700px) {
  .sj { padding: 14px; } .sj-pct { font-size: 26px; } .sj-badge { width: 38px; height: 38px; }
  .sj-row { flex-wrap: wrap; } .sj-row .sj-name { flex: 1 1 calc(100% - 40px); } .sj-st { width: auto; text-align: left; margin-left: 34px; } .sj-mini { flex: 1; } 
}

/* ---- 1.24.1: sign-in page facts (blocked address, suspended / subscription ended) ---- */
.lc-facts { display: grid; gap: 0; width: 100%; align-self: stretch; margin: 4px 0 14px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.lc-facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; font-size: 13.5px; border-bottom: 1px solid var(--border); }
.lc-facts > div:last-child { border-bottom: 0; }
.lc-facts span { color: var(--muted); } .lc-facts b { color: var(--text); text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.lc-blocked .lc-error { margin: 0 0 12px; }
.portal-logo-note { align-items: center; } .portal-logo-note .pp-mark { flex: none; width: 40px; height: 40px; display: inline-flex; }
.portal-logo-note .pp-mark img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
/* ---- 1.24.1: software update progress ---- */
.upd-run .sj-bar { margin-top: 12px; }
.upd-phases { display: grid; gap: 8px; margin-top: 16px; }
.upd-ph { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); }
.upd-ph.run { color: var(--text); font-weight: 600; } .upd-ph.done { color: var(--text-2); }
.upd-ph.done .sj-ic { background: var(--ok-soft); color: var(--ok); }
.upd-steps { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 10px; } .upd-steps > div { display: flex; align-items: center; gap: 6px; padding: 2px 0; color: var(--text-2); }

/* 1.24.2: the server runs a newer build than this page — offer to reload */
.build-notice { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 9500; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow-lg); border-radius: 12px; padding: 10px 12px 10px 16px; font-size: 13.5px; font-weight: 600; max-width: calc(100vw - 32px); animation: pop .18s; }
.build-notice small { font-weight: 400; color: var(--muted, #667085); font-size: 13px; }
.sj-ic.err, .upd-ph.fail .sj-ic { background: var(--err-soft); color: var(--err); } .upd-ph.fail { color: var(--err); font-weight: 600; }

/* 1.24.6: Branding — product name as text or image; the Save bar at the end of the Identity card */
.seg.sm button { padding: 5px 12px; font-size: 12.5px; }
/* 1.24.8: the image shrinks and the buttons wrap under it on narrow widths — nothing leaves the box */
.name-img-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; padding: 12px 14px; border: 1px dashed var(--border-2); border-radius: 10px; background: var(--surface-2); min-height: 64px; min-width: 0; box-sizing: border-box; max-width: 100%; }
.name-img-box img { flex: 1 1 140px; min-width: 0; max-height: 44px; max-width: 100%; object-fit: contain; object-position: left center; }
.name-img-box > .row { flex: none; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.brand-name-img { display: inline-block; width: auto; max-width: 100%; object-fit: contain; vertical-align: middle; }
.brand-save { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin: 18px -18px -18px; padding: 12px 18px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); position: sticky; bottom: 0; z-index: 2; }
.brand-save > span { margin-right: auto; white-space: nowrap; }
.brand-save .btn { white-space: nowrap; }
/* a field that gets the focus is scrolled above the sticky Save bar, never under it */
.app-main:has([data-brand-save]) { scroll-padding-bottom: 76px; }
.brand-identity input:focus, .brand-identity textarea:focus { scroll-margin-bottom: 76px; }
.brand-save .unsaved { color: var(--warn, #A86400); font-weight: 600; }

/* 1.24.6: Drive → Usage — overview, plan, devices (light, no tinted bands) */
.min0 { min-width: 0; }
.us-hero { display: grid; grid-template-columns: minmax(280px, 1.1fr) 2fr; gap: 22px; align-items: center; padding: 22px; }
.us-hero-main { display: flex; gap: 20px; align-items: center; min-width: 0; }
.us-ring-lg { width: 124px; height: 124px; flex: none; }
.us-hero-big { font: 700 30px/1.15 var(--f-head); color: var(--text); margin-top: 8px; letter-spacing: -.3px; }
.us-hero-big .us-of { font: 500 14px var(--f-body); color: var(--muted); letter-spacing: 0; }
.us-hero-bar { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-top: 10px; }
.us-hero-bar i { display: block; height: 100%; border-radius: 99px; transition: width .4s; }
.us-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.us-kpi { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); min-width: 0; }
.us-kpi-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--surface-3); color: var(--text-2); }
.us-kpi-ic.ok { background: var(--ok-soft); color: var(--ok); } .us-kpi-ic.info { background: rgba(31, 122, 224, .1); color: #1F7AE0; }
.us-kpi-ic.accent { background: rgba(76, 33, 255, .09); color: var(--accent); } .us-kpi-ic.warn { background: rgba(245, 158, 11, .12); color: #B26B00; }
.us-kpi-v { font: 700 19px/1.2 var(--f-head); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.us-kpi-l { font-size: 12.5px; color: var(--text-2); font-weight: 600; margin-top: 2px; }
.us-kpi-s { font-size: 12px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; }
.us-kpi-s .link-btn { font-size: 12px; padding: 0; }
.us-types2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin-top: 14px; }
.us-type2 { display: flex; gap: 10px; align-items: flex-start; } .us-type2.zero { opacity: .55; }
.us-type-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.us-bar.thin { height: 5px; margin-top: 6px; display: block; }
.us-limits { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 10px; }
.us-limits.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.us-limits > div { padding: 12px; border: 1px solid var(--border); border-radius: 10px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.us-lim-l { font-size: 12px; color: var(--muted); } .us-limits b { font: 650 15px var(--f-head); color: var(--text); }
.us-feats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.us-feat { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; font-size: 12.5px; border: 1px solid var(--border); }
.us-feat.on { color: var(--ok); border-color: rgba(14, 159, 110, .3); background: var(--ok-soft); } .us-feat.off { color: var(--muted); background: var(--surface-2); text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, .2); }
.us-devs { display: flex; flex-direction: column; margin-top: 10px; border: 1px solid var(--border); border-radius: 10px; }
.us-dev { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 13px; min-width: 0; } .us-dev:last-child { border-bottom: 0; }
.us-share { min-width: 120px; } .us-share .us-bar { display: inline-block; width: 70px; vertical-align: middle; margin: 0 8px 0 0; }
@media (max-width: 980px) { .us-hero { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .us-kpis, .us-types2 { grid-template-columns: 1fr; } .us-hero-main { flex-direction: column; align-items: flex-start; } .us-share-h, .us-share { display: none; } }

/* 1.24.6: App Store → System — update runs with what they fixed, blocked updates */
.hist-run { border-bottom: 1px solid var(--border); } .hist-run:last-child { border-bottom: 0; } .hist-run .hist-row { border-bottom: 0; }
.run-detail { padding: 4px 0 14px 4px; }
.fix-row { padding: 8px 10px; border: 1px solid var(--border); border-radius: 9px; margin-bottom: 6px; }
.fix-notes { margin: 4px 0 0 18px; padding: 0; font-size: 12.5px; color: var(--text-2); } .fix-notes li { margin: 2px 0; }
.fix-cves { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; } .fix-cves a { text-decoration: none; font-family: var(--f-mono, monospace); font-size: 11px; }
.err-t { color: var(--err); }

/* 1.24.6: Security Advisor → Antivirus — is the protection current? */
.av-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.av-grid > div { display: flex; flex-direction: column; gap: 3px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; min-width: 0; }
.av-grid span { font-size: 12px; color: var(--muted); } .av-grid b { font: 650 15px var(--f-head); } .av-grid small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }

/* 1.24.8: Appearance → Branding → Preview: the real sign-in header + logo size / spacing sliders; one Save bar for Branding */
.brand-preview { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(220px, 1fr); gap: 22px; align-items: start; }
.brand-preview-stage { display: grid; place-items: center; padding: 22px; border-radius: 12px; background: #0b1a36; min-width: 0; }
.brand-preview-stage .login-card { box-shadow: 0 18px 50px rgba(0, 0, 0, .35); pointer-events: none; }
.brand-preview-stage .lc-body { min-height: 0; padding-bottom: 20px; }
.brand-preview-stage .lc-btn { margin-top: 12px; height: 46px; }
.brand-ctl { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.brand-ctl .slider-row { display: flex; align-items: center; gap: 12px; }
.brand-ctl .slider-row input[type=range] { flex: 1; min-width: 0; accent-color: var(--accent); }
.brand-ctl .slider-val { min-width: 64px; text-align: right; font: 600 13px var(--f-mono, monospace); color: var(--text-2); }
.brand-save.section { position: sticky; bottom: 0; margin: 16px 0 0; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: 0 -4px 18px rgba(15, 23, 42, .06); }
@media (max-width: 900px) { .brand-preview { grid-template-columns: 1fr; } }

/* 1.25: Control Panel → Notification — channels × alerts, e-mail (server · templates · log), WhatsApp (connection · log) */
.nt-chans { align-items: center; }
.nt-chan { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 1px solid var(--border); border-radius: 999px; font: 600 12.5px var(--f-head); color: var(--text-2); background: #fff; }
.nt-chan i { width: 8px; height: 8px; border-radius: 50%; background: #C5C9D6; } .nt-chan.on i { background: #12B886; box-shadow: 0 0 0 3px rgba(18, 184, 134, .15); }
.nt-chan small { font: 500 11.5px var(--f-body); color: var(--muted); }
.nt-body { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.nt-sec { padding: 20px 22px; }
.nt-sec-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.nt-sec-h h3 { margin: 0 0 4px; } .nt-sec-h p { margin: 0; max-width: 820px; line-height: 1.55; }
.nt-master { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 10px; font: 600 12.5px var(--f-head); color: var(--text-2); white-space: nowrap; }
.nt-matrix-wrap { border: 1px solid var(--border); border-radius: 12px; overflow: auto; }
.nt-matrix { width: 100%; }
.nt-matrix th { background: #fff; white-space: nowrap; }
.nt-matrix th.c, .nt-matrix td.c { text-align: center; width: 128px; }
.nt-matrix td .t { font: 600 14px var(--f-head); color: var(--text); } .nt-matrix td .d { font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.45; }
.nt-matrix tbody tr:hover { background: #FAFBFE; }
.nt-cb { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; } .nt-cb:disabled { cursor: not-allowed; opacity: .45; }
.nt-always { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ok-soft); color: #00795F; }
.nt-lock { display: inline-flex; align-items: center; gap: 4px; font: 600 12px var(--f-head); color: var(--muted); }
.nt-off { display: block; margin: 3px auto 0; border: 0; background: none; padding: 0; font: 500 11px var(--f-body); color: #A86400; cursor: pointer; white-space: nowrap; } .nt-off svg { vertical-align: -2px; margin-right: 3px; }
.nt-off:hover { text-decoration: underline; }
.nt-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.nt-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.nt-subbar { display: flex; }
.nt-sub button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; }
.nt-n { font-size: 11px; padding: 0 7px; border-radius: 999px; background: rgba(0, 0, 0, .07); } .nt-sub button.on .nt-n { background: rgba(255, 255, 255, .25); }
.nt-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; max-width: 880px; }
.nt-form .span2 { grid-column: 1 / -1; }
.nt-test { margin-top: 16px; padding: 14px 16px; border: 1px dashed var(--border-2, var(--border)); border-radius: 12px; }
.nt-test .t { font: 600 13.5px var(--f-head); color: var(--text); margin-bottom: 8px; }
.nt-res { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; } .nt-res.ok { color: #00795F; } .nt-res.err { color: var(--err); }
.nt-wa { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.nt-howto ol { margin: 8px 0 10px; padding-left: 18px; line-height: 1.6; color: var(--text-2); }
.nt-log { max-height: 560px; } .nt-log td { vertical-align: top; } .nt-log td.ellipsis { max-width: 360px; }
.nt-err { max-width: 260px; white-space: normal; word-break: break-word; }
/* templates: list · editor · preview */
/* the layout follows the width of the Control Panel window itself (container queries), not the screen */
.nt-tplwrap { container-type: inline-size; }
.nt-tpl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.nt-tpl-list { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.nt-tpl-list .nt-tpl-item { width: auto; flex: 0 1 260px; }
.nt-tpl-list p { flex: 1 1 320px; margin: 0; }
.nt-tpl-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 11px 12px; border: 1px solid var(--border); border-radius: 12px; background: #fff; cursor: pointer; font: inherit; color: inherit; }
.nt-tpl-item b { display: block; font: 600 13.5px var(--f-head); color: var(--text); } .nt-tpl-item small { display: block; font-size: 12px; color: var(--muted); }
.nt-tpl-item.on { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent); }
.nt-tpl-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); color: var(--accent); flex: none; }
.nt-tpl-edit, .nt-tpl-prev { padding: 18px 20px; min-width: 0; }
textarea.nt-code { height: 400px; }
.nt-code { width: 100%; min-height: 220px; font: 12.5px/1.55 var(--f-mono, ui-monospace, monospace); white-space: pre; tab-size: 2; resize: vertical; }
.nt-plain { margin: 0; min-height: 200px; max-height: 340px; overflow: auto; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); font: 12.5px/1.55 var(--f-mono, ui-monospace, monospace); white-space: pre-wrap; }
.nt-vars { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; } .nt-vars > div { flex-basis: 100%; }
.nt-var { border: 1px solid var(--border); background: #fff; border-radius: 8px; padding: 3px 8px; font: 12px var(--f-mono, ui-monospace, monospace); color: var(--accent); cursor: pointer; }
.nt-var:hover { border-color: var(--accent); }
.nt-prev-subj { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; }
.nt-prev-subj b { font: 600 14px var(--f-head); color: var(--text); word-break: break-word; }
.nt-prev-frame { width: 100%; height: 560px; border: 1px solid var(--border); border-radius: 12px; background: #f4f5fa; }
@container (max-width: 880px) { .nt-tpl { grid-template-columns: 1fr; } }
@media (max-width: 1100px) { .nt-wa { grid-template-columns: 1fr; } .nt-grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .nt-tpl-list .nt-tpl-item { flex: 1 1 200px; } .nt-matrix .bell { display: none; } .nt-off { white-space: normal; max-width: 90px; } .nt-matrix td .d { display: none; }
  .nt-form, .nt-grid3 { grid-template-columns: 1fr; } .nt-sec-h { flex-direction: column; } .nt-matrix th.c, .nt-matrix td.c { width: 84px; } .nt-sec { padding: 16px; } }
/* Account & security: WhatsApp */
.wa-prefs { display: flex; flex-direction: column; }
.wa-pref { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.wa-pref:first-child { border-top: 0; } .wa-pref .t { font: 600 13.5px var(--f-head); color: var(--text); } .wa-pref .d { font-size: 12.5px; color: var(--muted); }

/* 1.25.2: background tasks — "Running now" in the bell; the NAS homes merge plan */
.task-strip { padding: 8px 10px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.ts-h { font: 600 11.5px var(--f-head); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 0 2px; }
.ts-row { display: flex; flex-direction: column; gap: 6px; width: 100%; text-align: left; padding: 9px 10px; border: 1px solid var(--border); border-radius: 10px; background: #fff; cursor: pointer; font: inherit; color: inherit; }
.ts-row:hover { border-color: var(--accent); }
.ts-t { display: flex; flex-direction: column; min-width: 0; } .ts-t b { font: 600 13px var(--f-head); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ts-t small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-bar { height: 5px; border-radius: 99px; background: var(--surface-2); overflow: hidden; } .ts-bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .4s; }
.hp-table { max-height: 300px; margin-top: 8px; border: 1px solid var(--border); border-radius: 10px; }
.jp-counts .tiny { margin-top: 2px; }
/* (explicit: buttons elsewhere centre their content — the row is left-aligned and the bar spans the full width) */
.task-strip .ts-row { align-items: stretch; justify-content: flex-start; height: auto; }
.task-strip .ts-t { align-items: flex-start; text-align: left; width: 100%; }
.task-strip .ts-bar { display: block; width: 100%; flex: none; }
