:root{color-scheme:light;--ink:#132b28;--muted:#435b54;--bg:#f3f7ef;--line:#d8e3d8;--pine:#135b4b;--light:#e4efe4;font-family:system-ui,-apple-system,sans-serif;color:var(--ink);background:var(--bg)}
*{box-sizing:border-box}body{margin:0}a{color:var(--pine);text-underline-offset:.2em}button,input,textarea{font:inherit}input,textarea,button{max-width:100%}button,input[type=file]{cursor:pointer}
.frame{width:min(68rem,calc(100% - 2.4rem));margin-inline:auto}.masthead,.footer{min-height:4.1rem;display:flex;align-items:center;justify-content:space-between;gap:1rem;font-size:.9rem}.masthead{border-bottom:1px solid var(--line)}.brand{display:inline-flex;gap:.6rem;align-items:center;text-decoration:none;color:var(--ink);font-weight:800}
.intro{display:grid;grid-template-columns:1.6fr 1fr;align-items:end;gap:2.5rem;padding:clamp(2.6rem,7vw,6rem) .2rem clamp(1.6rem,5vw,4rem)}h1,h2,h3,p{margin:0}h1{font-size:clamp(3.4rem,9vw,7.3rem);letter-spacing:-.065em;line-height:.95;font-weight:800;margin:.48rem 0 1.15rem}h2{font-size:clamp(1.7rem,4vw,2.45rem);line-height:1.13;letter-spacing:-.035em}h3{font-size:1.5rem;letter-spacing:-.02em}p{line-height:1.55}.lede{max-width:42ch;font-size:1.1rem;color:var(--muted)}.eyebrow{color:var(--pine);font-size:.76rem;letter-spacing:.13em;font-weight:800;text-transform:uppercase}
.lock{border-left:3px solid #68a28b;padding:1.05rem;background:var(--light);border-radius:0 .65rem .65rem 0;display:flex;gap:.7rem}.lock svg{width:1.3rem;flex:none;align-self:start;color:var(--pine)}.lock p{font-size:.9rem;color:var(--muted);margin-top:.35rem}
.block{background:white;border:1px solid var(--line);border-radius:1.05rem;padding:clamp(1.15rem,4.5vw,2.55rem);margin-bottom:1rem;box-shadow:0 .4rem 1.8rem #19382a08}.block h2{margin:.4rem 0 .65rem}.block h3{margin:.3rem 0 .5rem}.block p.quiet{margin-top:.6rem}.quiet{color:var(--muted);font-size:.9rem}
.import{display:grid;grid-template-columns:1.65fr 1fr;gap:1.2rem;align-items:center}.import-action .quiet{overflow-wrap:anywhere}.options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.9rem;margin-top:1.15rem}.choice{display:flex;flex-direction:column;align-items:flex-start;gap:.35rem;border:1px solid var(--line);border-radius:.8rem;background:var(--bg);padding:clamp(.9rem,3vw,1.5rem)}.choice-photo{background:#eef0f8;border-color:#dfe2ef}.choice .button{margin-top:auto}.choice input[type=file]{margin:.2rem 0 .65rem}
.button{display:inline-flex;justify-content:center;text-align:center;align-items:center;gap:.5rem;color:white;background:var(--pine);border:1px solid transparent;border-radius:.5rem;padding:.65rem .9rem;min-height:2.8rem;font-weight:750;text-decoration:none;position:relative;cursor:pointer}.button:hover{background:#0c493b}.button.secondary{background:#353970;text-align:center}.button.secondary:hover{background:#262a5d}.choose input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}
:focus-visible,.choose:focus-within{outline:3px solid #137f65;outline-offset:4px}label:not(.button){display:block;font-weight:700;font-size:.88rem;margin:.8rem 0 .3rem}input:not([type=file]),textarea{width:100%;padding:.75rem;border:1px solid #aabad0;border-radius:.55rem;background:#fbfdfc;color:var(--ink)}textarea{resize:vertical;line-height:1.5}.footer{color:var(--muted)}#download-status:not(:empty){margin-top:.8rem;color:var(--pine)}
@media(max-width:680px){.intro,.import{grid-template-columns:1fr;gap:1rem}.intro{padding-top:1.9rem}.frame{width:calc(100% - 1.6rem)}.footer{align-items:flex-start;padding-block:1rem}.choice .button{width:100%}}@media(max-width:435px){.options{grid-template-columns:1fr}h1{font-size:clamp(2.8rem,14vw,4.15rem)}}
.paper-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(12rem,.8fr);gap:1rem;align-items:stretch;margin-top:.45rem}
.live-paper{background:linear-gradient(#fff,#fcfcf7);border:1px solid #d7e4d6;border-top:4px solid #82ad95;padding:clamp(.8rem,2vw,1.25rem);margin:.9rem 0 .2rem;box-shadow:0 .35rem 1rem #293e2820;border-radius:.22rem;overflow:hidden;min-width:0}
.live-paper strong{display:block;margin-top:.8rem;font-size:1.25rem;overflow-wrap:anywhere}
.live-paper #paper-text{white-space:pre-wrap;overflow-wrap:anywhere;color:var(--muted);font-size:.85rem;margin-top:.4rem;line-height:1.45}
@media(max-width:650px){.paper-grid{grid-template-columns:1fr}.live-paper{max-height:12rem;margin-top:0}}

[hidden]{display:none!important}
.resume-list{display:flex;flex-wrap:wrap;gap:.5rem;margin:.95rem 0}
.resume-tab{min-height:2.65rem;max-width:min(100%,24rem);overflow-wrap:anywhere;text-align:left;padding:.45rem .75rem;border:1px solid var(--line);border-radius:.42rem;background:var(--bg);color:var(--ink)}
.resume-tab[aria-pressed=true]{background:var(--pine);border-color:var(--pine);color:#fff}
.resume-tab.error:not([aria-pressed=true]){border-color:#b26956}
.download-privacy{margin-top:1rem;padding:.75rem .9rem;border-left:3px solid #68a28b;background:var(--light);color:var(--ink);font-size:.92rem}
#paper-text{max-height:26rem;overflow:auto}
.resume-picker { position: relative; z-index: 1; }
.resume-picker #resume-file {
  display: block; position: relative; width: 100%; min-height: 48px;
  font-size: 0; color: transparent; cursor: pointer;
}
.resume-picker #resume-file::file-selector-button {
  width: 100%; min-height: 48px; margin: 0; padding: .75rem;
  background: #e6caff; color: #251335; border: 0; border-radius: .5rem;
  font: 700 1rem system-ui, sans-serif; cursor: pointer;
}
.resume-picker .resume-picker-label {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%);
}
.resume-room .cover-art { pointer-events: none; }
@media(max-width:650px){.live-paper{max-height:24rem}#paper-text{max-height:19rem}}

.resume-open:not([hidden]) { display: flex; width: 100%; justify-content: center; min-height: 3.5rem; margin: .65rem auto; font-size: 1.12rem; }
.resume-room #import-status:not(:empty) {
  padding:.65rem .8rem;border-radius:.6rem;border:1px solid #8063a0;
  background:#34234d;color:#f7ecff;font-size:1rem;font-weight:650;overflow-wrap:anywhere;
}
.resume-room .resume-download:not([hidden]) {display:flex;width:100%;justify-content:center;min-height:48px;margin:.65rem auto 0}
.resume-room #review-block {width:min(100%,25rem);margin:.75rem auto 0;padding:0;border:0;background:transparent;box-shadow:none}
.resume-room .copy #review-block {text-align:start}
.resume-room:not(.landing) .import {margin-top:1.5rem}
.resume-room #draft-status:not([hidden]) {margin-block:.5rem}
.resume-room #resume-list:not(:has(> :nth-child(2))) {display:none}
.resume-room #review-block .resume-download:not([hidden]) {min-height:44px;margin-top:.35rem}
.resume-room .cover-letter {display:grid;gap:.5rem;margin-block:1.25rem}
.resume-room .cover-letter textarea {line-height:1.55;resize:vertical}
.resume-room .cover-letter .button {justify-self:start;margin:0}
.resume-visually-hidden {position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* Keep long content from widening the phone layout, including inside the viewer. */
.resume-room main { min-width: 0; }
.resume-room main > *, .resume-room :is(.block,.paper-grid,.paper-fields,.options,.choice,.import-action) { min-width: 0; max-width: 100%; }
.resume-room :is(input[type=file],textarea) { max-width: 100%; }
.resume-room :is(.button,.choice,label,.quiet) { overflow-wrap: anywhere; }
.resume-viewer:not([open]) { display: none; }
.resume-room .resume-viewer {
  position: fixed; inset: 0; width: min(100% - 2rem, 53rem);
  max-width: none; max-height: calc(100% - 2rem);
  min-height: 0; margin: auto; padding: 0;
  overflow: auto; overscroll-behavior: contain;
  color: var(--ink); background: var(--panel, var(--bg));
}
.resume-room .resume-viewer[data-fallback] { z-index: 1000; box-shadow: 0 0 0 100vmax rgba(12, 7, 24, .8); }
.resume-viewer::backdrop { background: rgba(12, 7, 24, .8); }
html:has(.resume-viewer[open]) { overflow: hidden; }
.resume-preview-head {
  position: sticky; inset-block-start: 0; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  gap: .7rem; padding: .85rem clamp(.8rem, 4vw, 1.7rem);
  border-bottom: 1px solid var(--line); background: var(--panel, var(--bg));
}
.resume-preview-head h2 { min-width: 0; font-size: clamp(1.12rem, 4vw, 1.55rem); line-height: 1.2; margin: 0; }
.resume-preview-head .button { min-width: 0; flex: none; min-height: 44px; margin: 0; }
.resume-viewer-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.resume-viewer-options { display: block; }
.resume-preview-body { min-width: 0; padding: clamp(.8rem, 4vw, 1.7rem); }
.new-resume-preview {
  display: block; min-width: 0; padding: clamp(1rem, 5vw, 2.15rem); margin-block: .85rem 1.25rem;
  border: 1px solid #ded5e6; border-radius: .4rem;
  color: #241a31; background: #fffcff; color-scheme: light; text-align: start;
}
#new-resume-text { min-width: 0; font: 400 .95rem/1.55 system-ui, sans-serif; overflow-wrap: anywhere; }
#new-resume-text :is(h3,p) { white-space: pre-wrap; margin: 0; overflow-wrap: anywhere; }
#new-resume-text p:empty { min-height: 1.55em; }
#new-resume-text h3 { margin: 0 0 .65rem; font-size: 1.45rem; line-height: 1.24; }
#new-resume-text h4 { margin: 1rem 0 .22rem; font-size: 1.05rem; color: #4a2869; break-after: avoid; }
#new-resume-text .resume-bullet { padding-inline-start: .9rem; text-indent: -.9rem; }
@media (max-width: 680px) {
  .resume-room .resume-viewer { width: 100%; height: 100%; max-height: none; margin: 0; border: 0; border-radius: 0; }
  .resume-preview-head { align-items: stretch; flex-direction: column; padding-top: max(.85rem, env(safe-area-inset-top)); }
  .resume-preview-body { padding-bottom: max(1rem, env(safe-area-inset-bottom)); }
}
@media print {
  @page { size: A4; margin: 17mm 18mm; }
  html:has(.resume-viewer[open]), body.resume-room { overflow: visible !important; background: #fff !important; }
  .resume-room > :is(header,footer),
  .resume-room:not(.landing) main > :not(.resume-viewer),
  .resume-room.landing main > :not(.masthead),
  .resume-room.landing .masthead > :not(.copy),
  .resume-room.landing .copy > :not(.resume-viewer),
  .resume-room .resume-viewer[open] > :not(.resume-preview-body),
  .resume-room .resume-preview-body > :not(.new-resume-preview) { display: none !important; }
  .resume-room :is(main,.masthead,.copy,.resume-viewer[open],.resume-preview-body,.new-resume-preview) {
    display: block !important; position: static !important; width: auto !important; height: auto !important;
    min-height: 0 !important; max-height: none !important; max-width: none !important; overflow: visible !important;
    margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
    background: #fff !important; color: #231a2d !important; text-align: start !important;
  }
  .resume-viewer::backdrop { display: none !important; }
  #new-resume-text { font: 10.5pt/1.5 system-ui, sans-serif; }
  #new-resume-text h3 { font-size: 26pt; color: #3b2055; border-bottom: 2px solid #6a3f86; padding-bottom: 8pt; margin-bottom: 10pt; }
  #new-resume-text h4 { font-size: 12pt; margin-block: 12pt 3pt; }
  #new-resume-text p { orphans: 2; widows: 2; }
}

#new-resume-text h5 { margin: .9rem 0 .3rem; font: 700 1em/1.4 Arial,sans-serif; break-after: avoid; }
#new-resume-text h4 { margin-top: 1.25em; padding-top: .55em; border-top: 1px solid #dcd5df; }
#new-resume-text .resume-bullet { margin-block: .32em; }
#new-resume-text .ResumeContact { font-size: .92em; color: #494050; }
@media screen and (max-width: 680px) {
  .resume-room .resume-viewer .resume-preview-head { position: static; }
  .resume-room .resume-preview-body { padding-inline: .65rem; }
  .new-resume-preview { padding: 1rem; }
}
#close-resume-bottom {display:block;width:100%;min-height:48px;margin-top:1rem;}

.android-picker-help {margin-top:.45rem;font-size:.9rem;text-align:start;overflow-wrap:anywhere}
.android-picker-help summary {cursor:pointer;min-height:44px;display:list-item;line-height:44px}
.android-picker-help p {margin:0 0 .4rem;line-height:1.45}
.android-picker-help a {display:block;padding:.55rem 0;text-underline-offset:.2em}
.android-picker-help button {min-height:44px;margin-top:.35rem}
