/* Resume studio: the browsing experience and editor chrome. Document styles
   remain in resume-builder.css so the exported resume stays independent. */
:root {
    color-scheme: light dark;
    --rb-page: #f8f9fc;
    --rb-surface: #fff;
    --rb-surface-soft: #f0f4fb;
    --rb-text: #18243c;
    --rb-muted: #67738a;
    --rb-line: #e2e7ef;
    --rb-brand: #315bdf;
    --rb-brand-dark: #2447b5;
    --rb-green: #23836c;
    --rb-shadow: 0 5px 24px #18243c08;
}
body { background: var(--rb-page); color: var(--rb-text); overflow-x: clip; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid #769aff; outline-offset: 4px; }
button { touch-action: manipulation; }
[id] { scroll-margin-top: 92px; }
.rb-skip-link { position: fixed; top: -80px; left: 16px; z-index: 2000; padding: 14px; background: #fff; color: #18243c; }
.rb-skip-link:focus { top: 12px; }
.rb-topbar { height: 76px; padding: 0 max(32px, calc((100% - 1392px) / 2)); box-shadow: none; background: #ffffffef; backdrop-filter: blur(16px); }
.rb-brand { font-size: 1.12rem; letter-spacing: -.5px; }
.rb-brand img { width: 39px; height: 39px; }
.rb-topbar-center { display: flex; gap: 32px; align-items: center; }
.rb-topbar-center a { font-size: 12px; font-weight: 600; text-decoration: none; color: #657087; }
.rb-topbar-center a:hover { color: var(--rb-brand); }
.rb-topbar-center i { margin-left: 6px; font-size: 10px; }
.rb-back-link { font-size: 12px; border: 1px solid var(--rb-line); border-radius: 7px; padding: 10px 14px; }
.studio-hero { max-width: 1440px; padding: 68px 48px 56px; margin: auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; min-height: 560px; }
.studio-eyebrow { font-size: 10px; font-weight: 800; letter-spacing: 1.7px; color: #536588; display: flex; align-items: center; gap: 8px; margin-bottom: 19px; }
.studio-eyebrow > span { width: 6px; height: 6px; background: #315bdf; border-radius: 50%; }
.studio-hero h1 { font-size: clamp(36px, 3.55vw, 55px); letter-spacing: -2.4px; line-height: 1.16; font-weight: 800; }
.studio-hero h1 em { font-style: normal; color: #315bdf; margin-left: .08em; }
.studio-hero-copy > p { color: var(--rb-muted); font-size: 14px; line-height: 1.9; margin: 23px 0 28px; max-width: 500px; }
.studio-hero-actions { display: flex; align-items: center; gap: 13px; }
.studio-primary, .studio-secondary { min-height: 48px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; gap: 15px; padding: 0 20px; font-size: 12px; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .2s, transform .2s; }
.studio-primary { border: 1px solid #315bdf; background: #315bdf; color: #fff; box-shadow: 0 5px 12px #315bdf22; }
.studio-primary:hover { background: #2447b5; transform: translateY(-2px); }
.studio-secondary { border: 1px solid #dbe2ee; background: #fff; color: #34415a; }
.studio-secondary:hover { background: #f0f4fb; }
.studio-assurances { display: flex; gap: 18px; margin-top: 25px; flex-wrap: wrap; font-size: 10px; color: #788398; }
.studio-assurances i { color: #328775; margin-right: 5px; }
.studio-hero-art { position: relative; height: 410px; display: flex; align-items: center; justify-content: center; isolation: isolate; }
.hero-orbit { position: absolute; z-index: -2; width: 390px; height: 390px; border-radius: 50%; background: #e9effc; border: 32px solid #eff3fc; box-shadow: 0 0 0 24px #f3f5fb; }
.hero-paper { position: absolute; width: 287px; height: 367px; border: 1px solid #e0e5ef; border-radius: 4px; background: white; }
.hero-paper-back { transform: rotate(-10deg) translate(-16px, -3px); background: #e8eef9; border: 1px solid #dce4f4; z-index: -1; }
.hero-paper-front { transform: rotate(5deg); padding: 26px; box-shadow: 9px 18px 35px #273b6620; color: #273653; }
.hero-resume-heading { display: flex; align-items: center; justify-content: space-between; }
.hero-resume-heading strong { display: block; font-size: 17px; letter-spacing: -.7px; }
.hero-resume-heading span { display: block; font-size: 6px; color: #315bdf; letter-spacing: 1.5px; margin-top: 6px; }
.hero-initials { border: 1px solid #b9c9ee; border-radius: 50%; width: 30px; height: 30px; display: grid; place-items: center; font-size: 10px; color: #315bdf; }
.hero-resume-contact { font-size: 5.5px; color: #687895; padding: 12px 0; border-bottom: 2px solid #315bdf; }
.hero-resume-section { margin-top: 15px; }
.hero-resume-section h3 { color: #315bdf; font-size: 6px; letter-spacing: 1px; margin-bottom: 7px; }
.hero-resume-section p { font-size: 6px; line-height: 1.8; color: #778098; }
.hero-resume-section b { font-size: 7px; display: block; margin-bottom: 4px; }
.hero-resume-row { display: flex; justify-content: space-between; font-size: 5px; color: #778098; }
.hero-resume-lines i { display: block; height: 3px; border-radius: 2px; background: #e3e8ef; margin-top: 5px; }
.hero-resume-lines i:last-child { width: 70%; }
.hero-resume-skills { display: flex; gap: 5px; }
.hero-resume-skills span { background: #edf2fc; padding: 4px 6px; font-size: 5px; color: #496298; border-radius: 2px; }
.hero-float { position: absolute; display: flex; align-items: center; gap: 11px; padding: 13px 17px; border-radius: 9px; background: #fff; border: 1px solid #e5eaf2; box-shadow: 0 8px 25px #24385d0b; font-size: 10px; font-weight: 700; }
.hero-float small { display: block; font-weight: 400; color: #8791a4; font-size: 8px; margin-top: 5px; }
.hero-float > span { display: grid; place-items: center; height: 33px; width: 33px; border-radius: 7px; background: #eff2ff; color: #6374cf; font-size: 13px; }
.hero-float-top { top: 31px; right: 0; }
.hero-float-bottom { bottom: 37px; left: -6px; }
.hero-float-bottom > span { background: #eaf6f0; color: #37947a; }
.hero-art-caption { position: absolute; bottom: -12px; font-size: 9px; letter-spacing: .2px; color: #98a1b1; }
.studio-process { max-width: 1344px; margin: 0 auto 65px; padding: 25px 20px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rb-line); border-bottom: 1px solid var(--rb-line); }
.studio-process > div { display: flex; gap: 16px; align-items: center; justify-content: center; padding: 0 20px; }
.studio-process > div + div { border-left: 1px solid var(--rb-line); }
.process-number { font-size: 26px; font-weight: 500; letter-spacing: -1px; color: #b7c2d9; }
.studio-process strong { font-size: 12px; font-weight: 700; }
.studio-process p { font-size: 10px; margin-top: 5px; color: var(--rb-muted); }
.studio-templates, .studio-builder { max-width: 1440px; margin: 0 auto; padding: 0 48px 64px; }
.studio-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 28px; }
.studio-section-heading .studio-eyebrow { margin-bottom: 11px; font-size: 9px; }
.studio-section-heading h2 { font-size: 28px; letter-spacing: -.9px; line-height: 1.3; font-weight: 800; }
.studio-section-heading p { color: var(--rb-muted); font-size: 12px; margin-top: 10px; line-height: 1.7; }
.studio-text-button { color: #47608c; border: 1px solid var(--rb-line); border-radius: 7px; background: white; padding: 11px 15px; font-size: 11px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.studio-text-button i { margin-left: 10px; }
.featured-templates { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 19px; }
.template-card { min-width: 0; border: 1px solid #e0e6ef; border-radius: 10px; background: white; overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s; }
.template-card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px #2538580d; border-color: #aabcea; }
.template-card.selected { border-color: #315bdf; box-shadow: 0 0 0 1px #315bdf; }
.template-preview-button { display: block; position: relative; width: 100%; padding: 21px 24px 0; background: #eef1f6; border: 0; border-bottom: 1px solid #e4e9f1; cursor: pointer; height: 253px; overflow: hidden; text-align: left; color: #25334e; }
.template-card:nth-child(2) .template-preview-button { background: #eaf0ee; }
.template-card:nth-child(3) .template-preview-button { background: #eeeefa; }
.template-card:nth-child(4) .template-preview-button { background: #edf0f8; }
.template-card:nth-child(5) .template-preview-button { background: #f2efeb; }
.template-paper { background: #fff; aspect-ratio: 1 / 1.414; box-shadow: 0 3px 15px #2c3e6515; width: 100%; min-height: 260px; }
.mini-resume { padding: 19px 16px; font-family: Arial, sans-serif; font-size: 5.5px; line-height: 1.6; min-height: 260px; color: #546078; overflow-wrap: anywhere; }
.mini-header { border-bottom: 2px solid var(--template-accent); padding-bottom: 10px; margin-bottom: 10px; }
.mini-name { font-weight: 800; font-size: 13px; letter-spacing: -.4px; color: #26324a; line-height: 1.25; }
.mini-role { color: var(--template-accent); font-size: 6px; margin: 3px 0; }
.mini-contact { font-size: 4.5px; color: #8390a6; }
.mini-section { margin-bottom: 10px; }
.mini-label { font-size: 5px; font-weight: 700; color: var(--template-accent); letter-spacing: .8px; border-bottom: 1px solid #e3e8ef; padding-bottom: 3px; margin-bottom: 5px; text-transform: uppercase; }
.mini-subtitle { font-size: 5.5px; font-weight: 700; color: #324059; }
.mini-line { height: 2px; background: #e3e8ef; margin: 4px 0; width: 100%; }
.mini-line.short { width: 70%; }
.mini-line.medium { width: 85%; }
.mini-tags { display: flex; gap: 3px; flex-wrap: wrap; }
.mini-tags span { font-size: 4.5px; padding: 2px 4px; background: var(--template-soft); color: var(--template-accent); border-radius: 2px; }
.mini-modern .mini-label { background: var(--template-soft); padding: 3px 5px; border-left: 2px solid var(--template-accent); border-bottom: 0; }
.mini-modern .mini-header { border: 0; }
.mini-banner { padding: 0; }
.mini-banner .mini-header { background: var(--template-accent); padding: 20px 16px 13px; }
.mini-banner .mini-name, .mini-banner .mini-role, .mini-banner .mini-contact { color: white; }
.mini-banner .mini-body { padding: 4px 16px; }
.mini-sidebar { display: grid; grid-template-columns: 35% 65%; padding: 0; }
.mini-sidebar-panel { display: block; background: var(--template-accent); padding: 13px 9px; color: white; }
.mini-sidebar-panel .mini-name { font-size: 8px; color: white; letter-spacing: -.2px; overflow-wrap: normal; }
.mini-sidebar-panel .mini-role, .mini-sidebar-panel .mini-contact, .mini-sidebar-panel .mini-label { color: #fff; }
.mini-sidebar-panel .mini-tags span { background: #ffffff26; color: white; }
.mini-sidebar > .mini-body { padding: 19px 12px; }
.mini-avatar { border-radius: 50%; border: 1px solid #ffffff6b; height: 24px; width: 24px; display: grid; place-items: center; margin-bottom: 10px; color: white; }
.mini-minimal { font-family: Georgia, serif; }
.mini-minimal .mini-header { text-align: center; border-bottom: 1px solid #8993a6; }
.mini-minimal .mini-name { font-family: Georgia, serif; font-size: 16px; font-weight: 400; }
.mini-minimal .mini-label { letter-spacing: 1.3px; color: var(--template-accent); }
.template-selected { position: absolute; right: 10px; top: 10px; background: #315bdf; color: #fff; padding: 5px 8px; border-radius: 5px; font-size: 8px; font-weight: 600; }
.template-info { padding: 16px 13px 13px; }
.template-meta { display: flex; flex-wrap: wrap; gap: 7px; justify-content: space-between; align-items: center; }
.template-meta h3 { font-size: 12px; letter-spacing: -.3px; }
.template-tag { font-size: 7px; padding: 3px 5px; background: #edf2fd; color: #506da5; border-radius: 3px; font-weight: 600; }
.template-description { font-size: 9px; color: #7c879b; margin-top: 8px; min-height: 30px; line-height: 1.6; }
.template-colors { display: flex; gap: 4px; margin: 13px 0 15px; flex-wrap: wrap; }
.template-swatch { width: 15px; height: 15px; background: var(--swatch); border-radius: 50%; border: 2px solid #fff; cursor: pointer; padding: 0; box-shadow: 0 0 0 1px transparent; }
.template-swatch[aria-pressed="true"] { box-shadow: 0 0 0 1px var(--swatch); }
.template-swatch:focus-visible { outline-offset: 2px; }
.template-use { display: flex; justify-content: center; align-items: center; gap: 9px; width: 100%; background: #f5f7fc; border: 1px solid #e0e7f4; border-radius: 5px; color: #3d5f9f; padding: 9px 6px; font-size: 10px; font-weight: 700; cursor: pointer; }
.template-use:hover, .template-card.selected .template-use { background: #315bdf; color: #fff; border-color: #315bdf; }
.studio-template-note { display: flex; align-items: center; justify-content: center; gap: 10px; color: #7c879c; font-size: 10px; line-height: 1.7; margin-top: 24px; }
.studio-template-note i { color: #6682bd; font-size: 13px; }
.studio-builder { padding-top: 8px; }
.studio-save-status { font-size: 10px; color: #6e8592; display: flex; align-items: center; gap: 7px; }
.studio-save-status i { color: #36947d; }
.rb-shell { grid-template-columns: minmax(390px, .95fr) minmax(0, 1.05fr); height: 880px; border: 1px solid #dce3ef; border-radius: 12px; box-shadow: 0 8px 30px #24355108; }
.rb-form-panel { padding: 25px; }
.editor-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 9px; letter-spacing: 1.2px; color: #8190a8; margin: 0 0 24px; }
.editor-heading > span:first-child { font-weight: 800; color: #425779; margin-right: auto; }
.rb-reset-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 7px 10px; border: 1px solid var(--rb-line); border-radius: 6px; background: var(--rb-surface); color: var(--rb-text); font-size: 10px; font-weight: 600; letter-spacing: 0; cursor: pointer; }
.rb-reset-btn:hover { background: var(--rb-surface-soft); border-color: var(--rb-muted); }
.rb-steps { margin-bottom: 28px; }
.rb-step { opacity: 1; min-width: 44px; background: transparent; border: 0; font-family: inherit; }
.rb-step-dot { width: 32px; height: 32px; font-size: 11px; border-width: 1px; }
.rb-step.active .rb-step-dot { box-shadow: 0 3px 8px #315bdf26; }
.rb-step span { font-size: 8px; text-transform: none; letter-spacing: 0; }
.rb-step-line { height: 1px; margin: 0 5px 15px; }
.rb-section-header { gap: 10px; margin-bottom: 22px; }
.rb-section-icon { width: 36px; height: 36px; border-radius: 9px; font-size: 13px; background: #edf2fe !important; color: #315bdf; }
.rb-section-header h2 { font-size: 19px; letter-spacing: -.6px; }
.rb-section-header p { font-size: 10px; line-height: 1.7; }
.rb-field-grid { gap: 18px 14px; }
.rb-field label { font-size: 10px; line-height: 1.6; gap: 5px; }
.rb-field input, .rb-field textarea, .rb-field select { border-radius: 6px; font-size: 11px; padding: 11px 12px; background: #fff; color: #26334c; border: 1px solid #dfe5ee; }
.rb-field input::placeholder, .rb-field textarea::placeholder { color: #9ba4b4; }
.rb-field input:focus, .rb-field textarea:focus { border-color: #7c9ceb; box-shadow: 0 0 0 3px #315bdf0b; }
.rb-tip { display: block; font-size: 8px; line-height: 1.6; }
.rb-char-count { font-size: 9px; }
.rb-nav-btns { margin-top: 25px; }
.rb-btn-next, .rb-btn-download, .rb-btn-prev { border-radius: 6px; font-size: 11px; padding: 12px 17px; box-shadow: none; }
.rb-btn-next { background: #315bdf; }
.rb-btn-download { background: #23836c; }
.rb-entry-card { background: #fafbfd; border-radius: 8px; padding: 16px; }
.rb-entry-card-title { font-size: 11px; }
.rb-entry-remove { font-size: 9px; }
.rb-btn-add { font-size: 11px; padding: 12px; border-radius: 6px; }
.rb-ats-hint { font-size: 10px; line-height: 1.8; background: #f1f5fe; }
.rb-extras-toggle { width: 100%; border: 0; text-align: left; font: inherit; font-size: 12px; background: #fff; color: var(--rb-text); }
.rb-extras-content input, .rb-extras-content textarea { font-size: 11px; background: white; color: #26334c; }
.rb-preview-panel { background: #e9eef6; min-width: 0; height: auto; }
.rb-preview-toolbar { padding: 15px; gap: 10px; min-height: 67px; flex-wrap: wrap; }
.rb-preview-label { font-size: 10px; letter-spacing: 0; text-transform: none; color: #52627d; }
.live-dot { width: 6px; height: 6px; background: #38a589; border-radius: 50%; }
.rb-preview-actions { gap: 4px; }
.rb-tpl-btn { font-size: 10px; padding: 7px 9px; min-height: 30px; background: #f5f7fc; border-radius: 5px; color: #526c9b; }
.rb-tpl-count { font-size: 8px; }
.rb-tool-btn { height: 30px; padding: 6px 8px; font-size: 10px; border-radius: 5px; background: white; }
.rb-zoom-val { font-size: 9px; min-width: 30px; }
.rb-dl-btn { background: #315bdf; color: white; border-color: #315bdf; }
.preview-caption { display: flex; justify-content: space-between; gap: 10px; padding: 17px 22px 0; color: #7a88a1; font-size: 9px; }
.preview-caption > span:last-child { font-size: 7px; letter-spacing: 1px; }
.rb-preview-scroll { padding: 20px 24px 26px; overflow: auto; min-height: 0; justify-content: safe center; }
.rb-preview-scale { transform-origin: top left; flex-shrink: 0; }
.resume-page { border-radius: 0; box-shadow: 0 4px 18px #2b416b18; overflow-wrap: anywhere; }
.res-contact { max-width: 44%; }
.res-header .res-name-block { min-width: 0; flex: 1; }
.res-sidebar-photo { display: none; }
.res-main-wrap { padding: 0; }
.res-sidebar-hr { border: 0; border-top: 1px solid #ffffff40; margin: 0 0 19px; }
.res-sidebar-label { color: #ffffffd9; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid #ffffff30; padding-bottom: 7px; margin-bottom: 10px; }
.res-sidebar-section { margin-bottom: 22px; }
.resume-page[class*="tpl-minimal"] .res-title,
.resume-page[class*="tpl-minimal"] .res-section-title { color: var(--tp-p); }
.resume-page[class*="tpl-minimal"] .res-divider { background: var(--tp-p); opacity: .65; }
.resume-page[class*="tpl-banner"] .res-main-wrap { padding: 0 0 40px; }
.resume-page[class*="tpl-banner"] .res-main-wrap > .res-section { margin-left: 46px; margin-right: 46px; }
.resume-page[class*="tpl-banner"] .res-main-wrap > .res-header { margin-bottom: 0; }
.resume-page[class*="tpl-banner"] .res-main-wrap > .res-divider { margin-bottom: 24px; }
.rb-ats-score-card { padding: 17px 21px; }
.rb-ats-score-header { font-size: 11px; }
.rb-ats-score-val { font-size: 12px; }
.rb-ats-bar { background: #315bdf; }
.rb-ats-checks { font-size: 8px; gap: 7px 12px; }
.studio-editor-note { display: flex; justify-content: center; gap: 7px; color: #8390a5; font-size: 9px; line-height: 1.8; padding-top: 18px; }
.studio-footer { max-width: 1344px; margin: auto; padding: 25px 0 30px; border-top: 1px solid var(--rb-line); display: flex; align-items: center; justify-content: space-between; font-size: 10px; color: #8993a7; gap: 20px; }
.studio-footer a { text-decoration: none; color: #5d6c87; font-weight: 600; }
.studio-footer a:first-child { font-size: 14px; color: #273750; }
.rb-brand strong, .studio-footer strong { color: #f2ae1f; }
.studio-footer i { margin-left: 6px; }
.tg-overlay { background: #12223f80; backdrop-filter: blur(6px); padding: 24px; z-index: 1100; }
.tg-modal { background: #f8f9fc; max-width: 1150px; width: 100%; max-height: 90vh; border-radius: 14px; }
.tg-header { padding: 28px 30px 0; align-items: flex-start; }
.tg-header .studio-eyebrow { margin-bottom: 10px; font-size: 9px; }
.tg-header h2 { font-size: 25px; letter-spacing: -.8px; }
.tg-header p { color: var(--rb-muted); font-size: 11px; margin-top: 8px; line-height: 1.7; }
.tg-close { flex-shrink: 0; }
.tg-toolbar { padding: 23px 30px; gap: 14px; }
.tg-filter { font-size: 10px; padding: 8px 12px; border-radius: 6px; }
.tg-filter.active { background: #315bdf; color: white; border-color: #315bdf; }
input.tg-search { padding: 10px 12px; width: 230px; max-width: 100%; border: 1px solid #dbe2ed; border-radius: 6px; color: #293854; font: inherit; font-size: 11px; background: white; }
.tg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: max-content; padding: 2px 30px 28px; gap: 20px; align-items: start; align-content: start; }
.tg-grid .template-preview-button { height: 295px; padding: 24px 38px 0; }
.tg-grid .mini-resume { min-height: 310px; }
.tg-grid .template-info { padding: 17px; }
.tg-grid .template-meta h3 { font-size: 14px; }
.tg-grid .template-description { min-height: 0; }
.tg-no-results { grid-column: 1/-1; padding: 65px 20px; color: #748198; text-align: center; }

/* The interface follows the device preference, including changes made while
   this page is open. Resume paper keeps its print colours in either theme. */
.resume-page, .template-paper, .hero-paper { color-scheme: only light; }
@media screen and (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --rb-page: #0b1220;
        --rb-surface: #121d30;
        --rb-surface-soft: #1c2b44;
        --rb-text: #edf2fc;
        --rb-muted: #a4b1c7;
        --rb-line: #2b3a52;
        --rb-brand: #8aaeff;
        --rb-brand-dark: #b5ccff;
        --rb-green: #6bd5b1;
        --rb-shadow: 0 5px 24px #00000026;
    }

    .rb-topbar { background: #0e1829ef; }
    .rb-topbar-center a, .studio-assurances, .hero-float small,
    .hero-art-caption, .template-description, .studio-template-note,
    .studio-save-status, .editor-heading, .preview-caption,
    .studio-editor-note, .studio-footer, .tg-no-results { color: var(--rb-muted); }
    .studio-eyebrow, .studio-hero h1 em, .studio-template-note i,
    .editor-heading > span:first-child { color: var(--rb-brand); }
    .studio-eyebrow > span { background: var(--rb-brand); }
    .studio-assurances i, .studio-save-status i { color: var(--rb-green); }
    .studio-secondary, .studio-text-button, .template-card, .hero-float,
    .rb-extras-toggle, .rb-tool-btn, .rb-skip-link {
        background: var(--rb-surface);
        color: var(--rb-text);
        border-color: var(--rb-line);
    }
    .studio-secondary:hover, .rb-extras-toggle:hover, .rb-tool-btn:hover {
        background: var(--rb-surface-soft);
    }
    .studio-primary, .rb-btn-next, .rb-dl-btn,
    .template-card.selected .template-use, .template-use:hover,
    .tg-filter.active, .template-selected {
        background: #365edb;
        color: #ffffff;
        border-color: #557eea;
    }
    .studio-primary:hover, .rb-btn-next:hover, .rb-dl-btn:hover { background: #416ce9; }
    .hero-orbit { background: #172b4c; border-color: #13233e; box-shadow: 0 0 0 24px #0e1b30; }
    .hero-paper-back { background: #203758; border-color: #314a70; }
    .hero-paper-front { box-shadow: 9px 18px 35px #00000040; }
    .hero-float { box-shadow: 0 8px 25px #00000026; }
    .hero-float > span { background: #24365b; color: #b4c4ff; }
    .hero-float-bottom > span { background: #173d36; color: #83dbbc; }
    .process-number { color: #8096b8; }
    .studio-process > div + div { border-color: var(--rb-line); }

    .template-card:hover { border-color: #7898d7; box-shadow: 0 12px 26px #00000026; }
    .template-card.selected { border-color: var(--rb-brand); box-shadow: 0 0 0 1px var(--rb-brand); }
    .template-card .template-preview-button { background: #1c2940; border-color: var(--rb-line); }
    .template-card:nth-child(2) .template-preview-button { background: #1c302f; }
    .template-card:nth-child(3) .template-preview-button { background: #27283f; }
    .template-card:nth-child(4) .template-preview-button { background: #202c45; }
    .template-card:nth-child(5) .template-preview-button { background: #2d2b2c; }
    .template-tag { background: #213658; color: #bad0f5; }
    .template-swatch { border-color: var(--rb-surface); }
    .template-use, .rb-tpl-btn { background: #1b2e4a; color: #bdd2fa; border-color: #31486c; }

    .rb-shell, .rb-preview-panel { border-color: var(--rb-line); }
    .rb-shell { box-shadow: 0 8px 30px #00000026; }
    .rb-section-icon { background: #203657 !important; color: var(--rb-brand); }
    .rb-step.active .rb-step-dot { background: #365edb; border-color: #557eea; }
    .rb-step.done .rb-step-dot { background: #216e59; border-color: #3b9b7f; }
    .rb-field input, .rb-field textarea, .rb-field select,
    .rb-extras-content input, .rb-extras-content textarea, input.tg-search {
        background: #0e192b;
        color: var(--rb-text);
        border-color: #35455e;
    }
    .rb-field input::placeholder, .rb-field textarea::placeholder,
    .rb-extras-content input::placeholder, .rb-extras-content textarea::placeholder,
    input.tg-search::placeholder { color: #92a2bb; }
    .rb-field input:focus, .rb-field textarea:focus, .rb-field select:focus,
    .rb-extras-content input:focus, .rb-extras-content textarea:focus, input.tg-search:focus {
        border-color: var(--rb-brand);
        box-shadow: 0 0 0 3px #8aaeff1a;
    }
    .rb-entry-card { background: #101b2e; }
    .rb-ats-hint { background: #1a2d4b; }
    .rb-btn-add:hover { background: #1a2d4b; }
    .rb-preview-panel { background: #091221; }
    .rb-preview-label, .studio-footer a, .studio-footer a:first-child { color: #c2cfe5; }
    .rb-ats-bar { background: #7e9ffc; }
    .rb-ats-checks li:not(.done) i { color: #8394b0; }
    .tg-overlay { background: #030913b3; }
    .tg-modal { background: var(--rb-page); }
}
@media (max-width: 1400px) {
    .studio-hero { padding-top: 48px; min-height: 525px; }
    .studio-hero h1 { font-size: 44px; }
    .studio-process, .studio-footer { margin-left: 48px; margin-right: 48px; }
    .featured-templates { gap: 13px; }
    .template-preview-button { padding: 18px 16px 0; height: 215px; }
    .mini-resume { padding: 16px 12px; font-size: 5px; }
    .mini-name { font-size: 11px; }
    .template-meta h3 { font-size: 10px; }
    .template-colors { gap: 3px; }
    .template-swatch { width: 13px; height: 13px; }
    .template-tag { font-size: 6px; }
    .mini-banner, .mini-sidebar { padding: 0; }
}
@media (max-width: 1100px) {
    .studio-hero { padding: 40px 32px; gap: 15px; }
    .studio-hero h1 { font-size: 38px; letter-spacing: -1.8px; }
    .studio-hero-copy > p { font-size: 12px; }
    .hero-float { padding: 10px; font-size: 9px; }
    .hero-float-top { right: -12px; }
    .studio-assurances { gap: 12px; font-size: 9px; }
    .studio-process, .studio-footer { margin-left: 32px; margin-right: 32px; }
    .studio-templates, .studio-builder { padding-left: 32px; padding-right: 32px; }
    .featured-templates { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
    .template-preview-button { height: 290px; padding: 25px 30px 0; }
    .template-meta h3 { font-size: 12px; }
    .template-tag { font-size: 8px; }
    .template-swatch { width: 17px; height: 17px; }
    .mini-name { font-size: 14px; }
    .mini-resume { font-size: 6px; }
    .rb-shell { grid-template-columns: minmax(340px, 1fr) minmax(0, 1fr); }
    .rb-form-panel { padding: 21px; }
    .rb-preview-actions { gap: 3px; }
    .rb-preview-toolbar { padding: 12px; }
    .rb-preview-label { width: 100%; }
}
@media (max-width: 800px) {
    .rb-topbar { padding: 0 24px; height: 66px; }
    .rb-topbar-center { display: none; }
    .studio-hero { grid-template-columns: 1fr; text-align: center; padding: 42px 24px 30px; }
    .studio-hero-copy .studio-eyebrow, .studio-assurances, .studio-hero-actions { justify-content: center; }
    .studio-hero h1 { font-size: 44px; }
    .studio-hero-copy > p { margin-left: auto; margin-right: auto; }
    .studio-hero-art { width: min(440px, 100%); margin: 25px auto 0; height: 400px; }
    .studio-process { margin: 25px 24px 40px; padding: 20px 0; }
    .studio-process > div { padding: 0 12px; gap: 8px; }
    .studio-process strong { font-size: 10px; }
    .studio-process p { font-size: 9px; }
    .process-number { font-size: 20px; }
    .studio-templates, .studio-builder { padding: 0 24px 42px; }
    .studio-section-heading h2 { font-size: 25px; }
    .featured-templates { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .template-preview-button { height: 300px; }
    .rb-shell { display: grid; grid-template-columns: 1fr; height: auto; overflow: hidden; }
    .rb-form-panel { border-right: 0; padding: 25px; overflow: visible; }
    .rb-preview-panel { height: 740px; border-top: 1px solid var(--rb-line); }
    .rb-preview-label { width: auto; }
    .studio-save-status { font-size: 9px; }
    .studio-builder .studio-section-heading { display: block; }
    .studio-save-status { margin-top: 18px; }
    .rb-preview-toolbar { padding: 14px 20px; }
    .studio-footer { margin: 0 24px; flex-wrap: wrap; }
    .tg-overlay { padding: 15px; }
    .tg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tg-grid .template-preview-button { padding: 20px 25px 0; height: 270px; }
    .tg-modal { border-radius: 12px; max-height: 92vh; }
}
@media (max-width: 520px) {
    .rb-topbar { padding: 0 18px; }
    .rb-brand { font-size: 1rem; }
    .rb-back-link { padding: 8px 9px; font-size: 10px; }
    .rb-brand img { width: 31px; height: 31px; }
    .studio-hero { padding: 36px 20px 15px; }
    .studio-hero h1 { font-size: 36px; letter-spacing: -1.7px; }
    .studio-eyebrow { font-size: 8px; letter-spacing: 1.25px; }
    .studio-hero-copy > p { font-size: 12px; }
    .desktop-break { display: none; }
    .studio-primary, .studio-secondary { gap: 9px; font-size: 10px; padding: 0 14px; }
    .studio-hero-actions { gap: 9px; }
    .studio-assurances { gap: 10px; font-size: 8px; }
    .studio-hero-art { height: 365px; margin-top: 10px; }
    .hero-paper { width: 240px; height: 323px; }
    .hero-paper-front { padding: 23px; }
    .hero-orbit { width: 285px; height: 285px; border-width: 20px; }
    .hero-resume-heading strong { font-size: 14px; }
    .hero-resume-section { margin-top: 12px; }
    .hero-float { gap: 7px; font-size: 8px; padding: 9px 10px; }
    .hero-float > span { height: 26px; width: 26px; font-size: 11px; }
    .hero-float small { font-size: 6px; }
    .hero-float-top { right: -3px; top: 31px; }
    .hero-float-bottom { left: -3px; bottom: 25px; }
    .hero-art-caption { bottom: -8px; font-size: 8px; }
    .studio-process { grid-template-columns: 1fr; margin: 28px 20px 34px; padding: 5px 0; }
    .studio-process > div { justify-content: flex-start; padding: 14px 12px; gap: 17px; }
    .studio-process > div + div { border-left: 0; border-top: 1px solid var(--rb-line); }
    .studio-process strong { font-size: 12px; }
    .studio-process p { font-size: 10px; }
    .studio-templates, .studio-builder { padding: 0 20px 40px; }
    .studio-section-heading { display: block; }
    .studio-section-heading h2 { font-size: 24px; }
    .studio-section-heading p { font-size: 11px; }
    .studio-text-button { margin-top: 17px; }
    .featured-templates { gap: 14px; grid-template-columns: 1fr; }
    .template-preview-button { padding: 25px 50px 0; height: 305px; }
    .template-info { padding: 17px 20px; }
    .template-meta h3 { font-size: 15px; }
    .template-tag { font-size: 9px; }
    .template-description { font-size: 10px; min-height: 0; }
    .template-colors { gap: 7px; margin: 16px 0; }
    .template-swatch { height: 21px; width: 21px; }
    .template-use { padding: 12px; font-size: 12px; }
    .mini-name { font-size: 16px; }
    .mini-resume { padding: 24px 20px; font-size: 7px; }
    .mini-label { font-size: 6px; }
    .mini-section { margin-bottom: 13px; }
    .mini-banner, .mini-sidebar { padding: 0; }
    .studio-template-note { align-items: flex-start; font-size: 9px; }
    .studio-template-note i { margin-top: 4px; }
    .rb-form-panel { padding: 20px 16px; }
    .rb-step span { display: block; font-size: 8px; }
    .rb-field-grid { grid-template-columns: 1fr; }
    .rb-field input, .rb-field textarea { font-size: 16px; }
    .rb-field label { font-size: 11px; }
    .rb-section-header h2 { font-size: 18px; }
    .rb-preview-toolbar { padding: 14px; }
    .rb-tpl-btn { padding: 7px; }
    .rb-preview-scroll { padding: 17px 13px; }
    .rb-preview-panel { height: 650px; }
    .studio-editor-note { font-size: 8px; }
    .studio-footer { margin: 0 20px; gap: 15px; font-size: 9px; }
    .studio-footer > span { width: 100%; order: 3; }
    .tg-overlay { padding: 8px; }
    .tg-header { padding: 22px 17px 0; }
    .tg-header h2 { font-size: 21px; }
    .tg-toolbar { padding: 18px; }
    .tg-filters { gap: 5px; }
    .tg-filter { font-size: 9px; padding: 8px 10px; }
    input.tg-search { width: 100%; }
    .tg-grid { grid-template-columns: 1fr; padding: 3px 18px 20px; }
    .tg-grid .template-preview-button { height: 305px; padding: 25px 45px 0; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
    .studio-hero, .studio-process, .studio-templates, .studio-section-heading, .studio-editor-note, .studio-footer, .preview-caption, .tg-overlay, .rb-skip-link { display: none !important; }
    .studio-builder { padding: 0; max-width: none; }
    .rb-shell { border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
    .rb-preview-frame { width: auto !important; height: auto !important; overflow: visible !important; }
    .rb-preview-scale { width: auto !important; }
    .resume-page { padding: 40px !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
    .resume-page[class*="tpl-sidebar"], .resume-page[class*="tpl-banner"] { padding: 0 !important; }
}
