/* Career suite pages: CV Builder, Career Kit, Interview Prep (on top of styles.css + app.css). */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
button.link { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-weight: 600; }
.suite .app-top-inner { width: min(1360px, 100% - 32px); }
.suite-nav { display: flex; gap: 2px; margin-left: 10px; }
.suite-nav a { padding: 8px 11px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.suite-nav a:hover { background: rgba(0, 0, 0, .04); color: var(--ink); }
.suite-nav a.on { background: var(--green-soft); color: #166534; font-weight: 600; }
.input-sm { padding: 8px 10px; font-size: 14px; }

/* ---------- CV Builder ---------- */
.builder { display: grid; grid-template-columns: 400px minmax(0, 1fr); min-height: calc(100vh - 65px); }
.b-panel { position: sticky; top: 65px; height: calc(100vh - 65px); overflow-y: auto; background: #fff; border-right: 1px solid var(--line); padding: 22px 22px 0; display: flex; flex-direction: column; gap: 16px; }
.b-head h1 { font-size: 26px; font-weight: 600; letter-spacing: -.03em; }
.b-head p { margin: 4px 0 12px; }
.b-mycvs { display: flex; gap: 8px; }
.b-mycvs select { flex: 1; min-width: 0; padding: 8px 10px; font-size: 14px; }
.b-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: #eef0ea; border-radius: 12px; }
.b-tabs button { border: 0; background: none; padding: 9px 6px; border-radius: 9px; font: 600 13px var(--font); color: var(--muted); cursor: pointer; }
.b-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.b-pane { display: grid; gap: 14px; align-content: start; }
.b-pane[hidden] { display: none; }
.b-sub { font-size: 13px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 4px; }
.drop { position: relative; overflow: hidden; display: grid; justify-items: center; gap: 3px; padding: 18px 16px 22px; border: 1.5px dashed #c9cfc2; border-radius: 16px; background: #fafbf8; text-align: center; cursor: pointer; transition: border-color .18s, background .18s, transform .18s, box-shadow .18s; }
.drop:hover { border-color: var(--green-2); background: #f3fbf5; }
.drop.over { border-style: solid; border-color: var(--green-2); background: #eafbef; transform: scale(1.012); box-shadow: 0 0 0 4px rgba(34,197,94,.14); }
/* --- basketball court drop zone: shoot your CV into the hoop --- */
.hoop-court { position: relative; width: 100%; height: 104px; margin-bottom: 4px; }
.backboard { position: absolute; top: 2px; left: 50%; transform: translateX(-50%); width: 76px; height: 46px; border-radius: 8px; background: #fff; border: 2px solid #d7ddcf; }
.backboard::after { content: ""; position: absolute; left: 50%; top: 9px; transform: translateX(-50%); width: 28px; height: 20px; border: 2px solid #e8743b; border-radius: 3px; }
.net { position: absolute; top: 53px; left: 50%; transform: translateX(-50%); width: 48px; height: 28px; z-index: 2; clip-path: polygon(0 0, 100% 0, 76% 100%, 24% 100%); background: repeating-linear-gradient(62deg, rgba(110,120,100,.4) 0 1px, transparent 1px 7px), repeating-linear-gradient(-62deg, rgba(110,120,100,.4) 0 1px, transparent 1px 7px); }
.rim { position: absolute; top: 47px; left: 50%; transform: translateX(-50%); width: 56px; height: 12px; border: 3px solid #e8743b; border-radius: 50%; z-index: 3; transition: border-color .18s, box-shadow .18s; }
.ball { position: absolute; bottom: 0; left: 50%; transform: translate(-50%, 0); width: 30px; height: 30px; border-radius: 9px; background: var(--green-soft); border: 1.5px solid #bfe6c8; display: grid; place-items: center; color: #166534; z-index: 4; transition: transform .35s ease-out; }
.ball .icon { width: 16px; height: 16px; }
/* copy swaps with the state (idle / dragging / shooting) */
.drop .drop-over, .drop .drop-busy { display: none; }
.drop.over .drop-idle { display: none; } .drop.over .drop-over { display: block; }
.drop.uploading .drop-idle, .drop.uploading .drop-over, .drop.scored .drop-idle, .drop.scored .drop-over { display: none; } .drop.uploading .drop-busy, .drop.scored .drop-busy { display: block; }
/* dragover: the rim lights up, the ball lifts – ready to shoot */
.drop.over .rim { border-color: var(--green); box-shadow: 0 0 0 3px rgba(34,197,94,.18); }
.drop.over .ball { transform: translate(-50%, -4px) scale(1.06); }
/* uploading: the CV floats up and hangs in the air in slow motion while we read it */
.drop.uploading { opacity: 1; pointer-events: none; border-style: solid; border-color: var(--green-2); background: #f3fbf5; }
.drop.uploading .ball { transform: translate(-50%, -46px) scale(.72); animation: floatAir 1.9s ease-in-out .35s infinite; }
@keyframes floatAir {
  0%, 100% { transform: translate(-50%, -46px) scale(.72) rotate(-5deg); }
  50% { transform: translate(-50%, -58px) scale(.72) rotate(5deg); }
}
/* done: the CV drops through the net and into the basket – swish! */
.drop.scored { opacity: 1; border-style: solid; border-color: var(--green-2); background: #f3fbf5; }
.drop.scored .ball { animation: dunk .6s cubic-bezier(.5,0,.7,1) forwards; }
.drop.scored .net { animation: netSwish .6s ease-out; }
@keyframes dunk {
  0% { transform: translate(-50%, -46px) scale(.72); opacity: 1; }
  45% { transform: translate(-50%, -30px) scale(.5); opacity: 1; }
  80% { transform: translate(-50%, -14px) scale(.34); opacity: .5; }
  100% { transform: translate(-50%, 4px) scale(.24); opacity: 0; }
}
@keyframes netSwish {
  0% { transform: translateX(-50%) skewX(0deg) scaleY(1); }
  30% { transform: translateX(-50%) skewX(9deg) scaleY(1.12); }
  60% { transform: translateX(-50%) skewX(-6deg) scaleY(1); }
  100% { transform: translateX(-50%) skewX(0deg) scaleY(1); }
}
/* "+1 SWISH!" score pop on a successful upload (floats, survives the view change) */
.pc-score { position: fixed; z-index: 9999; left: 50%; top: 40%; transform: translate(-50%, -50%); pointer-events: none; display: grid; justify-items: center; gap: 2px; animation: scorePop 1.3s ease-out forwards; }
.pc-score b { font-size: 48px; font-weight: 800; line-height: 1; color: #e8743b; text-shadow: 0 3px 12px rgba(232,116,43,.4); }
.pc-score span { font-size: 15px; font-weight: 700; color: var(--green); letter-spacing: .05em; }
@keyframes scorePop {
  0% { opacity: 0; transform: translate(-50%, -30%) scale(.5); }
  22% { opacity: 1; transform: translate(-50%, -58%) scale(1.15); }
  42% { transform: translate(-50%, -55%) scale(1); }
  78% { opacity: 1; transform: translate(-50%, -72%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -96%) scale(.95); }
}
@media (prefers-reduced-motion: reduce) { .drop.uploading .ball, .drop.scored .ball, .drop.scored .net { animation: none; } .pc-score { animation-duration: .2s; } }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12.5px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.b-alt { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13.5px; }
.b-foot { position: sticky; bottom: 0; margin: auto -22px 0; padding: 14px 22px 18px; background: linear-gradient(rgba(255, 255, 255, .85), #fff 30%); border-top: 1px solid var(--line); display: grid; gap: 8px; backdrop-filter: blur(6px); }

.score-card { display: flex; gap: 16px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fbfcf9; }
.ring { --v: 0; --c: #ef4444; flex: none; width: 92px; height: 92px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(closest-side, #fff 78%, transparent 80% 100%), conic-gradient(var(--c) calc(var(--v) * 1%), #e8ebe4 0); }
.ring[data-level="ok"] { --c: #f59e0b; }
.ring[data-level="good"] { --c: var(--green-2); }
.ring b { font-size: 26px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.ring span { font-size: 10.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.ready-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: 12.5px; color: var(--muted); }
.ready-checks li { position: relative; padding-left: 18px; }
.ready-checks li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid #c4c9bf; }
.ready-checks li.ok { color: var(--ink-2); }
.ready-checks li.ok::before { border: 0; width: 9px; height: 5px; top: 4px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); border-radius: 0; transform: rotate(-45deg); }
.mode-pills { display: grid; grid-template-columns: 1fr 1fr; }
.mode-pills span { text-align: center; }
.match-card { padding: 14px; border: 1px solid var(--line); border-radius: 16px; display: grid; gap: 10px; }
.match-score { font-weight: 700; font-size: 18px; }
.bar { height: 7px; border-radius: 99px; background: #e8ebe4; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #f59e0b, var(--green-2)); border-radius: inherit; transition: width .4s; }
.kws { display: flex; flex-wrap: wrap; gap: 6px; }
.kw { font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 99px; border: 1px solid var(--line); }
.kw.ok { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.kw.part { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.kw.miss { background: #f6f7f4; color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, .25); }
.opt-result { padding: 14px; border: 1px solid #bbf7d0; background: #f6fdf8; border-radius: 16px; display: grid; gap: 8px; font-size: 13.5px; }
.opt-result h4 { font-size: 13px; margin-top: 4px; }
.opt-result ul { margin: 0; padding-left: 18px; display: grid; gap: 3px; }
.opt-result .flags li { color: #92400e; }
.deltas { display: grid; gap: 6px; }
.delta { display: grid; grid-template-columns: 1fr auto 28px auto; align-items: center; gap: 8px; }
.delta span { font-weight: 600; }
.delta b { font-size: 17px; }
.delta b.up { color: var(--green); }
.delta i { height: 2px; background: currentColor; opacity: .3; position: relative; }
.delta i::after { content: ""; position: absolute; right: -1px; top: -3px; border: 4px solid transparent; border-left-color: currentColor; }
.tpl-current { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: border-color .15s; }
.tpl-current:hover { border-color: var(--green-2); }
.tpl-current img { width: 84px; height: 119px; object-fit: cover; object-position: top; border-radius: 6px; border: 1px solid var(--line); background: #fff; }
.tpl-current-text { display: grid; gap: 4px; justify-items: start; }
.tpl-current-text b { font-size: 15px; }
.ats-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 99px; background: #e8f9ee; color: #166534; font-size: 11px; font-weight: 700; white-space: nowrap; }
.ats-badge .icon { width: 12px; height: 12px; }
.gallery-card { width: min(1080px, 100%); }
.font-current { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.font-current:hover { border-color: var(--green-2); }
.font-aa { width: 52px; height: 52px; border-radius: 10px; background: #f3f5ef; display: grid; place-items: center; font-size: 24px; font-weight: 600; color: var(--ink); }
.font-current-text { display: grid; gap: 2px; min-width: 0; }
.font-current-text b { font-size: 14.5px; }
.font-card { width: min(980px, 100%); }
/* "Fill in your details" guided CV form */
.details-card { width: min(720px, 100%); }
.details-form { display: grid; gap: 14px; }
.details-form .d-sub { font-size: 15px; font-weight: 650; margin-top: 4px; }
.details-form .d-head { align-items: center; gap: 10px; }
.details-form .d-head .d-sub { margin: 0; }
.details-form .d-sub em, .details-form .field span em { font-style: normal; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.details-form .field { gap: 5px; }
.details-form .field span { font-weight: 600; font-size: 13.5px; }
.details-form .d-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.details-form .d-rows { display: grid; gap: 12px; }
.details-form .d-row { position: relative; border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: #fafbf8; display: grid; gap: 10px; }
.details-form .d-row-x { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 8px; border: none; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.details-form .d-row-x:hover { background: #fde8e6; color: #b42318; }
.details-form .d-foot { margin-top: 6px; }
@media (max-width: 560px) { .details-form .d-grid { grid-template-columns: 1fr; } }
.font-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.f-card { display: grid; gap: 4px; text-align: left; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.f-card:hover { border-color: #86efac; }
.f-card[aria-pressed="true"] { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); }
.f-sample { font-size: 22px; line-height: 1.2; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-line { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-name { font: 600 12.5px var(--font); color: var(--muted); margin-top: 4px; }
.cat-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.cat-pills button { border: 1px solid var(--line); background: #fff; padding: 7px 13px; border-radius: 99px; font: 600 13px var(--font); color: var(--ink-2); cursor: pointer; }
.cat-pills button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 14px; }
.g-card { display: grid; gap: 6px; justify-items: start; text-align: left; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font: inherit; color: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.g-card:hover { border-color: #86efac; transform: translateY(-2px); box-shadow: 0 12px 26px -16px rgba(0, 0, 0, .35); }
.g-card[aria-pressed="true"] { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); }
.g-img { display: block; width: 100%; aspect-ratio: 210 / 297; overflow: hidden; border-radius: 8px; border: 1px solid #e5e7e0; background: #fff; }
.g-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.g-card b { font-size: 14px; }
.g-for { font-size: 12px; color: var(--muted); line-height: 1.35; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 7px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font: 600 13px var(--font); color: var(--ink); cursor: pointer; }
.swatch i { width: 18px; height: 18px; border-radius: 50%; background: var(--c); }
.swatch[aria-pressed="true"] { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }
.add-row { display: flex; flex-wrap: wrap; gap: 6px; }

.b-stage { min-width: 0; display: flex; flex-direction: column; background: #e9ebe5; }
.b-toolbar { position: sticky; top: 65px; z-index: 6; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 20px; background: rgba(233, 235, 229, .9); backdrop-filter: blur(8px); border-bottom: 1px solid #dcdfd6; }
.b-toolbar .seg-pills span { display: inline-flex; align-items: center; gap: 6px; }
.b-toolbar .seg-pills .icon { width: 14px; height: 14px; }
.b-canvas { flex: 1; padding: 24px 16px 60px; overflow-x: hidden; }
.b-scaler { margin: 0 auto; position: relative; }
.b-scaler[hidden] { display: none; }
#doc { transform-origin: top left; width: max-content; }
#doc .cv-page { box-shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 18px 40px -18px rgba(0, 0, 0, .28); }
#doc .cv-page + .cv-page { margin-top: 28px; }
.b-empty { max-width: 420px; margin: 40px auto; text-align: center; display: grid; gap: 8px; justify-items: center; }
.b-empty h2 { font-size: 20px; font-weight: 600; }
.b-empty[hidden] { display: none; }
.b-empty-page { width: 170px; height: 240px; background: #fff; border-radius: 6px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .3); padding: 22px 18px; display: grid; gap: 10px; align-content: start; margin-bottom: 12px; }
.b-empty-page i { height: 7px; border-radius: 4px; background: #eceee8; }
.b-empty-page i:first-child { width: 60%; height: 12px; background: #d9ddd3; }
.b-empty-page i:nth-child(3) { width: 80%; }
.use-grid { display: grid; gap: 10px; }
.use-opt { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font: inherit; color: inherit; cursor: pointer; }
.use-opt:hover { border-color: var(--green-2); background: #f6fdf8; }
.use-opt > i { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; background: var(--green-soft); color: #166534; display: grid; place-items: center; }
.use-opt > i .icon { width: 20px; height: 20px; }
.use-opt span { font-size: 13px; color: var(--muted); }

/* ---------- M-Pesa pop-up ---------- */
.pay-card { width: min(440px, 100%); }
.pay-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 12px; background: #f6f8f3; border: 1px solid var(--line); font-weight: 600; }
.pay-item b { font-size: 18px; }
.phone-input { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.phone-input:focus-within { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); }
.phone-input span { display: grid; place-items: center; padding: 0 12px; background: #f3f5ef; font-weight: 600; color: var(--muted); border-right: 1px solid var(--line); }
.phone-input input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 13px 12px; font: 500 17px var(--font); letter-spacing: .02em; }
.pay-alt { justify-self: center; font-size: 13.5px; }
.pay-wait { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 8px 0; }
.pay-wait[hidden] { display: none; }
.pay-wait h3 { font-size: 20px; }
.pay-pulse { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: #166534; animation: pulse 1.6s ease-in-out infinite; }
.pay-pulse .icon { width: 28px; height: 28px; }
.pay-pulse.ok { animation: none; background: var(--green); color: #fff; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .35); } 50% { box-shadow: 0 0 0 16px rgba(34, 197, 94, 0); } }

/* ---------- Career Kit + Interview Prep ---------- */
.suite-page { width: min(1180px, 100% - 32px); margin: 26px auto 80px; display: grid; gap: 18px; }
.suite-page > * { min-width: 0; }
.suite-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.suite-hero h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 600; letter-spacing: -.035em; }
.suite-hero p { color: var(--muted); margin-top: 6px; max-width: 640px; }
.ctx-bar { display: grid; grid-template-columns: minmax(220px, 320px) 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); }
.ctx-bar label { font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); display: block; margin-bottom: 4px; }
.ctx-bar select { width: 100%; padding: 9px 10px; font-size: 14px; }
.ctx-jd { min-width: 0; font-size: 14px; }
.ctx-jd b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 2px; }
.ctx-jd span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctx-jd .warn { color: #92400e; }
.ctx-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.no-cv { text-align: center; padding: 48px 20px; display: grid; gap: 10px; justify-items: center; }
.unlock-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 18px; border-radius: 16px; background: linear-gradient(110deg, #0f2d1c, #14532d); color: #fff; }
.unlock-bar b { font-size: 16px; }
.unlock-bar p { margin: 2px 0 0; font-size: 13.5px; opacity: .8; }
.unlock-bar.done { background: #f0fdf4; color: #14532d; border: 1px solid #bbf7d0; }
.unlock-bar .btn-white { white-space: nowrap; }
.suite-tabs { display: flex; gap: 4px; padding: 4px; background: #eceee7; border-radius: 14px; overflow-x: auto; scrollbar-width: none; }
.suite-tabs button { flex: 1 0 auto; border: 0; background: none; padding: 10px 14px; border-radius: 10px; font: 600 14px var(--font); color: var(--muted); cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.suite-tabs button .icon { width: 16px; height: 16px; }
.suite-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.tab-pane { display: grid; gap: 16px; }
.tab-pane[hidden] { display: none; }
.gen-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.gen-row p { color: var(--muted); font-size: 14px; max-width: 620px; }
.gen-empty { padding: 34px 20px; text-align: center; color: var(--muted); border: 1.5px dashed #d3d8cd; border-radius: 18px; background: #fafbf8; }
.out-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; display: grid; gap: 10px; box-shadow: var(--shadow-sm); position: relative; }
.out-card h3 { font-size: 16px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.out-card h3 .icon { width: 18px; height: 18px; color: var(--green); }
.out-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.out-text { white-space: pre-wrap; line-height: 1.6; font-size: 15px; overflow-wrap: anywhere; }
.out-label { font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.out-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.out-list { margin: 0; padding-left: 18px; display: grid; gap: 5px; line-height: 1.5; }
.locked-tail { position: relative; display: grid; gap: 8px; padding: 6px 0 2px; }
.locked-tail i { height: 11px; border-radius: 6px; background: linear-gradient(90deg, #e3e6df, #eef0ea); filter: blur(1.5px); }
.locked-tail i:nth-child(2n) { width: 86%; }
.locked-tail i:nth-child(3n) { width: 64%; }
.lock-cta { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 12px; border-radius: 14px; background: #f6f8f3; border: 1px solid var(--line); font-size: 14px; }
.lock-cta .icon { width: 16px; height: 16px; }
.grammar-card .grammar-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.grammar-card .grammar-list li { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fafbf8; }
.grammar-card .g-change { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: 14.5px; line-height: 1.5; }
.grammar-card .g-old { color: #b42318; text-decoration: line-through; text-decoration-color: rgba(180,35,24,.5); overflow-wrap: anywhere; }
.grammar-card .g-arrow { color: var(--muted); font-weight: 700; }
.grammar-card .g-new { color: var(--green); font-weight: 600; overflow-wrap: anywhere; }
.grammar-card .g-reason { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.cv-para.is-locked { filter: blur(4.5px); user-select: none; opacity: .7; }
.letter-wrap > *, .sheet-wrap > * { min-width: 0; }
.sheet-a4, .letter-stage { overflow: hidden; }
.letter-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.letter-stage { background: #e9ebe5; border-radius: 18px; padding: 18px; overflow: hidden; }
.letter-stage .b-scaler { margin: 0 auto; }
.mini-stage #doc .cv-page, .letter-stage #letterDoc .cv-page, .sheet-a4 .cs-page { box-shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 18px 40px -18px rgba(0, 0, 0, .28); }
.letter-stage #letterDoc, .sheet-a4 #sheetDoc { transform-origin: top left; width: max-content; }
.salary-input { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.salary-input .input { max-width: 340px; }
.script { border-left: 3px solid var(--green-2); padding: 4px 0 4px 14px; display: grid; gap: 4px; }
.script b { font-size: 13px; color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.do-list li::marker { color: var(--green); }
.dont-list li::marker { color: var(--red); }

/* cheat sheet (phone view) */
.sheet-wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; }
.sheet-mobile { max-width: 520px; display: grid; gap: 12px; }
.sm-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; display: grid; gap: 8px; }
.sm-card.pitch { background: linear-gradient(160deg, #0f2d1c, #166534); color: #fff; border: 0; }
.sm-card.pitch .out-label { color: rgba(255, 255, 255, .7); }
.sm-card.pitch p { font-size: 17px; line-height: 1.55; margin: 0; }
.sm-q { display: grid; gap: 6px; }
.sm-q h4 { font-size: 15.5px; display: flex; gap: 10px; line-height: 1.35; }
.sm-q h4 i { flex: none; font-style: normal; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 12px; }
.sm-q ul { margin: 0 0 0 34px; padding: 0; list-style: none; display: grid; gap: 4px; color: var(--ink-2); }
.sm-q li::before { content: "→ "; color: var(--green); font-weight: 700; }
.sm-nums { display: grid; gap: 6px; }
.sm-nums div { display: flex; gap: 10px; align-items: baseline; }
.sm-nums b { font-size: 20px; color: var(--green); min-width: 64px; }
.sheet-a4 { background: #e9ebe5; border-radius: 18px; padding: 16px; }

/* mock panel */
.panelists { display: flex; gap: 12px; flex-wrap: wrap; }
.panelist { display: flex; gap: 10px; align-items: center; padding: 10px 14px 10px 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.panelist.speaking { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(34, 197, 94, .15); }
.panelist .av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: #334155; }
.panelist:nth-child(2) .av { background: #0f6b55; }
.panelist:nth-child(3) .av { background: #7b2338; }
.panelist b { display: block; font-size: 14px; }
.panelist span { font-size: 12.5px; color: var(--muted); }
.q-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: grid; gap: 14px; box-shadow: var(--shadow); }
.q-meta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.q-type { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 9px; border-radius: 99px; background: #f1f5f9; color: #334155; }
.q-text { font-size: clamp(19px, 2.4vw, 24px); font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.q-want { font-size: 13.5px; color: var(--muted); }
.answer-box { display: grid; gap: 10px; }
.answer-box textarea { min-height: 130px; font-size: 15px; line-height: 1.55; }
.answer-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rec-btn.recording { background: #dc2626; color: #fff; border-color: #dc2626; animation: pulse-red 1.4s infinite; }
.mic-meter { width: 90px; height: 8px; border-radius: 99px; background: #e8ebe4; overflow: hidden; }
.mic-meter[hidden] { display: none; }
.mic-meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #22c55e, #16a34a); transition: width .08s linear; }
.answer-box textarea[readonly] { background: #f8fbf8; }
@keyframes pulse-red { 0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, .4); } 50% { box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); } }
.scores { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.score-big { width: 92px; height: 92px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: var(--ink); color: #fff; }
.score-big b { font-size: 32px; line-height: 1; }
.score-big span { font-size: 11px; opacity: .7; }
.score-bars { display: grid; gap: 7px; }
.score-bar { display: grid; grid-template-columns: 96px 1fr 28px; gap: 10px; align-items: center; font-size: 13px; font-weight: 600; }
.score-bar .bar i { background: var(--green-2); }
.score-bar.mid .bar i { background: #f59e0b; }
.score-bar.low .bar i { background: var(--red); }
.improved { background: #f6fdf8; border: 1px solid #bbf7d0; border-radius: 14px; padding: 14px 16px; }
.panel-summary { text-align: center; display: grid; gap: 12px; justify-items: center; }

/* live panel interview */
.mode-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; }
.mode-card { display: grid; gap: 8px; align-content: start; justify-items: start; text-align: left; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; font: inherit; color: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.mode-card:hover { border-color: #86efac; transform: translateY(-1px); box-shadow: 0 12px 26px -18px rgba(0, 0, 0, .35); }
.mode-card.primary { border-color: #86efac; background: linear-gradient(160deg, #f0fdf4, #fff 60%); }
.mode-card b { font-size: 17px; display: inline-flex; align-items: center; gap: 8px; }
.mode-card b .icon { width: 18px; height: 18px; color: var(--green); }
.mode-card > span:last-child { color: var(--muted); font-size: 14px; line-height: 1.5; }
.live-wrap { display: grid; gap: 16px; }
.live-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.live-top .btn { margin-left: auto; }
.live-badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 99px; background: #fef2f2; color: #b91c1c; font-size: 12.5px; font-weight: 700; }
.live-badge i { width: 8px; height: 8px; border-radius: 50%; background: #dc2626; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.live-panelists .panelist.speaking .av { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--green-2); animation: talk 1s ease-in-out infinite; }
@keyframes talk { 50% { box-shadow: 0 0 0 3px #fff, 0 0 0 9px rgba(34, 197, 94, .35); } }
.live-stage { background: #0f1a14; color: #fff; border-radius: 22px; padding: 26px 28px; min-height: 150px; display: grid; gap: 10px; align-content: center; }
.live-speaker { font-size: 13px; font-weight: 600; color: #86efac; letter-spacing: .02em; }
.live-caption { font-size: clamp(19px, 2.4vw, 25px); font-weight: 600; line-height: 1.35; letter-spacing: -.015em; }
.live-you { border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; background: #fff; display: grid; gap: 12px; opacity: .6; transition: opacity .2s, border-color .2s, box-shadow .2s; }
.live-you.on { opacity: 1; border-color: #86efac; box-shadow: 0 0 0 4px rgba(34, 197, 94, .1); }
.live-you-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.live-words { min-height: 56px; font-size: 16px; line-height: 1.55; color: var(--ink-2); white-space: pre-wrap; }
.live-words:empty::before { content: "Your words will appear here as you speak."; color: #9aa196; }
.live-log { font-size: 14px; }
.live-log summary { cursor: pointer; font-weight: 600; color: var(--muted); }
.live-log p { margin: 8px 0 0; line-height: 1.5; }
.thinking { display: inline-flex; gap: 6px; }
.thinking i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; opacity: .4; animation: dots 1.2s infinite; }
.thinking i:nth-child(2) { animation-delay: .2s; }
.thinking i:nth-child(3) { animation-delay: .4s; }
@keyframes dots { 40% { opacity: 1; transform: translateY(-3px); } }
.debrief-wait { text-align: center; justify-items: center; color: var(--green); }
.debrief-wait h3 { color: var(--ink); }
.debrief { gap: 18px; }
.debrief-head { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
.debrief-head h2 { font-size: 24px; letter-spacing: -.02em; margin: 6px 0 4px; }
.debrief-head p { margin: 0 0 12px; }
.ring.big { width: 128px; height: 128px; }
.ring.big b { font-size: 38px; }
.debrief-voices { display: grid; gap: 10px; }
.voice-card { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; transition: border-color .2s, background .2s; }
.voice-card .av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: #334155; }
.voice-card:nth-child(2) .av { background: #0f6b55; }
.voice-card:nth-child(3) .av { background: #7b2338; }
.voice-card b { display: block; }
.voice-card p { margin: 6px 0 0; line-height: 1.55; }
.voice-card.speaking { border-color: var(--green-2); background: #f6fdf8; }
.debrief-sub { font-size: 16px; margin-top: 4px; }
.pq p { margin: 2px 0; line-height: 1.5; font-size: 14px; }
.pq .out-label { display: inline-block; min-width: 92px; }
.pq-rate { font-weight: 700; font-size: 13px; padding: 3px 9px; border-radius: 99px; background: #f1f5f9; }
.pq-rate.good { background: #f0fdf4; color: #166534; }
.pq-rate.ok { background: #fffbeb; color: #92400e; }
.pq-rate.low { background: #fef2f2; color: #b91c1c; }
@media (max-width: 760px) {
  .mode-grid, .debrief-head { grid-template-columns: 1fr; }
  .debrief-head { justify-items: start; }
}

/* aptitude */
.apt { display: grid; gap: 12px; }
.apt-kind { justify-self: start; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 9px; border-radius: 99px; background: #eef2ff; color: #3730a3; }
.apt-scenario { color: var(--ink-2); line-height: 1.55; }
.apt-q { font-weight: 650; font-size: 16px; }
.apt-opts { display: grid; gap: 8px; }
.apt-opt { text-align: left; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: 500 14.5px var(--font); color: var(--ink); cursor: pointer; display: flex; gap: 10px; }
.apt-opt b { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #f1f3ee; display: grid; place-items: center; font-size: 12px; }
.apt-opt:hover:not([disabled]) { border-color: #a3aab0; }
.apt-opt[disabled] { cursor: default; }
.apt-opt.best { border-color: var(--green-2); background: #f0fdf4; }
.apt-opt.best b { background: var(--green); color: #fff; }
.apt-opt.wrong { border-color: #fecaca; background: #fef2f2; }
.apt-explain { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; background: #f8faf6; border: 1px solid var(--line); font-size: 14px; line-height: 1.55; }
.apt-explain[hidden] { display: none; }

/* presence */
.presence-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.curve { display: grid; gap: 3px; padding: 10px 0; border-top: 1px solid var(--line); }
.curve:first-of-type { border-top: 0; }
.curve b { font-size: 14.5px; }
.curve span { font-size: 14px; color: var(--ink-2); }

/* printing the page itself is blocked – the PDF buttons give the real documents */
.print-block { display: none; }
@media print {
  body.suite > *:not(.print-block) { display: none !important; }
  .print-block { display: block; font: 16px system-ui, sans-serif; padding: 40px; }
}

@media (max-width: 1100px) {
  .letter-wrap, .sheet-wrap { grid-template-columns: minmax(0, 1fr); }
  .suite-nav { display: none; }
}
@media (max-width: 900px) {
  .builder { grid-template-columns: 1fr; }
  .b-panel { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .b-foot { position: sticky; bottom: 0; z-index: 8; }
  .b-toolbar { top: 0; position: relative; }
  .ctx-bar { grid-template-columns: 1fr; }
  .ctx-actions { justify-content: flex-start; }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .scores { grid-template-columns: 1fr; justify-items: center; }
  .score-bars { width: 100%; }
  .q-card { padding: 18px; }
}
