:root {
  --ink: #F3EEE4;
  --muted: #A9B3C4;
  --line: #7A89A3;
  --control-border: #7A89A3;
  --focus-ring: #E6C594;
  --notice-border: #7A89A3;
  --paper: #16223A;
  --canvas: #0E1726;
  --accent: #D9B382;
  --cv-accent: #5FC4B8;
  --danger: #F28B82;
  --serif: Georgia, 'Times New Roman', serif;
  --notice-height: 0px;
  --topbar-height: 0px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--notice-height, 0px) + var(--topbar-height, 0px)); }
body { margin: 0; background: radial-gradient(circle at 72% 4%, rgba(217, 179, 130, .10), transparent 32rem), var(--canvas); color: var(--ink); font-family: 'Segoe UI', Tahoma, sans-serif; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.launch-screen { align-items: center; background: radial-gradient(circle at 75% 20%, rgba(217, 179, 130, .10), transparent 32rem), var(--canvas); display: flex; inset: 0; justify-content: center; min-height: 100vh; overflow: hidden; padding-top: var(--notice-height, 0px); position: fixed; z-index: 20; }
.launch-screen.is-hidden { opacity: 0; pointer-events: none; transform: scale(1.02); transition: opacity .3s ease, transform .3s ease; }
.launch-inner { max-width: 820px; padding: 54px 30px; position: relative; width: 100%; z-index: 1; }
.launch-brand, .brand { align-items: center; color: var(--ink); display: flex; font-family: 'Trebuchet MS', 'Segoe UI', sans-serif; gap: 10px; }
.launch-brand { font-size: 16px; font-weight: 600; }
.launch-brand b, .brand b { color: var(--accent); }
.launch-copy { margin: 100px 0 45px; max-width: 560px; }
.launch-copy h1 { color: var(--ink); font-family: 'Trebuchet MS', 'Segoe UI', sans-serif; font-size: clamp(42px, 7vw, 76px); line-height: .94; margin: 0; }
.launch-copy h1 em { color: var(--accent); font-family: var(--serif); font-weight: 400; }
.launch-intro { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 22px 0 0; max-width: 450px; }
.launch-actions { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
.launch-card { align-items: center; background: rgba(255, 255, 255, .04); border: 1px solid var(--control-border); border-top: 2px solid var(--accent); border-radius: 10px; color: var(--ink); display: flex; gap: 12px; min-height: 88px; padding: 16px; text-align: left; transition: background .2s, border-color .2s, transform .2s; }
.launch-card:hover { background: rgba(217, 179, 130, .12); border-color: var(--focus-ring); border-top-color: var(--accent); transform: translateY(-3px); }
.launch-card:hover .launch-card-icon { background: var(--focus-ring); }
.launch-card-primary { background: linear-gradient(135deg, #393C47, #16223A); border-color: var(--focus-ring); border-top-color: var(--accent); }
.launch-card-icon { align-items: center; background: var(--accent); border-radius: 7px; color: var(--canvas); display: inline-flex; flex: 0 0 auto; font-size: 22px; height: 34px; justify-content: center; width: 34px; }
.launch-pdf-icon, .launch-footnote { font-family: Consolas, 'Courier New', monospace; }
.launch-pdf-icon { font-size: 9px; font-weight: 700; }
.launch-card strong, .launch-card small { display: block; }
.launch-card strong { font-size: 11px; }
.launch-card small { color: var(--muted); font-size: 10px; line-height: 1.4; margin-top: 5px; }
.launch-card-arrow { color: var(--accent); font-size: 20px; margin-left: auto; }
.launch-footnote { color: var(--muted); font-size: 9px; margin: 32px 0 0; text-transform: uppercase; }
.about-link { color: var(--accent); font-family: 'Segoe UI', Tahoma, sans-serif; font-size: 14px; font-weight: 700; text-decoration: underline; text-transform: none; text-underline-offset: 3px; }
.launch-footnote .about-link { display: block; margin: 10px 0 0; width: fit-content; }
.launch-glow { border: 1px solid rgba(217, 179, 130, .12); border-radius: 50%; height: 500px; position: absolute; width: 500px; }
.launch-glow-one { right: -170px; top: -160px; }
.launch-glow-two { bottom: -370px; left: -230px; }
.app-shell { min-height: 100vh; }
.topbar { align-items: center; background: var(--canvas); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; padding: 15px 4vw; position: sticky; top: var(--notice-height, 0px); z-index: 5; }
.brand { font-size: 16px; font-weight: 800; letter-spacing: -.02em; text-decoration: none; }
.brand-mark { align-items: center; background: var(--paper); border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--cv-accent); color: var(--cv-accent); display: inline-flex; font-family: 'Trebuchet MS', 'Segoe UI', sans-serif; font-size: 14px; font-weight: 700; height: 30px; justify-content: center; width: 30px; }
.topbar-actions { align-items: center; display: flex; gap: 9px; }
.more-menu { position: relative; }
.more-menu > summary { align-items: center; cursor: pointer; display: flex; justify-content: center; list-style: none; }
.more-menu > summary::-webkit-details-marker { display: none; }
.more-menu-content { background: var(--paper); border: 1px solid var(--control-border); border-radius: 9px; box-shadow: 0 18px 44px rgba(0, 0, 0, .45); display: grid; gap: 9px; grid-template-columns: minmax(0, 1fr); padding: 12px; position: absolute; right: 0; top: calc(100% + 8px); width: min(300px, calc(100vw - 32px)); z-index: 15; }
.more-menu:not([open]) > .more-menu-content { display: none; }
.more-menu-content > * { box-sizing: border-box; min-width: 0; }
.more-menu-content > .button { text-align: left; }
.more-menu-content .paper-size-control, .more-menu-content .filename-control { justify-content: space-between; padding: 4px 8px; }
.more-menu-content .filename-control input { flex: 1; min-width: 0; width: auto; }
.workspace-label { color: var(--ink); font-size: 11px; margin-left: auto; margin-right: 24px; }
.workspace-label small { color: var(--muted); font-family: Consolas, 'Courier New', monospace; font-size: 9px; margin-left: 8px; text-transform: uppercase; }
.workspace-pulse { background: var(--accent); border-radius: 50%; box-shadow: 0 0 10px rgba(217, 179, 130, .7); display: inline-block; height: 6px; margin-right: 7px; width: 6px; }
.save-status { color: var(--muted); font-family: Consolas, 'Courier New', monospace; font-size: 10px; letter-spacing: .03em; margin-right: 10px; text-transform: uppercase; }
.status-dot, .live-dot { background: var(--accent); border-radius: 50%; box-shadow: 0 0 8px rgba(217, 179, 130, .55); display: inline-block; height: 7px; margin-right: 6px; width: 7px; }
.save-status.saving .status-dot { background: var(--focus-ring); box-shadow: 0 0 8px rgba(230, 197, 148, .55); }
.save-status.error .status-dot { background: var(--danger); box-shadow: 0 0 8px rgba(242, 139, 130, .55); }
#noticeStack { position: sticky; top: 0; z-index: 40; }
.storage-notice, .update-notice { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; padding: 12px 4vw; width: 100%; }
.storage-notice { background: var(--paper); border-bottom: 1px solid var(--notice-border); }
.update-notice { background: var(--paper); border-bottom: 1px solid var(--notice-border); }
.storage-notice p, .update-notice p { flex: 1 1 260px; line-height: 1.5; margin: 0; min-width: 0; }
.storage-notice[hidden], .update-notice[hidden], .undo-toast[hidden] { display: none; }
#backupReminder .button, #undoRemovalButton { max-width: 100%; min-height: 44px; }
.undo-toast { align-items: center; background: var(--paper); border: 1px solid var(--notice-border); border-radius: 8px; bottom: 16px; display: flex; flex-wrap: wrap; gap: 10px; left: 16px; max-width: 420px; padding: 12px 14px; position: fixed; width: calc(100% - 32px); z-index: 35; }
.undo-toast p { line-height: 1.5; margin: 0; min-width: 0; }
#applyUpdateButton:disabled { cursor: not-allowed; opacity: .55; }
#updateBlockedHint { color: var(--muted); flex-basis: 100%; font-size: 12px; }
.button { border: 1px solid var(--control-border); border-radius: 7px; font-size: 12px; font-weight: 800; letter-spacing: .02em; min-height: 32px; padding: 6px 11px; transition: transform .18s, background .18s; }
.button:hover { transform: translateY(-1px); }
.button-ghost, .button-dark { color: var(--ink); }
.button-ghost { background: rgba(255, 255, 255, .03); }
.button-dark { background: var(--canvas); }
.button-accent { background: var(--accent); border-color: var(--accent); color: var(--canvas); }
.button-accent:hover,
.icon-button:hover { background: var(--focus-ring); border-color: var(--focus-ring); color: var(--canvas); }
.button-caution { background: var(--canvas); border-color: var(--accent); color: var(--accent); }
.data-dialog { background: var(--paper); border: 1px solid var(--control-border); border-top: 2px solid var(--accent); border-radius: 12px; box-shadow: 0 24px 80px rgba(0, 0, 0, .65); color: var(--ink); margin: auto; max-height: calc(100vh - 24px); max-width: 620px; overflow: auto; padding: clamp(18px, 4vw, 30px); width: calc(100vw - 24px); }
.data-dialog::backdrop { background: rgba(8, 14, 24, .78); }
.data-dialog-header { align-items: flex-start; display: flex; justify-content: space-between; }
.data-dialog-header .eyebrow { margin-bottom: 8px; }
.data-dialog-header h2 { font-size: clamp(24px, 5vw, 32px); margin: 0; }
.data-summary { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 24px 0 12px; }
.data-summary > div { background: rgba(255, 255, 255, .035); border: 1px solid var(--line); border-radius: 8px; min-width: 0; padding: 12px; }
.data-summary dt { color: var(--muted); font-size: 11px; margin-bottom: 7px; }
.data-summary dd { font-size: 13px; line-height: 1.45; margin: 0; overflow-wrap: anywhere; }
.data-dialog-note { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 12px 0 22px; }
.data-snapshots { border-top: 1px solid var(--line); padding-top: 18px; }
.data-snapshots h3 { font-size: 15px; margin: 0 0 12px; }
.data-snapshots > p { color: var(--muted); font-size: 13px; }
.snapshot-item { align-items: center; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; padding: 12px 0; }
.snapshot-item p { color: var(--ink); flex: 1 1 210px; font-size: 12px; line-height: 1.5; margin: 0; min-width: 0; overflow-wrap: anywhere; }
.data-dialog-status { color: var(--accent); font-size: 13px; line-height: 1.5; }
.data-dialog-actions { border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 9px; padding-top: 16px; }
.data-dialog-actions .button { flex: 1 1 auto; }
.paper-size-control, .filename-control { align-items: center; background: rgba(255, 255, 255, .03); border: 1px solid var(--control-border); border-radius: 7px; color: var(--muted); display: flex; font-family: Consolas, 'Courier New', monospace; font-size: 12px; gap: 5px; min-height: 32px; text-transform: uppercase; }
.paper-size-control { padding-left: 9px; }
.paper-size-control select { background: transparent; border: 0; color: var(--ink); cursor: pointer; font: inherit; font-size: 16px; min-height: 30px; outline: 0; padding: 5px 8px 5px 0; text-transform: uppercase; }
.paper-size-control option { background: var(--paper); color: var(--ink); }
.filename-control { padding: 0 8px; }
.filename-control input { background: transparent; border: 0; box-shadow: none; color: var(--ink); font-family: 'Segoe UI', Tahoma, sans-serif; font-size: 16px; min-height: 30px; min-width: 88px; outline: 0; padding: 4px 0; width: 112px; }
.filename-control input:focus { box-shadow: none; }
.filename-control b { color: var(--muted); font-size: 9px; font-weight: 400; }
.workspace { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); min-height: calc(100vh - 65px); }
.app-shell[data-preview-hidden="true"] .workspace { grid-template-columns: minmax(0, 1fr); }
.app-shell[data-preview-hidden="true"] .preview-panel { display: none; }
.editor-panel { background: linear-gradient(180deg, rgba(217, 179, 130, .10), var(--paper) 40%); padding: 58px clamp(30px, 5vw, 86px) 100px; }
.panel-heading { align-items: flex-end; display: flex; justify-content: space-between; margin-bottom: 38px; }
.eyebrow { color: var(--accent); font-family: Consolas, 'Courier New', monospace; font-size: 10px; letter-spacing: .08em; margin: 0 0 18px; text-transform: uppercase; }
.eyebrow-rule { background: var(--accent); display: inline-block; height: 1px; margin: 0 7px 3px; width: 24px; }
h1 { font-family: 'Trebuchet MS', 'Segoe UI', sans-serif; font-size: clamp(31px, 3vw, 48px); font-weight: 600; letter-spacing: -.065em; line-height: .99; margin: 0; }
h1 em { color: var(--accent); font-family: var(--serif); font-weight: 400; }
.completion-widget { align-items: center; display: flex; gap: 10px; }
.completion-widget > div:last-child { display: flex; flex-direction: column; gap: 3px; }
.completion-widget span { color: var(--ink); font-size: 10px; font-weight: 800; }
.completion-widget small { color: var(--muted); font-size: 10px; }
.completion-ring { align-items: center; background: conic-gradient(var(--focus-ring) 0deg, var(--canvas) 0deg); border-radius: 50%; display: flex; height: 45px; justify-content: center; position: relative; width: 45px; }
.completion-ring:after { background: var(--paper); border-radius: 50%; content: ''; height: 37px; position: absolute; width: 37px; }
.completion-ring strong { font-family: Consolas, 'Courier New', monospace; font-size: 9px; position: relative; z-index: 1; }
.completion-ring.progress-0 { background: conic-gradient(var(--focus-ring) 0deg, var(--canvas) 0deg); }
.completion-ring.progress-25 { background: conic-gradient(var(--focus-ring) 90deg, var(--canvas) 0deg); }
.completion-ring.progress-50 { background: conic-gradient(var(--focus-ring) 180deg, var(--canvas) 0deg); }
.completion-ring.progress-75 { background: conic-gradient(var(--focus-ring) 270deg, var(--canvas) 0deg); }
.completion-ring.progress-100 { background: conic-gradient(var(--focus-ring) 360deg, var(--canvas) 0deg); }
.quick-actions { display: grid; gap: 12px; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); margin-bottom: 42px; }
.quick-action { align-items: center; background: linear-gradient(135deg, #393C47, #16223A); border: 1px solid var(--control-border); border-top: 2px solid var(--accent); border-radius: 9px; color: var(--ink); display: flex; gap: 11px; min-height: 78px; min-width: 0; padding: 13px 14px; text-align: left; transition: border-color .18s, transform .18s; }
.quick-action:hover { border-color: var(--focus-ring); border-top-color: var(--accent); transform: translateY(-2px); }
.quick-action:hover .quick-icon { background: var(--focus-ring); }
.quick-icon { align-items: center; background: var(--accent); border-radius: 5px; color: var(--canvas); display: inline-flex; font-family: Consolas, 'Courier New', monospace; font-size: 9px; font-weight: 700; height: 29px; justify-content: center; width: 34px; }
.quick-action > span:nth-child(2), .quick-action strong, .quick-action small { display: block; min-width: 0; }
.quick-action strong { font-size: 11px; }
.quick-action small { color: var(--muted); font-size: 10px; margin-top: 4px; }
.quick-arrow { color: var(--accent); font-size: 17px; margin-left: auto; }
.ats-note { align-items: flex-start; background: rgba(217, 179, 130, .10); border-left: 3px solid var(--accent); border-top: 2px solid var(--accent); display: flex; gap: 13px; margin: 0; padding: 13px 14px; }
.note-icon { color: var(--cv-accent); font-size: 17px; }
.ats-note strong { color: var(--ink); font-size: 11px; }
.ats-note p { color: var(--muted); font-size: 11px; line-height: 1.5; margin: 3px 0 0; }
.ats-tips { background: rgba(217, 179, 130, .10); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-top: 2px solid var(--accent); border-radius: 8px; margin: 0 0 28px; max-width: 100%; min-width: 0; }
.ats-tips > summary { color: var(--ink); cursor: pointer; font-size: 13px; font-weight: 700; min-height: 44px; padding: 12px 14px; }
.ats-tips-count { color: var(--muted); font-weight: 600; }
.ats-tips ul { margin: 0; padding: 0 14px 14px 2em; }
.ats-tips li { color: var(--ink); font-size: 13px; line-height: 1.5; margin: 0 0 8px; overflow-wrap: anywhere; }
.ats-tips li:last-child { margin-bottom: 0; }
.form-section { border-top: 2px solid var(--accent); padding: 29px 0 34px; }
.section-heading { align-items: flex-start; display: flex; gap: 15px; margin-bottom: 23px; }
.section-number { color: var(--cv-accent); font-family: Consolas, 'Courier New', monospace; font-size: 11px; padding-top: 4px; }
h2 { font-family: 'Trebuchet MS', 'Segoe UI', sans-serif; font-size: 17px; letter-spacing: -.04em; margin: 0 0 4px; }
.section-heading p { color: var(--muted); font-size: 11px; margin: 0; }
.icon-button { background: var(--accent); border: 0; border-radius: 50%; color: var(--canvas); font-size: 20px; height: 32px; line-height: 1; margin-left: auto; min-height: 32px; min-width: 32px; width: 32px; }
.form-grid { display: grid; gap: 19px 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-wide { grid-column: 1 / -1; }
.field > span { color: var(--muted); font-family: Consolas, 'Courier New', monospace; font-size: 10px; text-transform: uppercase; }
.field-hint, .character-count { color: var(--muted); float: right; font-family: 'Segoe UI', Tahoma, sans-serif; font-size: 9px; font-weight: 500; text-transform: none; }
input, textarea { background: rgba(14, 23, 38, .34); border: 1px solid var(--control-border); border-radius: 7px; color: var(--ink); outline: 0; padding: 12px 13px; transition: border .18s, box-shadow .18s; width: 100%; }
input:focus, textarea:focus { border-color: var(--focus-ring); box-shadow: 0 0 0 3px rgba(230, 197, 148, .28); }
input::placeholder, textarea::placeholder { color: var(--muted); }
textarea { line-height: 1.5; resize: vertical; }
.field input, .field textarea, .field select, .paper-size-control select, .filename-control input {
  scroll-margin-bottom: calc(96px + env(safe-area-inset-bottom));
  scroll-margin-top: calc(var(--notice-height, 0px) + var(--topbar-height, 0px) + 12px);
}
.repeat-list { display: flex; flex-direction: column; gap: 14px; }
.repeat-item { background: rgba(14, 23, 38, .2); border: 1px solid var(--control-border); border-radius: 9px; padding: 22px 20px 20px; position: relative; }
.remove-item { background: transparent; border: 0; color: var(--muted); font-size: 20px; line-height: 1; min-height: 32px; min-width: 32px; position: absolute; right: 11px; top: 8px; }
.remove-item:hover { color: var(--focus-ring); }
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}
.preview-panel { background: rgba(14, 23, 38, .68); border-left: 1px solid var(--line); min-height: calc(100vh - 65px); padding: 28px clamp(25px, 5vw, 80px); }
.preview-toolbar { align-items: center; color: var(--muted); display: flex; font-family: Consolas, 'Courier New', monospace; font-size: 10px; justify-content: space-between; letter-spacing: .04em; margin-bottom: 18px; text-transform: uppercase; }
.format-label { color: var(--muted); }
.paper-wrap { align-items: flex-start; display: flex; justify-content: center; }
.resume-paper { background: white; border-radius: 4px; box-shadow: 0 22px 70px rgba(0, 0, 0, .36), 0 0 0 1px rgba(0, 0, 0, .12); color: #202522; min-height: 920px; padding: 58px 62px; width: min(100%, 700px); }
.resume-header { border-bottom: 2px solid #1d2522; padding-bottom: 19px; }
.resume-header h2 { font-family: 'Trebuchet MS', 'Segoe UI', sans-serif; font-size: 29px; letter-spacing: -.06em; margin: 0 0 4px; }
.resume-title, .resume-section > h3, .entry-date { font-family: Consolas, 'Courier New', monospace; }
.resume-title { color: #56615c; font-size: 9px; letter-spacing: .04em; text-transform: uppercase; }
.resume-contact { color: #5d6863; display: flex; flex-wrap: wrap; font-size: 9px; gap: 7px 13px; margin-top: 13px; }
.resume-contact span:not(:last-child)::after { color: #b1b9b5; content: '·'; margin-left: 13px; }
.resume-section { margin-top: 23px; }
.resume-section > h3 { border-bottom: 1px solid #cad0cc; font-size: 9px; letter-spacing: .08em; margin: 0 0 12px; padding-bottom: 5px; text-transform: uppercase; }
.resume-entry { margin: 0 0 15px; }
.resume-entry:last-child { margin-bottom: 0; }
.entry-top { align-items: baseline; display: flex; justify-content: space-between; }
.entry-role { font-size: 11px; font-weight: 800; }
.entry-date { color: #65716b; font-size: 8px; }
.entry-company, .skills-line { color: #46514c; font-size: 9px; line-height: 1.55; }
.entry-company { color: #65716b; margin-top: 2px; }
.entry-bullets { color: #46514c; font-size: 9px; line-height: 1.55; margin: 6px 0 0; padding-left: 14px; }
.entry-bullets li { margin-bottom: 3px; }
.preview-text-compact .entry-bullets,
.preview-text-compact .skills-line { font-size: 7.7px; }
.preview-text-compact .entry-role { font-size: 10px; }
.preview-text-compact .entry-company { font-size: 7.7px; }
.preview-text-compact .entry-date { font-size: 7.2px; }
.preview-text-compact .resume-section > h3 { font-size: 7.8px; }
.preview-text-standard .entry-bullets,
.preview-text-standard .skills-line { font-size: 9px; }
.preview-text-standard .entry-role { font-size: 11px; }
.preview-text-standard .entry-company { font-size: 9px; }
.preview-text-standard .entry-date { font-size: 8px; }
.preview-text-standard .resume-section > h3 { font-size: 9px; }
.preview-text-large .entry-bullets,
.preview-text-large .skills-line { font-size: 10.3px; }
.preview-text-large .entry-role { font-size: 12.5px; }
.preview-text-large .entry-company { font-size: 9.9px; }
.preview-text-large .entry-date { font-size: 9.2px; }
.preview-text-large .resume-section > h3 { font-size: 9.8px; }
.empty-preview { color: #a2aaa6; font-size: 12px; line-height: 1.6; padding: 60px 0; text-align: center; }
.mobile-view-nav { display: none; }

@page { size: letter; margin: .42in; }
@page a4 { size: A4; margin: .42in; }
html.page-a4 { page: a4; }
html.page-letter { page: letter; }
@media print {
  .launch-screen, .topbar, .editor-panel, .preview-toolbar, .mobile-view-nav { display: none !important; }
  .preview-panel { display: block !important; }
  html, body, .workspace, .preview-panel, .paper-wrap, .resume-paper { background: #fff !important; background-image: none !important; color: #202522 !important; }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; text-rendering: optimizeLegibility; }
  .workspace, .preview-panel { display: block; min-height: 0 !important; padding: 0 !important; }
  .paper-wrap { display: block !important; }
  .resume-paper { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; margin: 0 !important; min-height: 0; padding: 0; width: 100%; }
  .resume-header, .resume-section, .resume-entry { break-inside: avoid; page-break-inside: avoid; }
  .resume-section { margin-top: 15px; }
  .resume-header { padding-bottom: 12px; }
  .resume-header h2 { font-size: 25px; }
  .resume-contact { margin-top: 8px; }
  .resume-section > h3 { margin-bottom: 8px; }
  .resume-entry { margin-bottom: 9px; }
  .entry-bullets { margin-top: 3px; }
}

@media (max-width: 1199px) {
  .topbar { flex-wrap: wrap; gap: 12px; }
  .topbar-actions { flex-wrap: wrap; justify-content: flex-end; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .workspace { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .editor-panel, .preview-panel { padding-left: clamp(20px, 3vw, 36px); padding-right: clamp(20px, 3vw, 36px); }
  .quick-actions { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1023px) {
  .preview-action { display: none; }
  .topbar { padding: 12px 4vw; }
  .topbar-actions { flex: 1 1 70%; }
  .workspace { display: block; min-height: calc(100vh - 65px); }
  .workspace-label { display: none; }
  .editor-panel, .preview-panel { min-width: 0; }
  .editor-panel { padding: 40px clamp(20px, 7vw, 72px) calc(96px + env(safe-area-inset-bottom)); }
  .preview-panel { display: none; }
  .mobile-view-nav {
    align-items: stretch;
    backdrop-filter: blur(16px);
    background: rgba(14, 23, 38, .96);
    border-top: 1px solid var(--line);
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    left: 0;
    padding: 6px 8px max(6px, env(safe-area-inset-bottom));
    position: fixed;
    right: 0;
    z-index: 10;
  }
  .mobile-view-nav button {
    background: transparent;
    border: 0;
    border-radius: 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    min-height: 36px;
  }
  .mobile-view-nav button[aria-pressed="true"] { background: rgba(217, 179, 130, .12); color: var(--accent); }
  .undo-toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .app-shell[data-mobile-view="preview"] .topbar,
  .app-shell[data-mobile-view="preview"] .editor-panel { display: none; }
  .app-shell[data-mobile-view="preview"] .preview-panel {
    border-left: 0;
    display: block;
    min-height: 100vh;
    padding: 20px 12px calc(82px + env(safe-area-inset-bottom));
  }
  .app-shell[data-mobile-view="preview"] .preview-toolbar { flex-wrap: wrap; gap: 8px; }
  .app-shell[data-mobile-view="preview"] .resume-paper { min-height: calc(100vh - 100px); }
  #printButton { display: none; }
}
@media (max-width: 650px) {
  .topbar { align-items: flex-start; flex-direction: column; padding: 12px 16px; }
  .topbar-actions { display: grid; gap: 6px; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .topbar-actions > * { min-width: 0; }
  .save-status { grid-column: 1 / -1; font-size: 10px; margin: 0; }
  .topbar-actions .button { justify-content: center; text-align: center; }
  .preview-action, #printButton { display: none; }
  .more-menu { justify-self: stretch; }
  .quick-actions { grid-template-columns: minmax(0, 1fr); }
  .quick-action { gap: 8px; padding: 12px; }
  .quick-action strong { font-size: 12px; }
  .quick-action small { font-size: 11px; }
  .ats-note { min-width: 0; }
  .ats-note > div { min-width: 0; }
  .ats-tips { margin-bottom: 22px; }
  .editor-panel { padding: 32px 20px calc(96px + env(safe-area-inset-bottom)); }
  .panel-heading { align-items: flex-start; flex-direction: column; gap: 25px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .preview-panel { padding: 22px 12px; }
  .resume-paper { min-height: 700px; padding: 32px 20px; }
  .launch-inner { padding: 34px 22px; }
  .launch-copy { margin: 82px 0 34px; }
  .launch-copy h1 { font-size: 48px; }
  .launch-intro { font-size: 13px; }
  .launch-actions { grid-template-columns: 1fr; }
  .launch-card { min-height: 72px; }
  .data-summary { grid-template-columns: minmax(0, 1fr); }
  .data-summary > div { display: grid; gap: 8px; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); }
  .data-summary dt { margin: 0; }
  .data-dialog-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
}
@media (pointer: coarse) {
  button, select, input, textarea { min-height: 44px; }
  .button, .paper-size-control, .filename-control, .icon-button, .remove-item, .mobile-view-nav button, .about-link { min-height: 44px; }
  .about-link { align-items: center; display: inline-flex; }
  .icon-button, .remove-item { min-width: 44px; }
  .repeat-item { padding-top: 62px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
.about-page { margin: 0 auto; max-width: 720px; overflow-wrap: anywhere; padding: 48px 22px 72px; }
.about-page h1 { font-family: 'Trebuchet MS', 'Segoe UI', sans-serif; font-size: clamp(36px, 8vw, 56px); line-height: 1.05; margin: 0 0 18px; }
.about-page h2 { font-size: 18px; margin: 32px 0 10px; }
.about-page p, .about-page li { font-size: 16px; line-height: 1.55; }
.about-page ul { margin: 0; padding-left: 1.2em; }
.about-page li { margin: 8px 0; }
.about-page code { color: var(--accent); font-family: Consolas, 'Courier New', monospace; }
.about-page .about-link { display: inline-flex; margin-top: 28px; min-height: 44px; align-items: center; }

/* Landing page */
.landing-page { overflow-wrap: anywhere; }
.landing-header,
.landing-main,
.landing-footer {
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
  padding-left: 22px;
  padding-right: 22px;
  width: 100%;
}
.landing-header { padding-top: 28px; }
.landing-brand {
  align-items: center;
  color: var(--ink);
  display: flex;
  font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
  font-size: 16px;
  font-weight: 800;
  gap: 10px;
  margin: 0;
}
.landing-brand b { color: var(--accent); }
.landing-main { padding-bottom: 12px; padding-top: 28px; }
.landing-hero { border-top: 2px solid var(--accent); margin-bottom: 40px; padding-top: 16px; }
.landing-hero h1 { font-size: clamp(32px, 8vw, 56px); line-height: 1.05; margin: 0 0 16px; }
.landing-lead,
.landing-section p,
.landing-steps,
.landing-faq-item p { color: var(--ink); font-size: 16px; line-height: 1.55; }
.landing-lead { margin: 0 0 22px; max-width: 40rem; }
.landing-open {
  display: inline-flex;
  font-size: 16px;
  justify-content: center;
  max-width: 100%;
  min-height: 48px;
  padding: 12px 22px;
  text-decoration: none;
}
.landing-section { border-top: 2px solid var(--accent); margin: 0 0 36px; padding-top: 16px; }
.landing-section h2 { font-size: 22px; margin: 0 0 12px; }
.landing-promises { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.landing-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--control-border);
  border-top: 2px solid var(--accent);
  border-radius: 10px;
  margin: 0;
  min-width: 0;
  padding: 16px;
}
.landing-card h3 { font-size: 16px; margin: 0 0 8px; }
.landing-card p { margin: 0; }
.landing-steps { margin: 0; padding-left: 1.2em; }
.landing-steps li { margin: 8px 0; }
.landing-faq { display: grid; }
.landing-faq-item { border-bottom: 1px solid var(--line); margin: 0; }
.landing-faq-item > summary {
  color: var(--ink);
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  min-height: 44px;
  padding: 10px 0;
}
.landing-faq-item p { margin: 0 0 14px; }
.landing-footer {
  border-top: 0;
  color: var(--ink);
  padding-bottom: 48px;
  padding-top: 22px;
  position: relative;
}
.landing-footer::before {
  background: var(--line);
  content: "";
  height: 1px;
  left: 22px;
  position: absolute;
  right: 22px;
  top: 0;
}
.landing-footer p { font-size: 16px; line-height: 1.55; margin: 0 0 12px; }
.landing-footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.landing-footer a,
.landing-faq-item a { color: var(--accent); font-weight: 700; text-underline-offset: 3px; }
@media (max-width: 720px) {
  .landing-promises { grid-template-columns: minmax(0, 1fr); }
}
@media (pointer: coarse) {
  .landing-page a,
  .landing-page summary { min-height: 44px; }
  .landing-page a { align-items: center; display: inline-flex; }
}
