.resume-page {background:#0e1416;color:#f2f5f4;font-family:var(--sans);min-height:100vh}
.studio-width {width:min(1120px,92%);margin-inline:auto}
.studio-header {border-bottom:1px solid #303a3b}
.studio-header .studio-width {display:flex;align-items:center;justify-content:space-between;padding-block:17px}
.studio-header a:last-child,.text-link {color:#a5ddcf;font-size:.92rem;text-decoration:underline;text-underline-offset:4px}
.studio-intro {padding:clamp(32px,5vw,64px) 0 24px}
.eyeline {font-weight:600;font-size:.78rem;letter-spacing:.13em;text-transform:uppercase;color:#a4d8c9;margin:0 0 9px}
.studio-intro h1 {font:400 clamp(2.9rem,6vw,5.2rem)/1 Georgia,serif;letter-spacing:-.055em;margin-bottom:15px}
.studio-intro>p:last-child,.hint,.report p:not(.eyeline),#draft-info {color:#b9c6c4;line-height:1.55}
.tool-switch {display:flex;gap:4px;padding:4px;border:1px solid #3d4c4b;border-radius:12px;width:fit-content;margin-bottom:24px}
.tool-switch a {padding:8px 17px;color:#c2ccca;border-radius:8px;font-size:.94rem}
.tool-switch [aria-current] {background:#ddf2e9;color:#18332a;font-weight:600}
.tool-grid {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.92fr);gap:clamp(16px,3vw,40px);align-items:start;padding-bottom:64px}
.resume-page [hidden]{display:none!important}
.panel {background:#151e20;border:1px solid #32403f;border-radius:18px;padding:clamp(20px,2.5vw,34px)}
.editor {display:grid;gap:16px}
.tool-grid h2 {font-size:1.55rem;line-height:1.2;letter-spacing:-.035em}
.editor .hint {margin-top:-7px;font-size:.93rem}
.editor label,.editor legend {font-weight:550;font-size:.92rem}
.editor label {display:grid;gap:6px;min-width:0}
.editor :is(input:not([type=radio]),textarea,select) {font:400 1rem/1.4 var(--sans);border:1px solid #50605f;border-radius:8px;background:#101719;color:#f3f6f4;padding:10px 12px;width:100%;min-width:0}
.editor textarea {resize:vertical}
.editor ::placeholder {color:#a0adaa}
.editor select {color-scheme:dark;appearance:none;padding-right:36px;background-image:linear-gradient(45deg, transparent 50%, #abcabd 50%),linear-gradient(135deg,#abcabd 50%, transparent 50%);background-position:calc(100% - 19px) 50%,calc(100% - 13px) 50%;background-size:6px 6px;background-repeat:no-repeat}
.pair {display:grid;grid-template-columns:1fr 1fr;gap:12px}
.commands {display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}
.action,.secondary {padding:11px 15px;border-radius:8px;font-size:.92rem;font-weight:600;justify-self:start}
.action {background:#b9edda;color:#102a21}.action:hover {background:#d3f4e7}
.secondary {border:1px solid #586766;color:#ecf1ef}
.paper-wrap,.report {position:sticky;top:20px}
.paper {background:#fffefa;color:#26352e;min-height:440px;border-radius:3px;padding:clamp(22px,3vw,45px);box-shadow:0 12px 32px #0002;overflow-wrap:anywhere}
.paper h2 {font:400 2.35rem/1.1 Georgia,serif}
.paper header {padding-bottom:20px;border-bottom:2px solid #41594c}
.paper header p {margin-top:5px}.paper .contact {color:#536258;font-size:.92rem}
.paper h3 {font-size:.88rem;text-transform:uppercase;letter-spacing:.08em;margin:22px 0 5px;color:#455a4d}
.paper section p,.paper li {white-space:pre-line;font-size:.95rem;line-height:1.55}.paper ul {padding-left:1.25rem}
.paper .empty-paper {margin-top:23px;color:#68756b}
.editor fieldset {border:0}.editor legend {margin-bottom:7px}.editor .radio {display:inline-flex;align-items:center;gap:7px;margin:0 15px 5px 0}
.editor input[type=radio] {accent-color:#a6ddca}
.report h2 {margin-bottom:16px}.score-total {font:400 3.3rem/1.1 Georgia,serif;color:#b9edda}.score-total small {font:400 1rem var(--sans);color:#b9c6c4}
.criteria {list-style:none;margin-top:16px}.criteria li {border-top:1px solid #364341;padding:13px 0}.criteria li div {display:flex;justify-content:space-between;gap:12px;align-items:baseline}.criteria span {color:#ade4cf;white-space:nowrap}.criteria li p {font-size:.9rem;margin-top:4px}
.error {color:#ffc6b8}.error:empty {display:none}
.resume-page :focus-visible {outline:2px solid #8fdcc1;outline-offset:3px}
.skip-resume {position:absolute;left:12px;top:-90px;padding:8px;background:#111}.skip-resume:focus {top:8px}
@media(max-width:750px){.tool-grid{grid-template-columns:1fr}.paper-wrap,.report{position:static}.paper{min-height:240px}}
@media(max-width:450px){.pair{grid-template-columns:1fr}.tool-switch a{padding-inline:12px}}
@media print{
  @page {margin:17mm}
  .resume-page,.paper {background:white;color:black}
  .resume-page :is(.studio-header,.studio-intro,.tool-switch,.editor,.eyeline,.skip-resume,#score) {display:none!important}
  .resume-page .studio-width,.resume-page #builder,.paper-wrap,.paper {display:block!important;position:static;width:auto;padding:0;margin:0;box-shadow:none}
  .paper {min-height:0}.paper h3 {break-after:avoid}
}

#draft-status:empty {display:none}
#job-context {color:#c3d4cc;margin-bottom:16px}
#job-context .text-link {overflow-wrap:anywhere}
@media print {.resume-page #job-context {display:none}}

@media screen {
  .resume-page { background: #f6f7fb; color: #22253a }
  .studio-header { background: #131523; color: white; border-color: #303240 }
  .studio-header .studio-width { min-height: 64px }
  .studio-header a:last-child { color: #e4e4ef; text-decoration: none }
  .studio-header a:hover { text-decoration: underline }
  .resume-page .panel, .paper { border: 1px solid #d6d9e5; border-radius: 14px; background: white }
  .paper { box-shadow: 0 6px 24px #2325470b }
  .tool-switch { background: #e9eaf2; border-color: transparent }
  .tool-switch a { color: #4e5367 }
  .tool-switch [aria-current] { background: white; color: #483aa7; box-shadow: 0 1px 4px #22253a22 }
  .resume-page :is(.hint,.studio-intro p,.report p:not(.eyeline),#draft-info,#job-context,.score-total small) { color: #555d70 }
  .resume-page :is(.eyeline,.text-link,.criteria span,.score-total) { color: #463999 }
  .editor :is(input:not([type=radio]),textarea,select) { background-color: #fcfcfe; border-color: #b9bfce; color: #22253a; color-scheme: light }
  .editor ::placeholder { color: #687184 }
  .editor select { appearance: auto; background-image: none; padding-right: 12px }
  .editor input[type=radio] { accent-color: #5546ca }
  .resume-page .action { background: #5546ca; color: white }
  .resume-page .action:hover { background: #4739b5 }
  .resume-page .secondary { border-color: #c3c7d6; color: #343a50; background: white }
  .resume-page .secondary:hover { background: #f0eff9 }
  .criteria li { border-color: #d6d9e5 }
  .score-total { font: 650 2.4rem/1.1 var(--sans) }
  .error { color: #9d2833 }
  .resume-page :focus-visible { outline-color: #6654d8 }
  .skip-resume:focus { z-index: 10; color: white }
}

.tool-explainer {margin:18px 0;font-size:.92rem}
.tool-explainer summary {cursor:pointer}
.tool-explainer p {max-width:72ch;line-height:1.55}
@media print { .tool-explainer {display:none} }
