@font-face {
  font-family: "DM Sans";
  src: url("../brand/fonts/dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Red Hat Display";
  src: url("../brand/fonts/red-hat-display.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #111111;
  --paper: #1a1a1a;
  --surface: #202020;
  --ink: #f4f4f4;
  --muted: #adadad;
  --line: #333333;
  --accent: #ffd600;
  --accent-end: #ffb833;
  --accent-soft: #ffd60012;
  --radius: 24px;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: "Red Hat Display", var(--font-body);
  font: 14px/1.6 var(--font-body);
  color: var(--ink);
  background: var(--bg);
}

* { box-sizing: border-box; }
body { margin: 0; background: linear-gradient(180deg, #1a1a1a, #111111 72%); }
button, input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
button, a, input, select, textarea { touch-action: manipulation; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
[hidden] { display: none !important; }
::selection { color: #111; background: var(--accent); }
.skip-link { position: fixed; top: 12px; left: 12px; padding: 10px 18px; border-radius: 24px; background: var(--accent); color: #111; z-index: 100; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 246px;
  background: #0d0d0d;
  border-right: 1px solid #292929;
  padding: 34px 22px 24px;
  display: flex;
  flex-direction: column;
}
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.brand-logo { display: block; width: 165px; height: auto; }
.brand-product { display: flex; align-items: center; gap: 9px; margin-left: 4px; font-size: 15px; font-weight: 700; color: var(--accent); }
.brand-product span { border-left: 1px solid #444; padding-left: 9px; font-size: 10px; font-weight: 400; color: #a3a3a3; }
.nav-label { margin: 42px 14px 12px; font-size: 10px; letter-spacing: 1.6px; font-weight: 700; color: #999; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; font-weight: 500; font-size: 14px; }
.nav-item.active { color: var(--accent); border: 1px solid #ffd60027; background: linear-gradient(115deg, #ffd60012, #ffd60005); }
.nav-item > span:first-child { font-size: 21px; }
.nav-count { margin-left: auto; font-size: 11px; line-height: 24px; min-width: 24px; text-align: center; border-radius: 7px; background: #ffd60015; }
.sidebar-tip { margin-top: auto; padding: 19px; border: 1px solid #383223; border-radius: 19px; background: radial-gradient(ellipse at top left, #ffd6000b, transparent 85%), #171611; }
.tip-icon { display: block; color: var(--accent); font-size: 24px; margin-bottom: 9px; }
.sidebar-tip strong { font-size: 12px; font-weight: 700; }
.sidebar-tip p { margin: 7px 0 0; color: #b3b0a5; font-size: 12px; }
.account { display: flex; align-items: center; gap: 11px; padding: 25px 2px 10px; }
.avatar { width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; border: 1px solid #ffd60033; background: #ffd60012; color: var(--accent); border-radius: 50%; font-weight: 700; }
.account strong { font-size: 12px; }
.account small { display: block; font-size: 11px; color: #a3a3a3; max-width: 145px; overflow: hidden; text-overflow: ellipsis; }
.logout { margin-left: 44px; padding: 5px 0; border: 0; background: none; color: #b2b2b2; font-size: 12px; }
.logout:hover { color: var(--accent); }

.workspace { margin-left: 246px; min-height: 100vh; display: flex; flex-direction: column; }
.topbar { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 48px; border-bottom: 1px solid #ffffff0d; font-size: 12px; color: #b3b3b3; }
.separator { margin: 0 12px; color: #626262; }
.topbar-badge { flex-shrink: 0; border: 1px solid #3a3a3a; border-radius: 999px; background: #ffffff04; padding: 6px 12px; font-size: 11px; color: #c3c3c3; }
.topbar-badge i, .preview-heading i { width: 6px; height: 6px; display: inline-block; background: var(--accent); border-radius: 50%; margin-right: 7px; }
.workspace main { flex: 1; width: 100%; max-width: 1500px; margin: 0 auto; padding: 46px 48px 54px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 1.9px; color: var(--accent); }
h1, h2, h3 { font-family: var(--font-heading); }
h1 { font-size: 39px; font-weight: 800; letter-spacing: -1.3px; line-height: 1.14; margin: 12px 0 13px; }
h2 { font-size: 20px; font-weight: 700; letter-spacing: -.5px; margin: 0; }
.page-heading p { color: var(--muted); margin: 0; font-size: 14px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 46px; padding: 11px 21px; border: 1px solid #4a4a4a; border-radius: 999px; background: #ffffff06; color: var(--ink); font-family: var(--font-heading); font-weight: 700; font-size: 13px; white-space: nowrap; transition: background .15s, box-shadow .15s; }
.button.primary { border-color: transparent; background: linear-gradient(110deg, var(--accent), var(--accent-end)); color: #111; box-shadow: 0 3px 16px #ffd6000c; }
.button.primary:hover { box-shadow: 0 0 0 4px #ffd60012; background: linear-gradient(110deg, #ffe03b, #ffc358); }
.button span { font-size: 18px; }
.button.wide { width: 100%; justify-content: space-between; }
.button.danger { color: #ffb5a8; border-color: #75443c; background: #ff6b5010; }

.overview-strip { display: grid; grid-template-columns: 1fr 1fr 1.7fr; padding: 27px 30px; margin-bottom: 36px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(135deg, #242424, #1a1a1a); }
.overview-strip > div { display: flex; flex-direction: column; padding-left: 28px; border-left: 1px solid #3d3d3d; }
.overview-strip > div:first-child { border: 0; padding-left: 0; }
.overview-strip > div > span:last-child { font-size: 12px; color: #b6b6b6; }
.stat-number { font-family: var(--font-heading); font-size: 36px; line-height: 1.25; font-weight: 800; letter-spacing: -1px; }
.overview-strip .strip-note { flex-direction: row; align-items: center; gap: 17px; }
.small-symbol { display: grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; border: 1px solid #ffd60022; border-radius: 15px; background: #ffd60008; color: var(--accent); font-size: 25px; }
.strip-note strong { display: block; font-size: 13px; }
.strip-note div > span { font-size: 11px; color: #b1b1b1; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 21px; }
.count-pill { margin-left: 8px; padding: 3px 8px; border: 1px solid #3f3f3f; border-radius: 7px; color: #c9c9c9; background: #ffffff06; font: 500 11px var(--font-body); }
.search-box { display: flex; align-items: center; gap: 10px; border: 1px solid #3c3c3c; border-radius: 999px; padding: 8px 15px; background: #ffffff04; }
.search-box > span { font-size: 21px; color: #b4b4b4; }
.website-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px; }
.website-card { display: block; min-width: 0; padding: 25px 24px 0; border: 1px solid #363636; border-radius: var(--radius); background: linear-gradient(140deg, #222222, #1a1a1a); transition: border-color .15s, background .15s; }
.website-card:hover { border-color: #ffd60065; background: linear-gradient(140deg, #29271f, #1a1a1a); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 27px; }
.site-avatar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; border: 1px solid color-mix(in srgb, var(--site-color) 55%, #b5b5b5); background: color-mix(in srgb, var(--site-color) 36%, #222); color: #fff; font: 700 21px var(--font-heading); }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid #affcbe27; border-radius: 999px; background: #affcbe08; color: #affcbe; font-size: 10px; white-space: nowrap; }
.status-pill i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-pill.paused { background: #ffd60008; border-color: #ffd60025; color: #ffe39a; }
.website-card h3 { margin: 0 0 5px; font-size: 19px; font-weight: 700; letter-spacing: -.4px; overflow-wrap: anywhere; }
.domain { margin: 0 0 25px; font-size: 12px; color: #b3b3b3; overflow-wrap: anywhere; }
.domain span { font-size: 12px; margin-left: 6px; }
.card-languages { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-bottom: 23px; }
.card-languages > span:not(.card-detail) { padding: 4px 7px; border: 1px solid #424242; border-radius: 6px; background: #ffffff04; font-size: 10px; font-weight: 500; color: #d6d6d6; }
.card-detail { margin-left: 4px; font-size: 11px; color: #aaa; }
.card-footer { display: flex; justify-content: space-between; gap: 10px; padding: 17px 0; border-top: 1px solid #363636; font-size: 10px; color: #a9a9a9; }
.card-footer strong { color: var(--accent); font-size: 11px; font-weight: 500; }
.platform-note { display: flex; align-items: center; gap: 17px; margin-top: 34px; padding: 21px 24px; border: 1px solid #3d392c; border-radius: 20px; background: linear-gradient(100deg, #ffd60007, transparent); }
.platform-note .small-symbol { border: 0; background: none; }
.platform-note strong { font-size: 13px; font-weight: 500; }
.platform-note p { margin: 5px 0 0; font-size: 12px; color: #b2b0a7; }
.page-footer { display: flex; justify-content: space-between; gap: 20px; padding: 23px 48px; border-top: 1px solid #ffffff0c; font-size: 11px; color: #aaa; }
.page-footer a:hover { color: var(--accent); }
.empty-state { text-align: center; padding: 55px 26px; border: 1px dashed #625a38; border-radius: var(--radius); background: radial-gradient(ellipse at top, #ffd60009, transparent 80%), #1a1a1a; }
.empty-symbol { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 22px; border: 1px solid #ffd60025; border-radius: 18px; background: #ffd6000b; color: var(--accent); font-size: 28px; }
.empty-state p { margin: 13px 0 25px; color: #b4b4b4; font-size: 13px; }
.muted { color: var(--muted); }
.flash { margin-bottom: 25px; padding: 15px 19px; border: 1px solid #affcbe35; border-radius: 14px; background: #affcbe08; color: #d7f0dc; font-size: 13px; }
.flash.error { border-color: #ffad9835; background: #ffad980b; color: #ffc1b0; }
.flash ul { margin: 6px 0; padding-left: 20px; }

.back-link { display: inline-block; margin-bottom: 17px; font-size: 12px; color: #b7b7b7; }
.back-link:hover { color: var(--accent); }
.editor-heading { margin-bottom: 30px; }
.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .92fr); gap: 28px; align-items: start; }
.editor-main, .preview-column { min-width: 0; }
.editor-tabs { display: flex; gap: 20px; margin-bottom: 24px; border-bottom: 1px solid #3a3a3a; overflow-x: auto; }
.editor-tabs button { padding: 0 0 14px; border: 0; border-bottom: 2px solid transparent; background: none; color: #999; font-size: 11px; white-space: nowrap; }
.editor-tabs span { font-size: 13px; margin-left: 7px; }
.editor-tabs button[aria-selected=true] { border-color: var(--accent); color: var(--accent); }
.editor-panel { padding: 29px; border: 1px solid #373737; border-radius: var(--radius); background: #1a1a1a; }
.panel-heading { margin-bottom: 25px; }
.panel-heading h2 { font-size: 20px; }
.panel-heading p { margin: 5px 0 0; color: #b3b3b3; font-size: 12px; }
.divider { margin-top: 29px; padding-top: 26px; border-top: 1px solid #383838; }
label { display: block; margin-bottom: 20px; color: #e0e0e0; font-size: 12px; font-weight: 500; }
input:not([type=checkbox]):not([type=color]), textarea, select { display: block; width: 100%; margin-top: 8px; padding: 12px 14px; border: 1px solid #464646; border-radius: 11px; background: #ffffff05; color: #f4f4f4; font-size: 13px; }
input:not([type=checkbox]):not([type=color]):hover, textarea:hover, select:hover { border-color: #666; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #a1a1a1; }
select option { background: #222; color: #f4f4f4; }
label small { display: block; margin-top: 7px; color: #b0b0b0; font-size: 11px; font-weight: 400; }
.optional { margin-left: 5px; color: #adadad; font-size: 10px; font-weight: 400; }
.search-box input[type=search] { width: 170px; min-height: 24px; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; font-size: 12px; }
.search-box:focus-within { border-color: var(--accent); }
.search-box input[type=search]:focus-visible { outline: 0; }
.color-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.color-field { display: flex; align-items: center; gap: 10px; padding: 10px; margin-top: 8px; border: 1px solid #464646; border-radius: 11px; background: #ffffff05; }
.color-field input { width: 26px; height: 26px; padding: 0; border: 0; background: none; cursor: pointer; flex-shrink: 0; }
.color-field output { font-size: 11px; font-weight: 400; color: #d8d8d8; }
.field-note { margin: 6px 0 19px; color: #b1b1b1; font-size: 11px; }
#contrast-note:not(:empty) { color: #ffcf7b; }
.checkbox-row { display: flex; gap: 13px; align-items: flex-start; margin: 23px 0 0; }
.checkbox-row input { width: 17px; height: 17px; flex-shrink: 0; margin: 3px 0 0; accent-color: var(--accent); }
.checkbox-row small { margin-top: 4px; font-size: 11px; line-height: 1.6; }
.checkbox-row strong { font-weight: 500; }
.language-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 25px; }
.language-summary-label { display: block; margin-bottom: 10px; font-size: 9px; letter-spacing: 1px; color: var(--muted); }
.enabled-languages { display: flex; gap: 6px; }
.enabled-language { min-height: 30px; padding: 5px 9px; border: 1px solid #ffd60038; border-radius: 999px; background: #ffd60008; color: var(--accent); font-size: 10px; font-weight: 500; }
.enabled-language:hover { background: #ffd60018; }
.language-more { border-color: #555; color: #ddd; background: #ffffff05; }
.button.language-manage { min-height: 38px; padding: 8px 13px; font-size: 11px; }
.button.language-manage span { font-size: 15px; }
.translation-toolbar { display: flex; align-items: center; gap: 16px; justify-content: space-between; margin: 26px 0 23px; padding-top: 23px; border-top: 1px solid #383838; }
.translation-toolbar label { flex: 1; max-width: 265px; margin: 0; }
.language-count { color: var(--muted); font-size: 10px; white-space: nowrap; }
.language-dialog { width: 490px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); padding: 25px; overflow: hidden; border: 1px solid #505050; border-radius: 24px; background: #1a1a1a; color: var(--ink); box-shadow: 0 25px 90px #0008; }
.language-dialog[open] { display: flex; flex-direction: column; }
.language-dialog::backdrop { background: #000a; backdrop-filter: blur(4px); }
.language-dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 19px; }
.language-dialog-heading h2 { font-size: 21px; }
.language-dialog-heading p { color: var(--muted); font-size: 12px; margin: 6px 0 0; }
.dialog-close { flex-shrink: 0; width: 34px; height: 34px; padding: 0; border: 1px solid #555; border-radius: 50%; background: #ffffff05; color: #ddd; font-size: 22px; line-height: 1; }
.language-search-label { flex-shrink: 0; margin: 0 0 17px; }
.language-picker-list { min-height: 0; max-height: min(340px, 43dvh); overflow-y: auto; overscroll-behavior: contain; border: 1px solid #3e3e3e; border-radius: 13px; scrollbar-width: thin; scrollbar-color: #666 #222; }
.language-picker-option { display: flex; align-items: center; gap: 12px; margin: 0; padding: 11px 13px; border-bottom: 1px solid #333; cursor: pointer; }
.language-picker-option:last-of-type { border-bottom: 0; }
.language-picker-option:has(input:checked) { background: #ffd60007; }
.language-picker-option:has(input:disabled) { cursor: default; }
.language-picker-option input { width: 17px; height: 17px; flex-shrink: 0; accent-color: var(--accent); margin: 0; }
.language-code { min-width: 24px; color: #d9c678; font-size: 10px; }
.language-name { min-width: 0; flex: 1; font-size: 12px; }
.language-name small { display: block; margin: 0; font-size: 11px; color: #aaa; }
.language-fallback { flex-shrink: 0; padding: 4px 6px; border: 1px solid #ffd60028; border-radius: 6px; color: #e5d17d; font-size: 9px; }
.language-dialog-footer { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 15px; padding-top: 21px; }
.language-dialog-footer > span { color: #bbb; font-size: 11px; }
.language-dialog-footer .button { min-height: 39px; padding: 7px 19px; }
#language-no-results { padding: 12px 16px; font-size: 12px; }
.advanced-texts summary { margin-bottom: 21px; color: var(--accent); font-size: 12px; cursor: pointer; }
.advanced-texts[open] { padding-top: 20px; border-top: 1px solid #383838; }
.preview-column { position: sticky; top: 24px; }
.preview-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; color: #d5d5d5; font-size: 10px; font-weight: 500; letter-spacing: 1.2px; }
.preview-heading select { width: 69px; margin: 0; padding: 6px 10px; border-radius: 999px; background: #222; font-size: 11px; }
.browser-frame { overflow: hidden; border: 1px solid #454545; border-radius: 21px; background: #fff; box-shadow: 0 12px 38px #00000030; }
.browser-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 17px; border-bottom: 1px solid #3a3a3a; background: #252525; color: #b6b6b6; font-size: 10px; }
.browser-dots { display: flex; gap: 5px; }
.browser-dots i { width: 6px; height: 6px; background: #6d6d6d; border-radius: 50%; }
.browser-dots i:first-child { background: var(--accent); }
#banner-preview { display: block; width: 100%; height: 600px; border: 0; }
.preview-footer { display: flex; justify-content: space-between; gap: 9px; margin: 14px 0 27px; color: #adadad; font-size: 10px; }
.preview-footer button { border: 0; background: none; color: var(--accent); font-size: 11px; white-space: nowrap; }
.preview-info { padding: 20px 22px; border: 1px solid #ffd60025; border-radius: 18px; background: linear-gradient(120deg, #ffd6000a, #ffd60004); color: #f0e5b7; font-size: 12px; }
.preview-info strong { font-weight: 500; }
.preview-info p { margin: 6px 0 0; color: #c4bfae; font-size: 11px; }
.save-note { margin: 15px 0; color: #b1b1b1; font-size: 11px; }
.installation-option { margin-top: 25px; padding-bottom: 26px; border-bottom: 1px solid #383838; }
.installation-option:last-child { border: 0; padding-bottom: 0; }
.installation-option h3 { margin: 10px 0 12px; font-size: 18px; font-weight: 700; }
.installation-option p, .installation-option li { color: #c1c1c1; font-size: 12px; }
.installation-option ol { padding-left: 21px; }
.installation-option li { padding-left: 4px; margin-bottom: 12px; }
.installation-option a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.integration-badge { padding: 4px 8px; border: 1px solid #ffd60035; border-radius: 999px; background: #ffd6000b; color: var(--accent); font-size: 9px; letter-spacing: .8px; }
.code-box { display: flex; align-items: flex-start; gap: 12px; margin: 16px 0; padding: 14px; border: 1px solid #3f3f3f; border-radius: 12px; background: #111; }
.code-box code { flex: 1; min-width: 0; color: #ffe68a; font: 11px/1.7 ui-monospace, monospace; overflow-wrap: anywhere; }
.code-box button { padding: 5px 9px; border: 1px solid #5a5230; border-radius: 999px; background: #ffd60009; color: var(--accent); font-size: 10px; }
.delete-section { margin-top: 26px; color: #edb3a7; font-size: 12px; }
.delete-section summary { cursor: pointer; }
.delete-section p { color: #b9b9b9; font-size: 12px; }
.inline-empty { text-align: center; padding: 32px 11px; }
.inline-empty .small-symbol { margin: auto; }
.inline-empty h3 { font-size: 18px; }
.inline-empty p { color: var(--muted); font-size: 12px; }
.toast { position: fixed; bottom: 24px; right: 24px; max-width: calc(100vw - 48px); z-index: 100; padding: 13px 20px; border: 1px solid #ffd6004d; border-radius: 14px; background: #24211a; color: #ffeb9a; box-shadow: 0 8px 30px #0005; font-size: 13px; }

.auth-workspace { display: grid; place-items: center; min-height: 100vh; background: radial-gradient(ellipse at 20% 40%, #ffd60009, transparent 60%); }
.auth-workspace main { width: 100%; padding: 36px; }
.auth-workspace .flash { max-width: 1080px; margin: 0 auto 22px; }
.login-shell { display: grid; grid-template-columns: 1.1fr 1fr; max-width: 1080px; min-height: 680px; margin: auto; border: 1px solid #343434; border-radius: 32px; overflow: hidden; background: #171717; box-shadow: 0 20px 70px #0003; }
.login-intro { position: relative; isolation: isolate; display: flex; flex-direction: column; padding: 46px; border-right: 1px solid #343434; background: radial-gradient(ellipse at 0% 110%, #ffd60027, transparent 65%), linear-gradient(150deg, #22211b, #0d0d0d 65%); }
.login-intro::after { content: ""; position: absolute; z-index: -1; inset: auto -100px -120px auto; width: 420px; height: 420px; border: 1px solid #ffd60012; border-radius: 50%; box-shadow: 0 0 0 55px #ffd60004, 0 0 0 110px #ffd60002; pointer-events: none; }
.login-intro .brand { margin-bottom: 72px; }
.login-intro .brand-logo { width: 187px; }
.login-intro h1 { font-size: 49px; font-weight: 800; line-height: 1.13; letter-spacing: -1.7px; margin: 22px 0; }
.login-intro h1 em { background: linear-gradient(110deg, var(--accent), var(--accent-end)); color: var(--accent); background-clip: text; -webkit-text-fill-color: transparent; font-style: normal; }
.login-intro p { color: #bdbbb2; font-size: 14px; }
.login-bottom { margin-top: auto; padding-top: 42px; color: #bcb5a0; font-size: 12px; }
.login-card { padding: 132px 46px 54px; }
.login-card h2 { font-size: 27px; letter-spacing: -.7px; margin: 15px 0 10px; }
.login-card > .muted { font-size: 13px; margin-bottom: 33px; }
.login-card .button { margin-top: 12px; min-height: 49px; }
.login-help { margin-top: 27px; color: #b0b0b0; font-size: 12px; text-align: center; }

@media (min-width: 1550px) {
  .workspace main { padding-top: 54px; }
  .website-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1200px) {
  .sidebar { width: 220px; padding-inline: 18px; }
  .workspace { margin-left: 220px; }
  .workspace main { padding: 34px; }
  .topbar, .page-footer { padding-inline: 34px; }
  .website-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editor-grid { gap: 22px; grid-template-columns: minmax(0, 1fr) 340px; }
  .editor-panel { padding: 23px; }
  .editor-tabs { gap: 14px; }
  .editor-tabs span { font-size: 12px; margin-left: 5px; }
  .color-grid { gap: 7px; }
  .color-field { gap: 5px; padding: 7px; }
  .color-field output { font-size: 10px; }
}
@media (max-width: 980px) {
  .editor-grid { grid-template-columns: 1fr; }
  .preview-column { position: static; max-width: 660px; width: 100%; }
  #banner-preview { height: 610px; }
  .overview-strip { grid-template-columns: 1fr 1fr; }
  .overview-strip .strip-note { grid-column: 1 / -1; padding: 23px 0 0; margin-top: 19px; border: 0; border-top: 1px solid #3d3d3d; }
  .page-heading { align-items: flex-start; }
  h1 { font-size: 34px; }
}
@media (max-width: 700px) {
  .sidebar { position: static; width: 100%; padding: 19px 22px 15px; border-right: 0; border-bottom: 1px solid #353535; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 14px; }
  .brand { gap: 5px; }
  .brand-logo { width: 141px; }
  .brand-product { font-size: 12px; margin-left: 3px; }
  .brand-product span { font-size: 9px; }
  .sidebar .brand { flex: 1; }
  .nav-label, .sidebar-tip, .account { display: none; }
  .sidebar .nav-item { order: 3; width: 100%; gap: 11px; padding: 9px 13px; font-size: 12px; }
  .sidebar .nav-item > span:first-child { font-size: 18px; }
  .sidebar form { display: block; margin: 0; }
  .logout { margin: 0; padding: 7px 11px; border: 1px solid #454545; border-radius: 999px; font-size: 11px; }
  .workspace { margin: 0; }
  .topbar { min-height: 60px; height: auto; padding: 13px 22px; font-size: 11px; }
  .topbar > span:first-child { min-width: 0; overflow-wrap: anywhere; }
  .separator { margin-inline: 7px; }
  .topbar-badge { font-size: 9px; padding: 5px 8px; }
  .workspace main { padding: 31px 22px; }
  h1 { font-size: 32px; letter-spacing: -1px; }
  .page-heading { flex-direction: column; gap: 22px; margin-bottom: 29px; }
  .page-heading .button { align-self: flex-start; }
  .page-heading p { font-size: 13px; }
  .eyebrow { font-size: 9px; letter-spacing: 1.4px; }
  .overview-strip { padding: 23px; }
  .overview-strip > div { padding-left: 20px; }
  .overview-strip > div > span:last-child { font-size: 11px; }
  .stat-number { font-size: 32px; }
  .website-grid { grid-template-columns: 1fr; }
  .section-heading { flex-wrap: wrap; gap: 18px; }
  .section-heading h2 { font-size: 20px; }
  .search-box { width: 100%; }
  .search-box input[type=search] { flex: 1; width: 100%; min-width: 0; }
  .platform-note { padding: 18px; gap: 11px; }
  .platform-note .small-symbol { width: 33px; }
  .page-footer { flex-direction: column; gap: 5px; padding: 20px 22px; font-size: 10px; }
  .editor-tabs { gap: 16px; }
  .editor-tabs span { font-size: 12px; margin-left: 4px; }
  .editor-panel { padding: 23px 20px; border-radius: 21px; }
  .preview-column { max-width: 100%; }
  .color-grid { gap: 7px; }
  .color-field { padding: 8px 6px; gap: 5px; }
  .color-field input { width: 21px; height: 25px; }
  .color-field output { font-size: 10px; }
  .preview-footer { font-size: 9px; }
  .auth-workspace main { padding: 20px; }
  .login-shell { grid-template-columns: 1fr; min-height: auto; border-radius: 25px; }
  .login-intro { padding: 30px 27px; border-right: 0; border-bottom: 1px solid #343434; }
  .login-intro .brand { margin-bottom: 31px; }
  .login-intro .brand-logo { width: 157px; }
  .login-intro h1 { font-size: 35px; letter-spacing: -1.1px; margin-block: 17px 0; }
  .login-intro h1 br { display: none; }
  .login-intro h1 br::after { content: " "; }
  .login-intro .eyebrow { font-size: 8px; }
  .login-intro > p, .login-bottom { display: none; }
  .login-card { padding: 34px 27px; }
  .login-card h2 { font-size: 24px; }
  .login-card > .muted { font-size: 12px; margin-bottom: 28px; }
}
@media (max-width: 360px) {
  .workspace main { padding-inline: 17px; }
  .editor-panel { padding-inline: 16px; }
  .editor-tabs { gap: 12px; }
  .editor-tabs span { font-size: 11px; }
  .color-field { flex-direction: column; gap: 3px; }
  .language-summary { flex-wrap: wrap; }
  .translation-toolbar { flex-wrap: wrap; }
  .language-dialog { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

.access-grid { display: grid; grid-template-columns: minmax(0, 680px) minmax(200px, 1fr); gap: 36px; align-items: start; }
.access-grid .editor-panel { min-width: 0; }
.access-help { padding: 28px 4px; color: var(--muted); }
.access-help h2 { color: var(--ink); font-size: 21px; margin: 18px 0 10px; }
.access-help p { font-size: 13px; }
.access-help .small-symbol { color: var(--accent); font-size: 30px; }
.action-row { display: flex; gap: 12px; flex-wrap: wrap; }
.security-note { padding: 16px 19px; border: 1px solid #ffd60030; border-radius: 13px; background: var(--accent-soft); }
.qr-code { width: 216px; max-width: 100%; background: #fff; border-radius: 14px; padding: 8px; margin: 24px 0; line-height: 0; }
.qr-code svg { width: 100%; height: auto; }
.manual-key { margin: 22px 0; }
.manual-key summary, .security-detail summary { cursor: pointer; font-weight: 600; }
.security-detail { padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--line); }
.security-detail form { margin-top: 20px; }
.recovery-codes { padding: 22px; border: 1px solid var(--line); background: #111; border-radius: 15px; line-height: 2; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.auth-card { width: 100%; max-width: 500px; margin: 6vh auto; padding: 40px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.auth-card .brand { margin-bottom: 40px; }
.auth-card h1 { font-size: 33px; margin-block: 14px; }
.auth-card .back-link { margin: 25px 0 0; }
.auth-card form { margin-top: 28px; }
.invitation-box { margin-bottom: 28px; padding: 22px 26px; border: 1px solid #ffd60040; border-radius: 18px; background: var(--accent-soft); }
.invitation-box p { color: var(--muted); margin: 5px 0 18px; font-size: 13px; }
.assignment-list { max-height: 320px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px; margin-bottom: 10px; }
.assignment-list .checkbox-row { margin: 0; padding: 15px 0; border-bottom: 1px solid var(--line); }
.assignment-list .checkbox-row:last-of-type { border-bottom: 0; }
.users-list { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--paper); }
.user-row { display: grid; grid-template-columns: 36px minmax(120px, 1fr) 88px 105px 84px 18px; gap: 20px; align-items: center; padding: 23px 25px; border-bottom: 1px solid var(--line); }
.user-row:last-of-type { border-bottom: 0; }
.user-row:hover { background: var(--surface); }
.user-identity { min-width: 0; }
.user-identity strong { font-size: 14px; }
.user-identity small { display: block; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.role-pill { border: 1px solid #ffd60033; border-radius: 8px; color: var(--accent); font-size: 11px; text-align: center; padding: 5px 9px; }
.user-access, .user-state { color: var(--muted); font-size: 11px; }
.row-arrow { color: var(--accent); }
.filter-empty { padding: 18px 8px; }
@media (max-width: 1150px) {
  .access-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .access-help { max-width: 680px; }
  .user-row { gap: 12px; grid-template-columns: 36px minmax(100px, 1fr) 80px 85px; }
  .user-access, .row-arrow { display: none; }
}
@media (max-width: 700px) {
  .user-row { padding: 20px 16px; grid-template-columns: 32px minmax(0, 1fr) 76px; gap: 10px; }
  .user-row .avatar { width: 32px; height: 32px; }
  .user-state { grid-column: 2 / -1; }
  .auth-card { padding: 28px 23px; margin: 3vh auto; }
  .auth-card h1 { font-size: 28px; }
  .invitation-box { padding: 20px; }
}
