/* The approved prototype supplies visual foundations. These rules bridge real app states. */
:root{--bg:#fff;--surface:#fff;--soft:#f6f8fc;--text:#101a2e;--navy:#071229;--muted:#5f6776;--line:#e7e7eb;--primary:#2457e6;--primary-hover:#1b46c4;--primary-ink:#2457e6;--on-success:#fff;--tint:#e9f0ff;--focus:#1b46c4;--success:#257456;--shadow:none}
body.product{background:var(--bg);color:var(--text);font-family:Arial,Helvetica,sans-serif;line-height:1.5}
.product header.header{border:0;min-height:86px;flex-wrap:nowrap;padding-top:0;padding-bottom:0}
.product .logo span:first-child{color:inherit}.product .logo-dot{color:#2457e6!important}
.product header .searchbox{margin-left:18px;padding:11px 15px;font-size:14px}
.product header input{margin:0;padding:0;background:transparent;color:inherit;min-height:0}
.product header .signin{min-height:44px;white-space:nowrap;display:flex;align-items:center}
.product .nav{flex-direction:row;flex-wrap:nowrap;gap:24px;border-radius:0}
.product .nav a{padding:0;border-radius:0;color:inherit}
.product .nav a[aria-current=page]{background:transparent;color:var(--primary-ink)}
.theme-control{border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--text);width:34px;height:34px;flex-shrink:0;cursor:pointer}
.product .eyebrow{font-size:11px;letter-spacing:1.8px;font-weight:700;line-height:1.5}
.product label{font-size:14px;font-weight:600;margin:18px 0 8px;display:block}
.product input:not([type=checkbox]),.product select,.product textarea{font:inherit;color:var(--text);background:var(--surface);border:1px solid var(--line);border-radius:7px;min-width:0;max-width:100%}

.product .button{background:var(--primary);color:#fff;border:0;border-radius:6px;padding:13px 22px;min-height:44px;font-size:14px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:12px}
.product .subtle{border:1px solid var(--line);background:var(--surface);color:var(--text);padding:9px 14px;border-radius:6px;font:inherit;font-size:14px;min-height:40px}
.product button:disabled{cursor:not-allowed;opacity:.55}
.product :focus-visible{outline:3px solid #5e7ccd;outline-offset:4px}
.product .muted,.product .small{color:var(--muted);font-size:14px;line-height:1.6}
.product .small{font-size:12px}
.product .error{background:#fff0f2;color:#a5233c;border:1px solid #efbdc8;padding:14px;border-radius:8px;overflow-wrap:anywhere}
.product .panel{box-shadow:none;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
.product .hidden{display:none!important}.product .skip{position:fixed;top:-100px;left:16px;padding:12px;background:var(--surface);z-index:100}.product .skip:focus{top:10px}
.product footer{display:flex;flex-wrap:wrap;border-top:1px solid var(--line);gap:16px;padding:32px max(4%,calc((100vw - 1328px)/2));color:var(--muted)}
.product footer p{font-size:13px}.product footer small{font-size:12px}
.product .mobile-nav{flex-direction:row}.product .mobile-nav a{padding:4px;border-radius:0}
.product .home-shell .intro-line .demo-label{letter-spacing:0;text-align:right}
#tool-search{border:1px solid var(--line);border-radius:14px;padding:26px;background:var(--surface);color:var(--text);width:min(540px,calc(100% - 32px));max-height:80vh;overflow:auto}
#tool-search::backdrop{background:#19223466;backdrop-filter:blur(4px)}.search-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.search-heading button{border:0;background:transparent;color:inherit;font-size:28px;min-width:40px}#tool-query{width:100%;padding:12px;margin:8px 0 14px}#tool-results{display:grid;gap:4px}#tool-results a{padding:12px;border-radius:6px;font-size:15px}#tool-results a:hover{background:var(--tint);color:#274fbd}
.product .account-layout{margin-top:50px;margin-bottom:70px}.product .account-story h1{margin:14px 0 24px}.product .account-panel input{width:100%;padding:12px}.product .account-panel details{border-top:1px solid var(--line);padding-top:18px;margin-top:20px}.product .account-panel summary{cursor:pointer;font-size:15px;font-weight:600}.product .account-panel h2{font-size:28px}.product .account-panel #signedin>p>a{margin:15px 0}.product .account-panel #logout{margin-top:20px}
.product .availability-panel{max-width:740px;padding:50px;margin:35px auto 70px;text-align:center}.availability-panel h2{font-size:27px;margin:18px 0 12px}.availability-panel p{font-size:16px;line-height:1.7;color:var(--muted)}.availability-panel .primary{margin-top:25px}.availability-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:24px}
body.product.dark{color-scheme:dark;--bg:#141923;--surface:#1b2230;--soft:#222b3b;--text:#edf1f8;--muted:#b6c0d1;--line:#354158;--tint:#1c2a4a;--primary-ink:#a2b8f7;--on-success:#10291e;--focus:#a2b8f7;background:var(--bg);color:var(--text)}
.dark.product .nav,.dark.product .searchbox,.dark.product .workspace-tabs,.dark.product .next-step,.dark.product .editor-preview{background:var(--soft);color:var(--text);border-color:var(--line)}
.dark.product .page-title p,.dark.product .account-story p,.dark.product .breadcrumb{color:var(--muted)}
.dark.product .page-title h1,.dark.product .next-step h3,.dark.product .account-story h1,.dark.product .hero h1{color:var(--text)}
.dark.product .hero{background:var(--surface);border-color:var(--line)}.dark.product .hero-copy>p,.dark.product .hero .text-action,.dark.product .hero-bottom,.dark.product .hero-caption{color:var(--muted)}
.dark.product .workspace-tabs span,.dark.product .editor-mobile-tabs button[aria-pressed=true]{background:var(--surface)}.dark.product .secondary{background:var(--surface);border-color:var(--line);color:var(--text)}
@media(max-width:1000px){.product header.header{gap:16px;padding:0 24px}.product .header .searchbox{margin-left:0}.product .header .workspace-link{display:none}}
@media(max-width:760px){.product header.header{min-height:70px;height:70px;padding:0 16px;gap:12px}.product header .searchbox{display:none}.product .header .logo{font-size:23px}.product .header .logo-dot{font-size:29px}.product .header .mobile-search{margin-left:auto}.product .header>a[aria-label="Open account"]{display:none}.product .nav{gap:0;padding:0 16px;overflow-x:auto;justify-content:flex-start}.product .nav-left{gap:22px}.product .nav a{font-size:13px;flex-shrink:0}.product .nav-right{display:none}.product .theme-control{width:30px;height:30px}.product .header .signin{padding:8px 12px;font-size:13px}.product .eyebrow{font-size:10px}.product .account-layout{margin:24px auto 40px;padding:0 18px;gap:25px}.product .account-story{padding:0}.product .account-story h1{font-size:38px}.product .account-story p.small{display:none}.product footer{padding:24px 18px 90px}.product .home-shell .demo-label{max-width:155px;font-size:10px}.product .availability-panel{padding:26px 20px}.product .account-panel .button{width:100%}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}


.workspace .live-paper .paper-tag{font-size:10px;letter-spacing:2px}
.workspace .stat-icon{display:flex;align-items:center}
.workspace .file-tile svg{width:25px;height:25px}

.workspace .live-paper p{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:380px){.product header.header{gap:7px;padding:0 12px}.product .header .logo{font-size:21px}.product .header .logo-dot{font-size:26px}.product .header .signin{font-size:12px;padding:8px 10px}}
.dark.product header.header,.dark.product .mobile-nav{background:var(--surface);color:var(--text);border-color:var(--line)}.dark.product .mobile-nav a{color:var(--muted)}.dark.product .mobile-nav a.selected{color:#a2b8f7;background:var(--tint)}.dark.product{--success:#7edeb1}.dark.product .page-title>.secondary{background:var(--surface)}

.template-intro{color:var(--muted);line-height:1.8;margin:20px 0 30px}.template-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;max-width:950px}.template-choice{padding:28px}.template-choice h2{font-size:26px;margin:9px 0}.template-choice>p:not(.eyebrow){line-height:1.7;color:var(--muted);margin-bottom:22px}.template-sample{padding:35px;background:white;color:#263140;border:1px solid #e4e6ec;box-shadow:0 10px 30px #1b243311;margin-bottom:28px;height:350px}.template-sample strong{display:block;font-size:26px}.template-sample span{display:block;font-size:11px;margin:10px 0 22px}.template-sample hr{border:0;border-top:2px solid #24344b;margin:0 0 22px}.template-sample b{display:block;font-size:10px;letter-spacing:1.5px;margin-top:22px}.template-sample i{display:block;height:5px;background:#e1e5eb;margin-top:12px}.template-sample i.short{width:68%}.template-sample.classic{text-align:center;font-family:Georgia,serif}.template-sample.modern{border-top:3px solid #b8324d}.template-sample.modern b{color:#b8324d}.template-sample.modern hr{border-color:#b8324d}@media(max-width:760px){.template-gallery{grid-template-columns:1fr}.template-choice{padding:20px}.template-sample{height:330px;padding:26px}}

/* C0: goal-based entry and progressive controls, preserving the original theme. */
.experience-c0 .hero-actions{flex-wrap:wrap;gap:12px}
.experience-c0 .hero-actions .text-action{flex-basis:100%;justify-content:flex-start}
.experience-c0 .more-tools{position:relative;margin-left:auto;font-size:14px}
.experience-c0 .more-tools>summary{cursor:pointer;padding:14px 12px;min-height:44px}
.experience-c0 .more-tools-menu{position:absolute;right:0;top:100%;z-index:40;min-width:220px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:8px;box-shadow:0 14px 35px #17203420}
.experience-c0 .more-tools-menu a{display:block;padding:12px!important;border-radius:6px}
.experience-c0 .more-tools-menu a:hover{background:var(--tint)}
.experience-c0 .advanced-design{margin-top:14px;border-top:1px solid var(--line)}
.experience-c0 .advanced-design>summary{padding:14px 0;cursor:pointer;font-size:14px;min-height:44px}
.experience-c0 .diagnostic{display:none!important}
.experience-c0 .workspace-selector.hidden{display:none}
.experience-c0 .nav{overflow:visible}
.experience-c0 :is(a,button,summary,select):focus-visible{outline:3px solid var(--red,#3661d9);outline-offset:4px}
@media(max-width:760px){
 .experience-c0.product .nav{display:none}
 .experience-c0 .mobile-nav{grid-template-columns:repeat(5,minmax(0,1fr));padding-bottom:env(safe-area-inset-bottom,0px)}
 .experience-c0 .mobile-nav a{min-height:48px;justify-content:center;font-size:12px}
 .experience-c0 .hero-actions{align-items:stretch}
 .experience-c0 .hero-actions>a{width:100%;justify-content:center!important;text-align:center}
}

/* C1 progressive account setup and recovered work. */
.product #account-access{margin:24px 0;padding:18px 0;border-top:1px solid var(--line)}
.product #account-access summary,.product #other-signin-methods>summary{min-height:44px;cursor:pointer;padding:12px 0;font-weight:600}
.product #account-access li{padding:14px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere;line-height:1.7}
.product #account-access li button{display:block;margin-top:6px}
.product #profile-form{margin:20px 0}.product #profile-form button{margin-top:12px}
.product #link-message{padding:12px;background:var(--tint);border-radius:8px}
.product .continue-journey{margin:18px 0;padding:20px;border:1px solid var(--line);background:var(--surface);border-radius:10px;display:flex;gap:20px;align-items:center;flex-wrap:wrap}
.product .writing-assistant{margin:20px 0;padding:20px;border:1px solid var(--line);border-radius:10px}
.product .writing-assistant p{margin:12px 0;line-height:1.7;overflow-wrap:anywhere}
.product .writing-assistant button{min-height:44px}.product .writing-assistant article{border-top:1px solid var(--line);margin-top:14px;padding-top:12px}
/* C2 optional structure and owned career context */
.product .rich-details{margin-top:16px;padding:14px;border:1px solid var(--line);border-radius:10px}
.product .rich-details summary,.product #rich-profile-fields summary{cursor:pointer;min-height:44px;padding:10px 0}
.product .rich-bullet{margin:12px 0 12px 8px;padding-left:12px;border-left:2px solid var(--line);min-width:0}
.product #career-actions{margin:24px 0}.product #career-actions button{margin:6px 6px 6px 0}
.product #career-actions details{margin-top:16px}.product #career-current a{display:inline-flex;min-height:44px;align-items:center}
.product #career-overview{margin:20px 0}.product.editing #career-overview{display:none}
.product #rich-profile-fields pre{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;font-size:12px;padding:12px;background:var(--soft)}

footer .care-footer{display:flex;gap:18px;flex-wrap:wrap;justify-content:center;width:100%;font-size:13px}

body.dark footer .logo{color:var(--text)}
/* Review 11 P1: the notice inside an employer workspace */
.hq-employer-notice{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin:0 0 16px;padding:12px 16px;border:1px solid #f0d49b;border-radius:10px;background:#fff8ea;color:var(--text)}
.hq-employer-notice p{margin:0;flex:1 1 320px;line-height:1.5}
.hq-employer-notice .secondary{min-height:40px}
body.dark .hq-employer-notice{background:#2c2618;border-color:#5b4a22}
/* Review 11 P2: privacy, terms and page-not-found pages */
.legal-page section{max-width:760px;margin:0 0 30px}.legal-page h2{font-size:22px;margin:0 0 10px}.legal-page ul{padding-left:20px;display:grid;gap:8px;line-height:1.7}
.legal-page a{color:var(--text);text-decoration:underline}.legal-page .legal-links{list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:12px 22px;align-items:center}.legal-page .legal-links .primary{text-decoration:none;color:#fff}
.legal-page .page-title{display:block}.legal-page .page-title h1{margin:8px 0 12px}.legal-page section p,.legal-page section li{color:var(--text)}

/* Review 11 (U2): the fifth phone item, More, opens the same list as the desktop More menu, above the bar. */
.experience-c0 .mobile-more{position:static}
.experience-c0 .mobile-more>summary{list-style:none;display:flex;align-items:center;justify-content:center;min-height:48px;border-radius:8px;font-size:12px;color:var(--muted);cursor:pointer}
.experience-c0 .mobile-more>summary::-webkit-details-marker{display:none}
.experience-c0 .mobile-more[open]>summary{background:#f0f4ff;color:#2c59d5}
.experience-c0 .mobile-more-menu{position:fixed;left:10px;right:10px;bottom:calc(72px + env(safe-area-inset-bottom,0px));display:grid;gap:2px;padding:8px;
 background:var(--surface,#fff);border:1px solid var(--line,#e0e6ef);border-radius:12px;box-shadow:0 12px 32px #1b243326;max-height:60vh;overflow:auto}
.experience-c0 .mobile-more-menu a{min-height:44px;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;padding:0 12px;border-radius:8px;font-size:15px;color:var(--text,#202634)}
.experience-c0 .mobile-more-menu a:hover{background:var(--soft,#f3f6fb)}
body.dark.experience-c0 .mobile-more>summary{color:var(--muted)}
/* Review 11 (U12): the one test-site notice, shown outside production only. */
.site-notice{margin:0;padding:8px 16px;background:var(--soft,#f6f1e8);border-bottom:1px solid var(--line,#e4dccd);font-size:.85rem;text-align:center}
/* Review 11 (A1): the header search is a button styled as the field it replaces; the whole box opens it. */
.product .searchbox{position:relative;color:var(--muted)}
.product .searchbox .searchbox-button{flex:1;min-width:0;margin:0;padding:0;border:0;background:transparent;color:inherit;font:inherit;font-size:14px;text-align:left;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.product .searchbox .searchbox-button::after{content:'';position:absolute;inset:0;border-radius:inherit}
.product .searchbox .searchbox-button:focus-visible{outline:none}
.product .searchbox:has(.searchbox-button:focus-visible){outline:3px solid var(--focus,#1b46c4);outline-offset:2px}

/* Review 11 (ACCE-5, ACCE-6, ACCE-7): text and fills that read at 4.5:1 or better in both themes. --primary is the fill behind
white text; --primary-ink is coral used as text, lighter in dark. */
.product .button:hover{background:var(--primary-hover)}
.dark.product blockquote{color:var(--text);background:var(--soft)}
.product ::placeholder{color:var(--muted);opacity:1}
body.dark.experience-c0 .mobile-more[open]>summary{background:var(--tint);color:var(--primary-ink)}
/* Review 11 (Phase 8): text for screen readers only, such as a page's heading when the page shows its content without one. */
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;border:0!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}
/* Review 11 (ACCE-4): a focused control is never hidden under the sticky header or the phone bar, also after Skip to content. */
html{scroll-padding-top:98px}
@media(max-width:760px){html{scroll-padding-top:82px;scroll-padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))}}
@media(max-width:760px){html:has(body.editing){scroll-padding-bottom:calc(128px + env(safe-area-inset-bottom,0px))}}
html:has(body.document-studio.editing){scroll-padding-top:160px}
/* Review 11 (ACCE-16): phone tap targets of at least 44 px: header buttons, footer and breadcrumb links, and summaries. */
.product .theme-control{width:44px;height:44px}
.product .header .mobile-search{min-width:44px;min-height:44px}
@media(max-width:760px){.product .theme-control{width:44px;height:44px}.product .header .mobile-search{width:44px;min-height:44px}}
.product footer .care-footer{gap:0 18px}
.product footer .care-footer a,.product footer>.logo{display:inline-flex;align-items:center;min-height:44px}
.product .breadcrumb a{display:inline-flex;align-items:center;min-height:44px;margin-block:-12px}
.product summary{min-height:44px;box-sizing:border-box}
/* Review 11 (ACCE-23): in forced colours, the current page, step and state keep a visible mark. */
@media (forced-colors:active){
.nav a[aria-current],.mobile-nav a[aria-current]{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:5px}
.nav a.active:after{forced-color-adjust:none;background:Highlight}
.mobile-nav a[aria-current],.experience-c0 .mobile-more[open]>summary{outline:2px solid Highlight;outline-offset:-2px}
.studio-steps button[aria-current="step"]{border:3px solid Highlight}
.studio-steps button.done .studio-number{border:2px solid CanvasText}
.studio-page .score-ring{forced-color-adjust:none;background:conic-gradient(Highlight 0 var(--deg),Canvas var(--deg) 360deg);border:1px solid CanvasText}
.studio-page .score-ring:before{forced-color-adjust:none;background:Canvas}
.studio-page [data-slot='progress-track']{border:1px solid CanvasText}
.studio-page [data-slot='progress-indicator']{forced-color-adjust:none;background:Highlight}
}
/* The sample resumes are white paper in both themes, so their greys stay fixed; a red link reads as coral ink. */
.product .resume-paper .paper-tag{color:#6f5f67}
.product .red-link{color:var(--primary-ink)}
/* 15 Oct 2026 (the owner's second brief): the approved HireQuanta logo, with a light wordmark in dark mode, and its HQ mark
   where the pages used a decorative star. */
.logo:has(.logo-light){display:inline-flex;align-items:center;line-height:0;gap:0}
.logo .logo-light,.logo .logo-dark{height:36px;width:auto;max-width:none;display:block}
.logo .logo-dark,body.dark .logo .logo-light{display:none}
body.dark .logo .logo-dark{display:block}
footer .logo .logo-light,footer .logo .logo-dark{height:28px}
.hq-mark{width:1em;height:1em;display:inline-block;object-fit:contain;vertical-align:middle}
@media(max-width:760px){.product .header .logo .logo-light,.product .header .logo .logo-dark{height:30px}}
@media(max-width:380px){.product .header .logo .logo-light,.product .header .logo .logo-dark{height:26px}}
/* 15 Oct 2026 (the owner's second brief): the home page is a choice between the two sections. */
.section-choice .choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.choice-card{display:grid;align-content:start;gap:10px;padding:22px;border:1px solid var(--line);border-radius:20px;background:var(--surface);color:var(--text);text-decoration:none;transition:border-color .15s,box-shadow .15s}
.choice-card:hover{border-color:var(--primary);box-shadow:0 10px 30px #2457e614}
.choice-card:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.choice-art{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:14px;background:var(--tint)}
.choice-card .tool-kind{color:var(--primary-ink);font-size:12px;letter-spacing:.08em;font-weight:700}
.choice-card h3{font-size:26px;line-height:1.2;margin:0}
.choice-card p{margin:0;color:var(--muted);line-height:1.55}
.choice-card ul{margin:2px 0 0;padding-left:20px;display:grid;gap:4px;line-height:1.5}
.choice-cta{display:inline-flex;align-items:center;gap:8px;margin-top:6px;color:var(--primary-ink);font-weight:700}
.choice-more{margin:18px 0 0;color:var(--muted)}
.choice-more a{color:var(--primary-ink);text-decoration:underline;text-underline-offset:3px}
@media(max-width:760px){.section-choice .choice-grid{grid-template-columns:1fr}.choice-card h3{font-size:22px}}
/* Prototype greys that read too faintly on the blue tint (the owner's second brief, 15 Oct 2026). */
.upload-zone>p,.upload-zone>small,.or-line{color:var(--muted)}
body.dark .hero-preview .hero-caption{color:#4f5a6e}
