/* Interface WCurriculos. The document/PDF styles stay isolated in resume.css. */
:root {
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --duration-fast: 160ms;
  --duration-enter: 420ms;
}
[hidden] { display: none !important; }
.skip-link { position: fixed; top: 8px; left: 16px; z-index: 1000; padding: 12px 20px; color: #fff; background: #37127d; border-radius: 10px; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--purple); outline-offset: 4px; }
#main-content:focus { outline: none; }

/* Clearer hierarchy and a restrained, shared motion language. */
:root { --surface: #f5f6fa; --ink: #201638; --muted: #625b73; --line: #e3ddec; --shadow-sm: 0 5px 20px rgba(37, 21, 64, .05); --shadow-lg: 0 20px 48px rgba(37, 21, 64, .12); }
html { scroll-padding-top: 150px; }
body { font-size: 1rem; line-height: 1.55; }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; }
button { touch-action: manipulation; }
.button { min-height: 46px; font-size: .9375rem; border-radius: 12px; transition: transform 180ms var(--ease-out), background 180ms, border-color 180ms, box-shadow 180ms; }
.button-small { min-height: 40px; padding: 9px 13px; font-size: .875rem; }
.button-large { min-height: 52px; }
.button-primary { background: #6325d8; box-shadow: 0 6px 16px #6426d922; }
.button:active { transform: translateY(0) scale(.98); }
.button:disabled, .button[aria-disabled="true"] { opacity: .6; cursor: wait; transform: none; }
.text-link, .text-button, .back-link, .small-add { font-size: .875rem; }
.eyebrow, .admin-section-kicker, .card-category { font-size: .75rem; letter-spacing: .1em; }
.status-badge { font-size: .75rem; letter-spacing: .025em; padding: 5px 10px; line-height: 1.4; }
.site-header { background: #fffffffa; backdrop-filter: none; box-shadow: 0 1px 0 #27143e08; }
.brand-mark { background: linear-gradient(140deg, #8348f0, #5820cc); box-shadow: 4px 4px 0 #e2d7fb; }
.site-nav > a { border-radius: 9px; padding: 8px 11px; }
.site-nav > a[aria-current="page"]:not(.button) { color: var(--purple); background: var(--purple-soft); }
.site-nav > a:not(.button):hover { background: #f6f2ff; }
.site-nav { gap: 8px; }
.account-summary-copy strong, .account-dropdown-profile strong { font-size: .875rem; }
.account-summary-copy small, .account-dropdown-profile small { font-size: .75rem; }
.account-summary-copy { min-width: 80px; line-height: 1.4; }
.account-dropdown { width: min(340px, calc(100vw - 32px)); border-radius: 18px; padding: 14px; }
.account-dropdown > a, .account-dropdown .account-share-menu > summary, .account-dropdown .account-logout { min-height: 44px; font-size: .875rem; }
.account-google-note { font-size: .75rem; }
.share-dropdown small, .share-option, .share-wide, .share-feedback { font-size: .75rem; }
.user-avatar { transition: box-shadow 220ms, transform 220ms var(--ease-out); }
.account-menu[open] .user-avatar-header { box-shadow: 0 0 0 3px #b897ff; }
.account-menu[open] > .account-dropdown, .project-actions details[open] .action-menu, .share-menu[open] > .share-dropdown { transform-origin: top right; animation: menu-enter 200ms var(--ease-out); }
.project-card:has(details[open]) { z-index: 5; }
.action-menu { top: calc(100% + 6px); min-width: 175px; border-radius: 13px; }
.action-menu button { min-height: 44px; font-size: .875rem; }
.site-footer p, .footer-links a { font-size: .875rem; }
.site-footer { margin-top: 48px; }

/* Homepage: vivid brand, real model preview, direct path into the editor. */
.hero { min-height: 630px; padding-block: 72px; gap: 56px; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); background: radial-gradient(ellipse at 86% 15%, #d2f9ee 0, transparent 42%), radial-gradient(ellipse at 10% 25%, #eee6ff 0, transparent 60%), #fff; }
.hero::after { width: 330px; height: 330px; right: -200px; top: 35%; background: #d9c0ff; }
.hero h1 { max-width: 850px; font-size: clamp(2.8rem, 5.2vw, 4.65rem); letter-spacing: -.045em; line-height: 1.08; }
.hero h1 span { display: block; }
.hero-copy > p { font-size: 1.0625rem; max-width: 565px; }
.trust-row { font-size: .875rem; gap: 10px 18px; }
.journey-steps { display: flex; gap: 22px; list-style: none; padding: 0; margin: 30px 0 0; color: #665e74; font-size: .875rem; }
.journey-steps li { display: flex; gap: 8px; align-items: center; }
.journey-steps b { font-size: .75rem; font-variant-numeric: tabular-nums; color: var(--purple); }
.hero-preview { width: min(100%, 430px); transform: rotate(2deg); }
.hero-preview .mini-shell { height: 500px; border-radius: 20px; border: 1px solid #d8ccef; box-shadow: 14px 18px 0 #cbb5f34d, var(--shadow-lg); }
.floating-note { font-size: .8125rem; }
.note-one { left: -24px; }
.note-two { right: -16px; }
.logo-strip { gap: 10px; background: #261345; }
.logo-strip span { font-size: .8125rem; }
.section { padding-block: 64px; }
.section-heading h2 { font-size: clamp(1.7rem, 3.4vw, 2.8rem); letter-spacing: -.035em; }
.template-grid-featured { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.template-card { border-radius: 20px; transition: transform 220ms var(--ease-out), box-shadow 220ms, border-color 220ms; }
.template-card:focus-within { border-color: var(--purple); }
.template-card-body { padding: 22px; gap: 18px; }
.template-card-body h3 { font-size: 1.125rem; line-height: 1.4; }
.template-card-body p { font-size: .875rem; line-height: 1.6; min-height: 0; }
.template-card-body .button-soft { border: 1px solid currentColor; }
.template-badge { font-size: .75rem; padding: 6px 10px; }
.card-preview { height: 460px; background: #e9e5f1; }
.card-preview .mini-shell { background: linear-gradient(145deg, #f0edf7, #e2dcec); }
.card-preview .mini-shell .resume-page { top: 20px; }
/* Heavy document subtrees below the fold need not be painted immediately. */
.template-card .card-preview { content-visibility: auto; contain-intrinsic-size: auto 460px; }
.feature-grid article { border-radius: 20px; border: 1px solid var(--line); box-shadow: none; }
.feature-grid p, .auto-fill-card p, .pricing-card p { font-size: 1rem; }
.feature-grid h3 { font-size: 1.0625rem; }
.feature-icon { font-size: 1rem; }
.auto-fill-card { background: linear-gradient(115deg, #32155f, #6328c9); border-radius: 26px; }
.preset-cloud a { font-size: .875rem; padding: 10px 14px; }
.pricing-card { border-radius: 26px; background: #201237; }

/* Collections and useful controls share one alignment system. */
.compact-hero { padding: 46px 24px 32px; background: linear-gradient(160deg, #fff, #f6f1ff); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.15rem); letter-spacing: -.04em; }
.gallery-tools { max-width: 1160px; margin: 24px auto 0; }
.search-field { display: flex; align-items: center; gap: 10px; padding: 4px 16px; border: 1px solid #ccc1df; border-radius: 14px; background: #fff; min-height: 52px; cursor: text; }
.search-field:focus-within { border-color: var(--purple); box-shadow: 0 0 0 3px #6426d914; }
.search-field > span:first-child { color: var(--purple); font-size: 1.6rem; }
.search-field input { min-width: 0; flex: 1; width: 100%; border: 0; border-radius: 0; outline: none; padding: 10px 0; background: transparent; font-size: 1rem; color: var(--ink); }
.search-field input:focus-visible { outline: none; }
.search-key { padding: 3px 8px; border-radius: 6px; background: #f4f0fa; font-size: .75rem; color: #746881; }
.gallery-tools > .search-field { max-width: 630px; margin: auto; }
.filter-row { margin-top: 20px; gap: 8px; }
.filter-button { min-height: 40px; font-size: .875rem; padding: 8px 15px; transition: color 160ms, background 160ms, border-color 160ms; }
.filter-button:hover:not(.active) { border-color: #9a77d8; color: var(--purple); }
.filter-button span { margin-left: 3px; opacity: .75; font-size: .75rem; }
.collection-caption { max-width: 1400px; margin: 0 auto 22px; display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--muted); font-size: .875rem; }
.collection-caption p { margin: 0; }
.gallery-section { padding-top: 28px; }
.filter-empty { max-width: 800px; margin: auto; }
.dashboard-hero { padding-top: 42px; align-items: center; }
.dashboard-hero h1 { font-size: clamp(2rem, 3.7vw, 2.9rem); letter-spacing: -.04em; }
.dashboard-section { border-radius: 22px; padding: 28px; }
.mini-heading h2 { font-size: 1.5rem; }
.mini-heading p { font-size: .875rem; }
.document-toolbar { display: flex; align-items: center; gap: 12px; margin: 4px 0 24px; }
.document-toolbar .search-field { flex: 1; }
.sort-control { font-size: .75rem; color: var(--muted); display: grid; gap: 3px; min-width: 170px; }
.sort-control select { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: #fff; color: var(--ink); font-size: .875rem; }
.resume-project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.project-card { grid-template-columns: 86px minmax(0, 1fr); padding: 20px; border-radius: 17px; gap: 16px; transition: border-color 180ms, box-shadow 180ms; }
.project-paper { width: 86px; height: 120px; border-radius: 3px; }
.project-info h3 { white-space: normal; overflow-wrap: anywhere; font-size: 1rem; line-height: 1.45; }
.project-info p { font-size: .75rem; }
.project-template-name { display: block; margin-top: 8px; color: #6a597d; font-size: .75rem; }
.project-actions { flex-wrap: wrap; }
.project-actions summary { padding: 8px 12px; min-width: 44px; min-height: 40px; border-radius: 8px; background: #f8f5fc; }
.project-actions .button { flex: 1; }
.continue-card { max-width: 1268px; margin: 0 auto 24px; padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #281446; color: #fff; border: 1px solid #3f2067; border-radius: 20px; }
.continue-card > div { min-width: 0; }
.continue-card small { color: #cbb8ea; font-size: .75rem; }
.continue-card strong { display: block; font-size: 1.125rem; overflow-wrap: anywhere; }
.continue-card .button { flex-shrink: 0; }
.empty-state { border-width: 1px; background: #fcfbfe; }
.empty-state p { font-size: 1rem; }
.download-card { border-radius: 20px; }
.download-info { min-width: 0; }
.download-info h2 { overflow-wrap: anywhere; }
.download-info p, .download-info small { font-size: .875rem; }
.download-countdown { display: block; margin-top: 8px; color: #176644; font-size: .875rem; font-weight: 700; }
.download-countdown.expiring { color: #945900; }
.download-countdown.expired { color: #a12546; }
.payment-history-list article strong { white-space: normal; overflow-wrap: anywhere; }
.payment-history-list article small, .pending-row small { font-size: .8125rem; }
.pending-row > div { flex: 1 1 280px; min-width: 0; padding: 20px; }
.pending-actions { gap: 10px; }
.download-card, .payment-history-list article, .start-step, .auth-card { transition: border-color 180ms, box-shadow 180ms; }

/* Account, forms, settings and checkout. */
.account-shell { max-width: 1200px; }
.account-grid { gap: 24px; }
.account-identity-card { background: linear-gradient(150deg, #271341, #6025c9); }
.account-details dt { font-size: .75rem; color: #d3c4ec; }
.account-details dd, .account-identity-card > p, .account-password-card > p, .account-email-copy p { font-size: .875rem; }
.google-connected-badge, .password-account-badge { font-size: .75rem; }
.profile-shortcuts { display: grid; width: 100%; gap: 5px; margin-top: 20px; z-index: 1; }
.profile-shortcuts a { padding: 9px 12px; display: flex; justify-content: space-between; color: #fff; background: #ffffff12; border-radius: 9px; text-decoration: none; font-size: .875rem; }
.profile-shortcuts a:hover { background: #ffffff24; }
.account-password-card, .account-email-card { box-shadow: var(--shadow-sm); }
.email-preference-option strong { font-size: .9375rem; }
.email-preference-option small, .transactional-email-note, .motion-preference small { font-size: .8125rem; }
.motion-preference { display: grid; gap: 10px; }
.motion-preference label { font-size: .875rem; font-weight: 700; }
.motion-preference select { padding: 13px; color: var(--ink); background: #fff; border: 1px solid #cfc2e2; border-radius: 11px; width: 100%; font-size: 1rem; }
.motion-preference small { color: var(--muted); }
.auth-aside { background: linear-gradient(155deg, #2e1357, #6426d9); }
.register-aside { background: linear-gradient(155deg, #113d44, #177a72); }
.auth-card { box-shadow: 0 14px 50px #25154012; }
.auth-heading p, .auth-switch, .auth-help, .form-between { font-size: .875rem; }
.stack-form label, .start-form label, .proof-form label, .promotion-form label { font-size: .875rem; }
.stack-form input, .stack-form select, .stack-form textarea, .start-form input, .proof-form input { font-size: 1rem; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 78px; }
.password-toggle { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); border: 0; background: #f4f0fb; color: var(--purple); min-height: 36px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: .75rem; }
.field-help { margin: 5px 0 0; font-size: .8125rem; color: var(--muted); font-weight: 500; }
.field-help[data-valid="false"] { color: #b12642; }
.field-help[data-valid="true"] { color: #13714b; }
.choice-card b { font-size: .875rem; }
.choice-card small { font-size: .75rem; }
.choice-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.start-step { padding: 28px; }
.step-content > p, .start-submit p { font-size: .9375rem; }
.start-submit { border: 1px solid var(--line); background: #fff; border-radius: 18px; }
.selection-summary { color: var(--ink); }
.checkout-shell { gap: 24px; }
.checkout-main h1 { font-size: clamp(2rem, 3.5vw, 2.7rem); }
.order-summary { border-radius: 22px; }
.checkout-main small, .order-summary small, .checkout-steps small { font-size: .8125rem; }
.checkout-steps p, .order-summary li { font-size: .875rem; }

/* Admin sections remain accessible while moving through a long dashboard. */
.admin-section-nav { max-width: 1272px; margin: 0 auto 24px; padding: 9px; display: flex; gap: 4px; overflow-x: auto; position: sticky; top: 74px; z-index: 30; border: 1px solid var(--line); border-radius: 14px; background: #fffffff5; box-shadow: var(--shadow-sm); scrollbar-width: thin; }
.admin-section-nav a { white-space: nowrap; padding: 10px 16px; border-radius: 9px; text-decoration: none; font-size: .875rem; }
.admin-section-nav a:hover, .admin-section-nav a[aria-current="location"] { background: var(--purple-soft); color: var(--purple); }
.admin-page .dashboard-section { scroll-margin-top: 0; }
.admin-stats article { border-radius: 17px; box-shadow: var(--shadow-sm); }
.admin-stats strong { font-variant-numeric: tabular-nums; }
.admin-stats span, .admin-stats small { font-size: .8125rem; }
.admin-table-wrap { scrollbar-width: thin; border-radius: 12px; }
.admin-table { font-size: .875rem; }
.admin-table th { font-size: .75rem; padding: 14px; color: #56476b; }
.admin-table td { padding: 16px 14px; }
.admin-table small, .record-count, .email-details dd, .promotion-form small, .marketing-consent { font-size: .75rem !important; }
.admin-table tbody tr { transition: background 160ms; }
.admin-table tbody tr:hover { background: #f8f5ff; }
.table-filter { max-width: 450px; margin-bottom: 14px; }
.table-filter input { font-size: .875rem; }
.table-filter-hint { font-size: .75rem; color: var(--muted); margin: 0 0 14px; }
.promotion-form input, .promotion-form textarea, .price-form input { font-size: 1rem; }
.promotion-heading p, .email-manager p, .price-manager p { font-size: .9375rem; }
.receipt-details dt, .receipt-header > div span { font-size: .8125rem; }
.receipt-details dd, .receipt-confirmation p { font-size: .9375rem; }

/* Editor: stable split view, visible save status, comfortable touch targets. */
.editor-topbar { min-height: 78px; height: auto; grid-template-columns: auto minmax(140px, 1fr) auto auto; gap: 16px; padding: 14px 20px; }
.document-title-input { min-width: 0; font-size: 1rem; }
.save-state { font-size: .8125rem; display: flex; flex-wrap: wrap; }
.save-state-wrap { display: flex; align-items: center; justify-content: end; gap: 10px; flex-wrap: wrap; }
.save-retry { color: #e1d2ff; border: 1px solid #7c62a2; background: transparent; border-radius: 8px; padding: 7px 10px; font-size: .75rem; cursor: pointer; }
.save-retry:disabled { opacity: .6; cursor: wait; }
.editor-workspace { height: calc(100dvh - var(--editor-bar-height, 84px)); min-height: 0; grid-template-columns: minmax(390px, 43%) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.editor-panel { min-height: 0; scrollbar-width: thin; scrollbar-gutter: stable; }
.editor-tab { min-height: 54px; font-size: .875rem; color: #5c526e; transition: background 160ms, border-color 160ms; }
.editor-tab.active { background: #f6f1ff; }
.editor-pane { padding: 24px 26px 60px; }
.panel-heading p, .repeater-heading p { font-size: .875rem; }
.field-grid label, .editor-pane > label, .repeater-card label { font-size: .875rem; }
.editor-pane input:not([type="checkbox"]):not([type="radio"]), .editor-pane textarea, .editor-pane select { font-size: 1rem; }
.editor-pane input:not([type="range"]):not([type="color"]):not([type="checkbox"]):not([type="file"]), .editor-pane select { min-height: 46px; }
.photo-control p, .photo-upload-status, .helper-box p, .helper-box b { font-size: .8125rem; }
.photo-control { grid-template-columns: 76px minmax(0, 1fr); gap: 16px; }
.photo-preview { width: 70px; height: 70px; }
.file-button { position: relative; }
.file-button input { display: block; position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-button:focus-within { outline: 2px solid var(--purple); outline-offset: 3px; }
.repeater-card-head b, .section-order b { font-size: .875rem; }
.repeater-card-head button { font-size: .8125rem; min-height: 36px; }
.model-option { min-width: 0; padding: 12px; }
.model-option b { font-size: .875rem; }
.model-option small { font-size: .75rem; }
.model-option.active { border-color: var(--purple); box-shadow: inset 0 0 0 1px var(--purple); }
.section-order button { min-width: 36px; min-height: 36px; }
.preview-panel { min-height: 0; overflow: hidden; grid-template-rows: minmax(54px, auto) minmax(0, 1fr); background: #e9e5f0; }
.preview-toolbar { background: #f7f5fb; }
.preview-toolbar > div:first-child { flex-wrap: wrap; gap: 3px 10px; }
.preview-toolbar b { font-size: .875rem; }
.preview-toolbar span { font-size: .75rem; }
.zoom-controls button { min-width: 36px; width: auto; padding: 4px 8px; height: 36px; }
.zoom-controls #zoom-label { font-size: .75rem; }
.preview-scroll { min-width: 0; min-height: 0; padding: 24px; position: relative; overflow: auto; scrollbar-gutter: stable; scrollbar-color: #8b70b0 #e9e5f0; }
.preview-scroll:focus-visible { outline: 2px solid var(--purple); outline-offset: -3px; }
.iframe-wrap { position: relative; transform: none; margin: 0 auto; transition: none; overflow: hidden; background: #fff; box-shadow: 0 16px 45px #1c142a30; }
/* A read-only document must not capture wheel/touch gestures intended for its viewport. */
.iframe-wrap iframe { position: absolute; top: 0; left: 0; transform-origin: top left; pointer-events: none; box-shadow: none; }
.preview-panel[data-loading="true"] .preview-toolbar { box-shadow: inset 0 -2px 0 #a881ee; }
.editor-progress { padding: 14px 20px; background: #fcfbff; border-bottom: 1px solid var(--line); }
.editor-progress > div { display: flex; justify-content: space-between; gap: 16px; font-size: .8125rem; }
.editor-progress progress { width: 100%; height: 6px; display: block; margin: 9px 0 6px; border: 0; border-radius: 6px; overflow: hidden; accent-color: var(--purple); }
.editor-progress progress::-webkit-progress-bar { background: #eae1f7; }
.editor-progress progress::-webkit-progress-value { background: var(--purple); transition: width 220ms; }
.editor-progress small { color: var(--muted); font-size: .75rem; }
.mobile-preview-link { display: none; }

/* Feedback never claims a completed operation while a request is pending. */
.is-submitting { cursor: progress; }
.button.is-loading::after { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: wc-spin 700ms linear infinite; flex: none; }
.toast-region { position: fixed; bottom: 24px; right: 24px; z-index: 300; display: grid; gap: 10px; max-width: min(400px, calc(100vw - 32px)); pointer-events: none; }
.toast { display: flex; gap: 16px; align-items: center; padding: 14px 18px; background: #25143d; color: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); font-size: .875rem; pointer-events: auto; animation: menu-enter 220ms var(--ease-out); }
.toast button { border: 0; background: transparent; color: inherit; cursor: pointer; min-width: 32px; min-height: 32px; font-size: 1.25rem; }
.flash { font-size: .9375rem; animation: menu-enter 220ms var(--ease-out); }
.confirm-dialog { padding: 30px; width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; border: 1px solid var(--line); border-radius: 23px; box-shadow: 0 30px 100px #180c4655; color: var(--ink); }
.confirm-dialog::backdrop { background: #160f2b99; }
.confirm-dialog[open] { animation: dialog-enter 220ms var(--ease-out); }
.confirm-dialog h2 { margin: 18px 0 10px; font-size: 1.5rem; }
.confirm-dialog p { color: var(--muted); font-size: 1rem; line-height: 1.7; }
.dialog-symbol { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: #fff0d6; color: #996111; font-weight: 800; font-size: 1.25rem; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@keyframes menu-enter { from { opacity: 0; transform: translateY(-7px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes dialog-enter { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes wc-spin { to { transform: rotate(360deg); } }
@keyframes pane-enter { from { opacity: .4; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes avatar-enter { from { transform: scale(.86); opacity: .3; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="reduce"]) .editor-pane.active { animation: pane-enter 240ms var(--ease-out); }
  html:not([data-motion="reduce"]) .user-avatar-xl, html:not([data-motion="reduce"]) .user-avatar-dashboard { animation: avatar-enter 480ms var(--ease-out); }
}
@media (hover: hover) and (pointer: fine) {
  .template-card:hover { transform: translateY(-5px); border-color: #c6afef; }
  .project-card:hover { box-shadow: 0 8px 26px #432a7810; border-color: #c6afef; }
  .account-menu > summary:hover .user-avatar { transform: scale(1.06); }
}
@media (max-width: 1200px) {
  .template-grid-featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resume-project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-section, .continue-card, .admin-section-nav { margin-left: 20px; margin-right: 20px; }
  .editor-topbar { gap: 10px; }
}
@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1.2fr) minmax(230px, .8fr); gap: 30px; padding-block: 50px; }
  .hero h1 { font-size: clamp(2.5rem, 5.2vw, 3.6rem); }
  .template-grid:not(.template-grid-featured) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editor-topbar { position: sticky; top: 0; z-index: 45; grid-template-columns: auto minmax(100px, 1fr) auto; }
  .save-state-wrap { grid-row: 2; grid-column: 1/3; justify-content: start; }
  .editor-topbar #checkout-link { grid-row: 1/3; grid-column: 3; }
  .editor-workspace { height: auto; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; }
  .editor-tabs { position: static; }
  .preview-panel { height: 75vh; height: clamp(320px, 75dvh, 850px); min-height: 0; scroll-margin-top: calc(var(--editor-bar-height, 130px) + 12px); }
  .preview-scroll { min-height: 0; }
  .mobile-preview-link { display: inline-flex; padding: 6px 10px; color: #eee0ff; font-size: .75rem; text-decoration: none; }
  .account-email-card { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 1120px) {
  .site-nav { gap: 8px; top: calc(100% + 8px); }
  .site-nav.open { max-height: calc(100dvh - 86px); overflow: auto; animation: menu-enter 200ms var(--ease-out); }
  .site-nav .account-menu { width: 100%; }
  .account-dropdown { width: 100%; position: static; margin-top: 8px; max-height: none; box-shadow: none; }
  .account-summary-copy { flex: 1; }
  .account-summary-copy strong { max-width: none; }
  .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 42px 22px; }
  .hero h1 { font-size: clamp(2.4rem, 8vw, 3.5rem); letter-spacing: -.045em; }
  .hero-preview { display: none; }
  .journey-steps { gap: 20px; }
  .section { padding: 40px 20px; }
  .template-card-body p { display: block; }
  .template-card-body { padding: 18px; }
  .gallery-section { padding-top: 24px; }
  .compact-hero { padding: 34px 20px 24px; }
  .filter-row { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 10px; }
  .filter-button { white-space: nowrap; }
  .dashboard-hero { padding: 30px 20px 24px; }
  .dashboard-section { padding: 20px; }
  .resume-project-grid { grid-template-columns: minmax(0, 1fr); }
  .document-toolbar { flex-wrap: wrap; }
  .document-toolbar .search-field { flex-basis: 100%; }
  .sort-control { grid-template-columns: auto 1fr; align-items: center; width: 100%; }
  .continue-card { flex-direction: column; align-items: stretch; padding: 20px; }
  .account-identity-card { text-align: left; align-items: start; }
  .profile-shortcuts a { padding: 12px; }
  .download-card { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .download-actions { grid-column: 1; }
  .download-actions .button { flex: 1 1 130px; }
  .payment-history-list article > div { grid-template-columns: minmax(0, 1fr); }
  .payment-history-list article small { grid-column: 1; }
  .template-grid, .template-grid:not(.template-grid-featured), .template-grid-featured { grid-template-columns: minmax(0, 1fr); }
  .gallery-tools .search-key { display: none; }
  .editor-pane { padding: 20px 18px 50px; }
  .preview-toolbar { padding: 12px; flex-wrap: wrap; }
  .preview-scroll { padding: 14px; }
  .editor-topbar { padding: 10px 14px; gap: 8px; }
  .editor-topbar .back-link { font-size: .75rem; }
  .editor-topbar .back-link::before { display: none; }
  .editor-topbar #checkout-link { grid-row: 3; grid-column: 1/-1; }
  .document-title-input { grid-row: 1; grid-column: 2/4; font-size: .9375rem; }
  .save-state-wrap { grid-column: 1/-1; justify-content: space-between; }
  .editor-tab { font-size: .8125rem; padding-inline: 4px; }
  .field-grid { grid-template-columns: minmax(0, 1fr); }
  .full-field { grid-column: auto; }
  .editor-workspace { min-height: 0; }
  .preview-panel { scroll-margin-top: 180px; }
  .admin-section-nav { top: 74px; }
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-stats .admin-stat-revenue { grid-column: 1/-1; }
  .auth-aside { min-height: 260px; padding: 32px 22px; }
  .auth-aside h1 { font-size: 2rem; }
  .auth-points { display: none; }
  .auth-card { padding: 26px 22px; }
  .toast-region { bottom: 16px; right: 16px; }
}
@media (max-width: 460px) {
  .choice-grid { grid-template-columns: minmax(0, 1fr); }
  .admin-section-nav { top: 66px; }
  .site-header { gap: 12px; }
  .brand { font-size: 1.0625rem; }
  .photo-control { grid-template-columns: minmax(0, 1fr); }
  .start-step { padding: 20px; }
  .dialog-actions .button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .button:hover, .template-card:hover, .choice-card:hover > .choice-copy { transform: none; }
}
html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html[data-motion="reduce"] .button:hover, html[data-motion="reduce"] .template-card:hover { transform: none; }
@media print {
  .skip-link, .toast-region, .confirm-dialog, .admin-section-nav { display: none !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
