:root {
  color-scheme: light;
  --bg: #f6f7f4;
  --bg-elevated: #edf0ec;
  --panel: #ffffff;
  --panel-strong: #fbfbf8;
  --panel-soft: rgba(255,255,255,.78);
  --ink: #1b1f24;
  --muted: #66706d;
  --muted-strong: #4c5753;
  --line: #dde2db;
  --line-strong: #c5cec5;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --accent-soft: #d8f3ee;
  --warning: #f59e0b;
  --danger: #b42318;
  --header-bg: rgba(246,247,244,.92);
  --header-border: rgba(221,226,219,.85);
  --hero-glow: radial-gradient(circle at top, rgba(15,118,110,.1), transparent 44%);
  --preview-shell: #202522;
  --preview-ink: #eef3f0;
  --preview-meta: #bde6dc;
  --preview-stage: #eef0ec;
  --preview-sidebar: #fbfbf8;
  --preview-sidebar-border: #d5dbd3;
  --preview-tool: #ffffff;
  --preview-tool-border: #cfd7cf;
  --preview-paper: #ffffff;
  --preview-paper-border: #d7ddd5;
  --preview-line: #d8ded7;
  --preview-highlight: rgba(245,158,11,.34);
  --feature-visual-bg: #f4f6f2;
  --feature-visual-border: #e6e9e3;
  --visual-page-border: #d0d8cf;
  --visual-page-line: #cbd4cb;
  --editor-bg: #edf0ec;
  --tool-panel-bg: #fbfbf8;
  --tool-button-ink: #35403b;
  --toolbar-bg: rgba(251,251,248,.92);
  --viewer-grid: rgba(27,31,36,.035);
  --viewer-base: #e8ebe7;
  --drop-cue-bg: rgba(255,255,255,.94);
  --empty-card-bg: rgba(255,255,255,.92);
  --page-badge-bg: rgba(255,255,255,.8);
  --surface-strong: #ffffff;
  --text-box-bg: rgba(255,255,255,.95);
  --toast-bg: #ffffff;
  --confirm-bg: #ffffff;
  --backdrop: rgba(27,31,36,.42);
  --shadow: 0 18px 42px rgba(27, 31, 36, 0.12);
  --small-shadow: 0 8px 24px rgba(27, 31, 36, 0.1);
  --radius: 8px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1417;
  --bg-elevated: #10181b;
  --panel: #151c20;
  --panel-strong: #1b2429;
  --panel-soft: rgba(21,28,32,.82);
  --ink: #eaf1ed;
  --muted: #93a49d;
  --muted-strong: #c3d0cb;
  --line: #2a343a;
  --line-strong: #39484f;
  --accent: #199b90;
  --accent-strong: #77e1d3;
  --accent-soft: rgba(25,155,144,.18);
  --warning: #f0b14a;
  --danger: #f87171;
  --header-bg: rgba(15,20,23,.9);
  --header-border: rgba(42,52,58,.9);
  --hero-glow: radial-gradient(circle at top, rgba(25,155,144,.18), transparent 46%);
  --preview-shell: #0b1012;
  --preview-ink: #eef6f3;
  --preview-meta: #9ce0d5;
  --preview-stage: #11181b;
  --preview-sidebar: #151d21;
  --preview-sidebar-border: #233037;
  --preview-tool: #1a2328;
  --preview-tool-border: #334149;
  --preview-paper: #f5f8f6;
  --preview-paper-border: #c8d2cc;
  --preview-line: #ccd6d0;
  --preview-highlight: rgba(240,177,74,.3);
  --feature-visual-bg: #10181c;
  --feature-visual-border: #223037;
  --visual-page-border: #2f3d44;
  --visual-page-line: #51635d;
  --editor-bg: #0f1518;
  --tool-panel-bg: #131a1d;
  --tool-button-ink: #cfdbd6;
  --toolbar-bg: rgba(19,26,29,.92);
  --viewer-grid: rgba(234,241,237,.035);
  --viewer-base: #11181c;
  --drop-cue-bg: rgba(21,28,32,.94);
  --empty-card-bg: rgba(21,28,32,.92);
  --page-badge-bg: rgba(21,28,32,.84);
  --surface-strong: #f8fbf9;
  --text-box-bg: rgba(21,28,32,.95);
  --toast-bg: #151c20;
  --confirm-bg: #151c20;
  --backdrop: rgba(0,0,0,.58);
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  --small-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: var(--bg); }
body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  transition: background 160ms ease, color 160ms ease;
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.25);
  outline-offset: 2px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.site-header, .editor-header {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 18px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid var(--header-border);
  background: var(--header-bg);
  backdrop-filter: blur(18px);
}
.brand-mark {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); font-weight: 800; text-decoration: none;
}
.brand-mark.compact { min-width: 138px; }
.brand-symbol {
  display: grid; width: 42px; height: 34px; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 6px; background: var(--panel);
  color: var(--accent-strong); font-size: 12px; font-weight: 900;
}
.brand-copy {
  display: grid;
  gap: 1px;
  line-height: 1.05;
}
.brand-copy small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}
.home-page { background: var(--hero-glow), var(--bg); }
.home-header-actions { display: flex; align-items: center; gap: 14px; }
.home-nav { display: flex; gap: 18px; }
.home-nav a, .home-footer span, .home-footer a { color: var(--muted); font-size: 14px; text-decoration: none; }
.home-nav a:hover, .home-footer a:hover { color: var(--ink); }
.theme-toggle {
  display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel-soft);
  color: var(--ink); cursor: pointer; font-size: 14px; font-weight: 800;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}
.theme-toggle:hover { border-color: var(--line-strong); background: var(--panel); transform: translateY(-1px); }
.theme-toggle-indicator {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft);
}

.home-page main, .home-footer { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.home-hero { display: grid; justify-items: center; padding: clamp(56px, 8vw, 104px) 0 28px; text-align: center; }
.hero-kicker {
  width: fit-content; margin-bottom: 20px; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
  color: var(--accent-strong); font-size: 13px; font-weight: 800;
}
.home-hero h1 { margin: 0; font-size: clamp(54px, 10vw, 112px); font-weight: 900; line-height: .95; letter-spacing: 0; }
.home-hero p { max-width: 760px; margin: 24px 0 0; color: var(--muted-strong); font-size: clamp(18px, 2.2vw, 24px); line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.hero-tip {
  margin-top: 18px !important;
  color: var(--muted);
  font-size: 14px !important;
  line-height: 1.55 !important;
}
.primary-action, .secondary-action, .control-button, .icon-action, .tool-button {
  border: 1px solid transparent; border-radius: var(--radius); cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}
.primary-action, .secondary-action {
  display: inline-flex; min-height: 46px; align-items: center; justify-content: center;
  padding: 0 18px; font-weight: 800; text-decoration: none;
}
.primary-action, .control-button.primary {
  border-color: var(--accent-strong); background: var(--accent); color: #fff;
  box-shadow: 0 8px 18px rgba(15,118,110,.2);
}
.primary-action:hover, .control-button.primary:hover { background: var(--accent-strong); transform: translateY(-1px); }
.secondary-action, .control-button, .icon-action { border-color: var(--line); background: var(--panel); color: var(--ink); }
.secondary-action:hover, .control-button:hover, .icon-action:hover, .tool-button:hover { border-color: var(--line-strong); background: var(--panel-strong); }
.privacy-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.privacy-strip span {
  padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel-soft); color: var(--muted); font-size: 13px; font-weight: 700;
}

.product-preview {
  display: grid; gap: 0; overflow: hidden; margin: 8px auto 56px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow);
}
.preview-heading {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px; border-bottom: 1px solid var(--line); background: var(--panel);
}
.preview-heading strong { font-size: 16px; font-weight: 900; }
.preview-heading span { color: var(--muted); font-size: 14px; }
.image-frame {
  position: relative; overflow: hidden; border: 1px solid var(--line);
  border-radius: 12px; background: var(--feature-visual-bg);
}
.image-frame-large {
  min-height: 460px;
  margin: 18px;
}
.feature-visual.image-frame {
  min-height: 180px;
  padding: 0;
}
.image-placeholder {
  position: absolute; inset: 0; z-index: 0;
  display: grid; align-content: center; justify-items: start; gap: 10px;
  padding: 22px; background:
    linear-gradient(135deg, rgba(15,118,110,.1), transparent 58%),
    var(--feature-visual-bg);
  color: var(--muted);
}
.image-placeholder strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
}
.image-placeholder span {
  max-width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
  word-break: break-word;
}
.theme-shot {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
  background: var(--panel);
}
.theme-shot-dark { display: none; }
[data-theme="dark"] .theme-shot-light { display: none; }
[data-theme="dark"] .theme-shot-dark { display: block; }
.theme-shot.is-missing { display: none !important; }

.feature-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-bottom: 62px; }
.feature-card {
  display: grid; grid-template-rows: auto 1fr auto; min-height: 360px; padding: 16px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
}
.feature-card.muted-card { opacity: .72; }
.feature-visual { display: grid; min-height: 150px; place-items: center; border: 1px solid var(--feature-visual-border); border-radius: 7px; background: var(--feature-visual-bg); }
.feature-card h2 { margin: 18px 0 8px; font-size: 18px; font-weight: 900; }
.feature-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.feature-card a { display: inline-flex; width: fit-content; margin-top: 20px; color: var(--accent-strong); font-weight: 900; text-decoration: none; }
.home-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 26px 0 34px; border-top: 1px solid var(--line); }

.editor-page { display: grid; grid-template-rows: auto 1fr; height: 100vh; overflow: hidden; background: var(--editor-bg); }
.editor-header { position: relative; z-index: 20; min-height: 74px; padding: 12px 18px; background: var(--toolbar-bg); }
.document-meta { display: grid; min-width: 0; flex: 1; justify-items: center; gap: 2px; }
.document-title-button, .document-title-input, .document-meta span {
  max-width: min(520px,100%);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.document-title-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}
.document-title-button:hover:not(:disabled) { color: var(--accent-strong); }
.document-title-button:disabled { cursor: default; opacity: .72; }
.document-title-input {
  width: min(520px,100%);
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  text-align: center;
}
.document-meta span { color: var(--muted); font-size: 13px; }
.header-actions { display: flex; min-width: 268px; justify-content: flex-end; gap: 8px; }
.control-button, .icon-action { min-height: 38px; padding: 0 12px; font-size: 14px; font-weight: 800; }
.control-button.slim { min-height: 34px; padding: 0 10px; font-size: 12px; }
.control-button.danger { border-color: rgba(180,35,24,.25); color: var(--danger); }
.control-button:disabled, .icon-action:disabled, .tool-button:disabled { cursor: not-allowed; opacity: .48; }

.timer-card {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
}
.top-timer { flex: 0 0 auto; box-shadow: 0 8px 18px rgba(27,31,36,.06); }
.timer-card input { width: 54px; height: 30px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); font-weight: 850; text-align: center; }
.timer-card strong { min-width: 78px; color: var(--accent-strong); font-variant-numeric: tabular-nums; text-align: center; }
.timer-low { color: #b45309 !important; } .timer-done { color: var(--danger) !important; }

.editor-shell { display: grid; grid-template-columns: 96px minmax(0,1fr); min-height: 0; }
.tool-panel { display: flex; flex-direction: column; gap: 14px; min-height: 0; padding: 14px 10px; border-right: 1px solid var(--line); background: var(--tool-panel-bg); overflow-y: auto; }
.tool-group { display: grid; gap: 8px; }
.compact-group { padding-top: 12px; border-top: 1px solid var(--line); }
.panel-label { color: var(--muted); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.tool-button { display: grid; min-height: 62px; justify-items: center; gap: 5px; padding: 8px 6px; border-color: transparent; background: transparent; color: var(--tool-button-ink); font-size: 11px; font-weight: 850; }
.tool-button.active, .segmented button.active, .icon-action.active { border-color: rgba(15,118,110,.35); background: var(--accent-soft); color: var(--accent-strong); }
.tool-icon { position: relative; display: block; width: 28px; height: 28px; }
.pen-icon::before { content: ""; position: absolute; left: 13px; top: 2px; width: 5px; height: 24px; border-radius: 999px; background: currentColor; transform: rotate(38deg); }
.pen-icon::after { content: ""; position: absolute; left: 4px; bottom: 2px; width: 18px; height: 4px; border-radius: 999px; background: currentColor; }
.highlighter-icon::before { content: ""; position: absolute; left: 5px; top: 3px; width: 18px; height: 22px; border-radius: 4px; background: currentColor; transform: rotate(-18deg); }
.highlighter-icon::after { content: ""; position: absolute; left: 1px; bottom: 1px; width: 24px; height: 7px; border-radius: 999px; background: var(--warning); }
.eraser-icon::before { content: ""; position: absolute; left: 4px; top: 8px; width: 22px; height: 14px; border: 2px solid currentColor; border-radius: 4px; transform: rotate(-18deg); }
.text-icon { display: grid; place-items: center; font-size: 24px; font-weight: 950; }

.segmented { display: inline-flex; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.segmented.vertical { display: grid; }
.segmented button { min-height: 34px; padding: 0 12px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 900; }
.segmented.vertical button { border-right: 0; border-bottom: 1px solid var(--line); }
.segmented button:last-child { border-right: 0; border-bottom: 0; }
.dot { display: inline-block; border-radius: 50%; background: currentColor; }
.size-2 { width: 5px; height: 5px; } .size-4 { width: 8px; height: 8px; } .size-7 { width: 12px; height: 12px; } .size-11 { width: 16px; height: 16px; }
.color-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.color-swatch { width: 32px; height: 32px; border: 2px solid var(--panel); border-radius: 999px; background: var(--swatch); box-shadow: 0 0 0 1px var(--line-strong); cursor: pointer; }
.color-swatch.active { box-shadow: 0 0 0 2px var(--panel), 0 0 0 5px rgba(15,118,110,.45); }
.icon-action { display: inline-grid; min-width: 36px; place-items: center; }

.workspace { display: grid; grid-template-rows: auto minmax(0,1fr); min-width: 0; min-height: 0; }
.workspace-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--toolbar-bg); }
.toolbar-cluster { display: inline-flex; align-items: center; gap: 8px; }
.page-input-label { display: inline-flex; min-height: 36px; align-items: center; gap: 4px; padding: 0 9px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.page-input-label input { width: 46px; border: 0; background: transparent; color: var(--ink); font-weight: 900; text-align: center; }
.page-input-label span, #zoom-label { color: var(--muted); font-size: 13px; font-weight: 850; }
#zoom-label { min-width: 48px; text-align: center; }

.viewer-scroll {
  position: relative; min-height: 0; overflow: auto;
  background:
    linear-gradient(90deg, var(--viewer-grid) 1px, transparent 1px),
    linear-gradient(0deg, var(--viewer-grid) 1px, transparent 1px),
    var(--viewer-base);
  background-size: 28px 28px;
}
.viewer-scroll.drag-ready {
  outline: 3px solid rgba(15,118,110,.28);
  outline-offset: -10px;
}
.drop-cue {
  position: sticky;
  top: 16px;
  z-index: 30;
  display: none;
  width: fit-content;
  margin: 0 auto;
  padding: 9px 13px;
  border: 1px solid rgba(15,118,110,.32);
  border-radius: 999px;
  background: var(--drop-cue-bg);
  box-shadow: var(--small-shadow);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 900;
}
.viewer-scroll.drag-ready .drop-cue {
  display: block;
}
.empty-state { display: grid; min-height: 100%; place-items: center; padding: 28px; }
.empty-card { display: grid; width: min(460px,100%); justify-items: center; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--empty-card-bg); box-shadow: var(--small-shadow); text-align: center; }
.empty-card h1 { margin: 18px 0 8px; font-size: 28px; font-weight: 950; }
.empty-card p { margin: 0 0 22px; color: var(--muted); }
.empty-icon { display: grid; width: 72px; height: 86px; gap: 9px; align-content: center; padding: 14px; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--surface-strong); }
.empty-icon span { height: 8px; border-radius: 999px; background: var(--visual-page-line); } .empty-icon span:last-child { width: 62%; background: var(--accent); }
.page-host { min-height: 100%; padding: 34px; }
.page-host.continuous, .page-host.single { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.page-host.two { display: flex; flex-direction: row; align-items: flex-start; justify-content: center; gap: 24px; }
.pdf-page-shell { display: grid; justify-items: center; gap: 8px; }
.page-badge { padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--page-badge-bg); color: var(--muted); font-size: 12px; font-weight: 850; }
.pdf-page-surface { position: relative; overflow: hidden; border-radius: 4px; background: #fff; box-shadow: 0 14px 36px rgba(27,31,36,.18); }
.pdf-canvas, .annotation-canvas, .text-annotation-layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.pdf-canvas { z-index: 1; } .annotation-canvas { z-index: 2; touch-action: none; cursor: crosshair; }
.annotation-canvas.tool-eraser { cursor: cell; } .annotation-canvas.tool-text { cursor: text; }
.text-annotation-layer { z-index: 3; pointer-events: none; }
.text-annotation { position: absolute; min-width: 4px; white-space: pre; font-family: Arial, Helvetica, sans-serif; line-height: 1.22; transform-origin: top left; }
.text-editor-box { position: absolute; z-index: 6; min-width: 160px; min-height: 42px; padding: 5px 7px; border: 2px solid var(--accent); border-radius: 6px; background: var(--text-box-bg); box-shadow: var(--small-shadow); color: inherit; line-height: 1.22; resize: both; }
.pdf-page-surface.rendering::after { content: "Rendering"; position: absolute; right: 10px; bottom: 10px; z-index: 5; padding: 5px 8px; border-radius: 999px; background: var(--panel-soft); color: var(--muted); font-size: 11px; font-weight: 850; }

.toast-region { position: fixed; right: 18px; bottom: 18px; z-index: 100; display: grid; gap: 8px; width: min(380px, calc(100vw - 36px)); }
.toast { padding: 12px 14px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); background: var(--toast-bg); box-shadow: var(--small-shadow); color: var(--ink); font-size: 14px; font-weight: 760; transition: opacity .25s ease, transform .25s ease; }
.toast.error { border-left-color: var(--danger); }
.confirm-backdrop { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 18px; background: var(--backdrop); }
.confirm-card { width: min(420px,100%); padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--confirm-bg); box-shadow: var(--shadow); }
.confirm-card h2 { margin: 0 0 8px; font-size: 20px; font-weight: 950; }
.confirm-card p { margin: 0; color: var(--muted); line-height: 1.5; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.export-actions { flex-wrap: wrap; }

@media (max-width: 1240px) {
  .editor-header { flex-wrap: wrap; }
  .document-meta { order: 4; width: 100%; justify-items: start; }
  .header-actions { min-width: 0; }
}
@media (max-width: 1120px) {
  .feature-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .workspace-toolbar { flex-wrap: wrap; }
}
@media (max-width: 820px) {
  .site-header, .editor-header { align-items: flex-start; }
  .editor-shell { grid-template-columns: 1fr; grid-template-rows: auto minmax(0,1fr); }
  .tool-panel { flex-direction: row; align-items: center; padding: 8px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .tool-group { display: flex; flex: 0 0 auto; }
  .compact-group { padding-top: 0; padding-left: 12px; border-top: 0; border-left: 1px solid var(--line); }
  .tool-button { width: 72px; }
  .segmented.vertical { display: inline-flex; }
  .segmented.vertical button { border-right: 1px solid var(--line); border-bottom: 0; }
  .color-grid { display: flex; }
}
@media (max-width: 680px) {
  .home-nav { display: none; }
  .home-header-actions { margin-left: auto; }
  .preview-heading {
    flex-direction: column;
    align-items: flex-start;
  }
  .image-frame-large { min-height: 320px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
  .document-title-input { text-align: left; }
  .header-actions, .toolbar-cluster, .timer-card { width: 100%; justify-content: space-between; }
  .page-host { padding: 22px 12px; }
}
