/* Workspace V4. Shared semantic tokens; landing-page colors stay independent. */
:root {
  color-scheme: light;
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --surface-3: #eef2f7;
  --line: #dbe2ec;
  --line-soft: #e8edf3;
  --text: #1c293e;
  --muted: #5f6e83;
  --muted-2: #69778a;
  --brand: #425982;
  --brand-strong: #334a72;
  --brand-soft: #edf2fa;
  --danger: #bd3046;
  --success: #137a58;
  --success-soft: #e9f6ef;
  --shadow: 0 12px 32px rgba(24, 43, 74, .08);
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #10151d;
  --surface: #181f2b;
  --surface-2: #1e2734;
  --surface-3: #263142;
  --line: #354257;
  --line-soft: #293447;
  --text: #edf2fa;
  --muted: #b0bcd0;
  --muted-2: #a0aec3;
  --brand: #9ebbf2;
  --brand-strong: #b6cdf9;
  --brand-soft: #27364e;
  --danger: #ff9cad;
  --success: #7edbb4;
  --success-soft: #193b32;
  --shadow: 0 12px 32px rgba(0, 0, 0, .2);
}
body { background: var(--bg); color: var(--text); }
button, input, textarea, select { transition: border-color .15s, background-color .15s, box-shadow .15s; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--brand); outline-offset: 3px;
}
button:disabled { opacity: .5; cursor: not-allowed; }
[hidden] { display: none !important; }
[data-icon] { display: inline-flex; flex: 0 0 auto; width: 20px; height: 20px; align-items: center; justify-content: center; }
[data-icon] svg { width: 100%; height: 100%; }
.button { min-height: 42px; padding: 10px 16px; border-radius: 9px; font-size: .875rem; font-weight: 700; box-shadow: none; }
.button-primary { background: #425982; border: 1px solid #425982; color: white; }
.button-primary:hover { background: #334a72; border-color: #334a72; transform: none; }
.button-primary:hover:not(:disabled) { background: #334a72; transform: none; }
.button-secondary { background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.button-secondary:hover { background: var(--surface-2); border-color: var(--brand); }
.button-danger { background: transparent; color: var(--danger); border: 1px solid var(--line); }
.button-danger:hover { border-color: var(--danger); background: var(--surface-2); }
.eyebrow { color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .12em; }
.brand { gap: 10px; color: var(--text); font-size: .9rem; white-space: nowrap; }
.brand strong { color: var(--brand); }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; background: #425982; color: white; box-shadow: none; font-size: 1.2rem; }
.dashboard-body { min-width: 320px; }
.app-shell { display: grid; grid-template-columns: 242px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; height: 100dvh; padding: 24px 16px 16px; background: var(--surface); border-right: 1px solid var(--line-soft); z-index: 40; }
.sidebar .brand { padding: 0 4px 30px; }
.new-page-button { display: flex; align-items: center; justify-content: center; width: 100%; gap: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--text); cursor: pointer; font-size: .875rem; font-weight: 700; }
.new-page-button:hover { background: var(--brand-soft); border-color: var(--brand); }
.sidebar-section-title { display: flex; align-items: center; justify-content: space-between; margin: 30px 9px 12px; color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.sidebar-section-title span { padding: 1px 7px; border-radius: 5px; background: var(--surface-3); color: var(--text); letter-spacing: 0; }
.page-list { display: flex; flex-direction: column; gap: 5px; min-height: 0; overflow-y: auto; list-style: none; padding: 0; margin: 0 0 20px; }
.page-list-button { position: relative; display: flex; width: 100%; align-items: center; gap: 10px; padding: 12px 10px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; text-align: left; }
.page-list-button:hover { background: var(--surface-2); }
.page-list-button.active { background: var(--brand-soft); color: var(--brand); }
.page-list-button.active::before { position: absolute; left: -1px; top: 15px; bottom: 15px; width: 3px; border-radius: 4px; background: var(--brand); content: ''; }
.page-icon { display: grid; place-items: center; flex: 0 0 32px; height: 36px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface); color: var(--brand); font-size: .875rem; font-weight: 700; }
.page-list-copy { min-width: 0; }
.page-list-copy strong, .page-list-copy small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.page-list-copy strong { font-size: .875rem; font-weight: 600; }
.page-list-copy small { margin-top: 3px; font-size: .75rem; color: var(--muted); }
.sidebar-empty { margin: 0 10px; color: var(--muted); font-size: .875rem; line-height: 1.7; }
.sidebar-account { margin-top: auto; padding: 18px 8px 0; border-top: 1px solid var(--line-soft); }
.account-label { display: block; margin-bottom: 5px; font-size: .75rem; color: var(--muted); }
.account-email { margin-bottom: 8px; font-size: .875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-logout { justify-content: flex-start; width: 100%; padding-left: 0; border: 0; background: transparent; color: var(--muted); }
.sidebar-logout:hover { color: var(--text); background: transparent; }
.main-area { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 73px; padding: 14px 32px; background: var(--surface); border-bottom: 1px solid var(--line-soft); }
.topbar-context { display: flex; align-items: center; gap: 12px; min-width: 0; font-size: .875rem; color: var(--muted); }
.topbar-context strong { color: var(--text); font-weight: 600; }
.breadcrumb-separator { opacity: .4; }
.theme-switch { display: inline-flex; flex: 0 0 auto; gap: 3px; padding: 4px; border: 1px solid var(--line-soft); border-radius: 9px; background: var(--surface-2); }
.theme-switch button { display: flex; align-items: center; gap: 7px; min-height: 32px; padding: 5px 10px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; font-size: .875rem; }
.theme-switch button[aria-pressed='true'] { background: var(--surface); border-color: var(--line); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.theme-switch [data-icon] { width: 16px; height: 16px; }
.dashboard-content { max-width: 1600px; margin: 0 auto; padding: 30px 32px 60px; }
.workspace-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 27px; }
.workspace-heading h1 { margin: 5px 0 7px; font-family: var(--font-display); font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.25; letter-spacing: -.045em; overflow-wrap: anywhere; }
.workspace-heading p { margin: 0; color: var(--muted); font-size: .875rem; }
#save-status[data-dirty='true'] { color: var(--brand); }
.topbar-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; flex-shrink: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.stat-card { position: relative; padding: 21px 24px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--surface); box-shadow: 0 2px 3px rgba(26,42,64,.02); }
.stat-card > span { display: block; margin-right: 40px; font-size: .875rem; font-weight: 500; color: var(--muted); }
.stat-card > strong { display: block; margin: 10px 0 2px; font-family: var(--font-display); font-size: 2rem; font-weight: 700; line-height: 1.2; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.stat-card > small { color: var(--muted); font-size: .75rem; }
.stat-card > [data-icon] { position: absolute; right: 20px; top: 20px; width: 35px; height: 35px; padding: 8px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); }
.stat-card:nth-child(2) > [data-icon] { color: var(--success); background: var(--success-soft); }
.metrics-note { margin: 10px 2px 25px; color: var(--muted); font-size: .75rem; }
.workbench { display: grid; grid-template-columns: minmax(0,1fr) minmax(310px, .73fr); align-items: start; gap: 24px; }
.editor-column { min-width: 0; padding: 23px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px; }
.content-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.content-heading h2 { margin: 0; font-family: var(--font-display); font-size: 1rem; font-weight: 700; letter-spacing: -.025em; }
.content-ai-button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; min-height: 38px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--brand); cursor: pointer; font-size: .875rem; font-weight: 600; }
.content-ai-button:hover { background: var(--brand-soft); border-color: var(--brand); }
.editor-tabs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 3px; padding: 4px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line-soft); margin-bottom: 25px; }
.editor-tabs button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px 3px; min-width: 0; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--muted); font-size: .875rem; cursor: pointer; }
.editor-tabs button[aria-selected='true'] { background: var(--surface); color: var(--brand); border-color: var(--line); box-shadow: 0 1px 3px rgba(0,0,0,.03); font-weight: 700; }
.editor-tabs button:hover { color: var(--brand); }
.panel { margin: 0; background: transparent; }
.panel-heading { margin-bottom: 24px; }
.panel-heading h2 { font-size: 1rem; font-weight: 600; margin: 0 0 4px; }
.panel-heading small { display: block; color: var(--muted); font-size: .875rem; }
.panel-body { padding: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 16px; }
.editor-field { min-width: 0; }
.editor-field-full { grid-column: 1 / -1; }
.editor-field label, .field-label { display: block; margin-bottom: 8px; color: var(--text); font-size: .875rem; font-weight: 600; }
.editor-field small { display: block; margin-top: 7px; font-size: .75rem; color: var(--muted); line-height: 1.5; }
.editor-field input:not([type='checkbox']), .editor-field textarea, .editor-field select,
.field-group input { width: 100%; min-width: 0; min-height: 46px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font-size: .875rem; box-shadow: none; }
.editor-field input::placeholder, .editor-field textarea::placeholder, .field-group input::placeholder { color: var(--muted); opacity: .8; }
.editor-field input:hover, .editor-field textarea:hover, .editor-field select:hover { border-color: var(--muted); }
.editor-field textarea { min-height: 102px; resize: vertical; line-height: 1.6; }
.slug-field { display: flex; }
.slug-prefix { display: flex; align-items: center; padding: 0 11px; border: 1px solid var(--line); border-right: 0; border-radius: 8px 0 0 8px; background: var(--surface-2); color: var(--muted); font-size: .875rem; }
.slug-field input { border-radius: 0 8px 8px 0 !important; }
.color-row { display: grid; grid-template-columns: 46px minmax(0,1fr); gap: 8px; }
.color-row input[type='color'] { padding: 5px; cursor: pointer; }
.color-row input[type='color']::-webkit-color-swatch-wrapper { padding: 0; }
.color-row input[type='color']::-webkit-color-swatch { border: 0; border-radius: 4px; }
.benefit-inputs { display: grid; gap: 10px; }
.editor-field .upload-drop { position: relative; display: flex; align-items: center; gap: 18px; min-height: 116px; margin: 0; padding: 22px; border: 1px dashed var(--line); border-radius: 9px; background: var(--surface-2); cursor: pointer; }
.upload-drop:hover, .upload-drop:focus-within { border-color: var(--brand); background: var(--brand-soft); }
.upload-drop > [data-icon] { width: 40px; height: 40px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--brand); }
.upload-drop input[type='file'] { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; opacity: 0; }
.upload-drop strong { font-size: .875rem; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.toggle-copy strong { display: block; font-size: .875rem; }
.toggle-copy small { margin-top: 4px; }
.editor-field .switch { position: relative; flex: 0 0 42px; height: 24px; margin: 0; }
.switch input { position: absolute; opacity: 0; }
.switch-slider { position: absolute; inset: 0; border-radius: 20px; background: var(--line); cursor: pointer; }
.switch-slider::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: white; box-shadow: 0 1px 3px rgba(0,0,0,.12); transition: transform .15s; }
.switch input:checked + .switch-slider { background: #425982; }
.switch input:checked + .switch-slider::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-slider { outline: 3px solid var(--brand); outline-offset: 3px; }
.editor-bottom-note { display: flex; align-items: center; gap: 9px; border-top: 1px solid var(--line-soft); padding-top: 20px; margin-top: 28px; color: var(--muted); font-size: .75rem; }
.editor-bottom-note [data-icon] { width: 16px; height: 16px; }
.preview-column { position: sticky; top: 97px; padding: 20px; background: var(--surface-3); border: 1px solid var(--line-soft); border-radius: 14px; }
.preview-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.preview-heading strong { display: flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 600; }
.preview-heading > span { padding: 4px 9px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: .75rem; }
.phone-frame { width: min(100%, 354px); padding: 7px; border: 1px solid #576275; border-radius: 30px; background: #202735; box-shadow: 0 16px 30px rgba(25,37,58,.12); }
.phone-speaker { position: relative; z-index: 1; height: 16px; margin-bottom: -16px; background: #202735; }
.preview-screen { min-height: 620px; justify-content: center; padding: 28px 12px; }
.preview-content { flex: 0 0 auto; padding: 22px 16px; overflow-wrap: anywhere; box-shadow: 0 5px 18px rgba(0,0,0,.08); }
.preview-button { font-size: .875rem; animation: none; box-shadow: none; cursor: pointer; }
.preview-button::before { background: currentColor; mask: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='white' d='M16.05 3A12.9 12.9 0 0 0 5 22.55L3.3 29l6.6-1.73A12.96 12.96 0 1 0 16.05 3Zm0 23.55c-2.1 0-4.15-.56-5.93-1.62l-.43-.25-3.92 1.03 1.05-3.82-.28-.44a10.52 10.52 0 1 1 9.51 5.1Zm5.77-7.88c-.32-.16-1.87-.92-2.16-1.03-.29-.11-.5-.16-.71.16-.21.31-.82 1.03-1 1.24-.18.21-.37.24-.69.08-.31-.16-1.33-.49-2.54-1.57a9.5 9.5 0 0 1-1.76-2.19c-.18-.31-.02-.48.14-.64.14-.14.31-.37.47-.55.16-.19.21-.32.32-.53.1-.21.05-.39-.03-.55-.08-.16-.71-1.71-.98-2.34-.26-.62-.52-.54-.71-.55h-.61c-.21 0-.55.08-.84.39-.29.32-1.11 1.08-1.11 2.64 0 1.55 1.13 3.06 1.29 3.27.16.21 2.23 3.4 5.4 4.77.75.32 1.34.52 1.8.67.76.24 1.45.21 1.99.13.61-.09 1.87-.77 2.13-1.51.27-.74.27-1.37.19-1.51-.08-.13-.29-.21-.61-.37Z'/%3E%3C/svg%3E"); }
.preview-benefits li { font-size: .875rem; overflow-wrap: anywhere; }
.preview-footer { flex: 0 0 auto; margin-top: 20px; font-size: .75rem; text-align: center; }
.preview-caption { display: flex; align-items: center; flex-direction: column; gap: 10px; margin-top: 19px; color: var(--muted); font-size: .75rem; text-align: center; }
.publication-badge { padding: 4px 9px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; color: var(--text); font-weight: 600; }
.publication-badge[data-status='published'] { color: var(--success); background: var(--success-soft); border-color: transparent; }
.ai-assistant { position: fixed; right: 24px; bottom: 94px; z-index: 60; width: min(390px,calc(100vw - 32px)); max-height: calc(100dvh - 118px); overflow-y: auto; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 16px 60px rgba(16,30,50,.2); visibility: hidden; opacity: 0; transform: translateY(8px); transition: opacity .18s, transform .18s, visibility .18s; }
.ai-assistant.open { visibility: visible; opacity: 1; transform: translateY(0); }
.ai-assistant-header { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 22px; }
.ai-assistant-header strong { display: block; font-size: 1rem; }
.ai-assistant-header span { display: block; margin-top: 7px; font-size: .875rem; color: var(--muted); line-height: 1.6; }
.ai-close { flex: 0 0 32px; min-height: 32px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-2); color: var(--text); font-size: 1.3rem; cursor: pointer; }
.ai-action-row { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.ai-status { color: var(--muted); font-size: .875rem; }
.ai-fab { position: fixed; bottom: 24px; right: 24px; z-index: 61; display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 68px; height: 50px; padding: 0 17px; border: 1px solid #5d739b; border-radius: 16px; background: #425982; color: white; box-shadow: 0 6px 22px rgba(34,56,93,.22); cursor: pointer; }
.ai-fab:hover { background: #334a72; }
.ai-fab-icon { font-size: 1.4rem; }
.ai-fab-label { font-size: .875rem; font-weight: 700; }
.subscription-gate, .loading-screen { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: var(--bg); }
.loading-box, .gate-card { width: min(430px,100%); padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); text-align: center; }
.loading-pulse { width: 32px; height: 32px; margin: 0 auto 20px; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
.gate-card h2 { margin: 12px 0; font-family: var(--font-display); font-size: 1.5rem; }
.gate-card p { margin: 0 0 22px; color: var(--muted); }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 120; max-width: min(480px,calc(100vw - 32px)); padding: 14px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); font-size: .875rem; }
.toast.error { border-color: var(--danger); color: var(--danger); }
.sidebar-backdrop, .mobile-menu-button { display: none; }
/* The account screens share the same light/dark preference. */
.auth-intro { background: var(--brand-soft); border-right: 1px solid var(--line); }
.auth-intro::before { display: none; }
.auth-copy h1 { max-width: 650px; color: var(--text); font-size: clamp(2.25rem,4.2vw,4.25rem); line-height: 1.1; }
.auth-copy > p, .auth-note, .feature-list li { color: var(--muted); }
.feature-list span { background: var(--surface); border-color: var(--line); color: var(--brand); }
.auth-panel { position: relative; border: 0; background: var(--bg); padding: 90px 32px 40px; }
.auth-card { width: min(440px,100%); padding: 32px; border: 1px solid var(--line); background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); }
.auth-card-heading { color: var(--muted); }
.auth-card h2, .field-group label { color: var(--text); }
.auth-card > p:not(.terms), .terms { color: var(--muted); }
.auth-card .segmented { background: var(--surface-2); border-color: var(--line); }
.segmented-button { color: var(--muted); }
.segmented-button.active { background: var(--surface); color: var(--brand); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.text-button, .password-toggle { color: var(--brand); }
.text-button, .password-toggle, .field-group label { font-size: .875rem; }
.password-field input { padding-right: 78px; }
.auth-theme { position: absolute; top: 24px; right: 24px; }
.message { color: var(--danger); border-color: var(--danger); background: var(--surface-2); }
.message-success { color: var(--success); border-color: var(--success); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 1550px) { .editor-tabs button { flex-direction: row; gap: 8px; } }
@media (max-width: 1200px) {
  .app-shell { grid-template-columns: 220px minmax(0,1fr); }
  .dashboard-content { padding: 24px; }
  .workspace-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
  .topbar-actions { justify-content: flex-start; }
  .workbench { grid-template-columns: minmax(0,1fr) 310px; gap: 16px; }
  .editor-column { padding: 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .stat-card { padding: 18px; }
  .stat-card > [data-icon] { right: 14px; top: 14px; }
  .preview-column { padding: 16px 12px; }
}
@media (max-width: 1000px) {
  .workbench { grid-template-columns: minmax(0,1fr); }
  .preview-column { position: static; }
  .form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stat-card > span { margin: 0; }
  .stat-card > [data-icon] { position: static; margin-bottom: 14px; }
  .auth-shell { grid-template-columns: 1fr 1fr; }
  .auth-intro { padding: 32px; }
  .auth-panel { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 760px) {
  .app-shell { grid-template-columns: minmax(0,1fr); }
  .sidebar { position: fixed; left: 0; width: min(285px,85vw); transform: translateX(-100%); visibility: hidden; transition: transform .2s, visibility .2s; }
  .sidebar.open { transform: translateX(0); visibility: visible; }
  .sidebar-backdrop:not([hidden]) { position: fixed; display: block; inset: 0; z-index: 35; border: 0; background: rgba(8,15,28,.5); }
  .mobile-menu-button { display: inline-flex; min-width: 40px; padding: 8px; }
  .topbar { min-height: 68px; padding: 12px 16px; }
  .topbar-context > [data-icon], .breadcrumb-separator, .topbar-context strong { display: none; }
  .dashboard-content { padding: 24px 16px 95px; }
  .stats-grid { gap: 9px; }
  .stat-card { padding: 14px 12px; }
  .stat-card > span { font-size: .875rem; }
  .stat-card > strong { font-size: 1.6rem; }
  .stat-card > small { display: none; }
  .auth-shell { display: flex; flex-direction: column; }
  .auth-intro { min-height: auto; padding: 26px; border: 0; }
  .auth-copy, .auth-note { display: none; }
  .auth-panel { flex: 1; padding: 78px 20px 32px; }
  .auth-theme { top: 18px; right: 20px; }
}
@media (max-width: 460px) {
  .topbar-context { gap: 7px; font-size: .875rem; }
  .theme-switch button { padding: 5px 7px; }
  .theme-switch [data-icon] { display: none; }
  .form-grid { grid-template-columns: minmax(0,1fr); }
  .editor-column { padding: 16px; }
  .editor-tabs button { font-size: .875rem; padding: 9px 0; }
  .editor-tabs { gap: 0; padding: 3px; }
  .content-heading { gap: 14px; }
  .topbar-actions { width: 100%; }
  .topbar-actions .button { flex: 1; padding: 10px; }
  .ai-assistant { right: 16px; }
  .ai-fab { right: 16px; bottom: 20px; }
  .auth-card { padding: 25px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
