/* Arena HUD v8 — resume editor, public spec card and published card.
   Markup: app.js resume(), preview(), summary(), publishedResume() and the form-row renderers.
   Loaded after hud.css + dashboard.css. Everything is scoped to the resume route or to hx-rs-* classes,
   so the judge receipt (.completed .summary-item) and match profiles (.match-profile-card .spec-period)
   keep their own styles. Old single-class rules are overridden with html[data-theme=dark] selectors. */
:root{
  --hx-rs-inset:rgba(4,6,10,.46);
  --hx-rs-field:rgba(4,6,10,.58);
  --hx-rs-check:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.2 4.2L19.5 6.5'/%3E%3C/svg%3E");
  --hx-rs-cap:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2 9 10-5 10 5-10 5zm4 2v6s6 4 12 0v-6m4-2v8'/%3E%3C/svg%3E");
  --hx-rs-building:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='14' rx='2'/%3E%3Cpath d='M8 7V3h8v4M3 12c6 3 12 3 18 0m-9 0v4'/%3E%3C/svg%3E");
  --hx-rs-plus:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  --hx-rs-calendar:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A3A9BA' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2.5'/%3E%3Cpath d='M8 3v4m8-4v4M3.5 10h17M8 14h2m4 0h2m-8 3h2'/%3E%3C/svg%3E");
}

/* ---------- page heading: same scale as the other Arena pages ---------- */
html[data-theme=dark] .main[data-route="resume"] .page-top{margin-bottom:22px}
html[data-theme=dark] .main[data-route="resume"] .page-top h1{font-size:40px;line-height:1.12;letter-spacing:-.045em}
html[data-theme=dark] .main[data-route="resume"] .page-top p{font-size:15px;margin-top:10px}

/* ---------- editor layout: full-width step track, form card + sticky card preview ---------- */
html[data-theme=dark] .hx-rs-editor{display:grid;grid-template-columns:minmax(0,1fr) 348px;grid-template-areas:"steps steps" "card aside";gap:18px 24px;align-items:start}
html[data-theme=dark] .hx-rs-editor>div{display:contents}
html[data-theme=dark] .hx-rs-editor>div>.form-steps{grid-area:steps}
html[data-theme=dark] .hx-rs-editor>div>.form-card{grid-area:card;min-width:0}
html[data-theme=dark] .hx-rs-editor>.form-aside{grid-area:aside;display:block;min-width:0}
html[data-theme=dark] .hx-rs-editor.hx-rs-step-preview{grid-template-columns:minmax(0,1fr);grid-template-areas:"steps" "card"}
html[data-theme=dark] .hx-rs-editor.hx-rs-step-preview>.form-aside{display:none}

/* ---------- step track ---------- */
html[data-theme=dark] .main[data-route="resume"] .form-steps{position:relative;display:flex;align-items:flex-start;gap:0;margin:0;padding:16px 14px 13px;border-radius:var(--hx-r-lg);border:1px solid var(--hx-line-2);background:linear-gradient(180deg,rgba(24,29,43,.82),rgba(13,16,24,.86));box-shadow:var(--hx-panel-shadow)}
html[data-theme=dark] .main[data-route="resume"] .form-steps:before{content:'';position:absolute;left:18px;right:18px;top:-1px;height:1px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.22),transparent);pointer-events:none}
html[data-theme=dark] .main[data-route="resume"] .form-step{position:relative;flex:1 1 0;min-width:0;min-height:62px;display:flex;flex-direction:column;align-items:center;gap:7px;padding:0 2px 2px;border-radius:12px;color:var(--hx-faint);font-size:13px;font-weight:700;line-height:1.3;letter-spacing:-.01em;text-align:center;white-space:nowrap;text-decoration:none;transition:color .2s}
html[data-theme=dark] .main[data-route="resume"] .form-step:after{content:'';position:absolute;z-index:0;top:18px;left:calc(50% + 25px);right:calc(-50% + 25px);flex:none;width:auto;height:2px;margin:0;border-radius:2px;background:rgba(255,255,255,.09);box-shadow:none}
html[data-theme=dark] .main[data-route="resume"] .form-step:last-child:after{display:none}
html[data-theme=dark] .main[data-route="resume"] .form-step i{position:relative;z-index:1;display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border:0;border-radius:0;background:none;box-shadow:none;font:800 13px/1 var(--hx-num);font-style:normal;letter-spacing:0;color:var(--hx-faint);transition:color .2s}
html[data-theme=dark] .main[data-route="resume"] .form-step i:before{content:'';position:absolute;z-index:-1;inset:6px;border-radius:6px;transform:rotate(45deg);border:1.5px solid rgba(255,255,255,.17);background:#0D1118;transition:border-color .2s,background .2s,box-shadow .2s}
html[data-theme=dark] .main[data-route="resume"] .form-step i:after{content:none}
html[data-theme=dark] .main[data-route="resume"] .form-step:hover{color:var(--hx-ink)}
html[data-theme=dark] .main[data-route="resume"] .form-step:hover i:before{border-color:rgba(255,255,255,.34)}
html[data-theme=dark] .main[data-route="resume"] .form-step:focus-visible{outline:2px solid #fff;outline-offset:2px}
/* done: teal check node, filled rail */
html[data-theme=dark] .main[data-route="resume"] .form-step.done{color:#9FF3DF}
html[data-theme=dark] .main[data-route="resume"] .form-step.done i{color:transparent}
html[data-theme=dark] .main[data-route="resume"] .form-step.done i:before{border-color:transparent;background:linear-gradient(135deg,#8AF7E2 0%,#3DE8C6 46%,#23B9CB 100%);box-shadow:0 0 14px rgba(var(--hx-teal-rgb),.55),inset 0 1px 0 rgba(255,255,255,.55)}
html[data-theme=dark] .main[data-route="resume"] .form-step.done i:after{content:'';position:absolute;inset:0;margin:auto;width:14px;height:14px;background:#04140F;-webkit-mask:var(--hx-rs-check) center/contain no-repeat;mask:var(--hx-rs-check) center/contain no-repeat}
html[data-theme=dark] .main[data-route="resume"] .form-step.done:after{background:linear-gradient(90deg,rgba(var(--hx-teal-rgb),.9),rgba(var(--hx-teal-rgb),.55));box-shadow:0 0 10px rgba(var(--hx-teal-rgb),.4)}
/* current: bright ring */
html[data-theme=dark] .main[data-route="resume"] .form-step.active{color:var(--hx-ink);font-weight:800}
html[data-theme=dark] .main[data-route="resume"] .form-step.active i{color:#fff}
html[data-theme=dark] .main[data-route="resume"] .form-step.active i:before{border:2px solid #CFFFF4;background:radial-gradient(circle,rgba(var(--hx-teal-rgb),.42),rgba(var(--hx-teal-rgb),.1));box-shadow:0 0 0 4px rgba(var(--hx-teal-rgb),.13),0 0 22px rgba(var(--hx-teal-rgb),.55)}
html[data-theme=dark] .main[data-route="resume"] .form-step.active:after{background:linear-gradient(90deg,rgba(var(--hx-teal-rgb),.6),rgba(255,255,255,.09) 72%)}
/* passed but still incomplete (reached through the step links) */
html[data-theme=dark] .main[data-route="resume"] .form-step:not(.done):not(.active):has(~ .form-step.active){color:#FFDD85}
html[data-theme=dark] .main[data-route="resume"] .form-step:not(.done):not(.active):has(~ .form-step.active) i{color:#FFDD85}
html[data-theme=dark] .main[data-route="resume"] .form-step:not(.done):not(.active):has(~ .form-step.active) i:before{border-style:dashed;border-color:rgba(var(--hx-gold-rgb),.75);background:rgba(var(--hx-gold-rgb),.07)}

/* ---------- form card ---------- */
html[data-theme=dark] .main[data-route="resume"] .form-card{position:relative;min-height:0;padding:28px 32px 0;border-radius:var(--hx-r-lg);border:1px solid var(--hx-line-2);background:var(--hx-panel-bg);box-shadow:var(--hx-panel-shadow);overflow:visible}
html[data-theme=dark] .main[data-route="resume"] .form-card:before{content:'';position:absolute;left:18px;right:18px;top:-1px;height:1px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.22),transparent);pointer-events:none}
html[data-theme=dark] .main[data-route="resume"] .form-card-head{display:flex;align-items:flex-start;gap:16px;margin:0 0 24px;padding:0 0 22px;border-bottom:1px solid var(--hx-line)}
html[data-theme=dark] .main[data-route="resume"] .form-card-head>div{flex:1;min-width:0}
html[data-theme=dark] .main[data-route="resume"] .form-card-head h2{margin:1px 0 0;font-size:25px;font-weight:900;line-height:1.25;letter-spacing:-.04em;color:var(--hx-ink)}
html[data-theme=dark] .main[data-route="resume"] .form-card-head p{margin:6px 0 0;max-width:58ch;font-size:14px;line-height:1.6;color:var(--hx-muted)}
.hx-rs-icon{display:grid;place-items:center;flex:none;width:50px;height:50px;border-radius:15px;border:1px solid rgba(var(--hx-teal-rgb),.32);background:radial-gradient(circle at 50% 30%,rgba(var(--hx-teal-rgb),.24),rgba(var(--hx-teal-rgb),.04) 70%),rgba(4,6,10,.5);color:var(--hx-teal);box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 0 22px -8px rgba(var(--hx-teal-rgb),.7)}
html[data-theme=dark] .hx-rs-icon .icon{width:23px;height:23px;stroke:currentColor;fill:none;stroke-width:1.8}
html[data-theme=dark] .main[data-route="resume"] .step-index{display:inline-flex;align-items:baseline;gap:5px;flex:none;margin:2px 0 0;padding:8px 11px 7px;border-radius:9px;border:1px solid var(--hx-line-2);background:rgba(4,6,10,.5);font:800 13px/1 var(--hx-num);letter-spacing:.05em;color:var(--hx-faint)}
html[data-theme=dark] .main[data-route="resume"] .step-index small{font:700 10px/1 var(--hx-num);letter-spacing:.18em;color:var(--hx-faint);margin-right:2px}
html[data-theme=dark] .main[data-route="resume"] .step-index b{font-weight:800;color:var(--hx-teal);text-shadow:0 0 12px rgba(var(--hx-teal-rgb),.55)}
html[data-theme=dark] .main[data-route="resume"] .resume-fields{display:grid;gap:22px}

/* ---------- fields ---------- */
html[data-theme=dark] .main[data-route="resume"] .resume-fields .field label,html[data-theme=dark] .main[data-route="resume"] .resume-fields .field-label{display:block;margin:0 0 8px;font-size:13.5px;font-weight:700;line-height:1.45;letter-spacing:-.01em;color:var(--hx-ink-2)}
html[data-theme=dark] .main[data-route="resume"] .resume-fields .optional{display:inline-flex;align-items:center;height:19px;margin-left:7px;padding:0 6px;border-radius:5px;border:1px solid var(--hx-line-2);background:rgba(255,255,255,.03);font-size:11px;font-weight:700;letter-spacing:0;color:var(--hx-faint);vertical-align:1px}
html[data-theme=dark] .main[data-route="resume"] .resume-fields .field input,html[data-theme=dark] .main[data-route="resume"] .resume-fields .field select,html[data-theme=dark] .main[data-route="resume"] .resume-fields .field textarea{min-height:48px;padding:12px 14px;border-radius:12px;border:1px solid rgba(255,255,255,.13);background:var(--hx-rs-field);box-shadow:inset 0 1px 2px rgba(0,0,0,.4);color:var(--hx-ink);font-size:15px;font-weight:500;line-height:1.5;transition:border-color .18s,box-shadow .18s,background-color .18s}
html[data-theme=dark] .main[data-route="resume"] .resume-fields .field input::placeholder,html[data-theme=dark] .main[data-route="resume"] .resume-fields .field textarea::placeholder{color:#78819A;font-size:14px;font-weight:400}
html[data-theme=dark] .main[data-route="resume"] .resume-fields .field input:not(:focus):not([aria-invalid="true"]):hover,html[data-theme=dark] .main[data-route="resume"] .resume-fields .field select:not(:focus):not([aria-invalid="true"]):hover,html[data-theme=dark] .main[data-route="resume"] .resume-fields .field textarea:not(:focus):not([aria-invalid="true"]):hover{border-color:rgba(255,255,255,.24)}
html[data-theme=dark] .main[data-route="resume"] .resume-fields .field input:focus,html[data-theme=dark] .main[data-route="resume"] .resume-fields .field select:focus,html[data-theme=dark] .main[data-route="resume"] .resume-fields .field textarea:focus{border-color:rgba(var(--hx-teal-rgb),.9);background:rgba(5,12,15,.78);box-shadow:0 0 0 3px rgba(var(--hx-teal-rgb),.18),0 0 22px -6px rgba(var(--hx-teal-rgb),.6);outline:none}
html[data-theme=dark] .main[data-route="resume"] .resume-fields [aria-invalid="true"]{border-color:rgba(var(--hx-pink-rgb),.85)!important;background-color:rgba(var(--hx-pink-rgb),.06);box-shadow:0 0 0 3px rgba(var(--hx-pink-rgb),.15)}
html[data-theme=dark] .main[data-route="resume"] .resume-fields .field textarea{min-height:104px;line-height:1.65;resize:vertical}
html[data-theme=dark] .main[data-route="resume"] .resume-fields .field select{padding-right:46px;cursor:pointer}
html[data-theme=dark] .main[data-route="resume"] .resume-fields .field select option{background:#121722;color:var(--hx-ink)}
html[data-theme=dark] .main[data-route="resume"] .select-control>.select-chevron{right:12px;width:24px;height:24px;border-radius:7px;background:rgba(255,255,255,.05);color:var(--hx-muted);transition:color .18s,background .18s}
html[data-theme=dark] .main[data-route="resume"] .select-control>.select-chevron>.icon{width:14px;height:14px;stroke-width:2.2}
html[data-theme=dark] .main[data-route="resume"] .select-control:hover>.select-chevron{color:var(--hx-ink)}
html[data-theme=dark] .main[data-route="resume"] .select-control:focus-within>.select-chevron{color:var(--hx-teal);background:rgba(var(--hx-teal-rgb),.12)}
html[data-theme=dark] .main[data-route="resume"] .resume-fields input[type="month"]{font-variant-numeric:tabular-nums;cursor:text}
html[data-theme=dark] .main[data-route="resume"] .resume-fields input[type="month"]::-webkit-calendar-picker-indicator{width:20px;height:20px;margin:0 -2px 0 8px;padding:2px;border-radius:6px;cursor:pointer;opacity:1;color:transparent;background:var(--hx-rs-calendar) center/18px no-repeat}
html[data-theme=dark] .main[data-route="resume"] .resume-fields input[type="month"]::-webkit-calendar-picker-indicator:hover{background-color:rgba(255,255,255,.08)}
html[data-theme=dark] .main[data-route="resume"] .resume-fields input[type="month"]::-webkit-datetime-edit-fields-wrapper{padding:0}
html[data-theme=dark] .main[data-route="resume"] .resume-fields .input-icon-wrap>.icon{left:15px;width:18px;height:18px;color:var(--hx-muted)}
html[data-theme=dark] .main[data-route="resume"] .resume-fields .input-icon-wrap:focus-within>.icon{color:var(--hx-teal)}
html[data-theme=dark] .main[data-route="resume"] .resume-fields .input-icon-wrap input{padding-left:44px}
html[data-theme=dark] .main[data-route="resume"] .resume-fields .hint{margin:8px 0 0;font-size:12.5px;line-height:1.6;color:var(--hx-faint)}
html[data-theme=dark] .main[data-route="resume"] .resume-fields .selected-entity{display:flex;align-items:center;gap:7px;margin:8px 0 0;font-size:12.5px;font-weight:700;line-height:1.5;color:var(--hx-muted)}
html[data-theme=dark] .main[data-route="resume"] .resume-fields .selected-entity:empty{display:none}
html[data-theme=dark] .main[data-route="resume"] .resume-fields .field:has(input[data-catalog-custom="true"],input[data-catalog-custom="false"]) .selected-entity{color:#8FF5DE}
html[data-theme=dark] .main[data-route="resume"] .resume-fields .field:has(input[data-catalog-custom="true"],input[data-catalog-custom="false"]) .selected-entity:before{content:'';flex:none;width:16px;height:16px;border-radius:50%;background:var(--hx-teal) var(--hx-rs-check) center/0 no-repeat;-webkit-mask:var(--hx-rs-check) center/11px no-repeat,linear-gradient(#000,#000);-webkit-mask-composite:xor;mask:var(--hx-rs-check) center/11px no-repeat exclude,linear-gradient(#000,#000)}
html[data-theme=dark] .main[data-route="resume"] .resume-fields .arena-search-confirm{display:inline-flex;align-items:center;gap:6px;min-height:40px;margin:8px 0 0;padding:0 14px;border-radius:10px;border:1px solid rgba(var(--hx-teal-rgb),.45);background:rgba(var(--hx-teal-rgb),.07);color:#BFFCEF;font-size:13px;font-weight:700;text-decoration:none}
html[data-theme=dark] .main[data-route="resume"] .resume-fields .arena-search-confirm:hover{background:rgba(var(--hx-teal-rgb),.15);color:#fff}
html[data-theme=dark] .main[data-route="resume"] .resume-fields .arena-search-confirm:focus-visible{outline:2px solid #fff;outline-offset:2px}
/* duties counter */
html[data-theme=dark] .main[data-route="resume"] .resume-fields .field-meta{display:flex;align-items:center;justify-content:space-between;gap:6px 12px;margin:8px 0 0;font-size:12.5px;line-height:1.5;color:var(--hx-faint)}
html[data-theme=dark] .main[data-route="resume"] .field-meta .field-count{display:inline-flex;align-items:center;height:24px;padding:0 9px;border-radius:7px;border:1px solid var(--hx-line-2);background:rgba(4,6,10,.45);font:700 12px/1 var(--hx-num);letter-spacing:.01em;color:var(--hx-ink-2)}
html[data-theme=dark] .main[data-route="resume"] .field-meta.is-over-limit{color:#FFB3CC}
html[data-theme=dark] .main[data-route="resume"] .field-meta.is-over-limit .field-count{border-color:rgba(var(--hx-pink-rgb),.55);background:rgba(var(--hx-pink-rgb),.12);color:#FFC6D8}
/* "currently" read-only slot shown instead of an end month */
html[data-theme=dark] .main[data-route="resume"] .education-current{display:flex;align-items:center;gap:9px;min-height:48px;padding:12px 14px;border-radius:12px;border:1px dashed rgba(var(--hx-gold-rgb),.38);background:rgba(var(--hx-gold-rgb),.05);color:#FFDD85;font-size:14px;font-weight:700}
html[data-theme=dark] .main[data-route="resume"] .education-current:before{content:'';flex:none;width:8px;height:8px;border-radius:50%;background:var(--hx-gold);box-shadow:0 0 10px rgba(var(--hx-gold-rgb),.7)}
/* custom checkboxes */
html[data-theme=dark] .main[data-route="resume"] .resume-fields input[type="checkbox"]{-webkit-appearance:none;appearance:none;flex:none;display:block;width:22px;height:22px;margin:0;border-radius:7px;border:1.5px solid rgba(255,255,255,.32);background:rgba(4,6,10,.65);box-shadow:inset 0 1px 2px rgba(0,0,0,.4);cursor:pointer;accent-color:auto;transition:border-color .16s,background-color .16s,box-shadow .16s}
html[data-theme=dark] .main[data-route="resume"] .resume-fields input[type="checkbox"]:hover{border-color:rgba(var(--hx-teal-rgb),.75)}
html[data-theme=dark] .main[data-route="resume"] .resume-fields input[type="checkbox"]:checked{border-color:var(--hx-teal);background:var(--hx-teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2303130F' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.2 4.2L19.5 6.5'/%3E%3C/svg%3E") center/15px no-repeat;box-shadow:0 0 12px rgba(var(--hx-teal-rgb),.5)}
html[data-theme=dark] .main[data-route="resume"] .resume-fields input[type="checkbox"]:focus-visible{outline:2px solid #fff;outline-offset:3px}
html[data-theme=dark] .main[data-route="resume"] .current-employment{display:inline-flex;align-items:center;gap:11px;width:fit-content;min-height:46px;margin:12px 0 0;padding:0 16px 0 12px;border-radius:12px;border:1px solid var(--hx-line-2);background:rgba(4,6,10,.35);font-size:14px;font-weight:700;color:var(--hx-ink-2);cursor:pointer;transition:border-color .16s,background-color .16s,color .16s}
html[data-theme=dark] .main[data-route="resume"] .current-employment:hover{border-color:rgba(255,255,255,.22)}
html[data-theme=dark] .main[data-route="resume"] .current-employment:has(input:checked){border-color:rgba(var(--hx-teal-rgb),.45);background:rgba(var(--hx-teal-rgb),.08);color:#CFFFF4}
html[data-theme=dark] .main[data-route="resume"] .career-period-fields{display:flex;flex-wrap:wrap;align-items:center;gap:12px 10px}
html[data-theme=dark] .main[data-route="resume"] .career-period-fields>.fields-row{flex:1 0 100%;margin:0}
html[data-theme=dark] .main[data-route="resume"] .career-period-fields>.current-employment{margin:0}
html[data-theme=dark] .main[data-route="resume"] .career-period-fields .legacy-duration{display:inline-flex;align-items:center;gap:7px;width:fit-content;max-width:100%;min-height:32px;margin:0;padding:5px 11px;border-radius:9px;border:1px solid var(--hx-line-2);background:rgba(255,255,255,.03);color:var(--hx-ink-2);font-weight:700}
html[data-theme=dark] .main[data-route="resume"] .career-period-fields .legacy-duration[hidden]{display:none}

/* ---------- buttons inside the editor ---------- */
html[data-theme=dark] .main[data-route="resume"] .add-entry,html[data-theme=dark] .main[data-route="resume"] .add-achievement{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:54px;margin:0;padding:0 18px;border:1.5px dashed rgba(var(--hx-teal-rgb),.45);border-radius:14px;background:rgba(var(--hx-teal-rgb),.045);box-shadow:none;color:#A6F5E3;font-size:14.5px;font-weight:800;transition:border-color .18s,background .18s,color .18s}
html[data-theme=dark] .main[data-route="resume"] .add-achievement{min-height:48px;border-radius:12px;font-size:14px}
html[data-theme=dark] .main[data-route="resume"] .add-entry:hover,html[data-theme=dark] .main[data-route="resume"] .add-achievement:hover{border-style:solid;border-color:rgba(var(--hx-teal-rgb),.75);background:rgba(var(--hx-teal-rgb),.11);color:#fff;transform:none}
html[data-theme=dark] .main[data-route="resume"] .add-entry .icon,html[data-theme=dark] .main[data-route="resume"] .add-achievement .icon{width:18px;height:18px;stroke-width:2.4}
html[data-theme=dark] .main[data-route="resume"] .education-done>.btn,html[data-theme=dark] .main[data-route="resume"] .record-done>.btn{min-height:46px;padding:0 20px;border-radius:12px;border:1px solid rgba(var(--hx-teal-rgb),.6);background:rgba(var(--hx-teal-rgb),.09);box-shadow:inset 0 1px 0 rgba(255,255,255,.06);color:#CFFFF4;font-size:14px;font-weight:800}
html[data-theme=dark] .main[data-route="resume"] .education-done>.btn:hover,html[data-theme=dark] .main[data-route="resume"] .record-done>.btn:hover{border-color:var(--hx-teal);background:rgba(var(--hx-teal-rgb),.17);color:#fff}
html[data-theme=dark] .main[data-route="resume"] .education-done>.btn .icon,html[data-theme=dark] .main[data-route="resume"] .record-done>.btn .icon{width:17px;height:17px;color:var(--hx-teal);stroke-width:2.6}
/* quiet delete: pink only on hover */
html[data-theme=dark] .main[data-route="resume"] .resume-fields [data-action^="remove"]{min-width:44px;min-height:40px;padding:0 12px;border-radius:10px;border:1px solid transparent;background:transparent;box-shadow:none;color:var(--hx-faint);font-size:13px;font-weight:700}
html[data-theme=dark] .main[data-route="resume"] .resume-fields [data-action^="remove"]:hover{border-color:rgba(var(--hx-pink-rgb),.4);background:rgba(var(--hx-pink-rgb),.09);color:#FFC6D8}
/* row order controls */
html[data-theme=dark] .main[data-route="resume"] .education-row-actions{display:flex;align-items:center;gap:6px}
html[data-theme=dark] .main[data-route="resume"] .education-row-actions [data-action^="move"]{display:grid;place-items:center;min-width:40px;width:40px;min-height:40px;padding:0;border-radius:10px;border:1px solid var(--hx-line-2);background:rgba(255,255,255,.03);box-shadow:none;color:var(--hx-ink-2);font:700 15px/1 var(--hx-num)}
html[data-theme=dark] .main[data-route="resume"] .education-row-actions [data-action^="move"]:hover:not(:disabled){border-color:rgba(255,255,255,.3);background:rgba(255,255,255,.07);color:#fff}
html[data-theme=dark] .main[data-route="resume"] .education-row-actions [data-action^="move"]:disabled{opacity:.28}
html[data-theme=dark] .main[data-route="resume"] .education-row-actions [data-action^="remove"]{margin-left:2px}

/* ---------- record rows: compact HUD rows that open into an editor ---------- */
html[data-theme=dark] .main[data-route="resume"] .education-entries,html[data-theme=dark] .main[data-route="resume"] .record-list{display:grid;gap:10px}
html[data-theme=dark] .main[data-route="resume"] .education-entries>.education-entry,html[data-theme=dark] .main[data-route="resume"] .record-list>.record-entry,html[data-theme=dark] .main[data-route="resume"] .education-entries>.education-entry.is-collapsed{position:relative;margin:0;padding:0;border:1px solid var(--hx-line-2);border-radius:var(--hx-r-md);background:linear-gradient(180deg,rgba(255,255,255,.028),rgba(255,255,255,.006)),var(--hx-rs-inset);box-shadow:inset 0 1px 0 rgba(255,255,255,.04);transition:border-color .2s,background .2s,box-shadow .2s}
html[data-theme=dark] .main[data-route="resume"] .education-entries>.education-entry.is-collapsed:hover,html[data-theme=dark] .main[data-route="resume"] .record-list>.record-entry.is-collapsed:hover{border-color:rgba(255,255,255,.2)}
html[data-theme=dark] .main[data-route="resume"] .education-entries>.education-entry.is-editing,html[data-theme=dark] .main[data-route="resume"] .record-list>.record-entry.is-editing{border-color:rgba(var(--hx-teal-rgb),.42);background:linear-gradient(180deg,rgba(var(--hx-teal-rgb),.07),rgba(var(--hx-teal-rgb),0) 150px),var(--hx-rs-inset);box-shadow:0 0 0 1px rgba(var(--hx-teal-rgb),.07),0 24px 46px -32px rgba(var(--hx-teal-rgb),.6)}
html[data-theme=dark] .main[data-route="resume"] .education-entry.is-editing:before,html[data-theme=dark] .main[data-route="resume"] .record-entry.is-editing:before{content:'';position:absolute;left:-1px;top:18px;width:3px;height:42px;border-radius:0 3px 3px 0;background:var(--hx-teal);box-shadow:0 0 12px rgba(var(--hx-teal-rgb),.85);pointer-events:none}
html[data-theme=dark] .main[data-route="resume"] .education-record-head,html[data-theme=dark] .main[data-route="resume"] .record-head,html[data-theme=dark] .main[data-route="resume"] .education-entry.is-editing .education-record-head,html[data-theme=dark] .main[data-route="resume"] .record-entry.is-editing .record-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;margin:0;padding:8px 12px 8px 8px;border-radius:inherit;background:none}
html[data-theme=dark] .main[data-route="resume"] .education-toggle,html[data-theme=dark] .main[data-route="resume"] .record-toggle{display:flex;align-items:center;gap:14px;width:100%;min-width:0;min-height:60px;padding:6px 8px 6px 6px;border:0;border-radius:11px;background:transparent;color:var(--hx-ink);text-align:left;cursor:pointer}
html[data-theme=dark] .main[data-route="resume"] .education-toggle:focus-visible,html[data-theme=dark] .main[data-route="resume"] .record-toggle:focus-visible{outline:2px solid #fff;outline-offset:1px}
html[data-theme=dark] .main[data-route="resume"] .education-row-number,html[data-theme=dark] .main[data-route="resume"] .record-number{display:grid;place-items:center;align-self:center;flex:0 0 42px;width:42px;height:42px;min-height:0;margin:0;padding:0;border-radius:12px;border:1px solid var(--hx-line-2);background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.015));font:800 13px/1 var(--hx-num);letter-spacing:.02em;color:var(--hx-ink-2);transition:border-color .2s,background .2s,color .2s}
html[data-theme=dark] .main[data-route="resume"] .education-entry.is-editing .education-row-number,html[data-theme=dark] .main[data-route="resume"] .record-entry.is-editing .record-number{border-color:rgba(var(--hx-teal-rgb),.6);background:linear-gradient(180deg,rgba(var(--hx-teal-rgb),.32),rgba(var(--hx-teal-rgb),.08));color:#E2FFF8;box-shadow:0 0 16px -4px rgba(var(--hx-teal-rgb),.75)}
html[data-theme=dark] .main[data-route="resume"] .education-record-title{display:flex;flex:1;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:5px 10px;min-width:0;text-align:left}
html[data-theme=dark] .main[data-route="resume"] .education-record-title>strong,html[data-theme=dark] .main[data-route="resume"] .record-title strong{flex:1 0 100%;font-size:15.5px;font-weight:800;line-height:1.4;letter-spacing:-.025em;color:var(--hx-ink);overflow-wrap:anywhere}
html[data-theme=dark] .main[data-route="resume"] .education-record-title>span,html[data-theme=dark] .main[data-route="resume"] .record-title>span{font-size:13px;line-height:1.5;color:var(--hx-muted);overflow-wrap:anywhere}
html[data-theme=dark] .main[data-route="resume"] .education-record-title>small{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:6px;border:1px solid var(--hx-line-2);background:rgba(255,255,255,.035);font:700 11.5px/1 var(--hx-num);letter-spacing:.01em;color:#C9D1DE;font-variant-numeric:tabular-nums;white-space:nowrap}
html[data-theme=dark] .main[data-route="resume"] .record-title{display:flex;flex:1;flex-direction:column;gap:3px;min-width:0}
html[data-theme=dark] .main[data-route="resume"] .education-toggle-label,html[data-theme=dark] .main[data-route="resume"] .record-toggle-label{display:inline-flex;align-items:center;gap:6px;flex:none;height:34px;padding:0 10px 0 13px;border-radius:10px;border:1px solid var(--hx-line-2);background:rgba(255,255,255,.03);font-size:13px;font-weight:700;color:var(--hx-ink-2);white-space:nowrap;transition:border-color .18s,background .18s,color .18s}
html[data-theme=dark] .main[data-route="resume"] .education-toggle-label>.icon,html[data-theme=dark] .main[data-route="resume"] .record-toggle-label .icon{width:14px;height:14px;stroke-width:2.2;transform:rotate(90deg);transition:transform .2s var(--hx-ease)}
html[data-theme=dark] .main[data-route="resume"] .education-entry.is-editing .education-toggle-label>.icon,html[data-theme=dark] .main[data-route="resume"] .record-entry.is-editing .record-toggle-label .icon{transform:rotate(-90deg)}
html[data-theme=dark] .main[data-route="resume"] .education-entry.is-editing .education-toggle-label,html[data-theme=dark] .main[data-route="resume"] .record-entry.is-editing .record-toggle-label{border-color:rgba(var(--hx-teal-rgb),.45);background:rgba(var(--hx-teal-rgb),.09);color:#CFFFF4}
html[data-theme=dark] .main[data-route="resume"] .education-toggle:hover .education-toggle-label,html[data-theme=dark] .main[data-route="resume"] .record-toggle:hover .record-toggle-label{border-color:rgba(255,255,255,.26);color:#fff}
html[data-theme=dark] .main[data-route="resume"] .education-toggle:hover .education-record-title>strong,html[data-theme=dark] .main[data-route="resume"] .record-toggle:hover .record-title strong{color:#fff}
html[data-theme=dark] .main[data-route="resume"] .education-record-tools{display:flex;align-items:center;gap:6px}
html[data-theme=dark] .main[data-route="resume"] .education-record-tools>span{display:none}
html[data-theme=dark] .main[data-route="resume"] .education-editor,html[data-theme=dark] .main[data-route="resume"] .record-editor{display:grid;gap:20px;margin:0;padding:22px 22px 22px;border-top:1px solid var(--hx-line)}
html[data-theme=dark] .main[data-route="resume"] .education-editor[hidden],html[data-theme=dark] .main[data-route="resume"] .record-editor[hidden]{display:none}
html[data-theme=dark] .main[data-route="resume"] .education-done,html[data-theme=dark] .main[data-route="resume"] .record-done{display:flex;justify-content:flex-end;margin:2px 0 0;padding-top:18px;border-top:1px dashed var(--hx-line-2)}
html[data-theme=dark] .main[data-route="resume"] .resume-fields .fields-row{gap:16px;align-items:start}
html[data-theme=dark] .main[data-route="resume"] .entry-add-block{display:grid;gap:0}
html[data-theme=dark] .main[data-route="resume"] .resume-fields>.education-add-hint,html[data-theme=dark] .main[data-route="resume"] .entry-add-block>.hint{margin:-12px 0 0!important;text-align:center}
html[data-theme=dark] .main[data-route="resume"] .entry-add-block>.hint{margin-top:10px!important}

/* ---------- achievements inside one career ---------- */
html[data-theme=dark] .main[data-route="resume"] .career-achievements{display:grid;gap:12px;margin:4px 0 0;padding:22px 0 0;border-top:1px solid var(--hx-line)}
html[data-theme=dark] .main[data-route="resume"] .career-achievements-heading h3{display:flex;align-items:center;gap:9px;margin:0;font-size:15px!important;font-weight:800;line-height:1.4;letter-spacing:-.02em;color:var(--hx-ink)!important}
html[data-theme=dark] .main[data-route="resume"] .career-achievements-heading h3:before,html[data-theme=dark] .main[data-route="resume"] .legacy-achievements>h3:before{content:'';flex:none;width:7px;height:7px;border-radius:1px;transform:rotate(45deg);background:var(--hx-teal);box-shadow:0 0 8px var(--hx-teal)}
html[data-theme=dark] .main[data-route="resume"] .career-achievements-heading .optional{margin-left:0}
html[data-theme=dark] .main[data-route="resume"] .career-achievement{display:grid;gap:16px;margin:0;padding:14px 16px 18px;border:1px solid var(--hx-line-2);border-radius:14px;background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,.01));box-shadow:none}
html[data-theme=dark] .main[data-route="resume"] .achievement-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-2px -6px 0 0;font-size:13px;font-weight:800;color:var(--hx-ink-2)}
html[data-theme=dark] .main[data-route="resume"] .achievement-head>span{display:inline-flex;align-items:center;gap:8px}
html[data-theme=dark] .main[data-route="resume"] .achievement-head>span:before{content:'';width:6px;height:6px;border-radius:50%;background:var(--hx-teal);box-shadow:0 0 8px rgba(var(--hx-teal-rgb),.8)}
html[data-theme=dark] .main[data-route="resume"] .career-achievements>.hint{margin:0}
html[data-theme=dark] .main[data-route="resume"] .legacy-achievements{display:grid;gap:12px;margin:0;padding:22px 0 0;border-top:1px solid var(--hx-line)}
html[data-theme=dark] .main[data-route="resume"] .legacy-achievements>h3{display:flex;align-items:center;gap:9px;margin:0;font-size:16px!important;font-weight:800}
html[data-theme=dark] .main[data-route="resume"] .legacy-achievements>h3:before{background:var(--hx-gold);box-shadow:0 0 8px var(--hx-gold)}
html[data-theme=dark] .main[data-route="resume"] .legacy-achievements>.hint{margin:0}
html[data-theme=dark] .main[data-route="resume"] .legacy-achievement{display:grid;gap:16px;margin:0;padding:16px;border:1px dashed rgba(var(--hx-gold-rgb),.32);border-radius:14px;background:rgba(var(--hx-gold-rgb),.035)}
html[data-theme=dark] .main[data-route="resume"] .legacy-link-row{margin:0;align-items:end}
html[data-theme=dark] .main[data-route="resume"] .legacy-link-row>.btn{min-height:48px}

/* ---------- empty / error / undo states ---------- */
html[data-theme=dark] .main[data-route="resume"] .resume-fields .empty-entry{display:grid;justify-items:center;gap:4px;margin:0;padding:30px 20px 28px;border:1px dashed rgba(255,255,255,.15);border-radius:var(--hx-r-md);background:radial-gradient(70% 90% at 50% 0%,rgba(var(--hx-teal-rgb),.06),transparent 70%),rgba(4,6,10,.3);text-align:center}
html[data-theme=dark] .main[data-route="resume"] .resume-fields .empty-entry>.icon{box-sizing:content-box;width:24px;height:24px;margin:0 0 8px;padding:13px;border-radius:16px;border:1px solid rgba(var(--hx-teal-rgb),.32);background:rgba(var(--hx-teal-rgb),.08);color:var(--hx-teal);stroke-width:1.8}
html[data-theme=dark] .main[data-route="resume"] .resume-fields .empty-entry h3{margin:0;font-size:17px;font-weight:800;letter-spacing:-.03em;color:var(--hx-ink)}
html[data-theme=dark] .main[data-route="resume"] .resume-fields .empty-entry p{margin:2px auto 0;max-width:40ch;font-size:13.5px;line-height:1.65;color:var(--hx-muted)}
html[data-theme=dark] .main[data-route="resume"] #form-errors .error-box{position:relative;margin:0 0 22px;padding:15px 18px 12px 52px;border-radius:14px;border:1px solid rgba(var(--hx-pink-rgb),.42);background:linear-gradient(90deg,rgba(var(--hx-pink-rgb),.14),rgba(var(--hx-pink-rgb),.035));color:#FFC6D8;line-height:1.6;box-shadow:0 20px 40px -30px rgba(var(--hx-pink-rgb),.7)}
html[data-theme=dark] .main[data-route="resume"] #form-errors .error-box:before{content:'!';position:absolute;left:17px;top:14px;display:grid;place-items:center;width:23px;height:23px;border-radius:7px;background:var(--hx-pink);color:#2A0614;font:900 13px/1 var(--hx-num);box-shadow:0 0 14px rgba(var(--hx-pink-rgb),.6)}
html[data-theme=dark] .main[data-route="resume"] #form-errors .error-box:focus{outline:none;box-shadow:0 0 0 3px rgba(var(--hx-pink-rgb),.25),0 20px 40px -30px rgba(var(--hx-pink-rgb),.7)}
html[data-theme=dark] .main[data-route="resume"] .error-box>strong{display:block;margin:2px 0 6px;font-size:14.5px;font-weight:800;color:#FFE3EC}
html[data-theme=dark] .main[data-route="resume"] .form-error-item+.form-error-item{margin-top:0;border-top:1px solid rgba(var(--hx-pink-rgb),.14)}
html[data-theme=dark] .main[data-route="resume"] .form-error-item button{display:flex;align-items:flex-start;gap:9px;width:100%;min-height:38px;margin:0;padding:8px 0;border:0;background:transparent;color:#FFD0DE;font-size:13.5px;font-weight:600;line-height:1.55;text-align:left;text-decoration:none;cursor:pointer}
html[data-theme=dark] .main[data-route="resume"] .form-error-item button:before{content:'';flex:none;width:6px;height:6px;margin-top:8px;border-radius:50%;background:var(--hx-pink)}
html[data-theme=dark] .main[data-route="resume"] .form-error-item button:hover{color:#fff;text-decoration:underline;text-underline-offset:3px}
html[data-theme=dark] .main[data-route="resume"] .form-error-item button:focus-visible{outline:2px solid #fff;outline-offset:2px;border-radius:4px}
html[data-theme=dark] .main[data-route="resume"] .form-error-item p{margin:0;padding:8px 0;font-size:13.5px}
html[data-theme=dark] .main[data-route="resume"] .undo-removal{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0;padding:9px 10px 9px 16px;border-radius:12px;border:1px solid rgba(var(--hx-teal-rgb),.34);background:linear-gradient(90deg,rgba(var(--hx-teal-rgb),.11),rgba(var(--hx-teal-rgb),.03));font-size:13.5px;font-weight:600;color:#D4FBF2}
html[data-theme=dark] .main[data-route="resume"] .undo-removal>.btn{flex:none;min-height:38px;padding:0 14px;border-radius:9px;border:1px solid rgba(var(--hx-teal-rgb),.6);background:rgba(var(--hx-teal-rgb),.12);color:#fff;font-size:13px;font-weight:800}

/* ---------- footer actions (a band at the bottom of the card) ---------- */
html[data-theme=dark] .main[data-route="resume"] .form-card .form-footer{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:28px -32px 0;padding:16px 32px 18px;border-top:1px solid var(--hx-line-2);border-radius:0 0 var(--hx-r-lg) var(--hx-r-lg);background:linear-gradient(180deg,rgba(4,6,10,.18),rgba(4,6,10,.46))}
html[data-theme=dark] .main[data-route="resume"] .form-footer .btn{min-width:0}
html[data-theme=dark] .main[data-route="resume"] .form-footer .btn-ghost{min-height:46px;padding:0 14px 0 10px;color:var(--hx-ink-2)}
html[data-theme=dark] .main[data-route="resume"] .form-footer .btn-primary{min-width:150px;min-height:50px;padding:0 22px;border-radius:13px;font-size:15px}
html[data-theme=dark] .main[data-route="resume"] .form-footer .icon{width:17px;height:17px}
/* an edit of the registered resume: 이전 and 수정 취소 sit together on the left */
html[data-theme=dark] .main[data-route="resume"] .form-footer .hx-rs-back{display:inline-flex;align-items:center;gap:2px;min-width:0}
html[data-theme=dark] .main[data-route="resume"] .form-footer .hx-rs-back .btn{white-space:nowrap}
/* a sign-in or a save in progress (app.js launchBusy): the button keeps its full look and turns a small spinner
   (in place of its arrow). The 심사 시작 button has its own spinner (.is-pending, hud.css). */
html[data-theme=dark] .btn[aria-busy="true"]:not(.is-pending):disabled,html[data-theme=dark] .hx-gsi[aria-busy="true"]:disabled{opacity:1;cursor:progress}
html[data-theme=dark] .btn[aria-busy="true"]:not(.is-pending)>.icon{display:none}
html[data-theme=dark] .btn[aria-busy="true"]:not(.is-pending)::before,html[data-theme=dark] .hx-gsi[aria-busy="true"]::after{content:'';box-sizing:border-box;order:2;flex:none;width:16px;height:16px;border-radius:50%;border:2px solid currentColor;border-right-color:transparent;animation:hx-spin .8s linear infinite}
html[data-theme=dark] .hx-gsi[aria-busy="true"]::after{color:#5F6368}

/* ---------- autocomplete dropdown (search.js markup, restyled only) ---------- */
html[data-theme=dark] .arena-search-list{padding:8px;border-radius:16px;border:1px solid rgba(var(--hx-teal-rgb),.3);background:linear-gradient(180deg,#161B28 0%,#0F131C 100%);color:var(--hx-ink);box-shadow:0 0 0 1px rgba(0,0,0,.45),0 26px 56px -14px rgba(0,0,0,.9),0 0 34px -14px rgba(var(--hx-teal-rgb),.4);scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.18) transparent}
html[data-theme=dark] .arena-search-caption{padding:7px 10px 8px;font-size:12px;font-weight:700;letter-spacing:0;color:var(--hx-faint)}
html[data-theme=dark] .arena-search-option{position:relative;gap:12px;min-height:58px;padding:9px 12px 9px 10px;border-radius:11px;color:var(--hx-ink);transition:background .12s}
html[data-theme=dark] .arena-search-option:hover{background:rgba(255,255,255,.05)}
html[data-theme=dark] .arena-search-option.is-active{background:linear-gradient(90deg,rgba(var(--hx-teal-rgb),.17),rgba(var(--hx-teal-rgb),.05));box-shadow:inset 0 0 0 1px rgba(var(--hx-teal-rgb),.38)}
html[data-theme=dark] .arena-search-option.is-active:before{content:'';position:absolute;left:0;top:13px;bottom:13px;width:3px;border-radius:0 3px 3px 0;background:var(--hx-teal);box-shadow:0 0 10px var(--hx-teal)}
html[data-theme=dark] .arena-search-option strong{font-size:14.5px;font-weight:800;letter-spacing:-.015em}
html[data-theme=dark] .arena-search-option small{margin-top:3px;font-size:12px;color:var(--hx-muted)}
html[data-theme=dark] .arena-search-symbol{position:relative;flex:0 0 36px;height:36px;border-radius:10px;border:1px solid var(--hx-line-2);background:rgba(255,255,255,.04);color:transparent;font-size:0;overflow:hidden}
html[data-theme=dark] .arena-search-symbol:after{content:'';position:absolute;inset:0;margin:auto;width:18px;height:18px;background:var(--hx-ink-2);-webkit-mask:var(--hx-rs-building) center/contain no-repeat;mask:var(--hx-rs-building) center/contain no-repeat}
html[data-theme=dark] [data-search-type="school"]~.arena-search-list .arena-search-symbol:after{-webkit-mask-image:var(--hx-rs-cap);mask-image:var(--hx-rs-cap)}
html[data-theme=dark] .arena-search-option.is-active .arena-search-symbol{border-color:rgba(var(--hx-teal-rgb),.45);background:rgba(var(--hx-teal-rgb),.12)}
html[data-theme=dark] .arena-search-option.is-active .arena-search-symbol:after{background:var(--hx-teal)}
html[data-theme=dark] .arena-search-option.is-custom{margin-top:6px;border-top:0;border-radius:11px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.07)}
html[data-theme=dark] .arena-search-option.is-custom:after{content:'';position:absolute;left:10px;right:10px;top:-4px;height:1px;background:var(--hx-line-2)}
html[data-theme=dark] .arena-search-option.is-custom .arena-search-symbol{border:1px dashed rgba(var(--hx-teal-rgb),.55);background:rgba(var(--hx-teal-rgb),.08)}
html[data-theme=dark] .arena-search-option.is-custom .arena-search-symbol:after{width:16px;height:16px;background:var(--hx-teal);-webkit-mask-image:var(--hx-rs-plus);mask-image:var(--hx-rs-plus)}
html[data-theme=dark] .arena-search-return{display:grid;place-items:center;flex:none;width:26px;height:22px;border-radius:6px;border:1px solid var(--hx-line-2);font-size:13px;color:var(--hx-faint);opacity:0;transition:opacity .12s}
html[data-theme=dark] .arena-search-option.is-active .arena-search-return,html[data-theme=dark] .arena-search-option:hover .arena-search-return{opacity:1;color:var(--hx-ink-2)}
html[data-theme=dark] .arena-search-empty{padding:4px 10px 10px;font-size:13px;line-height:1.6;color:var(--hx-muted)}

/* ---------- public spec card (aside preview, final step, published view) ---------- */
.hx-rs-card{position:relative;display:flex;flex-direction:column;min-width:0;border-radius:20px;border:1px solid rgba(var(--hx-teal-rgb),.2);background:radial-gradient(120% 55% at 0% 0%,rgba(var(--hx-teal-rgb),.09),transparent 58%),radial-gradient(110% 45% at 100% 0%,rgba(var(--hx-pink-rgb),.07),transparent 60%),linear-gradient(180deg,#151A28 0%,#0E121B 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 0 0 1px rgba(0,0,0,.35),0 30px 60px -34px rgba(0,0,0,.95),0 0 46px -28px rgba(var(--hx-teal-rgb),.5);color:var(--hx-ink);overflow:hidden}
.hx-rs-card:before{content:'';position:absolute;z-index:2;left:0;right:0;top:0;height:2px;background:linear-gradient(90deg,transparent 4%,rgba(var(--hx-teal-rgb),.9) 26%,#C9D2E3 50%,rgba(var(--hx-pink-rgb),.85) 74%,transparent 96%);opacity:.75;pointer-events:none}
.hx-rs-card:after{content:'';position:absolute;z-index:2;inset:7px;pointer-events:none;opacity:.5;--c:rgba(var(--hx-teal-rgb),.9);
  background:linear-gradient(var(--c),var(--c)) top left/14px 1.5px no-repeat,linear-gradient(var(--c),var(--c)) top left/1.5px 14px no-repeat,
  linear-gradient(var(--c),var(--c)) top right/14px 1.5px no-repeat,linear-gradient(var(--c),var(--c)) top right/1.5px 14px no-repeat,
  linear-gradient(var(--c),var(--c)) bottom left/14px 1.5px no-repeat,linear-gradient(var(--c),var(--c)) bottom left/1.5px 14px no-repeat,
  linear-gradient(var(--c),var(--c)) bottom right/14px 1.5px no-repeat,linear-gradient(var(--c),var(--c)) bottom right/1.5px 14px no-repeat}
html[data-theme=dark] .resume-preview.hx-rs-card{position:relative;top:auto;border-color:rgba(var(--hx-teal-rgb),.2);background:radial-gradient(120% 55% at 0% 0%,rgba(var(--hx-teal-rgb),.09),transparent 58%),radial-gradient(110% 45% at 100% 0%,rgba(var(--hx-pink-rgb),.07),transparent 60%),linear-gradient(180deg,#151A28 0%,#0E121B 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 0 0 1px rgba(0,0,0,.35),0 30px 60px -34px rgba(0,0,0,.95),0 0 46px -28px rgba(var(--hx-teal-rgb),.5)}
.hx-rs-band{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:14px;flex:none;padding:18px 18px 16px;border-bottom:1px solid var(--hx-line);background:linear-gradient(105deg,rgba(var(--hx-teal-rgb),.08),rgba(255,255,255,0) 46%,rgba(var(--hx-pink-rgb),.06))}
.hx-rs-crest{position:relative;display:grid;place-items:center;width:62px;height:62px;border-radius:16px;border:1px solid var(--hx-line-2);background:radial-gradient(circle at 50% 42%,rgba(92,184,255,.24),transparent 68%),rgba(4,6,10,.6);box-shadow:inset 0 0 18px rgba(92,184,255,.12),inset 0 1px 0 rgba(255,255,255,.06)}
.hx-rs-crest .cr{width:54px;height:54px;filter:drop-shadow(0 6px 10px rgba(0,0,0,.55)) drop-shadow(0 0 12px rgba(92,184,255,.32))}
.hx-rs-crest>.icon{width:28px;height:28px;color:var(--hx-teal)}
.hx-rs-id{display:grid;gap:3px;min-width:0}
.hx-rs-id .hx-label{gap:7px;font-size:10px;letter-spacing:.2em}
.hx-rs-id h3{margin:2px 0 0;font-size:19px;font-weight:900;line-height:1.2;letter-spacing:-.04em;color:var(--hx-ink)}
.hx-rs-id p{margin:0;font-size:12.5px;line-height:1.5;color:var(--hx-muted)}
.hx-rs-id .hx-label{padding-right:70px;white-space:nowrap}
.hx-rs-mode{position:absolute;top:16px;right:16px;display:inline-flex;align-items:center;height:24px;padding:0 9px;border-radius:7px;border:1px solid var(--hx-line-2);background:rgba(255,255,255,.04);font-size:11.5px;font-weight:800;color:var(--hx-ink-2);white-space:nowrap}
.hx-rs-card--published .hx-rs-mode{font:800 12px/1 var(--hx-num);letter-spacing:.06em;color:#9FF3DF;border-color:rgba(var(--hx-teal-rgb),.38);background:rgba(var(--hx-teal-rgb),.09)}
.hx-rs-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));flex:none;margin:0;border-bottom:1px solid var(--hx-line);background:rgba(4,6,10,.38)}
.hx-rs-stats>div{display:grid;justify-items:center;align-content:center;gap:5px;padding:11px 4px 10px;border-left:1px solid var(--hx-line);text-align:center}
.hx-rs-stats>div:first-child{border-left:0}
.hx-rs-stats dt{font-size:11.5px;font-weight:700;color:var(--hx-muted);white-space:nowrap}
.hx-rs-stats dd{margin:0;font:800 21px/1 var(--hx-num);letter-spacing:-.03em;color:var(--hx-ink)}
.hx-rs-stats .is-empty dd{color:var(--hx-faint);opacity:.75}
.hx-rs-body{position:relative;min-height:0;padding:4px 18px 6px}
.hx-rs-privacy{display:flex;align-items:flex-start;gap:10px;flex:none;margin:0;padding:13px 18px 15px;border-top:1px solid var(--hx-line);background:rgba(4,6,10,.42);font-size:12px;line-height:1.6;color:var(--hx-faint)}
.hx-rs-privacy .icon{flex:none;width:16px;height:16px;margin-top:2px;color:var(--hx-muted);stroke-width:1.8}
.hx-rs-privacy p{margin:0}
/* The aside scrolls on #live-preview, which is never replaced, so its scroll position survives the
   preview re-render that runs on every keystroke. */
@media(min-width:981px){
  html[data-theme=dark] .hx-rs-editor>.form-aside{position:sticky;top:92px;align-self:start}
  html[data-theme=dark] .hx-rs-editor #live-preview{max-height:calc(100dvh - 116px);overflow-y:auto;overscroll-behavior:contain;border-radius:20px;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.18) transparent;box-shadow:0 0 0 1px rgba(0,0,0,.35),0 30px 60px -34px rgba(0,0,0,.95),0 0 46px -28px rgba(var(--hx-teal-rgb),.5)}
  html[data-theme=dark] .hx-rs-editor #live-preview>.resume-preview.hx-rs-card{max-height:none;box-shadow:inset 0 1px 0 rgba(255,255,255,.07)}
  /* more below (app.js previewMore): the foot fades, so a cut line reads as scrollable */
  html[data-theme=dark] .hx-rs-editor #live-preview[data-more]:after{content:'';position:sticky;bottom:0;display:block;height:56px;margin-top:-56px;pointer-events:none;background:linear-gradient(180deg,rgba(14,18,27,0),rgba(14,18,27,.94) 78%)}
}

/* sections + timelines (also rendered by the tier page "내 이력서") */
.hx-rs-sections{columns:280px 2;column-gap:30px}
.hx-rs-sec{break-inside:avoid;padding:16px 0 14px}
.hx-rs-sec-head{display:flex;align-items:center;gap:8px;margin:0 0 12px}
.hx-rs-sec-head>.icon{flex:none;width:16px;height:16px;color:var(--hx-teal);stroke-width:1.9}
.hx-rs-sec-head h4{flex:none;margin:0;font-size:13.5px;font-weight:800;letter-spacing:-.01em;color:var(--hx-ink)}
.hx-rs-sec-head:after{content:'';order:1;flex:1;height:1px;min-width:12px;background:linear-gradient(90deg,var(--hx-line-3),transparent)}
.hx-rs-edit{order:2;display:inline-flex;align-items:center;flex:none;height:30px;padding:0 11px;border-radius:8px;border:1px solid var(--hx-line-2);background:rgba(255,255,255,.03);font-size:12.5px;font-weight:700;color:var(--hx-ink-2);text-decoration:none;transition:border-color .18s,color .18s,background .18s}
.hx-rs-edit:hover{border-color:rgba(var(--hx-teal-rgb),.55);background:rgba(var(--hx-teal-rgb),.08);color:#fff}
.hx-rs-edit:focus-visible{outline:2px solid #fff;outline-offset:2px}
.hx-rs-sec-body{min-width:0;font-size:13px;line-height:1.6;color:var(--hx-muted)}
.hx-rs-sec-body:not(:has(.spec-timeline,.legacy-achievement-summary)){display:flex;align-items:center;gap:9px;padding:10px 12px;border-radius:10px;border:1px dashed var(--hx-line-2);background:rgba(4,6,10,.25);color:var(--hx-faint)}
.hx-rs-sec-body:not(:has(.spec-timeline,.legacy-achievement-summary)):before{content:'';flex:none;width:6px;height:6px;border-radius:1px;transform:rotate(45deg);border:1.5px solid var(--hx-faint)}
html[data-theme=dark] .hx-rs-sec-body .preview-empty{margin:0;color:inherit!important;font-weight:400!important}
html[data-theme=dark] .hx-rs-sec .spec-timeline{position:relative;display:grid;gap:0;min-width:0}
html[data-theme=dark] .hx-rs-sec .spec-timeline>.spec-entry{position:relative;margin:0;padding:0 0 16px 22px;border:0;font-size:13px;min-width:0}
html[data-theme=dark] .hx-rs-sec .spec-timeline>.spec-entry:last-child{padding-bottom:2px}
html[data-theme=dark] .hx-rs-sec .spec-timeline>.spec-entry+.spec-entry{margin:0;padding-top:0;border-top:0}
html[data-theme=dark] .hx-rs-sec .spec-timeline>.spec-entry:not(:last-child):before{content:'';position:absolute;left:4.5px;top:17px;bottom:-6px;width:1.5px;border-radius:2px;background:linear-gradient(rgba(var(--hx-teal-rgb),.55),rgba(var(--hx-teal-rgb),.12));pointer-events:none}
html[data-theme=dark] .hx-rs-sec .spec-timeline>.spec-entry>.spec-period{display:inline-flex;align-items:center;gap:6px;max-width:100%;margin:0 0 7px;padding:0 8px;height:22px;border-radius:6px;border:1px solid rgba(var(--hx-teal-rgb),.26);background:rgba(var(--hx-teal-rgb),.07);font:700 11.5px/1 var(--hx-num);letter-spacing:.01em;color:#A9F0E0;font-variant-numeric:tabular-nums;white-space:nowrap}
html[data-theme=dark] .hx-rs-sec .spec-timeline>.spec-entry>.spec-period>.spec-period-dot{position:absolute;left:0;top:6px;width:10.5px;height:10.5px;border-radius:50%;border:2px solid var(--hx-teal);background:#0B0D12;box-shadow:0 0 0 3px rgba(var(--hx-teal-rgb),.12),0 0 10px rgba(var(--hx-teal-rgb),.6)}
html[data-theme=dark] .hx-rs-sec .spec-timeline>.spec-entry.is-undated>.spec-period{border-style:dashed;border-color:rgba(var(--hx-gold-rgb),.42);background:rgba(var(--hx-gold-rgb),.05);color:#FFDD85;font-family:inherit;font-size:11.5px;letter-spacing:0}
html[data-theme=dark] .hx-rs-sec .spec-timeline>.spec-entry.is-undated>.spec-period>.spec-period-dot{border-color:rgba(var(--hx-gold-rgb),.8);box-shadow:0 0 0 3px rgba(var(--hx-gold-rgb),.1)}
html[data-theme=dark] .hx-rs-sec .career-result.is-undated>.spec-period{color:#FFDD85;font-family:inherit}
html[data-theme=dark] .hx-rs-sec .career-result.is-undated>.spec-period>.spec-period-dot{background:var(--hx-gold);box-shadow:none}
html[data-theme=dark] .hx-rs-sec .spec-timeline>.spec-entry>.spec-entry-heading{display:block;margin:0;font-family:inherit;font-size:14.5px;font-weight:800;line-height:1.45;letter-spacing:-.02em;color:var(--hx-ink);overflow-wrap:anywhere}
html[data-theme=dark] .hx-rs-sec .spec-timeline>.spec-entry>.spec-entry-detail{margin:3px 0 0;font-size:13px;line-height:1.6;color:var(--hx-muted);overflow-wrap:anywhere}
html[data-theme=dark] .hx-rs-sec .academic-status{display:inline-flex;align-items:center;height:20px;margin-left:5px;padding:0 7px;border-radius:6px;border:1px solid rgba(var(--hx-teal-rgb),.3);background:rgba(var(--hx-teal-rgb),.07);font-size:11px;font-weight:800;line-height:1;color:#9FF3DF;vertical-align:1px}
html[data-theme=dark] .hx-rs-sec .academic-status[data-state="재학"],html[data-theme=dark] .hx-rs-sec .academic-status[data-state="휴학"],html[data-theme=dark] .hx-rs-sec .academic-status[data-state="졸업 예정"]{border-color:rgba(var(--hx-gold-rgb),.38);background:rgba(var(--hx-gold-rgb),.08);color:#FFDD85}
html[data-theme=dark] .hx-rs-sec .academic-status[data-state="수료"],html[data-theme=dark] .hx-rs-sec .academic-status[data-state="중퇴"]{border-color:rgba(var(--hx-draw-rgb),.45);background:rgba(var(--hx-draw-rgb),.12);color:#D5DBE6}
/* A row with only a status (a high school): the badge starts the line, flush with the name above. */
.spec-timeline .spec-entry-detail.is-status-only>.academic-status{margin-left:0}
html[data-theme=dark] .hx-rs-sec .career-summary-detail{margin:10px 0 0}
html[data-theme=dark] .hx-rs-sec .career-summary-detail>small,html[data-theme=dark] .hx-rs-sec .legacy-achievement-summary>small{display:flex;align-items:center;gap:7px;margin:0 0 6px;font-size:11.5px;font-weight:800;letter-spacing:.01em;color:var(--hx-faint)}
html[data-theme=dark] .hx-rs-sec .career-summary-detail>small:before{content:'';flex:none;width:10px;height:1.5px;border-radius:1px;background:var(--hx-line-3)}
html[data-theme=dark] .hx-rs-sec .career-summary-detail>p{margin:0;font-size:13px;line-height:1.65;color:var(--hx-ink-2);white-space:pre-line;overflow-wrap:anywhere}
html[data-theme=dark] .hx-rs-sec .career-result{min-width:0;margin:0;padding:7px 0 7px 12px;border-left:2px solid rgba(var(--hx-teal-rgb),.3)}
html[data-theme=dark] .hx-rs-sec .career-result+.career-result{margin-top:6px}
html[data-theme=dark] .hx-rs-sec .career-result>.spec-period{display:flex;align-items:center;gap:6px;margin:0 0 3px;padding:0;border:0;background:none;font:700 11px/1.5 var(--hx-num);letter-spacing:.01em;color:#9FE6D6}
html[data-theme=dark] .hx-rs-sec .career-result>.spec-period>.spec-period-dot{position:static;flex:none;width:5px;height:5px;border:0;border-radius:50%;background:var(--hx-teal);box-shadow:0 0 6px rgba(var(--hx-teal-rgb),.8)}
html[data-theme=dark] .hx-rs-sec .career-result>b{display:block;font-size:13.5px!important;font-weight:800;line-height:1.5;color:var(--hx-ink)}
html[data-theme=dark] .hx-rs-sec .career-result>p:not(.spec-period){margin:2px 0 0;font-size:13px!important;line-height:1.6;color:var(--hx-ink-2);white-space:pre-line;overflow-wrap:anywhere}
html[data-theme=dark] .hx-rs-sec .career-result>small{display:block;margin-top:3px;font-size:12px;color:var(--hx-faint)}
html[data-theme=dark] .hx-rs-sec .legacy-achievement-summary{margin:14px 0 0;padding:12px;border-radius:12px;border:1px dashed rgba(var(--hx-gold-rgb),.32);background:rgba(var(--hx-gold-rgb),.04)}
html[data-theme=dark] .hx-rs-sec .legacy-achievement-summary>small{color:#FFDD85}
/* the narrow aside and dashboard disclosure read better with slightly smaller type */
html[data-theme=dark] .form-aside .hx-rs-sec .spec-timeline>.spec-entry>.spec-entry-heading{font-size:14px}
html[data-theme=dark] .form-aside .hx-rs-sec .spec-timeline>.spec-entry>.spec-entry-detail,html[data-theme=dark] .form-aside .hx-rs-sec .career-summary-detail>p,html[data-theme=dark] .form-aside .hx-rs-sec .career-result>p:not(.spec-period){font-size:12.5px!important}

/* ---------- final check step: card + checklist ---------- */
html[data-theme=dark] .main[data-route="resume"] .form-card--preview .resume-fields>.hx-rs-card{margin:0}
html[data-theme=dark] .main[data-route="resume"] .hx-rs-confirm{display:grid;gap:12px;align-content:start;min-width:0}
html[data-theme=dark] .main[data-route="resume"] .hx-rs-confirm-title{display:flex;align-items:center;gap:9px;margin:0 0 2px;font-size:16px;font-weight:800;letter-spacing:-.025em;color:var(--hx-ink)}
html[data-theme=dark] .main[data-route="resume"] .hx-rs-confirm-title:before{content:'';flex:none;width:7px;height:7px;border-radius:1px;transform:rotate(45deg);background:var(--hx-teal);box-shadow:0 0 8px var(--hx-teal)}
html[data-theme=dark] .main[data-route="resume"] .form-card--preview .check-row{display:flex;align-items:flex-start;gap:14px;margin:0;padding:16px 16px 16px 15px;border-radius:14px;border:1px solid var(--hx-line-2);background:rgba(4,6,10,.42);font-size:14px;font-weight:700;line-height:1.55;color:var(--hx-ink);cursor:pointer;transition:border-color .18s,background .18s}
html[data-theme=dark] .main[data-route="resume"] .form-card--preview .check-row:hover{border-color:rgba(255,255,255,.24)}
html[data-theme=dark] .main[data-route="resume"] .form-card--preview .check-row:has(input:checked){border-color:rgba(var(--hx-teal-rgb),.48);background:linear-gradient(90deg,rgba(var(--hx-teal-rgb),.1),rgba(var(--hx-teal-rgb),.025))}
html[data-theme=dark] .main[data-route="resume"] .form-card--preview .check-row:has(input[aria-invalid="true"]){border-color:rgba(var(--hx-pink-rgb),.6);background:rgba(var(--hx-pink-rgb),.06)}
html[data-theme=dark] .main[data-route="resume"] .form-card--preview .check-row input{margin-top:0}
html[data-theme=dark] .main[data-route="resume"] .form-card--preview .check-row small{display:block;margin-top:5px;font-size:12.5px;font-weight:500;line-height:1.6;color:var(--hx-muted)}
html[data-theme=dark] .main[data-route="resume"] .hx-rs-confirm>.mt-24{margin:2px 0 0}
html[data-theme=dark] .main[data-route="resume"] .hx-rs-confirm .notice{display:flex;align-items:flex-start;gap:10px;padding:14px 16px;font-size:13px;line-height:1.65}
html[data-theme=dark] .main[data-route="resume"] .hx-rs-confirm .notice .icon{flex:none;width:17px;height:17px;margin-top:2px;color:var(--hx-teal)}
@media(min-width:981px){
  html[data-theme=dark] .main[data-route="resume"] .form-card--preview .resume-fields{grid-template-columns:minmax(0,1.7fr) minmax(310px,1fr);column-gap:26px;align-items:start}
  html[data-theme=dark] .main[data-route="resume"] .form-card--preview .resume-fields>.undo-removal{grid-column:1/-1}
  html[data-theme=dark] .main[data-route="resume"] .form-card--preview .resume-fields>.hx-rs-card{grid-column:1}
  html[data-theme=dark] .main[data-route="resume"] .form-card--preview .resume-fields>.hx-rs-confirm{grid-column:2;position:sticky;top:92px}
}

/* ---------- published view: the card + its status ---------- */
html[data-theme=dark] .main[data-route="resume"] .hx-rs-published{display:grid;grid-template-columns:minmax(0,1fr) 348px;gap:24px;align-items:start}
html[data-theme=dark] .main[data-route="resume"] .hx-rs-published>.form-aside{display:block;min-width:0;position:sticky;top:92px}
html[data-theme=dark] .main[data-route="resume"] .hx-rs-published-card{min-width:0}
html[data-theme=dark] .hx-rs-card--published .hx-rs-crest,html[data-theme=dark] .hx-rs-card--step .hx-rs-crest{width:76px;height:76px;border-radius:18px}
html[data-theme=dark] .hx-rs-card--published .hx-rs-crest .cr,html[data-theme=dark] .hx-rs-card--step .hx-rs-crest .cr{width:66px;height:66px}
html[data-theme=dark] .hx-rs-card--published .hx-rs-band,html[data-theme=dark] .hx-rs-card--step .hx-rs-band{gap:18px;padding:22px 24px 20px}
html[data-theme=dark] .hx-rs-card--published .hx-rs-id h3,html[data-theme=dark] .hx-rs-card--step .hx-rs-id h3{font-size:22px}
html[data-theme=dark] .hx-rs-card--published .hx-rs-id p,html[data-theme=dark] .hx-rs-card--step .hx-rs-id p{font-size:13.5px}
html[data-theme=dark] .hx-rs-card--published .hx-rs-stats dd,html[data-theme=dark] .hx-rs-card--step .hx-rs-stats dd{font-size:24px}
html[data-theme=dark] .hx-rs-card--published .hx-rs-stats>div,html[data-theme=dark] .hx-rs-card--step .hx-rs-stats>div{padding:13px 6px 12px}
html[data-theme=dark] .hx-rs-card--published .hx-rs-body,html[data-theme=dark] .hx-rs-card--step .hx-rs-body{padding:6px 24px 8px}
html[data-theme=dark] .hx-rs-card--published .hx-rs-privacy,html[data-theme=dark] .hx-rs-card--step .hx-rs-privacy{padding:14px 24px 16px}
.hx-rs-lock{padding:22px 22px 20px}
.hx-rs-lock .hx-head{margin-bottom:16px}
.hx-rs-lock-state{display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 10px;border-radius:8px;border:1px solid var(--hx-line-2);font-size:12px;font-weight:800;white-space:nowrap}
.hx-rs-lock-state .icon{width:14px;height:14px;stroke-width:2.1}
.hx-rs-lock-state.is-locked{border-color:rgba(var(--hx-gold-rgb),.42);background:rgba(var(--hx-gold-rgb),.1);color:#FFDD85}
.hx-rs-lock-state.is-open{border-color:rgba(var(--hx-teal-rgb),.42);background:rgba(var(--hx-teal-rgb),.1);color:#8FF5DE}
.hx-rs-lock-readout{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding:16px 18px;border-radius:var(--hx-r-md);border:1px solid var(--hx-line);background:rgba(4,6,10,.42)}
.hx-rs-lock-readout>span{padding-bottom:4px;font-size:13px;font-weight:700;color:var(--hx-muted)}
.hx-rs-lock-readout>b{display:flex;align-items:baseline;gap:3px}
.hx-rs-lock-readout>b .hx-num{font:800 42px/1 var(--hx-num);letter-spacing:-.05em;color:var(--hx-ink)}
.hx-rs-lock-readout>b small{font-size:14px;font-weight:700;color:var(--hx-muted)}
.hx-rs-lock-readout>b.is-open{font-size:20px;font-weight:900;letter-spacing:-.03em;color:var(--hx-teal)}
.hx-rs-lock-meter{position:relative;height:10px;margin:12px 0 0;border-radius:3px;background:repeating-linear-gradient(90deg,rgba(255,255,255,.09) 0 calc(100%/30 - 2px),transparent calc(100%/30 - 2px) calc(100%/30))}
.hx-rs-lock-meter span{position:absolute;inset:0;background:repeating-linear-gradient(90deg,var(--hx-gold) 0 calc(100%/30 - 2px),transparent calc(100%/30 - 2px) calc(100%/30));clip-path:inset(0 calc(100% - var(--w)) 0 0);box-shadow:0 0 12px rgba(var(--hx-gold-rgb),.35)}
/* one fact (등록일): a full-width row, label left and value right */
.hx-rs-facts{display:grid;gap:8px;margin:16px 0 0}
.hx-rs-facts>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-radius:12px;border:1px solid var(--hx-line);background:rgba(255,255,255,.02)}
.hx-rs-facts dt{font-size:12px;font-weight:600;color:var(--hx-muted)}
.hx-rs-facts dd{margin:0;font-size:15px;font-weight:800;color:var(--hx-ink)}
.hx-rs-lock-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:18px 0 0}
html[data-theme=dark] .hx-rs-lock-actions .btn{width:100%;min-height:48px;padding:0 12px}
html[data-theme=dark] .hx-rs-lock-actions .btn .icon{width:16px;height:16px}

/* ---------- responsive ---------- */
@media(max-width:1180px){
  html[data-theme=dark] .hx-rs-editor,html[data-theme=dark] .main[data-route="resume"] .hx-rs-published{grid-template-columns:minmax(0,1fr) 304px;column-gap:20px}
  html[data-theme=dark] .main[data-route="resume"] .form-card{padding:26px 26px 0}
  html[data-theme=dark] .main[data-route="resume"] .form-card .form-footer{margin:26px -26px 0;padding:16px 26px 18px}
}
@media(max-width:980px){
  html[data-theme=dark] .hx-rs-editor{grid-template-columns:minmax(0,1fr);grid-template-areas:"steps" "card"}
  html[data-theme=dark] .hx-rs-editor>.form-aside{display:none}
  html[data-theme=dark] .main[data-route="resume"] .hx-rs-published{grid-template-columns:minmax(0,1fr);gap:16px}
  html[data-theme=dark] .main[data-route="resume"] .hx-rs-published>.form-aside{position:static}
}
@media(max-width:740px){
  html[data-theme=dark] .main[data-route="resume"] .page-top{margin-bottom:18px}
  html[data-theme=dark] .main[data-route="resume"] .page-top h1{font-size:30px}
  html[data-theme=dark] .main[data-route="resume"] .page-top p{font-size:14px;margin-top:8px}
  html[data-theme=dark] .hx-rs-editor{gap:14px}
  html[data-theme=dark] .main[data-route="resume"] .form-steps{padding:12px 4px 9px;border-radius:16px}
  html[data-theme=dark] .main[data-route="resume"] .form-step{gap:6px;min-height:54px;font-size:12px;padding:0 1px 2px}
  html[data-theme=dark] .main[data-route="resume"] .form-step i{flex-basis:32px;width:32px;height:32px;font-size:12px}
  html[data-theme=dark] .main[data-route="resume"] .form-step i:before{inset:5.5px;border-radius:5px}
  html[data-theme=dark] .main[data-route="resume"] .form-step.done i:after{width:12px;height:12px}
  html[data-theme=dark] .main[data-route="resume"] .form-step:after{top:16px;left:calc(50% + 21px);right:calc(-50% + 21px)}
  html[data-theme=dark] .main[data-route="resume"] .form-card{padding:20px 18px 0;border-radius:16px}
  html[data-theme=dark] .main[data-route="resume"] .form-card-head{gap:12px;margin-bottom:20px;padding-bottom:18px;flex-wrap:wrap}
  html[data-theme=dark] .main[data-route="resume"] .form-card-head>div{flex:1 1 0}
  html[data-theme=dark] .hx-rs-icon{width:42px;height:42px;border-radius:13px}
  html[data-theme=dark] .hx-rs-icon .icon{width:20px;height:20px}
  html[data-theme=dark] .main[data-route="resume"] .form-card-head h2{font-size:21px;margin-top:0}
  html[data-theme=dark] .main[data-route="resume"] .form-card-head p{font-size:13.5px;margin-top:4px}
  html[data-theme=dark] .main[data-route="resume"] .step-index{padding:6px 8px 5px;font-size:11.5px}
  html[data-theme=dark] .main[data-route="resume"] .step-index small{display:none}
  html[data-theme=dark] .main[data-route="resume"] .resume-fields{gap:20px}
  html[data-theme=dark] .main[data-route="resume"] .resume-fields .field input,html[data-theme=dark] .main[data-route="resume"] .resume-fields .field select,html[data-theme=dark] .main[data-route="resume"] .resume-fields .field textarea{font-size:16px}
  html[data-theme=dark] .main[data-route="resume"] .resume-fields .fields-row{gap:14px}
  html[data-theme=dark] .main[data-route="resume"] .education-record-head,html[data-theme=dark] .main[data-route="resume"] .record-head,html[data-theme=dark] .main[data-route="resume"] .education-entry.is-editing .education-record-head,html[data-theme=dark] .main[data-route="resume"] .record-entry.is-editing .record-head{gap:2px 8px;padding:6px 8px 6px 6px}
  html[data-theme=dark] .main[data-route="resume"] .education-record-head,html[data-theme=dark] .main[data-route="resume"] .education-entry.is-editing .education-record-head{grid-template-columns:minmax(0,1fr)}
  html[data-theme=dark] .main[data-route="resume"] .education-record-tools{margin:-2px 0 2px;padding:0 0 0 54px}
  html[data-theme=dark] .main[data-route="resume"] .education-row-actions{flex:1;gap:6px}
  html[data-theme=dark] .main[data-route="resume"] .education-row-actions [data-action^="remove"]{margin-left:auto}
  html[data-theme=dark] .main[data-route="resume"] .education-row-actions [data-action^="move"]{width:44px;min-width:44px;min-height:44px}
  html[data-theme=dark] .main[data-route="resume"] .resume-fields [data-action^="remove"]{min-height:44px}
  html[data-theme=dark] .main[data-route="resume"] .education-toggle,html[data-theme=dark] .main[data-route="resume"] .record-toggle{gap:12px;min-height:58px;padding:6px 4px 6px 4px}
  html[data-theme=dark] .main[data-route="resume"] .education-row-number,html[data-theme=dark] .main[data-route="resume"] .record-number{flex-basis:38px;width:38px;height:38px;border-radius:11px;font-size:12px}
  html[data-theme=dark] .main[data-route="resume"] .education-record-title>strong,html[data-theme=dark] .main[data-route="resume"] .record-title strong{font-size:15px}
  html[data-theme=dark] .main[data-route="resume"] .education-record-title>span,html[data-theme=dark] .main[data-route="resume"] .record-title>span{font-size:12.5px}
  html[data-theme=dark] .main[data-route="resume"] .education-toggle-label,html[data-theme=dark] .main[data-route="resume"] .record-toggle-label{height:32px;padding:0 8px 0 10px;font-size:12px;gap:4px}
  html[data-theme=dark] .main[data-route="resume"] .education-editor,html[data-theme=dark] .main[data-route="resume"] .record-editor{padding:18px 14px 16px;gap:18px}
  html[data-theme=dark] .main[data-route="resume"] .career-achievement{padding:12px 12px 14px}
  html[data-theme=dark] .main[data-route="resume"] .current-employment{width:100%}
  html[data-theme=dark] .main[data-route="resume"] .education-done>.btn,html[data-theme=dark] .main[data-route="resume"] .record-done>.btn{width:100%}
  /* sticky action bar above the site dock; never wider than the card */
  html[data-theme=dark] .main[data-route="resume"] .form-card .form-footer{position:sticky;bottom:calc(88px + env(safe-area-inset-bottom));z-index:6;margin:22px -18px 0;padding:10px 12px 10px 8px;border-radius:0 0 16px 16px;border-top:1px solid var(--hx-line-3);background:rgba(13,16,24,.94);-webkit-backdrop-filter:blur(14px) saturate(1.3);backdrop-filter:blur(14px) saturate(1.3);box-shadow:0 -16px 32px -20px rgba(0,0,0,.95)}
  html[data-theme=dark] .main[data-route="resume"] .form-footer .btn-primary{min-width:118px;min-height:48px;padding:0 18px;font-size:14.5px}
  html[data-theme=dark] .main[data-route="resume"] .form-footer .btn-ghost{min-height:46px;padding:0 10px 0 8px}
  html:has(.main[data-route="resume"] .form-footer){scroll-padding-top:76px;scroll-padding-bottom:178px}
  html[data-theme=dark] .main[data-route="resume"] .hx-rs-confirm .notice{padding:13px 14px}
  html[data-theme=dark] .main[data-route="resume"] .form-card--preview .check-row{padding:14px 14px 14px 13px;font-size:13.5px}
  .hx-rs-band{gap:12px;padding:16px 16px 14px}
  html[data-theme=dark] .hx-rs-card--published .hx-rs-band,html[data-theme=dark] .hx-rs-card--step .hx-rs-band{gap:14px;padding:18px 16px 16px}
  html[data-theme=dark] .hx-rs-card--published .hx-rs-crest,html[data-theme=dark] .hx-rs-card--step .hx-rs-crest{width:62px;height:62px;border-radius:16px}
  html[data-theme=dark] .hx-rs-card--published .hx-rs-crest .cr,html[data-theme=dark] .hx-rs-card--step .hx-rs-crest .cr{width:54px;height:54px}
  html[data-theme=dark] .hx-rs-card--published .hx-rs-id h3,html[data-theme=dark] .hx-rs-card--step .hx-rs-id h3{font-size:20px}
  html[data-theme=dark] .hx-rs-card--published .hx-rs-body,html[data-theme=dark] .hx-rs-card--step .hx-rs-body{padding:2px 16px 6px}
  html[data-theme=dark] .hx-rs-card--published .hx-rs-privacy,html[data-theme=dark] .hx-rs-card--step .hx-rs-privacy{padding:13px 16px 15px}
  html[data-theme=dark] .hx-rs-card--published .hx-rs-stats dd,html[data-theme=dark] .hx-rs-card--step .hx-rs-stats dd{font-size:21px}
  .hx-rs-body{padding:2px 16px 6px}
  .hx-rs-edit{height:44px;padding:0 14px}
  html[data-theme=dark] .main[data-route="resume"] .undo-removal>.btn,html[data-theme=dark] .main[data-route="resume"] .resume-fields .arena-search-confirm{min-height:44px}
  .hx-rs-lock{padding:18px 16px 16px}
}
@media(max-width:380px){
  html[data-theme=dark] .main[data-route="resume"] .page-top h1{font-size:27px}
  html[data-theme=dark] .main[data-route="resume"] .form-step{font-size:11.5px}
  html[data-theme=dark] .main[data-route="resume"] .form-card{padding:18px 14px 0}
  html[data-theme=dark] .main[data-route="resume"] .form-card .form-footer{margin:20px -14px 0;padding:10px 10px 10px 6px;gap:8px}
  html[data-theme=dark] .main[data-route="resume"] .form-card-head h2{font-size:20px}
  html[data-theme=dark] .main[data-route="resume"] .hx-rs-icon{display:none}
  .hx-rs-crest,html[data-theme=dark] .hx-rs-card--published .hx-rs-crest,html[data-theme=dark] .hx-rs-card--step .hx-rs-crest{width:54px;height:54px;border-radius:14px}
  .hx-rs-crest .cr,html[data-theme=dark] .hx-rs-card--published .hx-rs-crest .cr,html[data-theme=dark] .hx-rs-card--step .hx-rs-crest .cr{width:46px;height:46px}
  html[data-theme=dark] .main[data-route="resume"] .form-footer .btn-primary{min-width:104px;padding:0 14px}
  html[data-theme=dark] .main[data-route="resume"] .education-record-tools{padding-left:0}
  html[data-theme=dark] .main[data-route="resume"] .education-editor,html[data-theme=dark] .main[data-route="resume"] .record-editor{padding:16px 12px 14px}
  .hx-rs-stats dt{font-size:11px}
  .hx-rs-lock-actions{grid-template-columns:1fr}
}

/* ---------- motion ---------- */
@media(prefers-reduced-motion:reduce){
  html[data-theme=dark] .main[data-route="resume"] *,html[data-theme=dark] .main[data-route="resume"] *::before,html[data-theme=dark] .main[data-route="resume"] *::after,
  html[data-theme=dark] .arena-search-list *,.hx-rs-card *,.hx-rs-sections *{transition:none!important;animation:none!important}
}

/* ---------- phone focus mode (11-06): while a resume is written or a match judged, the site dock steps aside
   (app.js sets html.hx-focus) and the action bar and toast drop to the bottom edge ---------- */
@media(max-width:960px){
  html.hx-focus #yn-dock.ynn-dock{display:none}
  html.hx-focus body:has(>#ynn-header){padding-bottom:calc(24px + env(safe-area-inset-bottom,0px) + var(--yn-anchor,0px))}
  html.hx-focus[data-theme=dark] #toast{bottom:calc(20px + env(safe-area-inset-bottom,0px) + var(--yn-anchor,0px))}
  html.hx-focus[data-theme=dark] .main[data-route="resume"] .form-footer{bottom:calc(10px + env(safe-area-inset-bottom,0px) + var(--yn-anchor,0px))}
}
@media(max-width:740px){
  html.hx-focus[data-theme=dark] .main[data-route="resume"] .form-card .form-footer{bottom:calc(10px + env(safe-area-inset-bottom,0px) + var(--yn-anchor,0px))}
  html.hx-focus[data-theme=dark] body:has(.form-footer) #toast{bottom:calc(96px + env(safe-area-inset-bottom,0px) + var(--yn-anchor,0px))}
  html.hx-focus:has(.main[data-route="resume"] .form-footer){scroll-padding-bottom:104px}
}
