
:root {
  --bg: #F3F5FA;
  --surface: #FFFFFF;
  --surface-2: #EDF1F9;
  --ink: #0B1633;
  --ink-2: #303B57;
  --muted: #5E6A85;
  --line: #DCE2EF;
  --line-2: #C9D2E5;
  --blue: #2456F0;
  --blue-2: #1A43C7;
  --blue-soft: #E4EAFF;
  --cyan: #14C8E6;
  --accent: #0A9CC4;     
  --amber: #FFB020;
  --danger: #E5484D;
  --danger-soft: #FDE8E9;
  --ok: #17A65B;
  --ok-soft: #E1F6EA;
  --info-soft: #E0F6FA;
  --on-blue: #FFFFFF;
  --hero-a: #0B1633;
  --hero-b: #16358F;
  --shadow: 0 1px 2px rgba(11, 22, 51, .06), 0 8px 24px -12px rgba(11, 22, 51, .18);
  --shadow-lg: 0 24px 48px -20px rgba(11, 22, 51, .35);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --font-display: "Sora", "IBM Plex Sans", system-ui, "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", system-ui, "Segoe UI", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --header-h: 64px;
  --checker: #EEF1F7;
  --viewer-bg: #FFFFFF;      
  --viewer-wm: #EEF1F5;      
  --viewer-emboss: rgba(255, 255, 255, .95);
  --viewer-emboss-2: rgba(176, 186, 201, .85);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A1020;
    --surface: #121A30;
    --surface-2: #182242;
    --ink: #EEF2FF;
    --ink-2: #C7D0EA;
    --muted: #97A3C4;
    --line: #223054;
    --line-2: #2C3B66;
    --blue: #4F79FF;
    --blue-2: #2456F0;
    --blue-soft: #1B2A5C;
    --accent: #14C8E6;
    --danger-soft: #3A1C22;
    --ok-soft: #12321F;
    --info-soft: #0F2F3A;
    --hero-a: #060B18;
    --hero-b: #13307F;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 24px 48px -20px rgba(0, 0, 0, .7);
    --checker: #0E1526;
    --viewer-bg: #161F3A;
    --viewer-wm: #1E2A4C;
    --viewer-emboss: rgba(255, 255, 255, .06);
    --viewer-emboss-2: rgba(0, 0, 0, .5);
  }
}
:root[data-theme="dark"] {
  --bg: #0A1020;
  --surface: #121A30;
  --surface-2: #182242;
  --ink: #EEF2FF;
  --ink-2: #C7D0EA;
  --muted: #97A3C4;
  --line: #223054;
  --line-2: #2C3B66;
  --blue: #4F79FF;
  --blue-2: #2456F0;
  --blue-soft: #1B2A5C;
  --accent: #14C8E6;
  --danger-soft: #3A1C22;
  --ok-soft: #12321F;
  --info-soft: #0F2F3A;
  --hero-a: #060B18;
  --hero-b: #13307F;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 24px 48px -20px rgba(0, 0, 0, .7);
  --checker: #0E1526;
  --viewer-bg: #161F3A;
  --viewer-wm: #1E2A4C;
  --viewer-emboss: rgba(255, 255, 255, .06);
  --viewer-emboss-2: rgba(0, 0, 0, .5);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 700; }
h2 { font-size: clamp(20px, 2.6vw, 26px); font-weight: 600; }
h3 { font-size: 17px; font-weight: 600; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--font-mono); font-size: .92em; }
.tabular { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }

.container { width: 100%; max-width: 1800px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 820px; }                
.ic { width: 20px; height: 20px; flex: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
button { font: inherit; color: inherit; }
::selection { background: var(--blue); color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 18px; }
.logo { display: inline-flex; align-items: center; height: 36px; flex: none; }
.logo img { height: 34px; width: auto; display: block; }
.logo .logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo .logo-dark { display: block; }
}
:root[data-theme="dark"] .logo .logo-light { display: none; }
:root[data-theme="dark"] .logo .logo-dark { display: block; }

.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-link {
  padding: 8px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 500; font-size: 14px;
}
.nav-link:hover { background: var(--surface-2); text-decoration: none; color: var(--ink); }
.nav-link.active { color: var(--blue); background: var(--blue-soft); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.search-box { position: relative; flex: 1; max-width: 420px; margin-left: auto; }
.search-box .search-input { padding-left: 42px; height: 42px; }
.search-box .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden; display: none;
}
.search-suggest.open { display: block; }
.search-suggest a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; color: var(--ink); border-top: 1px solid var(--line); }
.search-suggest a:first-child { border-top: 0; }
.search-suggest a:hover, .search-suggest a.hl { background: var(--surface-2); text-decoration: none; }
.search-suggest img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; background: var(--surface-2); }
.search-suggest .t { font-weight: 500; }
.search-suggest .s { font-size: 12px; color: var(--muted); }
.search-suggest .empty { padding: 14px; color: var(--muted); font-size: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
  background: var(--surface-2); color: var(--ink); font-weight: 600; font-size: 14px;
  cursor: pointer; white-space: nowrap; transition: background .15s, transform .08s, box-shadow .15s;
}
.btn:hover { text-decoration: none; background: var(--line); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--blue); color: var(--on-blue); box-shadow: 0 8px 20px -10px var(--blue); }
.btn-primary:hover { background: var(--blue-2); }
.btn-outline { background: transparent; border-color: var(--line-2); }
.btn-outline:hover { background: var(--surface-2); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn-lg { height: 50px; padding: 0 24px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-icon { width: 42px; padding: 0; }
.btn-icon.btn-sm { width: 36px; }
.btn .ic { width: 18px; height: 18px; }

.input, select, textarea {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  font: inherit; font-size: 15px; transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; }
.input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.input::placeholder { color: var(--muted); }
select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E6A85' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label, .label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }
.help { font-size: 12.5px; color: var(--muted); }
.error-text { font-size: 13px; color: var(--danger); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink-2); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); }
.file-drop {
  border: 1.5px dashed var(--line-2); border-radius: var(--radius); padding: 22px; text-align: center;
  color: var(--muted); background: var(--surface-2); cursor: pointer; transition: border-color .15s, background .15s;
}
.file-drop:hover, .file-drop.drag { border-color: var(--blue); background: var(--blue-soft); }
.file-drop input { display: none; }
.file-drop .ic { width: 28px; height: 28px; color: var(--blue); }
.file-drop .names { margin-top: 8px; font-size: 13px; color: var(--ink); }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.switch input { flex: none; width: 40px; height: 22px; appearance: none; background: var(--line-2); border-radius: 999px; position: relative; transition: background .15s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked { background: var(--blue); }
.switch input:checked::after { transform: translateX(18px); }

.otp-inputs { display: flex; gap: 8px; justify-content: space-between; }
.otp-inputs input {
  width: 100%; height: 56px; text-align: center; font-size: 24px; font-weight: 700; font-family: var(--font-mono);
  border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--ink); padding: 0;
}
.otp-inputs input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }

.sec-suspended { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.sec-suspended .card-head h3 { color: var(--danger); display: flex; gap: 8px; align-items: center; }
.sec-event { padding: 10px 0; border-bottom: 1px solid var(--line); }
.sec-event:last-child { border-bottom: 0; }
.sec-event p { margin: 6px 0 0; font-size: 13px; line-height: 1.5; }
.sec-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; flex-wrap: wrap; }
.sec-row:last-child { border-bottom: 0; }

.tfa-steps { margin: 0 0 10px; padding-left: 20px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.tfa-qr { width: 210px; height: 210px; margin: 6px auto 10px; background: #fff; border-radius: 12px; padding: 4px; border: 1px solid var(--line); }
.tfa-qr svg { width: 100%; height: 100%; display: block; }
.tfa-key { display: inline-block; margin-top: 6px; padding: 6px 10px; border-radius: 8px; background: var(--surface-2); font-family: var(--font-mono); font-size: 14px; letter-spacing: .06em; word-break: break-all; }
.tfa-codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 14px; }
.tfa-codes span { padding: 10px; text-align: center; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); font-size: 15px; font-weight: 700; letter-spacing: .08em; }
.dev-hint {
  display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px;
  background: var(--info-soft); color: var(--ink-2); font-size: 13px;
}

.otp-note { display: flex; align-items: center; gap: 7px; margin: -4px 0 16px; font-size: 12.5px; color: var(--muted); }
.otp-note .ic { width: 15px; height: 15px; flex: none; color: var(--blue); }
.otp-note b { color: var(--ink); font-weight: 600; }
.dev-hint code { font-family: var(--font-mono); font-weight: 700; color: var(--blue); }

.flashes { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 0; }
.alert {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px;
  font-size: 14px; border: 1px solid transparent; background: var(--surface-2); color: var(--ink);
}
.alert .ic { width: 18px; height: 18px; margin-top: 1px; }
.alert-success { background: var(--ok-soft); color: var(--ok); }
.alert-error { background: var(--danger-soft); color: var(--danger); }
.alert-info { background: var(--info-soft); color: var(--ink-2); }
.alert .close { margin-left: auto; background: none; border: 0; cursor: pointer; opacity: .6; padding: 0; display: flex; }
.alert .close:hover { opacity: 1; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card-body { padding: 22px; }
.card-head { padding: 16px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.card-head h3 { flex: 1; }

.page { padding: 28px 20px 56px; }   
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head .sub { color: var(--muted); margin-top: 6px; }
.section { margin: 40px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-more { display: flex; justify-content: center; margin-top: 14px; }
.section-head .more { font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs .ic { width: 14px; height: 14px; }

.hero {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); margin-top: 22px;
  background: linear-gradient(135deg, var(--hero-a), var(--hero-b));
  color: #fff; padding: clamp(32px, 6vw, 64px) clamp(20px, 5vw, 56px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .35; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .28) 1.2px, transparent 1.4px);
  background-size: 28px 28px;
}
.hero::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 200, 230, .45), transparent 65%); pointer-events: none;
}
.hero > * { position: relative; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; }
.hero h1 { color: #fff; max-width: 14ch; font-size: clamp(30px, 5vw, 50px); }
.hero .lead { color: rgba(255, 255, 255, .78); max-width: 52ch; font-size: clamp(15px, 1.6vw, 17px); margin: 14px 0 24px; }
.hero-search { display: flex; gap: 8px; max-width: 620px; position: relative; }
.hero-search .search-box { max-width: none; margin: 0; }
.hero-search .search-input { height: 52px; font-size: 16px; border: 0; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); }
.hero-search .btn { height: 52px; border-radius: 12px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 26px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-family: var(--font-display); font-size: 22px; font-variant-numeric: tabular-nums; }
.hero-stats span { font-size: 12.5px; color: rgba(255, 255, 255, .7); }

.brand-fallback { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 22px; font-family: var(--font-display); }

.device-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.device-card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; color: var(--ink); transition: transform .15s, box-shadow .15s;
}
.device-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }
.device-card .thumb { aspect-ratio: 4 / 3; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.device-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.device-card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.device-card .brand { font-size: 12px; font-weight: 600; color: var(--blue); text-transform: uppercase; letter-spacing: .06em; }
.device-card .name { font-weight: 600; font-size: 15px; line-height: 1.3; }
.device-card .model { font-size: 12.5px; color: var(--muted); font-family: var(--font-mono); }
.device-card .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.badge {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; background: var(--surface-2); color: var(--ink-2);
}
.badge .ic { width: 13px; height: 13px; }
.badge-blue { background: var(--blue-soft); color: var(--blue); }
.badge-cyan { background: var(--info-soft); color: #0b7f95; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-amber { background: #FFF1D2; color: #8a5a00; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .badge-cyan { color: #6FDCF0; }
  :root:not([data-theme="light"]) .badge-amber { background: #3A2A0A; color: #FFC864; }
}
:root[data-theme="dark"] .badge-cyan { color: #6FDCF0; }
:root[data-theme="dark"] .badge-amber { background: #3A2A0A; color: #FFC864; }

.latest-table { min-width: 0; }
.latest-table thead th { background: var(--surface-2); white-space: nowrap; }
.latest-table tbody tr { cursor: pointer; transition: background .12s; }
.latest-table tbody tr:hover { background: var(--surface-2); }
.latest-table tbody tr:nth-child(even) { background: color-mix(in srgb, var(--surface-2) 45%, transparent); }
.latest-table tbody tr:nth-child(even):hover { background: var(--surface-2); }
.latest-table td { padding: 11px 14px; }
.lt-brand { font-size: 12px; font-weight: 600; color: var(--blue); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; width: 1%; }
.lt-model a { color: var(--ink); font-weight: 600; }
.lt-brand-m, .lt-date-m { display: none; }
th.lt-brand { color: var(--muted); font-size: 12px; letter-spacing: .06em; }
.lt-model a:hover { color: var(--blue); text-decoration: none; }
.lt-files { white-space: nowrap; }
.lt-files .badge + .badge { margin-left: 4px; }
.lt-date { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; width: 1%; }
th.lt-date { text-align: right; }
@media (max-width: 640px) {
  .latest-table .lt-brand { display: none; }            
  .latest-table .lt-date { display: none; }             
  .lt-date-m { display: block; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 2px; }
  .lt-brand-m { display: block; font-size: 10.5px; font-weight: 600; color: var(--blue); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 1px; }
  .latest-table td, .latest-table th { padding: 10px 10px; }
  .lt-files { white-space: normal; }                    
  .lt-files .badge { height: 20px; padding: 0 6px; font-size: 10.5px; margin: 2px 0; }
  .lt-files .badge + .badge { margin-left: 0; }
}
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 13px; font-weight: 500; }

.device-hero { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.device-hero .thumb { border-radius: var(--radius); overflow: hidden; background: var(--surface-2); aspect-ratio: 4 / 3; }
.device-hero .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.device-hero .info { display: flex; flex-direction: column; gap: 10px; }
.device-hero .meta { display: flex; flex-wrap: wrap; gap: 8px; }
.device-hero .desc { color: var(--muted); max-width: 64ch; }
.device-hero .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.fav-btn.active { background: var(--danger-soft); color: var(--danger); }
.fav-btn.active .ic { fill: currentColor; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 28px 0 18px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent;
  background: none; color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap;
}
.tab .count { background: var(--surface-2); color: var(--ink-2); border-radius: 999px; padding: 1px 8px; font-size: 12px; }
.tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.tab.active .count { background: var(--blue-soft); color: var(--blue); }

.workspace { display: grid; grid-template-columns: 320px 1fr; gap: 18px; align-items: start; }
.diagram-list { display: flex; flex-direction: column; gap: 8px; }
.diagram-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); text-align: left; width: 100%; cursor: pointer; color: var(--ink); transition: border-color .15s, background .15s;
}
.diagram-item:hover { border-color: var(--line-2); background: var(--surface-2); }
.diagram-item.active { border-color: var(--blue); background: var(--blue-soft); }
.diagram-item .kind { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--blue); flex: none; }
.diagram-item.active .kind { background: var(--surface); }
.diagram-item .t { font-weight: 600; font-size: 14px; }
.diagram-item .s { font-size: 12px; color: var(--muted); font-family: var(--font-mono); }

.viewer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.viewer-toolbar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.viewer-toolbar .title { font-weight: 600; font-size: 14px; flex: 1; min-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer-toolbar .zoom { font-family: var(--font-mono); font-size: 12px; min-width: 46px; text-align: center; color: var(--muted); }
.viewer-stage {
  position: relative; height: min(72vh, 820px); min-height: 360px; overflow: hidden; touch-action: none; user-select: none;
  background-color: var(--checker);
  background-image: linear-gradient(45deg, var(--line) 25%, transparent 25%), linear-gradient(-45deg, var(--line) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, var(--line) 75%), linear-gradient(-45deg, transparent 75%, var(--line) 75%);
  background-size: 24px 24px; background-position: 0 0, 0 12px, 12px -12px, -12px 0; cursor: grab;
}
.viewer-stage.dragging { cursor: grabbing; }
.viewer-stage > img { position: absolute; left: 0; top: 0; transform-origin: 0 0; max-width: none; will-change: transform; }
.viewer-stage .pdf-pages { position: absolute; left: 0; top: 0; transform-origin: 0 0; display: flex; flex-direction: column; gap: 14px; padding: 14px; will-change: transform; }
.viewer-stage .pdf-pages canvas { display: block; background: #fff; box-shadow: 0 4px 20px rgba(0, 0, 0, .25); }
.viewer-stage .status {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--muted);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
}
.viewer-stage .status.hidden { display: none; }
.viewer-stage:fullscreen { height: 100vh; }
.viewer-stage .spinner { width: 34px; height: 34px; border: 3px solid var(--line-2); border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 10px; }
@keyframes spin { to { transform: rotate(360deg); } }
.locked { display: grid; place-items: center; text-align: center; padding: 40px 24px; gap: 8px; }
.locked .ic { width: 44px; height: 44px; color: var(--blue); }
.locked p { color: var(--muted); max-width: 40ch; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.stat b { font-family: var(--font-display); font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--muted); }
.stat .ic { color: var(--blue); }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.table .input { min-width: 110px; }

input.input[type=date], input.input[type=datetime-local] { min-width: 0; max-width: 100%; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.table tr:last-child td { border-bottom: 0; }
.table td .row-actions { display: flex; gap: 6px; }
.table .thumb-sm { width: 44px; height: 34px; border-radius: 8px; object-fit: cover; background: var(--surface-2); }
.inline-form { display: inline-flex; gap: 6px; align-items: center; }
.inline-form .input, .inline-form select { height: 36px; font-size: 13px; }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filter-bar .search-box { max-width: 360px; margin: 0; }

@media (max-width: 600px) {
  .filter-bar > * { flex: 1 1 100%; width: 100% !important; max-width: none !important; }
}

.admin-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 22px; }
.admin-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: 13.5px; font-weight: 600; }
.admin-nav a:hover { text-decoration: none; background: var(--surface-2); }
.admin-nav a.active { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.admin-nav .ic { width: 16px; height: 16px; }

.topnav { display: flex; align-items: center; gap: 2px; margin-left: auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.topnav + .header-actions { margin-left: 6px; }
.topnav::-webkit-scrollbar { display: none; }
.topnav-sep { flex: none; width: 1px; height: 20px; margin: 0 5px; background: var(--line); }
.topnav-item { position: relative; flex: none; display: inline-flex; align-items: center; height: 38px; padding: 0 10px; border-radius: 10px;
  color: var(--ink-2); font-size: 13px; font-weight: 600; white-space: nowrap; transition: background .15s, color .15s; }
.topnav-item .ic { width: 18px; height: 18px; flex: none; }

.topnav-label { display: inline-block; max-width: 150px; overflow: hidden; opacity: 1; margin-left: 7px;
  transition: max-width .22s ease, opacity .18s ease, margin-left .22s ease; }
@media (max-width: 1180px) {
  .topnav-label { max-width: 0; opacity: 0; margin-left: 0; }
}
.topnav-item:hover, .topnav-item:focus-visible { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.topnav-item:hover .topnav-label, .topnav-item:focus-visible .topnav-label,
.topnav-item.active .topnav-label { max-width: 150px; opacity: 1; margin-left: 7px; }
.topnav-item.active { background: var(--blue-soft); color: var(--blue); }
.topnav-badge { position: absolute; top: 3px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px;
  background: var(--danger); color: #fff; font-size: 10px; line-height: 16px; text-align: center; font-weight: 700; }
@media (hover: none) { .topnav-item:not(.active) .topnav-label { display: none; } }

.topnav-item { border: 0; background: transparent; font-family: inherit; cursor: pointer; }
.topnav-caret { display: inline-flex; margin-left: 2px; opacity: .55; }
.topnav-caret .ic { width: 12px; height: 12px; transform: rotate(90deg); }
.topnav-group { position: relative; flex: none; }
.topnav-group:hover > .topnav-item, .topnav-group:focus-within > .topnav-item { background: var(--surface-2); color: var(--ink); }
.topnav-group:hover > .topnav-item .topnav-label, .topnav-group:focus-within > .topnav-item .topnav-label { max-width: 150px; opacity: 1; margin-left: 7px; }
.topnav-drop { display: none; position: absolute; top: 100%; left: 0; z-index: 60; padding-top: 6px; min-width: 200px; }
.topnav-drop::before { content: ''; position: absolute; inset: 6px 0 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); z-index: -1; }
.topnav-group:hover > .topnav-drop, .topnav-group:focus-within > .topnav-drop { display: flex; flex-direction: column; gap: 2px; padding: 12px 6px 6px; }
.topnav-drop a { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 10px; color: var(--ink-2); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.topnav-drop a .ic { width: 16px; height: 16px; }
.topnav-drop a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.topnav-drop a.active { background: var(--blue-soft); color: var(--blue); }
.topnav-drop a .nav-dot { margin-left: auto; }

@media (max-width: 760px) {
  .header-inner:has(.topnav) { flex-wrap: wrap; height: auto; min-height: var(--header-h); row-gap: 0; }
  .header-inner:has(.topnav) .header-actions { margin-left: auto; }
  .topnav { order: 3; flex: 1 1 100%; margin: 0 -4px; padding: 2px 0 8px; justify-content: space-between; overflow: visible; }
  .topnav-drop { left: 0; right: auto; }
  .topnav > .topnav-group:nth-last-child(-n+3) .topnav-drop { left: auto; right: 0; }   
}
@media (min-width: 761px) { .topnav { overflow: visible; } }

.auth-wrap { min-height: calc(100vh - var(--header-h) - 120px); display: grid; place-items: center; padding: 32px 0; }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 28px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 24px; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin-bottom: 22px; }
.auth-card .foot { margin-top: 18px; font-size: 14px; color: var(--muted); text-align: center; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; margin: -6px 0 18px; }
.auth-mark { width: 52px; height: 52px; margin-bottom: 14px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin: 16px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; font-family: var(--font-display); flex: none; overflow: hidden; }
.avatar.lg { width: 64px; height: 64px; font-size: 22px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-head { display: flex; align-items: center; gap: 16px; }
.profile-head .who { display: flex; flex-direction: column; }
.profile-head .who b { font-size: 18px; font-family: var(--font-display); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }

.two-col > * { min-width: 0; }
.recent-list { display: flex; flex-direction: column; }
.recent-list a { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink); }
.recent-list a:first-child { border-top: 0; }
.recent-list a:hover { text-decoration: none; color: var(--blue); }
.recent-list img { width: 48px; height: 36px; border-radius: 8px; object-fit: cover; background: var(--surface-2); }
.recent-list .t { font-weight: 500; font-size: 14px; }
.recent-list .s { font-size: 12px; color: var(--muted); }

.empty { text-align: center; padding: 48px 20px; color: var(--muted); background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty .ic { width: 36px; height: 36px; color: var(--muted); margin-bottom: 8px; }
.empty b { display: block; color: var(--ink); font-family: var(--font-display); margin-bottom: 4px; }
.empty.empty-sm { padding: 22px 18px; font-size: 13.5px; }
.empty.empty-sm .ic { width: 26px; height: 26px; margin-bottom: 4px; }

.cta {
  display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 28px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .85); margin: 4px 0 0; }
.cta .btn { background: #fff; color: var(--blue-2); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature .ic { width: 26px; height: 26px; color: var(--blue); margin-bottom: 12px; }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--muted); margin: 0; font-size: 14px; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0; margin-top: 40px; color: var(--muted); font-size: 13px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.footer-inner nav { display: flex; gap: 16px; }
.footer-inner a { color: var(--muted); }

.prose { max-width: 70ch; }
.prose h2 { margin: 26px 0 8px; font-size: 20px; }
.prose p, .prose li { color: var(--ink-2); }

.dev-slots { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.dev-slots b { color: var(--ink); }
.dev-slots-bar { display: inline-flex; gap: 3px; }
.dev-slots-bar i { width: 16px; height: 7px; border-radius: 4px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.dev-slots-bar i.on { background: linear-gradient(90deg, var(--blue), var(--cyan)); box-shadow: none; }
.dev-slots.full .dev-slots-bar i.on { background: var(--amber); }
.dev-slots.full b { color: var(--amber); }
.dev-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.dev-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--blue) 4%, var(--surface)); }
.dev-item.expired { opacity: .6; background: var(--surface); }
.dev-ic { flex: none; width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(135deg, #7C5CFF, #B06CFF); box-shadow: 0 6px 14px -8px rgba(11, 22, 51, .6); }
.dev-ic .ic { width: 19px; height: 19px; }
.dev-chrome  { background: linear-gradient(135deg, #1A73E8, #34A853); }
.dev-edge    { background: linear-gradient(135deg, #0C59A4, #2BC4A0); }
.dev-firefox { background: linear-gradient(135deg, #FF4F5E, #FF9500); }
.dev-safari  { background: linear-gradient(135deg, #1E90FF, #5AC8FA); }
.dev-opera   { background: linear-gradient(135deg, #D51A2B, #FF4B55); }
.dev-samsung { background: linear-gradient(135deg, #1428A0, #5B6EF5); }
.dev-item.expired .dev-ic { background: var(--line-2); box-shadow: none; }
.dev-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.dev-t b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dev-t span { font-size: 12px; color: var(--muted); }
.dev-pill { flex: none; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.dev-pill.me  { background: var(--blue-soft); color: var(--blue); }
.dev-pill.on  { background: var(--ok-soft); color: var(--ok); }
.dev-pill.off { background: var(--surface-2); color: var(--muted); }

.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.toast { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: 13px; z-index: 80; box-shadow: var(--shadow-lg); opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.show { opacity: 1; }
@media (min-width: 861px) { .toast { bottom: 24px; } }

@media (max-width: 860px) {
  body { padding-bottom: env(safe-area-inset-bottom); }
  .nav-links, .header-search { display: none; }
  .header-inner { gap: 10px; }
  .device-hero { grid-template-columns: 1fr; }
  .device-hero .thumb { max-width: 320px; }
  .workspace { grid-template-columns: 1fr; }
  .diagram-list { flex-direction: row; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
  .diagram-item { min-width: 220px; }
  .viewer-stage { height: 62vh; min-height: 300px; }
  .two-col { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; }
  .hero { border-radius: var(--radius); margin-top: 12px; }
  .hero-search { flex-direction: column; }
  .page { padding: 18px 14px 40px; }
  .table { min-width: 560px; }
}
@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .device-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .device-card .body { padding: 10px 12px 12px; }
  .device-card .name { font-size: 14px; }
  .auth-card { padding: 24px 20px; }
  .otp-inputs { gap: 6px; }
  .otp-inputs input { height: 50px; font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

[hidden] { display: none !important; }

.device-card, .feature, .stat, .card, .two-col > *, .workspace > *, .device-hero > *, .hero > *, .search-box, .diagram-item, .recent-list a > * { min-width: 0; }
.device-card .thumb, .device-hero .thumb { min-width: 0; width: 100%; }
.device-card .thumb img, .device-hero .thumb img { min-width: 0; }
html, body { max-width: 100%; overflow-x: hidden; }

@media (max-width: 600px) {
  .logo img { height: 28px; }
  
  .header-actions a.btn-primary.btn-sm[href$="/signup"] { display: none; }
  .header-actions a.btn-ghost.btn-sm[href$="/login"] { padding: 0 14px; background: var(--blue); color: var(--on-blue, #fff); }
  .hero-stats { gap: 8px 18px; }
  .hero-stats b { font-size: 19px; }
}

@media (max-width: 860px) {
  .page-head > .search-box { flex: 1 1 100%; max-width: none; margin: 0; }
}

.uplist { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.uprow { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 13px; background: var(--surface-2); }
.uprow .n { font-weight: 600; display: flex; justify-content: space-between; gap: 10px; }
.uprow .s { color: var(--muted); margin-top: 2px; }
.uprow.ok { border-color: var(--ok); }
.uprow.err { border-color: var(--danger); }
.prog { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 8px; }
.prog i { display: block; height: 100%; width: 0; background: var(--blue); transition: width .2s; }
.diagram-item.is-pending { opacity: .6; }

.ws { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 14px; height: calc(100vh - var(--header-h) - 22px); min-height: 540px; padding: 12px 20px 0; width: 100%; }
.ws-tree { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.ws-tree-head { padding: 10px; display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid var(--line); }
.ws-tree-head .input { height: 38px; font-size: 13px; }
.tree { list-style: none; margin: 0; padding: 6px; overflow: auto; flex: 1; }
.tree-node { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; padding: 8px; border-radius: 8px; text-align: left; cursor: pointer; color: var(--ink); font-size: 13.5px; }
.tree-node:hover { background: var(--surface-2); }
.tree-node .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree-node small { color: var(--muted); font-family: var(--font-mono); font-size: 11px; }
.tree-node .ic { width: 16px; height: 16px; color: var(--muted); }
.tree-dev.open > .tree-node { background: var(--blue-soft); color: var(--blue); font-weight: 600; }
.tree-dev.open > .tree-node .ic { color: var(--blue); }
.tree-count { background: var(--surface-2); border-radius: 999px; padding: 0 7px; font-size: 11px; color: var(--muted); }
.tree-files { list-style: none; margin: 2px 0 6px 14px; padding: 0 0 0 10px; border-left: 1px dashed var(--line-2); display: none; }
.tree-dev.open > .tree-files { display: block; }
.tree-folder-h { display: flex; gap: 6px; align-items: center; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 6px 4px; }
.tree-folder-h .ic { width: 14px; height: 14px; }
.tree-folder ul { list-style: none; margin: 0; padding: 0; }
.tree-file { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; padding: 7px 8px; border-radius: 8px; text-align: left; cursor: pointer; color: var(--ink); font-size: 13px; }
.tree-file .ic { width: 16px; height: 16px; color: var(--blue); flex: none; }
.tree-file:hover { background: var(--surface-2); }
.tree-file.active { background: var(--blue); color: #fff; }
.tree-file.active .ic { color: #fff; }
.tree-file small { display: block; color: var(--muted); font-size: 11px; font-family: var(--font-mono); }
.tree-file.active small { color: rgba(255,255,255,.8); }
.tree-file.is-pending { opacity: .55; }
.tree-ico { width: 18px; text-align: center; flex: none; }
.tree-empty { padding: 8px; font-size: 12.5px; color: var(--muted); }
.ws-tree-foot { padding: 10px; border-top: 1px solid var(--line); font-size: 12px; display: flex; gap: 6px 14px; flex-wrap: wrap; }
.ws-tree-foot a { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.ws-tree-foot .ic { width: 14px; height: 14px; }
.ws-main { display: flex; flex-direction: column; min-height: 0; gap: 10px; }
.ws-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ws-head h1 { font-size: 22px; }
.ws-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ws-head .actions { display: flex; gap: 8px; }
.ws-main .viewer { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ws-main .viewer-stage { flex: 1; height: auto; min-height: 320px; }
.ws-main.is-full { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 45; background: var(--bg); padding: 8px; }
.ws-main.is-full .ws-head { display: none; }
.ws-main.is-full .viewer { height: 100%; }
body.ws-fullscreen { overflow: hidden; }
.has-workspace .site-footer { margin-top: 20px; }

.ws-ad { position: absolute; inset: 0; z-index: 7; background: var(--surface); overflow: auto; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.ws-ad-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ws-ad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }

.nx-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }   
.nx-card {
  --nx: var(--blue); --nx-soft: var(--blue-soft);
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s;
}
.nx-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--nx); }
.nx-offer { --nx: #EA580C; --nx-soft: rgba(234, 88, 12, .12); }
.nx-banner { --nx: var(--cyan); --nx-soft: var(--info-soft); }
a.nx-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--nx) 45%, var(--line)); }
.nx-img { display: block; aspect-ratio: 16 / 9; background: var(--surface-2); }
.nx-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nx-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 16px; flex: 1; }
.nx-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nx-kind { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 8px; border-radius: 999px; background: var(--nx-soft); color: var(--nx); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.nx-kind .ic { width: 13px; height: 13px; }
.nx-meta time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nx-title { font-family: var(--font-display); font-size: 16.5px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.nx-text { font-size: 13.5px; line-height: 1.55; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.nx-go { margin-top: auto; padding-top: 4px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--nx); }
.nx-go .ic { width: 15px; height: 15px; transition: transform .15s; }
a.nx-card:hover .nx-go .ic { transform: translateX(3px); }

.nx-art {
  --g1: #2456F0; --g2: #14C8E6;
  position: relative; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  height: 128px; padding: 14px 16px; overflow: hidden; color: #fff; isolation: isolate;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.28), transparent 55%),
    linear-gradient(135deg, var(--g1), var(--g2));
}
.nx-offer .nx-art { --g1: #FF7A00; --g2: #FF3D77; }
.nx-banner .nx-art { --g1: #7C3AED; --g2: #14C8E6; }
.nx-art::before {                                   
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .22;
  background:
    radial-gradient(circle at 20px 20px, #fff 2.2px, transparent 3px) 0 0 / 40px 40px,
    linear-gradient(90deg, transparent 19px, rgba(255,255,255,.7) 19px 21px, transparent 21px) 0 0 / 40px 80px,
    linear-gradient(0deg, transparent 39px, rgba(255,255,255,.55) 39px 41px, transparent 41px) 20px 0 / 80px 40px;
  -webkit-mask-image: linear-gradient(100deg, transparent 20%, #000 75%); mask-image: linear-gradient(100deg, transparent 20%, #000 75%);
}
.nx-art .nx-kind { background: rgba(255,255,255,.22); color: #fff; backdrop-filter: blur(4px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.nx-big { font-family: var(--font-display); font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: -.02em; text-shadow: 0 2px 14px rgba(0,0,0,.18); max-width: 72%; overflow-wrap: anywhere; }
.nx-art-ic { position: absolute; right: -6px; bottom: -14px; width: 104px; height: 104px; opacity: .28; transform: rotate(-12deg); transition: transform .35s ease, opacity .35s; z-index: -1; }
.nx-art-ic .ic { width: 100%; height: 100%; stroke-width: 1.4; }
a.nx-card:hover .nx-art-ic { transform: rotate(-4deg) scale(1.08); opacity: .4; }
.nx-offer .nx-art::after {                          
  content: ''; position: absolute; inset: -40% auto -40% -60%; width: 40%; z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg);
  animation: nx-shine 5.5s ease-in-out infinite;
}
@keyframes nx-shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .nx-offer .nx-art::after { animation: none; display: none; } }
.nx-card:has(.nx-art)::before { display: none; }
.ad-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--surface-2); }
.ad-card img { width: 100%; border-radius: 8px; margin-bottom: 8px; display: block; }
.ad-card .badge { margin-bottom: 6px; }
.ad-card h4 { margin: 0 0 4px; font-family: var(--font-display); font-size: 15px; }
.ad-card p { margin: 0; font-size: 13px; color: var(--muted); }
.ws-lock { position: absolute; inset: 0; z-index: 7; display: grid; place-items: center; background: var(--surface); text-align: center; padding: 24px; }
.ws-lock h3 { margin-bottom: 6px; }
.ws-lock p { max-width: 42ch; }
.ws-limit p { margin-inline: auto; }
.ws-limit-time { font-family: var(--font-display); font-size: 34px; font-weight: 800; letter-spacing: -.02em; color: var(--blue); margin: 10px auto 2px; }
.ws-limit [data-left] { margin-bottom: 16px; }
.ads-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }

@media (max-width: 960px) {
  .ws { grid-template-columns: 1fr; height: auto; min-height: 0; padding: 10px 14px 0; }
  .ws-tree { max-height: 46vh; }
  .ws-main .viewer-stage { height: 62vh; min-height: 300px; }
  .ws-head h1 { font-size: 19px; }
}

.ws-tree-toggle { display: none; }
@media (max-width: 960px) {
  .ws-tree-toggle { display: inline-flex; flex: none; }
  .ws-tree-head { flex-direction: row; align-items: center; }
  .ws-tree-head [data-tree-filter] { display: none; }
  .ws-tree .tree, .ws-tree .ws-tree-foot { display: none; }
  .ws-tree.open .tree, .ws-tree.open .ws-tree-foot { display: block; }
  .ws-tree.open .ws-tree-foot { display: flex; }
  .ws-tree.open .ws-tree-head { flex-wrap: wrap; }
  .ws-tree.open .ws-tree-head [data-tree-filter] { display: block; flex: 1 1 100%; }
  .ws-tree { max-height: none; }
  .ws-tree.open .tree { max-height: 40vh; }
}

body.home-app { overflow: hidden; }                 
body.home-app main { height: calc(100vh - var(--header-h)); overflow: hidden; }
.home-shell {
  display: grid; grid-template-columns: 320px minmax(0, 1fr);
  height: calc(100vh - var(--header-h)); width: 100%;
}

.explorer {
  display: flex; flex-direction: column; min-height: 0;
  background: var(--surface); border-right: 1px solid var(--line);
}
.explorer-head { padding: 12px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }

.explorer-title { display: none; align-items: center; justify-content: flex-end; gap: 8px; font-weight: 700; font-family: var(--font-display, "Sora"), sans-serif; color: var(--ink); }
.explorer-title .ic { width: 18px; height: 18px; color: var(--blue); }
.explorer-title span { flex: 1; }
.explorer-x { display: none; border: 0; background: none; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; }
.explorer-search { position: relative; flex: none; max-width: none; margin: 0; }
.explorer-search .input { height: 40px; width: 100%; padding-left: 40px; }
.explorer-body { flex: 1; min-height: 0; overflow-y: auto; padding: 8px; }
.explorer-foot { padding: 10px 12px; border-top: 1px solid var(--line); display: flex; gap: 8px 16px; flex-wrap: wrap; }
.explorer-foot a { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12.5px; }
.explorer-foot .ic { width: 14px; height: 14px; }

.explorer-foot, .ws-tree-foot { align-items: center; }
.contact-links { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.explorer-foot .contact-links a, .ws-tree-foot .contact-links a {
  width: 28px; height: 28px; gap: 0; justify-content: center; border-radius: 50%;
  background: var(--surface-2); color: var(--muted); transition: background .15s, color .15s;
}
.contact-links a:hover { text-decoration: none; color: #fff; }
.explorer-foot .contact-links svg, .ws-tree-foot .contact-links svg { width: 15px; height: 15px; display: block; }
.contact-links .cl-fb:hover { background: #1877F2; }
.contact-links .cl-wa:hover { background: #25D366; }
.contact-links .cl-mail:hover { background: var(--blue); }

.tree, .tree ul { list-style: none; margin: 0; padding: 0; }
.tree-brand > .tree-node { font-weight: 600; }
.tree .tree-node { display: flex; align-items: center; gap: 7px; width: 100%; border: 0; background: none; padding: 8px 8px; border-radius: 9px; text-align: left; cursor: pointer; color: var(--ink); font-size: 13.5px; }
.tree .tree-node:hover { background: var(--surface-2); }
.tree-caret { display: inline-flex; transition: transform .15s; color: var(--muted); }
.tree-caret .ic { width: 15px; height: 15px; }
.tree-brand.open > .tree-node .tree-caret, .tree-dev.open > .tree-node .tree-caret { transform: rotate(90deg); }
.tree-ico { width: 20px; text-align: center; flex: none; }
.tree .tree-node .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree .tree-node small { color: var(--muted); font-family: var(--font-mono); font-size: 11px; white-space: nowrap; }
.tree-count { background: var(--surface-2); border-radius: 999px; padding: 1px 8px; font-size: 11px; color: var(--muted); flex: none; }
.tree-devices, .tree-files { display: none; margin-left: 14px; padding-left: 10px; border-left: 1px dashed var(--line-2); }
.tree-brand.open > .tree-devices, .tree-dev.open > .tree-files { display: block; }
.tree-dev.open > .tree-node { color: var(--blue); }
.tree-folder-h { display: flex; gap: 6px; align-items: center; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 7px 4px 3px; }
.tree-file { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 8px; border-radius: 8px; color: var(--ink); font-size: 13px; }
.tree-file:hover { background: var(--blue-soft); text-decoration: none; }
.tree-file small { display: block; color: var(--muted); font-size: 11px; font-family: var(--font-mono); }
.tree-file.is-pending { opacity: .55; }
.tree-empty { padding: 10px 8px; font-size: 12.5px; color: var(--muted); }
.tree-results .tree-node { justify-content: flex-start; }
.tree-go, .tree-go .ic { width: 15px; height: 15px; color: var(--muted); margin-left: auto; }

.home-main { min-width: 0; overflow-y: auto; padding: 20px 22px 40px; }
.home-main > .section:first-of-type, .home-main > .hero { margin-top: 0; }
.hero-compact { height: auto; min-height: 0; padding: 26px 0 10px; text-align: left; align-items: flex-start; }
.hero-compact h1 { font-size: clamp(26px, 4vw, 40px); }
.explorer-open { display: none; margin-bottom: 12px; }
.home-main-foot { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.explorer-backdrop { display: none; }

.bv-progress { position: absolute; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(2px); transition: opacity .3s; }
.bv-progress.done { opacity: 0; }
.bv-progress-card { display: flex; flex-direction: column; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px 30px; box-shadow: var(--shadow-lg); }
.bv-progress-card span { font-size: 13px; color: var(--muted); }
.bv-ring { position: relative; width: 72px; height: 72px; }
.bv-ring svg { width: 72px; height: 72px; transform: rotate(-90deg); }
.bv-ring circle { fill: none; stroke-width: 5; }
.bv-ring .bg { stroke: var(--surface-2); }
.bv-ring .fg { stroke: var(--blue); stroke-linecap: round; transition: stroke-dashoffset .2s ease; }
.bv-ring b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

@media (max-width: 860px) {
  .home-shell { grid-template-columns: 1fr; }
  .explorer {
    position: fixed; top: var(--header-h); left: 0; bottom: 0; width: min(86vw, 340px); z-index: 70;
    transform: translateX(-100%); transition: transform .25s; border-right: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
  }
  .explorer.open { transform: none; }
  .explorer-title { display: flex; }
  .explorer-x { display: block; }
  .explorer-open { display: inline-flex; }
  .explorer-backdrop:not([hidden]) { display: block; position: fixed; inset: var(--header-h) 0 0; background: rgba(11,22,51,.45); z-index: 60; }
  body.home-app { overflow: auto; }
  body.home-app main { height: auto; overflow: visible; }
  .home-shell { height: auto; }
  .home-main { overflow: visible; height: auto; padding: 16px; }
}

body.has-workspace { overflow: hidden; }
body.has-workspace main { height: calc(100vh - var(--header-h)); overflow: hidden; }
.ws { padding: 12px 16px; gap: 12px; height: calc(100vh - var(--header-h)); min-height: 0; }

.ws-tree-title { display: none; align-items: center; justify-content: flex-end; gap: 8px; font-weight: 700; font-family: "Sora", sans-serif; color: var(--ink); }
.ws-tree-title .ic { width: 18px; height: 18px; color: var(--blue); }
.ws-tree-title span { flex: 1; }
.ws-tree-x { display: none; border: 0; background: none; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; }
.ws-tree-head .explorer-search .input { height: 38px; }
.ws-tree-body { flex: 1; min-height: 0; overflow-y: auto; padding: 8px; }

.ws-main { position: relative; gap: 0; }
.ws-main .viewer { flex: 1; min-height: 0; border-radius: var(--radius); }
.ws-main .viewer-stage { flex: 1; height: auto; min-height: 0; }
.ws-tree-open { display: none; position: absolute; top: 10px; left: 10px; z-index: 20; }

.bv-model { font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-left: 8px; }
.bv-sep { width: 1px; height: 20px; background: var(--line, rgba(255,255,255,.15)); margin: 0 4px; display: inline-block; }

.sk-modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(11,22,51,.55); }
.sk-modal-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; width: min(620px, 100%); max-height: 88vh; overflow-y: auto; box-shadow: var(--shadow-lg); padding: 22px; }
.pass-card { width: min(420px, 100%); display: flex; flex-direction: column; gap: 8px; }
.pass-card h3 { margin: 0; }
.pass-card p { margin: 0 0 6px; }
.pass-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }

.cb-hint { margin: 16px 0 0; text-align: center; font-size: 13.5px; }
.cb-hint a { color: var(--muted); }
.cb-hint a b { color: var(--blue); }
.cb-hint a:hover { text-decoration: none; }
.cb-hint a:hover b { text-decoration: underline; }
.sk-modal-x { position: absolute; top: 12px; right: 14px; border: 0; background: none; font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer; }
.sk-modal-head { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.sk-modal-head img { width: 150px; border-radius: 10px; }
.sk-modal-head > div { flex: 1; min-width: 200px; }
.sk-modal-head h3 { font-size: 18px; margin-bottom: 4px; }
.sk-modal-body { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.sk-modal-body h4 { margin-bottom: 10px; }

@media (max-width: 860px) {
  body.has-workspace { overflow: auto; }
  body.has-workspace main { height: auto; overflow: visible; }
  
  .ws { grid-template-columns: 1fr; height: calc(100vh - var(--header-h)); padding: 0; gap: 0; }
  
  .ws { height: calc(100dvh - var(--header-h)); }
  .ws-main .viewer { border: 0; border-radius: 0; }
  .ws-tree { position: fixed; top: var(--header-h); left: 0; bottom: 0; width: min(86vw, 340px); z-index: 70; transform: translateX(-100%); transition: transform .25s; box-shadow: var(--shadow-lg); }
  .ws-tree.open { transform: none; }
  .ws-tree-title { display: flex; }
  .ws-tree-x { display: block; }
  .ws-tree-open { display: inline-flex; }
  .ws-drawer-backdrop:not([hidden]) { display: block; position: fixed; inset: var(--header-h) 0 0; background: rgba(11,22,51,.45); z-index: 60; }
}

.tree ul { position: relative; margin: 0 0 0 9px; padding: 0 0 0 20px; border-left: 0; }
.tree-devices, .tree-files { border-left: 0; }
.tree ul > li { position: relative; }
.tree ul > li::before {                 
  content: ''; position: absolute; left: -11px; top: 0; bottom: 0; border-left: 1.5px solid var(--line-2);
}
.tree ul > li:last-child::before { bottom: auto; height: 19px; }   
.tree ul > li::after {                  
  content: ''; position: absolute; left: -11px; top: 19px; width: 17px; border-top: 1.5px solid var(--line-2);
}

.tree-folder > ul > li::after { top: 16px; }
.tree-folder > ul > li:last-child::before { height: 16px; }

.tree-file { padding: 5px 8px; font-size: 12.5px; gap: 7px; line-height: 1.35; }
.tree-file .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree-file small { display: none; }
.tree-folder > ul > li::after { top: 14px; }
.tree-folder > ul > li:last-child::before { height: 14px; }

.tree-file.picked { background: var(--surface-2); outline: 1px solid var(--line-2); }

.ws-home { position: absolute; inset: 0; z-index: 5; overflow-y: auto; background: var(--bg); }
.ws-home img { position: static; max-width: 100%; will-change: auto; }
.ws-home-inner { padding: 18px 22px 32px; }
.ws-home-inner > .section:first-child, .ws-home-inner > .hero { margin-top: 0; }
.ws-home[hidden] { display: none; }

@media (max-width: 860px) {
  .ws-tree-open { top: 10px; left: 10px; background: rgba(13,20,34,.82); border-color: rgba(255,255,255,.12); color: #E7ECF6; backdrop-filter: blur(14px); box-shadow: 0 10px 28px -14px rgba(4,10,22,.8); }
  .ws-tree-open .ic { color: #14C8E6; }
  .ws-tree-open:hover { background: rgba(13,20,34,.92); }
}

.sk-banners { position: relative; margin-bottom: 22px; }
.sk-slides { position: relative; aspect-ratio: 1200 / 372; border-radius: var(--radius); overflow: hidden; background: var(--hero-a); box-shadow: var(--shadow); }
.sk-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .55s ease; display: block; }
.sk-slide.on { opacity: 1; }
.sk-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sk-slide:hover { text-decoration: none; }
.sk-dots { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 7px; z-index: 2; }
.sk-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255,255,255,.42); transition: background .2s, width .2s; }
.sk-dots button.on { background: var(--cyan); width: 22px; border-radius: 999px; }

@media (max-width: 720px) {
  .sk-dots { bottom: 9px; right: 10px; }
}
@media (prefers-reduced-motion: reduce) { .sk-slide { transition: none; } }

.panel-brand { display: none; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.panel-brand .logo { flex: 1; min-width: 0; height: 30px; }
.panel-brand .logo img { height: 27px; width: auto; }
.panel-brand .avatar { width: 32px; height: 32px; font-size: 12px; flex: none; }

@media (min-width: 861px) {
  body.home-app .site-header, body.has-workspace .site-header { display: none; }
  body.home-app main, body.has-workspace main { height: 100vh; }
  .home-shell { height: 100vh; }
  .ws { height: 100vh; }
  .panel-brand { display: flex; }
  .ws-main.is-full { top: 0; }
  
  .home-shell { grid-template-columns: 300px minmax(0, 1fr); gap: 12px; padding: 12px 16px; }
  .explorer { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
  .home-main { padding: 0 6px 28px 0; }
}

.home-foot { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.home-foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr 1.1fr; gap: 30px 24px; }
.home-foot-brand .logo { display: flex; height: auto; width: 100%; max-width: 300px; }
.home-foot-brand .logo img { width: 100%; height: auto; }
.home-foot-contact a b { display: flex; align-items: center; gap: 7px; }
.home-foot-contact a b svg { width: 14px; height: 14px; color: var(--blue); }
.home-foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.home-foot-links a { color: var(--muted); font-size: 12px; }
.home-foot-links a:hover { color: var(--blue); }
.home-foot-col h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin: 0 0 12px; }
.home-foot-col a { display: block; margin-bottom: 14px; color: var(--ink); }
.home-foot-col a:hover { text-decoration: none; }
.home-foot-col a:hover b { color: var(--blue); }
.home-foot-col a b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.4; margin-bottom: 3px; }
.home-foot-col a span { display: block; font-size: 12px; line-height: 1.55; color: var(--muted); }

.fx { margin-bottom: 10px; }
.fx-t {
  display: flex; align-items: center; gap: 6px; width: 100%; padding: 2px 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 13.5px; font-weight: 600; line-height: 1.4; color: var(--ink); text-align: left;
}
.fx-t .ic { width: 14px; height: 14px; color: var(--muted); transition: transform .2s; flex: none; }
.fx-d { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .22s ease; }
.fx-d > div { overflow: hidden; }
.fx-d p { margin: 4px 0 6px; font-size: 12px; line-height: 1.55; color: var(--muted); }
.home-foot-col .fx-d a { display: inline-block; margin: 0 0 4px; font-size: 12px; font-weight: 600; color: var(--blue); }
.fx.pinned .fx-d { grid-template-rows: 1fr; }
.fx.pinned .fx-t, .fx.pinned .fx-t .ic { color: var(--blue); }
.fx.pinned .fx-t .ic { transform: rotate(90deg); }
@media (hover: hover) {
  .fx:hover .fx-d { grid-template-rows: 1fr; }
  .fx:hover .fx-t, .fx:hover .fx-t .ic { color: var(--blue); }
  .fx:hover .fx-t .ic { transform: rotate(90deg); }
}
@media (prefers-reduced-motion: reduce) { .fx-d, .fx-t .ic { transition: none; } }
.home-foot-base {
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted);
}
@media (max-width: 900px) {
  .home-foot-grid { grid-template-columns: 1fr 1fr; gap: 26px 20px; }
  .home-foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .home-foot-grid { grid-template-columns: 1fr; gap: 22px; }
  .home-foot { margin-top: 26px; }
}

.sk-welcome {
  position: fixed; inset: 0; z-index: 95; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(4px);
  animation: skWelcomeIn .25s ease both;
}
.sk-welcome.leaving { animation: skWelcomeOut .35s ease both; pointer-events: none; }
.sk-welcome-card {
  text-align: center; padding: 30px 40px 32px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  animation: skWelcomeCard .4s cubic-bezier(.2,.8,.2,1) both;
}
.sk-welcome-avatar {
  width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 50%; overflow: hidden;
  background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: .02em;
  box-shadow: 0 10px 26px -10px var(--blue);
}
.sk-welcome-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sk-welcome-kicker { margin: 0 0 4px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.sk-welcome-card h3 { font-size: 21px; margin: 0 0 6px; }
.sk-welcome-sub { margin: 0; font-size: 13px; color: var(--muted); }
@keyframes skWelcomeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes skWelcomeOut { to { opacity: 0 } }
@keyframes skWelcomeCard { from { opacity: 0; transform: translateY(10px) scale(.97) } to { opacity: 1; transform: none } }
@media (prefers-reduced-motion: reduce) { .sk-welcome, .sk-welcome-card { animation: none } }

.sk-sub {
  display: flex; align-items: center; gap: 14px; margin: 16px 0 0;
  padding: 13px 16px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); box-shadow: var(--shadow);
}
.sk-sub-ic { display: flex; width: 38px; height: 38px; flex: none; border-radius: 50%; align-items: center; justify-content: center; background: var(--surface-2); color: var(--muted); }
.sk-sub-ic svg { width: 19px; height: 19px; }
.sk-sub-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.sk-sub-t b { font-size: 14px; }

.sk-sub-t b.sk-sub-free { color: var(--danger); font-weight: 800; }
.sk-sub-t b.sk-sub-paid { color: var(--ok); font-weight: 800; }
.sk-sub-t span { font-size: 12.5px; color: var(--muted); }

.sk-sub-files { font-style: normal; font-size: 11.5px; color: var(--muted); font-family: var(--font-mono); }
.sk-sub-files.full { color: var(--warn, #FFB020); }
.sk-sub .btn { flex: none; }

.sk-meter { flex: none; display: flex; flex-direction: column; gap: 6px; width: 170px; padding-right: 6px; }
.sk-meter-bars { display: flex; gap: 4px; }
.sk-meter-bars i { flex: 1; height: 7px; border-radius: 4px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.sk-meter-bars i.on { background: var(--blue); box-shadow: none; }
.sk-meter-bars i.bar { overflow: hidden; }
.sk-meter-bars i.bar s { display: block; height: 100%; background: var(--blue); border-radius: inherit; }
.sk-meter.full .sk-meter-bars i.on, .sk-meter.full .sk-meter-bars i.bar s { background: var(--danger); }
.sk-meter-l { font-size: 11.5px; color: var(--muted); font-family: var(--font-mono); white-space: nowrap; }
.sk-meter-l b { color: var(--ink); font-weight: 700; }
.sk-meter.full .sk-meter-l { color: var(--danger); }
.sk-sub-ok .sk-sub-ic { background: var(--ok-soft); color: var(--ok); }
.sk-sub-ok { border-left: 3px solid var(--ok); }
.sk-sub-warn .sk-sub-ic { background: color-mix(in srgb, var(--amber) 18%, transparent); color: var(--amber); }
.sk-sub-warn { border-left: 3px solid var(--amber); }
.sk-sub-over .sk-sub-ic { background: var(--danger-soft); color: var(--danger); }
.sk-sub-over { border-left: 3px solid var(--danger); }
.sk-sub-none { border-left: 3px solid var(--line-2); }
@media (max-width: 560px) {
  .sk-sub { flex-wrap: wrap; row-gap: 12px; }
  .sk-sub-t { flex: 1 1 calc(100% - 52px); }          
  .sk-sub .btn { flex: 1 1 0; justify-content: center; }   
  .sk-meter { width: 100%; padding: 0; }
}

@media (max-width: 860px) {
  body.has-open-file { --header-h: 0px; }
  body.has-open-file .site-header { display: none; }
  body.has-open-file .ws-tree-open { top: 0; left: 0; border-radius: 0 0 12px 0; }
}

.nope { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

.nav-dot { margin-left: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.deposit-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; align-items: start; }
.deposit-proof img { width: 220px; max-height: 260px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; }
.deposit-proof:hover img { border-color: var(--accent); }
.pay-address { display: block; word-break: break-all; padding: 10px 12px; background: var(--surface-2); border-radius: 8px; font-size: 13px; }
@media (max-width: 720px) {
  .deposit-row { grid-template-columns: 1fr; }
  .deposit-proof img { width: 100%; max-height: 200px; }
}

.tel-row { display: flex; align-items: stretch; }
.tel-code {
  display: inline-flex; align-items: center; padding: 0 12px; white-space: nowrap;
  background: var(--surface-2); border: 1px solid var(--line); border-right: 0;
  border-radius: 10px 0 0 10px; color: var(--ink-2); font-family: var(--font-mono); font-size: 13px;
}
.tel-row .input { border-radius: 0 10px 10px 0; min-width: 0; }

.price-was { color: var(--muted); font-weight: 500; margin-left: 4px; }

.seller-list { display: flex; flex-direction: column; gap: 8px; }
.seller {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
}
.seller-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.seller-contact { display: flex; align-items: center; gap: 6px; flex: none; }

.seller-hero {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 26px 0 22px;
}
.seller-hero h1 { margin: 10px 0 6px; }
.seller-hero .sub { color: var(--muted); max-width: 46ch; }
.price-strip { display: flex; gap: 10px; flex-wrap: wrap; }
.price-chip {
  display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; min-width: 118px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
}
.price-chip-name { font-size: 12px; color: var(--muted); }
.price-chip-val { font-weight: 700; font-size: 15px; }
.price-chip .badge { padding: 0 6px; height: 18px; font-size: 10.5px; }

.seller-filter { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.seller-search { position: relative; flex: 1 1 260px; display: flex; align-items: center; }
.seller-search .ic { position: absolute; left: 12px; width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.seller-search .input { padding-left: 38px; }
.seller-filter select.input { max-width: 220px; }
.seller-count { margin: 0 0 12px; }

.seller-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.seller-card {
  display: flex; flex-direction: column; gap: 12px; padding: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .16s, transform .16s;
}
.seller-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); transform: translateY(-2px); }
.seller-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.seller-avatar {
  flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--accent)); color: #fff; font-weight: 700; font-size: 15px;
}
.seller-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.seller-id b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seller-where { font-size: 12.5px; color: var(--muted); }
.seller-address { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 13px; color: var(--ink-2); }
.seller-address .ic { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--muted); }
.seller-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.seller-actions .btn { flex: 1 1 auto; justify-content: center; }

.seller-empty {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  padding: 54px 20px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius);
}
.seller-empty .ic { width: 34px; height: 34px; color: var(--muted); }
.seller-empty h3 { margin: 0; }

.seller-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 26px; padding: 18px 22px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--line);
}
.seller-foot span { display: block; font-size: 13px; }

@media (max-width: 720px) {
  .seller-hero { padding: 18px 0 16px; }
  .price-strip { width: 100%; }
  .price-chip { flex: 1 1 100px; min-width: 0; }
  .seller-filter select.input { max-width: none; flex: 1 1 140px; }
}

@media (min-width: 2200px) {
  .container { max-width: 2200px; }
  .container.narrow { max-width: 900px; }
}

.guide-hero { padding: 30px 0 26px; max-width: 780px; }
.guide-hero h1 { margin: 12px 0 10px; font-size: clamp(28px, 4vw, 42px); }
.guide-hero .sub { color: var(--muted); font-size: 15.5px; line-height: 1.65; }
.guide-cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 10px; }

.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-bottom: 34px; }
.guide-card { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.guide-card h3 { font-size: 15.5px; margin: 12px 0 6px; }
.guide-card p { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.6; }
.guide-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--blue-soft); color: var(--blue); }
.guide-ic .ic { width: 19px; height: 19px; }

.guide-section { margin: 0 0 34px; }
.guide-section h2 { font-size: 21px; margin-bottom: 10px; }
.guide-section > p.muted { max-width: 70ch; }

.guide-steps { list-style: none; counter-reset: step; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.guide-steps li {
  counter-increment: step; position: relative; padding: 16px 18px 16px 62px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.guide-steps li::before {
  content: counter(step); position: absolute; left: 18px; top: 16px;
  width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--accent)); color: #fff; font-weight: 700; font-size: 13px;
}
.guide-steps b { display: block; margin-bottom: 3px; }
.guide-steps span { color: var(--muted); font-size: 13.5px; line-height: 1.6; }

.guide-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 14px; }
.guide-two h4 { margin: 0 0 6px; font-size: 14.5px; }
.guide-two p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.65; }

.guide-rules { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.guide-rules li {
  padding: 13px 16px 13px 40px; position: relative; font-size: 13.5px; color: var(--muted); line-height: 1.6;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
}
.guide-rules li::before {
  content: ''; position: absolute; left: 16px; top: 18px; width: 8px; height: 8px; border-radius: 3px;
  background: var(--accent);
}
.guide-rules b { color: var(--ink); }

.guide-faq { display: grid; gap: 8px; margin-top: 14px; }
.guide-faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; }
.guide-faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; font-size: 14px; list-style: none; }
.guide-faq summary::-webkit-details-marker { display: none; }
.guide-faq summary::after { content: '+'; float: right; color: var(--muted); font-weight: 400; }
.guide-faq details[open] summary::after { content: '\2212'; }
.guide-faq p { margin: 0 0 14px; color: var(--muted); font-size: 13.5px; line-height: 1.65; }

.guide-final {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 26px; border-radius: var(--radius); margin-bottom: 40px;
  
  background: linear-gradient(120deg, var(--blue), var(--cyan)); color: #fff;
}
.guide-final h2 { margin: 0 0 4px; color: #fff; }
.guide-final .muted { color: rgba(255, 255, 255, .86); }
.guide-final .btn-outline { border-color: rgba(255, 255, 255, .7); color: #fff; }
.guide-final .btn-outline:hover { background: rgba(255, 255, 255, .12); }
.guide-final .btn-primary { background: #fff; color: var(--blue); }

.ctx {
  position: fixed; z-index: 90; min-width: 208px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 24px 60px -18px rgba(4, 10, 22, .75), 0 2px 6px rgba(4, 10, 22, .25);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  font-size: 13.5px; user-select: none;
  animation: ctx-in .1s ease-out;
}
@keyframes ctx-in { from { opacity: 0; transform: translateY(-3px) scale(.98); } to { opacity: 1; transform: none; } }
.ctx-item {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; padding: 0 10px;
  background: none; border: 0; border-radius: 8px; color: var(--ink); text-align: left; cursor: pointer;
  font: inherit;
}
.ctx-item:hover, .ctx-item:focus-visible { background: var(--surface-2); outline: none; }
.ctx-ic { display: grid; place-items: center; width: 17px; height: 17px; flex: none; color: var(--muted); }
.ctx-ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ctx-item:hover .ctx-ic { color: var(--accent); }
.ctx-label { flex: 1 1 auto; }
.ctx-hint { color: var(--muted); font-size: 11.5px; font-family: var(--font-mono); flex: none; }
.ctx-sep { height: 1px; margin: 5px 8px; background: var(--line); }

.code-cards-h {
  display: flex; align-items: center; gap: 8px; margin: 18px 0 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.code-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(244px, 1fr)); gap: 12px; }
.code-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: space-between; gap: 6px;
  aspect-ratio: 1.586 / 1; min-height: 150px; padding: 14px 16px;
  border-radius: 14px; color: #fff;
  background: linear-gradient(135deg, #2456F0 0%, #14C8E6 100%);
  box-shadow: 0 16px 34px -18px rgba(4, 10, 22, .85);
}
.code-card-1 { background: linear-gradient(135deg, #6A46E8 0%, #B14BE0 100%); }
.code-card-2 { background: linear-gradient(135deg, #0E7C5A 0%, #14C8E6 100%); }
.code-card-3 { background: linear-gradient(135deg, #1B2A6B 0%, #4A63C8 100%); }

.code-card::after {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image:
    radial-gradient(circle at 84% 22%, rgba(255, 255, 255, .35), transparent 42%),
    repeating-linear-gradient(70deg, rgba(255, 255, 255, .10) 0 2px, transparent 2px 14px);
}
.code-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.code-card-brand { font-family: var(--font-display, "Sora", sans-serif); font-weight: 700; font-size: 14px; letter-spacing: .02em; }
.code-card-plan {
  font-size: 10.5px; font-weight: 600; white-space: nowrap; padding: 3px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .3);
}
.code-card-chip {
  width: 34px; height: 24px; border-radius: 5px; flex: none;
  background: linear-gradient(135deg, #FFD98A, #D6A340);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18);
  position: relative;
}
.code-card-chip::before, .code-card-chip::after {
  content: ''; position: absolute; left: 5px; right: 5px; height: 1px; background: rgba(0, 0, 0, .28);
}
.code-card-chip::before { top: 8px; }
.code-card-chip::after { top: 15px; }
.code-card-no {
  align-self: flex-start; border-bottom-color: rgba(255, 255, 255, .4);
  font-family: var(--font-mono, Consolas, monospace); font-size: 16px; font-weight: 700;
  letter-spacing: .1em; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .28);
}
.code-card-no.shown { letter-spacing: .06em; }
.code-card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.code-card-foot span { display: flex; flex-direction: column; min-width: 0; }
.code-card small { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; opacity: .72; }
.code-card b { font-size: 11.5px; font-weight: 600; }
.code-card-seller b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code-card-when { text-align: right; align-items: flex-end; flex: none; }
.code-card-when b { white-space: nowrap; }

.reveal {
  font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0;
  cursor: pointer; max-width: 100%; text-align: inherit;
  border-bottom: 1px dashed currentColor; opacity: .95;
}
.reveal:hover, .reveal:focus-visible { opacity: 1; }
.reveal.shown { border-bottom-color: transparent; user-select: all; cursor: text; }
.reveal > span { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }

@media (max-width: 420px) {
  .code-cards { grid-template-columns: 1fr; }
  .code-card { max-width: 340px; }
}

.acct-card .card-head .head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.acct-grid { display: grid; gap: 18px; margin-top: 18px; align-items: start; }
.acct-grid > * { min-width: 0; }
@media (min-width: 900px) { .acct-grid.has-codes { grid-template-columns: 1fr 1fr; } }
.acct-kv { display: grid; grid-template-columns: 1fr; gap: 2px 22px; margin: 0; }
@media (min-width: 560px) { .acct-kv { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .acct-kv { grid-template-columns: repeat(3, 1fr); } }
.acct-kv > div {
  display: flex; flex-direction: column; gap: 5px; min-width: 0;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.acct-kv dt {
  display: flex; align-items: center; gap: 7px; margin: 0;
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.acct-kv dt svg { width: 14px; height: 14px; opacity: .8; }
.acct-kv dd { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.acct-dots { letter-spacing: .22em; color: var(--muted) !important; }
.acct-thumb { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; display: block; }
.acct-panel { animation: acct-in .18s ease-out; }
.acct-panel .form-row { gap: 0 16px; }
.acct-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
@keyframes acct-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .acct-panel { animation: none; } }
@media (max-width: 560px) {
  .acct-card .card-head { flex-wrap: wrap; row-gap: 12px; }
  .acct-card .card-head h3 { flex: 1 0 100%; }
  .acct-card .card-head .head-actions { width: 100%; }
  .acct-card .card-head .head-actions .btn { flex: 1; justify-content: center; }
}
.acct-card .head-actions .btn.is-on {
  background: var(--blue); border-color: var(--blue); color: var(--on-blue);
  box-shadow: 0 8px 20px -10px var(--blue);
}

.sk-slides { aspect-ratio: 1200 / 430; }
.sk-slide.sk-poster { display: block; overflow: hidden; cursor: pointer; color: #fff; }
.sk-slide.sk-poster.sk-nolink { cursor: default; }
.sk-poster h2, .sk-poster p { margin: 0; }
.sk-art { position: absolute; inset: 0; z-index: 0; pointer-events: none; user-select: none; }
.sk-art > svg { position: absolute; top: 50%; right: -3%; height: 114%; width: auto; max-width: none; transform: translateY(-50%); }

.sk-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--scrim) 0%, var(--scrim-mid) 42%, transparent 68%), radial-gradient(120% 100% at 50% 50%, transparent 60%, rgba(0, 0, 0, .35) 100%); }
.sk-words { position: absolute; left: 4.6%; top: 50%; transform: translateY(-50%); z-index: 1; max-width: 50%; display: flex; flex-direction: column; gap: 12px; }
.sk-kicker { font-size: 11.5px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--kick); }
.sk-words h2 { font-family: var(--font-display, "Sora", sans-serif); font-weight: 800; font-size: clamp(30px, 4.3vw, 64px); line-height: .98; letter-spacing: -.035em; text-wrap: balance; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.sk-words h2 b { display: block; font-weight: 800; color: var(--acc); }
.sk-words p { font-size: 15.5px; line-height: 1.45; color: var(--dim); max-width: 40ch; }
.sk-go { margin-top: 4px; font-size: 13.5px; font-weight: 700; color: var(--ink2, #fff); display: inline-flex; align-items: center; gap: 6px; }
.sk-go i { font-style: normal; transition: transform .16s; }
.sk-poster:hover .sk-go i { transform: translateX(4px); }
.sk-poster:hover .sk-art > svg { transform: translateY(-50%) scale(1.02); }
.sk-art > svg { transition: transform .8s ease; }

.sk-p-bench { background: radial-gradient(118% 150% at 74% 36%, #2C1B0B 0%, #150F16 44%, #06080E 100%); --scrim: rgba(8, 7, 10, .92); --scrim-mid: rgba(8, 7, 10, .55); --kick: #FFC864; --acc: #FFB020; --dim: rgba(255, 236, 214, .8); }
.sk-p-bench .sk-art > svg { right: -4%; height: 106%; }

.sk-p-net { background: linear-gradient(118deg, #03130F 0%, #0A3C31 60%, #12735C 100%); --scrim: rgba(3, 19, 15, .94); --scrim-mid: rgba(3, 19, 15, .6); --kick: #8DF3B0; --acc: #8DF3B0; --dim: rgba(214, 255, 231, .78); }
.sk-p-net .sk-art > svg { right: -6%; height: 122%; }
.sk-p-net .a-trace { stroke-dasharray: 620; stroke-dashoffset: 620; }
.sk-p-net.on .a-trace { animation: sk-trace 6s ease-in-out infinite; }
.sk-p-net.on .a-pad { animation: sk-padpulse 6s ease-in-out infinite; }
.sk-p-net.on .a-tap { animation: sk-tap 6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes sk-trace { 0% { stroke-dashoffset: 620; } 34%, 88% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; } }
@keyframes sk-padpulse { 0%, 22% { opacity: .25; } 40%, 86% { opacity: 1; } 100% { opacity: .25; } }
@keyframes sk-tap { 0% { opacity: 0; transform: scale(.35); } 8% { opacity: .9; } 36%, 100% { opacity: 0; transform: scale(1.5); } }

.sk-p-brands { background: linear-gradient(160deg, #F7F3EA 0%, #EDE6D6 100%); color: #0B1633; --scrim: rgba(247, 243, 234, .96); --scrim-mid: rgba(247, 243, 234, .7); --kick: #C96A00; --acc: #C96A00; --dim: rgba(11, 22, 51, .7); --ink2: #0B1633; }
.sk-wall { position: absolute; inset: -4% -2%; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 0 .35em; padding: 0 2%; font-family: var(--font-display, "Sora", sans-serif); font-weight: 900; font-size: clamp(48px, 7.4vw, 118px); line-height: .92; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 2px rgba(11, 22, 51, .16); overflow: hidden; }
.sk-wall span:nth-child(5n + 2) { color: rgba(201, 106, 0, .14); -webkit-text-stroke: 0; }
.sk-p-brands .sk-words h2 { text-shadow: none; }
.sk-p-brands .sk-art::after { background: linear-gradient(90deg, var(--scrim) 0%, var(--scrim-mid) 40%, rgba(247, 243, 234, .2) 75%); }

.sk-p-zoom { background: radial-gradient(118% 132% at 60% 50%, #111820 0%, #06080C 60%, #020305 100%); --scrim: rgba(3, 4, 7, .94); --scrim-mid: rgba(3, 4, 7, .55); --kick: #7FE8F8; --acc: #14C8E6; --dim: rgba(210, 236, 246, .78); }
.sk-p-zoom .sk-art > svg { right: -2%; height: 118%; }
.sk-p-zoom .a-lens, .sk-p-zoom .a-lens-in { transform-box: view-box; }
.sk-p-zoom.on .a-lens { animation: sk-lens 9s ease-in-out infinite; }
.sk-p-zoom.on .a-lens-in { animation: sk-lens-in 9s ease-in-out infinite; }
@keyframes sk-lens { 0%, 100% { transform: translate(-38px, 12px); } 50% { transform: translate(38px, -12px); } }
@keyframes sk-lens-in { 0%, 100% { transform: translate(38px, -12px); } 50% { transform: translate(-38px, 12px); } }

.sk-p-devices { background: linear-gradient(100deg, #0B0F2E 0%, #1E2B6E 55%, #2E3FA0 100%); --scrim: rgba(11, 15, 46, .94); --scrim-mid: rgba(11, 15, 46, .55); --kick: #B9C6FF; --acc: #FFFFFF; --dim: rgba(220, 228, 255, .8); }
.sk-p-devices .sk-art > svg { right: -4%; height: 112%; }

.sk-p-price { background: linear-gradient(100deg, #2A0F60 0%, #6A2BC9 48%, #C447D8 100%); --scrim: rgba(42, 15, 96, .5); --scrim-mid: rgba(42, 15, 96, .15); --kick: #FFD98A; --acc: #FFD98A; --dim: rgba(255, 240, 250, .82); }
.sk-p-price .sk-art::before { content: ''; position: absolute; right: -10%; top: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 176, 32, .55), transparent 70%); filter: blur(30px); }
.sk-big { position: absolute; right: 5%; top: 50%; transform: translateY(-50%); display: flex; align-items: flex-start; gap: .06em; font-family: var(--font-display, "Sora", sans-serif); font-weight: 900; font-size: clamp(96px, 17vw, 270px); line-height: 1; letter-spacing: -.07em; color: #fff; text-shadow: 0 30px 80px rgba(20, 5, 50, .6); }
.sk-big small { font-size: .14em; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; margin-top: 1.1em; color: #FFD98A; }
.sk-p-price.on .sk-big { animation: sk-bigin 7s ease-in-out infinite; }
@keyframes sk-bigin { 0%, 100% { transform: translateY(-50%) scale(1); } 50% { transform: translateY(-50%) scale(1.03); } }

.sk-p-photo { background: #0A1330 var(--shot) center / cover no-repeat; --scrim: rgba(6, 10, 22, .9); --scrim-mid: rgba(6, 10, 22, .5); --kick: #7FE8F8; --acc: #14C8E6; --dim: rgba(226, 234, 255, .82); }

.sk-dots { padding: 5px 8px; border-radius: 999px; background: rgba(5, 9, 18, .3); backdrop-filter: blur(5px); z-index: 3; }
.sk-slides:has(.sk-p-price.on) .sk-dots, .sk-slides:has(.sk-p-brands.on) .sk-dots { right: auto; left: 14px; }

@media (max-width: 900px) { .sk-slides { aspect-ratio: 16 / 10; } }
@media (max-width: 560px) { .sk-slides { aspect-ratio: 4 / 3.6; } }
@media (max-width: 900px) {
  .sk-words { left: 6%; right: 6%; top: 8%; transform: none; max-width: none; gap: 9px; }
  .sk-words h2 { font-size: clamp(26px, 7.4vw, 40px); }
  .sk-words p { font-size: 13.5px; }
  .sk-art::after { background: linear-gradient(180deg, var(--scrim) 0%, var(--scrim-mid) 46%, transparent 78%); }
  .sk-art > svg { top: auto; bottom: -8%; right: -14%; height: 74%; transform: none; }
  .sk-poster:hover .sk-art > svg { transform: none; }
  .sk-p-net .sk-art > svg { height: 62%; right: -36%; bottom: -12%; }
  .sk-p-zoom .sk-art > svg { height: 64%; right: -22%; bottom: -10%; }
  .sk-p-brands .sk-art::after { background: linear-gradient(180deg, var(--scrim) 0%, var(--scrim-mid) 50%, rgba(247, 243, 234, .3) 100%); }
  .sk-wall { font-size: clamp(40px, 15vw, 70px); inset: 30% -2% -4%; }
  .sk-big { right: 4%; top: auto; bottom: 4%; transform: none; font-size: clamp(88px, 30vw, 130px); }
  .sk-p-price.on .sk-big { animation: none; }
  .sk-p-price .sk-art::before { right: -20%; top: 20%; }
  .sk-slides:has(.sk-p-price.on) .sk-dots, .sk-slides:has(.sk-p-brands.on) .sk-dots { right: auto; left: 10px; }
}
@media (prefers-reduced-motion: reduce) { .sk-slide.on *, .sk-art > svg { animation: none !important; transition: none !important; } }

.sk-slides:has(.sk-shot) { aspect-ratio: 3 / 1; width: 100%; background: #060B18; }
.sk-slide.sk-shot { background: #060B18; overflow: hidden; }   
.sk-slide.sk-shot picture { display: block; width: 100%; height: 100%; }
.sk-slide.sk-shot img { object-fit: cover; user-select: none; -webkit-user-drag: none; }
@media (max-width: 900px) { .sk-slides:has(.sk-shot) { aspect-ratio: 16 / 9; } }

.sk-slides:has(.sk-shot) .sk-dots { top: 12px; bottom: auto; }

.sk-shot .sk-light-art { display: none; }
.sk-shot picture { display: block; width: 100%; height: 100%; }
:root[data-theme="light"] .sk-shot.has-light .sk-dark-art { display: none; }
:root[data-theme="light"] .sk-shot.has-light .sk-light-art { display: block; }
:root[data-theme="light"] .sk-slides:has(.sk-shot) { box-shadow: 0 0 0 1px rgba(11, 22, 51, .10), 0 18px 40px -22px rgba(11, 22, 51, .55); }

:root[data-theme="light"] .sk-slides:has(.sk-shot.has-light), :root[data-theme="light"] .sk-slide.sk-shot.has-light { background: #EEF3FB; }
:root[data-theme="light"] .sk-slides:has(.sk-shot.has-light) .sk-dots { background: rgba(255, 255, 255, .72); box-shadow: 0 0 0 1px rgba(11, 22, 51, .08), 0 4px 12px -6px rgba(11, 22, 51, .35); }
:root[data-theme="light"] .sk-slides:has(.sk-shot.has-light) .sk-dots button { background: rgba(11, 22, 51, .28); }
:root[data-theme="light"] .sk-slides:has(.sk-shot.has-light) .sk-dots button.on { background: #1C6BF0; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .sk-shot.has-light .sk-dark-art { display: none; }
  :root:not([data-theme="dark"]) .sk-shot.has-light .sk-light-art { display: block; }
  :root:not([data-theme="dark"]) .sk-slides:has(.sk-shot) { box-shadow: 0 0 0 1px rgba(11, 22, 51, .10), 0 18px 40px -22px rgba(11, 22, 51, .55); }
  :root:not([data-theme="dark"]) .sk-slides:has(.sk-shot.has-light), :root:not([data-theme="dark"]) .sk-slide.sk-shot.has-light { background: #EEF3FB; }
  :root:not([data-theme="dark"]) .sk-slides:has(.sk-shot.has-light) .sk-dots { background: rgba(255, 255, 255, .72); box-shadow: 0 0 0 1px rgba(11, 22, 51, .08), 0 4px 12px -6px rgba(11, 22, 51, .35); }
  :root:not([data-theme="dark"]) .sk-slides:has(.sk-shot.has-light) .sk-dots button { background: rgba(11, 22, 51, .28); }
  :root:not([data-theme="dark"]) .sk-slides:has(.sk-shot.has-light) .sk-dots button.on { background: #1C6BF0; }
}
@media (max-width: 560px) { .sk-slides:has(.sk-shot) .sk-dots { top: 7px; right: 8px; } }

.perm-list { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
.perm-list li { position: relative; padding-left: 24px; }
.perm-list li::before { position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; font-size: 10px; line-height: 16px; text-align: center; font-weight: 800; color: #fff; }
.perm-yes li::before { content: '\2713'; background: var(--ok, #16a34a); }
.perm-no li { color: var(--muted); }
.perm-no li::before { content: '\2715'; background: var(--muted); opacity: .6; }

.inbox { display: grid; grid-template-columns: 210px minmax(280px, 360px) minmax(0, 1fr); gap: 16px; margin-top: 18px; align-items: start; }
.inbox-folders { display: flex; flex-direction: column; gap: 4px; }
.inbox-folders a { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: 13.5px; }
.inbox-folders a svg { width: 16px; height: 16px; color: var(--muted); }
.inbox-folders a span { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 500; }
.inbox-folders a .nav-dot { position: static; margin-left: 6px; }
.inbox-folders a:hover { background: var(--surface-2); text-decoration: none; }
.inbox-folders a.active { background: var(--blue); color: var(--on-blue); }
.inbox-folders a.active svg, .inbox-folders a.active span { color: inherit; opacity: .85; }
.inbox-compose { margin-top: 14px; padding: 4px 12px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.inbox-compose summary { display: flex; align-items: center; gap: 8px; padding: 8px 0; cursor: pointer; font-weight: 700; font-size: 13.5px; list-style: none; }
.inbox-compose summary::-webkit-details-marker { display: none; }
.inbox-compose summary svg { width: 15px; height: 15px; }
.inbox-compose .form-group { margin-bottom: 8px; }
.inbox-list .inbox-row, .card > .inbox-list .inbox-row { border-top: 1px solid var(--line); }
.inbox-row { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 12px 16px; color: var(--ink); }
.inbox-row:hover { background: var(--surface-2); text-decoration: none; }
.inbox-row.current { background: color-mix(in srgb, var(--blue) 10%, transparent); }
.inbox-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: transparent; }
.inbox-row.unread .inbox-dot { background: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 25%, transparent); }
.inbox-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.inbox-main b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-row.unread .inbox-main b { font-weight: 800; }

.inbox-row.unread { background: color-mix(in srgb, var(--blue) 7%, transparent); box-shadow: inset 3px 0 0 var(--blue); }
.inbox-row.unread .inbox-subj { font-weight: 700; color: var(--ink); }
.inbox-row:not(.unread) .inbox-main b, .inbox-row:not(.unread) .inbox-subj { font-weight: 500; color: var(--muted); }

.mail-folders { display: flex; gap: 6px; margin-bottom: 12px; }
.mail-folder { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--muted); font-weight: 600; font-size: 13.5px; }
.mail-folder .ic { width: 16px; height: 16px; }
.mail-folder:hover { text-decoration: none; color: var(--ink); }
.mail-folder.on { background: var(--blue-soft); border-color: transparent; color: var(--blue); }
.mail-brand { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; min-height: 340px; padding: 30px; }
.mail-brand img { width: 64px; height: 64px; margin-bottom: 6px; }
.mail-brand b { font-family: var(--font-display); font-size: 24px; letter-spacing: -.01em; }
.mail-brand span { color: var(--muted); font-size: 13.5px; }
.mail-brand small { margin-top: 10px; }
.inbox-main b small { font-weight: 500; font-size: 11.5px; }
.inbox-subj { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-snip { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-snip i { font-style: normal; color: var(--blue); font-weight: 600; }
.inbox-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.inbox-meta small { font-size: 11px; color: var(--muted); white-space: nowrap; }
.inbox-thread .card-head h3 { margin-bottom: 2px; }
.msg-list { display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); max-width: 78ch; }
.msg.team { background: color-mix(in srgb, var(--blue) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--blue) 25%, transparent); align-self: flex-end; }
.msg-head { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.msg-head .avatar { width: 26px; height: 26px; font-size: 11px; }
.msg-head small { margin-left: auto; color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.msg-body { font-size: 14px; line-height: 1.55; word-wrap: break-word; }
.avatar { position: relative; }
.avatar.has-unread::after { content: ''; position: absolute; top: -2px; right: -2px; width: 10px; height: 10px; border-radius: 50%; background: #E5484D; border: 2px solid var(--bg); }
@media (max-width: 1100px) { .inbox { grid-template-columns: 190px minmax(0, 1fr); } .inbox-thread { grid-column: 1 / -1; } }
@media (max-width: 720px) { .inbox { grid-template-columns: 1fr; } .inbox-folders { flex-direction: row; flex-wrap: wrap; } .inbox-folders a { flex: 1; justify-content: center; } .inbox-folders a span { margin-left: 4px; } .msg { max-width: none; } }

.two-col.side-380 { grid-template-columns: minmax(0, 1fr) 380px; }

.two-col.side-left { grid-template-columns: var(--side, 380px) minmax(0, 1fr); }
@media (max-width: 900px) { .two-col.side-left { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .two-col.side-380 { grid-template-columns: 1fr; } }

.bell { position: relative; }
.bell b { position: absolute; top: 2px; right: 2px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 999px; background: #E5484D; color: #fff; font-size: 9.5px; font-weight: 800; line-height: 15px; text-align: center; }
.notice-feed { display: flex; flex-direction: column; gap: 12px; }
.notice-item { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.notice-item.is-new { border-color: color-mix(in srgb, var(--blue) 45%, transparent); background: color-mix(in srgb, var(--blue) 6%, var(--surface)); }
.notice-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--blue); }
.notice-icon svg { width: 19px; height: 19px; }
.nk-offer .notice-icon { background: color-mix(in srgb, #FFB020 20%, transparent); color: #B87400; }
.nk-warning .notice-icon { background: color-mix(in srgb, #E5484D 16%, transparent); color: #E5484D; }
.notice-body h3 { margin: 0 0 6px; font-size: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.notice-body p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.notice-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.notice-foot time { font-size: 12px; color: var(--muted); }
.notice-foot .btn svg { width: 14px; height: 14px; }
.mail-body { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: var(--font-mono, Consolas, monospace); font-size: 13px; line-height: 1.65; }
@media (max-width: 560px) { .notice-item { grid-template-columns: 1fr; gap: 10px; } .notice-icon { width: 34px; height: 34px; } }

.bell-wrap { position: relative; }
.bell-pop {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 340px; max-width: calc(100vw - 24px);
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  box-shadow: 0 24px 60px -24px rgba(2, 6, 18, .55); overflow: hidden;
}
.bell-pop-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.bell-empty { margin: 0; padding: 22px 16px; font-size: 13px; line-height: 1.6; color: var(--muted); text-align: center; }
.bell-list { max-height: 340px; overflow-y: auto; }
.bell-item { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); color: var(--ink); }
.bell-item:hover { background: var(--surface-2); text-decoration: none; }
.bell-item.is-new { background: color-mix(in srgb, var(--blue) 7%, transparent); }
.bell-item .notice-icon { width: 32px; height: 32px; border-radius: 10px; }
.bell-item .notice-icon svg { width: 16px; height: 16px; }
.bell-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bell-text b { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.bell-text span { font-size: 12px; color: var(--muted); line-height: 1.45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bell-text small { font-size: 11px; color: var(--muted); opacity: .8; }
.bell-all { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 11px; font-size: 13px; font-weight: 600; color: var(--blue); }
.bell-all svg { width: 14px; height: 14px; }
.bell-all:hover { background: var(--surface-2); text-decoration: none; }

.header-actions .btn-icon, .header-actions .avatar {
  width: 38px; height: 38px; min-height: 0; padding: 0; border-radius: 50%; flex: none;
}
.header-actions .btn-icon svg { width: 19px; height: 19px; }
.panel-brand .btn-icon, .panel-brand .avatar {
  width: 32px; height: 32px; min-height: 0; padding: 0; border-radius: 50%; flex: none;
}
.panel-brand .btn-icon svg { width: 17px; height: 17px; }

[data-theme-toggle] .ic-sun, [data-theme-toggle] .ic-moon { display: flex; line-height: 0; }
[data-theme-toggle] svg { display: block; }

[data-theme-toggle] .ic-moon svg { transform: translateY(1.5px); }
.panel-brand .bell-wrap, .header-actions .bell-wrap { display: flex; align-items: center; }

.panel-brand { position: relative; }
.panel-brand .bell-wrap { position: static; }
.panel-brand .bell-pop { left: 10px; right: 10px; width: auto; max-width: none; top: 100%; margin-top: 6px; z-index: 70; }
@media (max-width: 420px) { .bell-pop { position: fixed; left: 12px; right: 12px; top: 62px; width: auto; } }

.shop-card {
  display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--surface);
  transition: border-color .16s, transform .16s;
}
.seller-grid .shop-card:hover { border-color: color-mix(in srgb, var(--blue) 45%, transparent); transform: translateY(-2px); }
.shop-card.is-own { max-width: 420px; border-color: color-mix(in srgb, var(--blue) 35%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--blue) 7%, var(--surface)), var(--surface)); }
.shop-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.shop-avatar {
  width: 46px; height: 46px; border-radius: 14px; flex: none; overflow: hidden;
  display: grid; place-items: center; background: var(--blue); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
}
.shop-avatar img { width: 100%; height: 100%; object-fit: cover; }
.shop-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.shop-id b { font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-sub { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-top .badge { margin-left: auto; flex: none; }
.shop-rows { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.shop-rows > div { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 10px; align-items: start; }
.shop-rows dt { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.shop-rows dt svg { width: 14px; height: 14px; }
.shop-rows dd { margin: 0; font-size: 13.5px; line-height: 1.45; word-break: break-word; }
.shop-pays { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.shop-pays small { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.shop-pays span { display: flex; gap: 6px; flex-wrap: wrap; }
.shop-pays b {
  font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  background: color-mix(in srgb, var(--blue) 12%, transparent); color: var(--blue);
  border: 1px solid color-mix(in srgb, var(--blue) 28%, transparent);
}
.shop-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.shop-actions .btn { flex: 1 1 auto; justify-content: center; }
.shop-card-wrap { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 20px; align-items: start; }
.shop-note { display: flex; flex-direction: column; gap: 8px; }
.shop-note p { margin: 0; }
@media (max-width: 780px) { .shop-card-wrap { grid-template-columns: 1fr; } .shop-card.is-own { max-width: none; } }

.mq { margin: 10px 0 2px; max-width: 360px; }
.mq-bar { height: 6px; border-radius: 4px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.mq-bar s { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--cyan)); border-radius: inherit; transition: width .6s ease; }
.mq[data-done="1"] .mq-bar s { background: var(--ok); }
.mq-l { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 12px; color: var(--muted); }
.mq-l .ic { width: 13px; height: 13px; }
.mq-l b { color: var(--ink); }
