:root{color-scheme:dark;background:#1b211f;color:#f6f1e8;font:16px/1.6 system-ui,sans-serif;--gold:#e9c989}
*{box-sizing:border-box}
body{margin:0}
header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #424b46;padding:1rem max(5vw,1rem)}
header>a{font-weight:800;letter-spacing:.12em;text-decoration:none}
header span{color:#c6ccc8}
main{max-width:62rem;margin:auto;padding:3rem 1rem 5rem}
h1,h2{font-family:Georgia,serif;line-height:1.15}
h1{font-size:clamp(2.4rem,7vw,4rem);margin:.25rem 0 1rem}
.eyebrow{color:var(--gold);text-transform:uppercase;letter-spacing:.17em;font-size:.75rem;font-weight:800}
article{background:#272e2b;border:1px solid #444e49;border-radius:1.2rem;padding:clamp(1rem,4vw,2rem);margin:1rem 0}
label{display:block;margin:0 0 1rem;font-weight:650}
input,textarea,select{display:block;width:100%;margin-top:.35rem;background:#171d1a;color:inherit;border:1px solid #626d67;border-radius:.5rem;padding:.7rem;font:inherit}
textarea{min-height:7rem;resize:vertical}
button{background:var(--gold);color:#181c19;border:0;border-radius:.5rem;padding:.55rem .8rem;font:inherit;font-weight:700;cursor:pointer}
a{color:var(--gold)}
:focus-visible{outline:2px solid white;outline-offset:3px}
.actions,.plans{display:flex;gap:.75rem;flex-wrap:wrap;align-items:center}
.plans article{flex:1 1 16rem}
.prose{white-space:pre-wrap;overflow-wrap:anywhere}
.notice{border-left:4px solid var(--gold);padding:.5rem 1rem;background:#30382f}
:root{color-scheme:light;background:#f7f3ea;color:#172944;--gold:#8a601c}
header{background:#142942;color:#fff}header a,header span{color:#fff}
article,.profile-group{background:#fff;border:1px solid #ded6c7}
input,textarea,select{background:#fff;color:#172944;border-color:#a49b8a}
input[type=checkbox]{display:inline;width:auto}
button{background:#ead098;color:#172944}
.notice{background:#f0e7d3}
.profile-group{border-radius:.75rem;padding:1rem;margin:.75rem 0}
summary{font-weight:750;cursor:pointer}
fieldset{border:1px solid #ded6c7;border-radius:.6rem;margin:1rem 0}
.cover{background:#142942;color:#fff;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:2rem}
.cover>div{flex:1 1 19rem}.cover .eyebrow{color:#ead098}
.portrait{width:10rem;aspect-ratio:1;object-fit:cover;border-radius:1rem}
nav a{display:inline-block;margin:.25rem .6rem .25rem 0}
form+form{margin-top:1rem}
:focus-visible{outline-color:#92661e}
.profile-intro{display:flex;justify-content:space-between;align-items:center;gap:1.5rem;flex-wrap:wrap}
.profile-intro>div{flex:1 1 25rem}
.button-link{display:inline-block;padding:.6rem .9rem;border-radius:.5rem;background:#ead098;color:#172944;font-weight:750;text-decoration:none}
.entry-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.profile-group>p{color:#596777;margin:.75rem 0}
.profile-group[open]{padding-bottom:1.25rem}
.profile-group summary{font-size:1.15rem;padding:.25rem}
.experience-entry,.qualification-entry{background:#fff;border-color:#d9d1c4;padding:1rem}
.experience-entry legend,.qualification-entry legend{font-family:Georgia,serif;font-size:1.15rem;font-weight:700;padding:0 .4rem}
.cv-sheet{background:#fff;border:1px solid #ded6c7;border-radius:1rem;padding:clamp(1.25rem,5vw,3.25rem);box-shadow:0 8px 30px #17294412}
.cv-heading{display:flex;align-items:center;gap:2rem;border-bottom:2px solid #ead098;padding:0 0 1.5rem;margin-bottom:1.5rem}
.cv-sheet .cv-heading{background:transparent;color:#172944;border-bottom:2px solid #ead098;padding:0 0 1.5rem;margin:0 0 1.5rem;justify-content:flex-start}
.cv-heading>div:last-child{flex:1}
.cv-heading h1{color:#142942;margin:.2rem 0 .75rem}
.cv-portrait{width:8rem;border-radius:50%}
.cv-section{margin:2rem 0}
.cv-section>h2{color:#142942;border-bottom:1px solid #d9d1c4;padding-bottom:.45rem}
.cv-entry{margin:1rem 0;padding:1rem 0;border:0;border-bottom:1px solid #e6e0d5;border-radius:0;box-shadow:none}
.cv-entry-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}
.cv-entry h3{margin:.1rem 0;color:#172944}
.cv-company{margin:.15rem 0;color:#4c5b68;font-weight:650}
.cv-dates{margin:.2rem 0;text-align:right;color:#5c6470;font-weight:650}
.cv-entry ul{padding-left:1.25rem;margin:.75rem 0}
.cv-entry li{margin:.35rem 0}
@media(max-width:640px){.entry-grid{grid-template-columns:1fr;gap:0}.cv-heading{align-items:flex-start;flex-direction:column;gap:1rem}.cv-entry-heading{display:block}.cv-dates{text-align:left}}
.account-nav{display:flex;align-items:center;gap:.75rem}.account-nav form{margin:0}.account-nav .button-link{white-space:nowrap}
.dashboard-overview{margin:1.5rem 0 1.25rem;padding:clamp(1.5rem,5vw,3rem);border-radius:1.1rem;background:#142942;color:#fff}.dashboard-overview .eyebrow{margin:.1rem 0 .5rem;color:#ead098}.dashboard-overview h1{margin:.25rem 0 .75rem;color:#fff;font-size:clamp(2.2rem,6vw,3.6rem)}.dashboard-overview>p:last-child{max-width:58ch;margin:.5rem 0 0;color:#e2e8ef}
.dashboard-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:1rem 0 2.25rem}.dashboard-card{position:relative;display:flex;min-height:205px;flex-direction:column;align-items:flex-start;padding:1.4rem;border:1px solid #ded6c7;border-radius:1rem;background:#fff;color:#172944;text-decoration:none;box-shadow:0 7px 22px #1729440b;transition:transform .18s ease,box-shadow .18s ease}.dashboard-card:hover{transform:translateY(-2px);box-shadow:0 12px 28px #17294418}.dashboard-card:focus-visible{outline:3px solid #92661e;outline-offset:3px}.dashboard-card-number{margin-bottom:.8rem;color:#8a601c;font-size:.75rem;font-weight:800;letter-spacing:.12em}.dashboard-card h2{margin:0 0 .5rem;color:#142942;font-size:1.35rem}.dashboard-card p{margin:0 0 1rem;color:#596777}.dashboard-card-action{margin-top:auto;color:#765018;font-weight:800}.dashboard-card-featured{border-color:#d7bd82;background:#fbf7ed}
@media(max-width:640px){.dashboard-card-grid{grid-template-columns:1fr}.dashboard-card{min-height:180px}.account-nav{gap:.4rem}.account-nav .button-link{padding:.55rem .65rem}}

/* AI profile portrait studio */
.portrait-studio{margin:1.25rem 0;padding:1rem;border:1px solid #ded6c7;border-radius:.75rem;background:#f8f6f0}
.portrait-studio h3,.portrait-studio h4{font-family:Georgia,serif;color:#142942;margin:.2rem 0 .5rem}
.portrait-studio>p{max-width:48rem;color:#4c5b68}
.portrait-consent{display:flex;align-items:flex-start;gap:.65rem;font-weight:550}
.portrait-consent input{flex:0 0 auto;margin:.3rem 0 0}
.portrait-studio button:disabled{opacity:.55;cursor:not-allowed}
.portrait-status{min-height:1.5rem;color:#172944;font-weight:650}
.portrait-preview{margin-top:1rem;padding:1rem;background:#fff;border:1px solid #d9d1c4;border-radius:.75rem}
.portrait-generated{display:block;width:min(100%,20rem);height:auto;aspect-ratio:1;object-fit:cover;margin:1rem 0}
.secondary-button{background:#fff;border:1px solid #a49b8a;margin-left:.5rem}


/* Compact ePOE image preview in the editor */
.purpose-upload-control .purpose-upload-preview { display:block !important; width:20rem !important; max-width:100% !important; justify-self:start !important; box-sizing:border-box !important; }
.purpose-upload-control .purpose-upload-preview img { display:block !important; width:100% !important; max-height:12rem !important; object-fit:contain !important; }
