/* =========================================================================
   People Portal — HR POD · DEV POD · STUDY POD
   Base tokens = HR POD brand. Public pages swap tokens per company theme.
   ========================================================================= */
:root {
  --bg: #f5faf4;
  --surface: #ffffff;
  --ink: #0b1b2b;
  --muted: #5d6b78;
  --line: #dde6e2;
  --line-2: #c9d6d1;
  --brand: #003c64;
  --brand-2: #003c64;          /* buttons, selected states */
  --brand-2-ink: #ffffff;
  --accent: #34eacd;
  --accent-ink: #003c64;
  --link: #17437d;
  --soft: #e6f2f1;             /* tinted panels */
  --ok: #0e7c5a; --ok-bg: #e2f5ec;
  --warn: #8a5a00; --warn-bg: #fff3d6;
  --err: #a3141a; --err-bg: #fde8e8;
  --font-h: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-b: 'Montserrat', Arial, sans-serif;
  --h-tf: uppercase; --h-ls: .02em; --h-w: 400; --h-scale: 1.25;
  --radius: 10px; --radius-sm: 6px; --radius-btn: 6px;
  --shadow: 0 1px 2px rgba(11, 27, 43, .04), 0 4px 16px rgba(11, 27, 43, .05);
  --focus: 0 0 0 3px color-mix(in srgb, var(--brand-2) 28%, transparent);
}

/* ---------- Company themes (public pages) ---------- */
.th-dev-pod {
  --bg: #F5F7FB; --ink: #1E293B; --muted: #5b6577; --line: #E3E9F6; --line-2: #c8d3ea;
  --brand: #00407D; --brand-2: #3D5FAC; --accent: #1DBBB1; --accent-ink: #0A1F3D; --link: #0E7C76;
  --soft: #E3E9F6;
  --font-h: 'Montserrat', Arial, sans-serif; --font-b: 'Montserrat', Arial, sans-serif;
  --h-tf: none; --h-ls: -.01em; --h-w: 800; --h-scale: .82;
  --radius: 12px; --radius-btn: 8px;
}
.th-study-pod {
  --bg: #FBF7EC; --ink: #0B1446; --muted: #555b7a; --line: #ece5d3; --line-2: #ddd3bb;
  --brand: #0A2EC6; --brand-2: #0A2EC6; --accent: #FBAE00; --accent-ink: #0B1446; --link: #0A2EC6;
  --soft: #e4efff;
  --font-h: 'Poppins', Arial, sans-serif; --font-b: 'Inter', Arial, sans-serif;
  --h-tf: none; --h-ls: -.01em; --h-w: 700; --h-scale: .82;
  --radius: 24px; --radius-sm: 12px; --radius-btn: 999px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.55 var(--font-b); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--link); text-underline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--font-h); text-transform: var(--h-tf); letter-spacing: var(--h-ls); font-weight: var(--h-w); line-height: 1.05; margin: 0; }
p { margin: 0 0 .6em; }
[hidden] { display: none !important; }
.ic { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: .92em; }
.nowrap { white-space: nowrap; }
.strong { font-weight: 600; color: var(--ink); text-decoration: none; }
.strong:hover { color: var(--link); }
.pad { padding: 18px 20px; }
.hp { position: absolute; left: -9999px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid var(--brand-2); background: var(--brand-2); color: var(--brand-2-ink); font: 600 14px/1 var(--font-b); padding: 11px 16px; border-radius: var(--radius-btn); cursor: pointer; text-decoration: none; transition: filter .15s, transform .05s, background .15s; white-space: nowrap; }
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .in:focus, .link:focus-visible { outline: none; box-shadow: var(--focus); }
.btn.ghost { background: transparent; color: var(--brand-2); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--brand-2); background: color-mix(in srgb, var(--brand-2) 6%, transparent); filter: none; }
.btn.sm { padding: 8px 12px; font-size: 13px; }
.btn.lg { padding: 15px 24px; font-size: 15px; }
.btn.block { width: 100%; }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.busy { opacity: .7; pointer-events: none; }
.btn .ic { width: 16px; height: 16px; }
.danger-btn { background: var(--err); border-color: var(--err); }
.link { background: none; border: 0; padding: 0; color: var(--link); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; gap: 5px; align-items: center; }
.link:hover { text-decoration: underline; }
.danger-link { color: var(--err); }

/* ---------- Form controls ---------- */
.grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px 16px; }
.fld { grid-column: span 6; min-width: 0; }
.fld.w-half { grid-column: span 3; }
.fld.w-third { grid-column: span 2; }
.lbl { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 7px; color: var(--ink); }
.req { color: var(--err); font-weight: 700; }
.in { width: 100%; font: 400 15px/1.4 var(--font-b); color: var(--ink); background: #fff; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); padding: 11px 13px; transition: border-color .15s, box-shadow .15s; }
.th-study-pod .in { border-radius: 12px; }
.in:hover { border-color: color-mix(in srgb, var(--brand-2) 45%, var(--line-2)); }
.in:focus { border-color: var(--brand-2); }
textarea.in { resize: vertical; min-height: 64px; }
.sel { position: relative; }
.sel::after { content: ''; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.sel select { appearance: none; padding-right: 38px; }
.help { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }
.err { font-size: 13px; color: var(--err); margin: 6px 0 0; font-weight: 500; }
.has-err .in, .has-err .drop, .has-err .sig canvas { border-color: var(--err); background: #fffafa; }
.has-err .opts .opt span, .has-err .rating .rt span, .has-err .scale10 .sc span { border-color: color-mix(in srgb, var(--err) 50%, var(--line-2)); }
.has-err .consent { border-color: var(--err); }

.opts { display: flex; flex-direction: column; gap: 8px; }
.opts.inline { flex-direction: row; flex-wrap: wrap; }
.grid-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.opt { position: relative; display: flex; cursor: pointer; }
.opt input { position: absolute; opacity: 0; }
.opt span { flex: 1; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; font-size: 14px; transition: all .12s; }
.th-study-pod .opt span { border-radius: 14px; }
.opt span::before { content: ''; width: 16px; height: 16px; flex: none; border: 2px solid var(--line-2); border-radius: 50%; background: #fff; transition: all .12s; }
.opt input[type=checkbox] + span::before { border-radius: 4px; }
.opt:hover span { border-color: color-mix(in srgb, var(--brand-2) 50%, var(--line-2)); }
.opt input:checked + span { border-color: var(--brand-2); background: color-mix(in srgb, var(--brand-2) 6%, #fff); font-weight: 500; }
.opt input:checked + span::before { border-color: var(--brand-2); background: var(--brand-2); box-shadow: inset 0 0 0 3px #fff; }
.opt input[type=checkbox]:checked + span::before { box-shadow: none; background: var(--brand-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat; }
.opt input:focus-visible + span { box-shadow: var(--focus); }

.consent { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; cursor: pointer; font-size: 14px; }
.th-study-pod .consent { border-radius: 14px; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--brand-2); }
.consent:has(input:checked) { border-color: var(--brand-2); background: color-mix(in srgb, var(--brand-2) 5%, #fff); }

.rating { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; max-width: 560px; }
.rt, .sc { position: relative; cursor: pointer; }
.rt input, .sc input { position: absolute; opacity: 0; }
.rt span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px 8px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; transition: all .12s; }
.rt b { font: 700 17px/1 var(--font-b); }
.rt small { font-size: 11px; color: var(--muted); text-align: center; line-height: 1.2; }
.rt:hover span, .sc:hover span { border-color: var(--brand-2); }
.rt input:checked + span, .sc input:checked + span { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.rt input:checked + span small { color: rgba(255, 255, 255, .85); }
.rt input:focus-visible + span, .sc input:focus-visible + span { box-shadow: var(--focus); }
.scale10 { display: grid; grid-template-columns: repeat(11, 1fr); gap: 5px; max-width: 620px; }
.sc span { display: grid; place-items: center; height: 42px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; font-weight: 700; font-size: 14px; transition: all .12s; }
.scale-legend { display: flex; justify-content: space-between; max-width: 620px; font-size: 12px; color: var(--muted); margin-top: 6px; }

.drop { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1.5px dashed var(--line-2); border-radius: var(--radius-sm); background: #fff; cursor: pointer; transition: all .15s; position: relative; min-height: 50px; }
.th-study-pod .drop { border-radius: 14px; }
.drop:hover { border-color: var(--brand-2); background: color-mix(in srgb, var(--brand-2) 4%, #fff); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop-ic { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: var(--soft); color: var(--brand-2); flex: none; }
.drop-t { font-size: 14px; font-weight: 500; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop.chosen { border-style: solid; border-color: var(--brand-2); }
.drop.chosen .drop-t { color: var(--ink); }
.kept { list-style: none; margin: 8px 0 0; padding: 0; font-size: 13px; color: var(--ok); }
.kept .ic { width: 14px; height: 14px; }

.sig { --ink: #0b1b2b; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; overflow: hidden; max-width: 560px; }
.th-study-pod .sig { border-radius: 14px; }
.sig canvas { display: block; width: 100%; height: 150px; touch-action: none; cursor: crosshair; background: linear-gradient(transparent 108px, var(--line) 108px, var(--line) 109px, transparent 109px); }
.sig-bar { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-top: 1px solid var(--line); background: var(--bg); font-size: 12.5px; }
.sig-hint { color: var(--muted); }
.sig.has-sig .sig-hint::before { content: '✓ Signed — '; color: var(--ok); font-weight: 600; }

.rep { display: flex; flex-direction: column; gap: 10px; }
.rep-row { position: relative; padding: 14px 44px 14px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--soft) 45%, #fff); }
.th-study-pod .rep-row { border-radius: 14px; }
.rep-grid { display: grid; grid-template-columns: 1.4fr 1.4fr .8fr .8fr; gap: 10px; }
.rep-grid .fld { grid-column: auto; }
.rep-grid .lbl { font-size: 12px; margin-bottom: 4px; }
.rep-grid .in { padding: 9px 11px; font-size: 14px; }
.rep-del { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.rep-del:hover { background: var(--err-bg); color: var(--err); }
.rep > .btn { align-self: flex-start; }

.info { background: var(--soft); border-left: 4px solid var(--brand-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 14px 18px; font-size: 14px; }
.th-study-pod .info { border-left: 0; border-radius: 16px; background: #fff; border: 1.5px solid var(--line); box-shadow: inset 4px 0 0 var(--accent); }
.th-dev-pod .info { border-left-color: var(--accent); }
.info ul { margin: 0; padding-left: 18px; }
.info li { margin: 4px 0; }
.info p:last-child { margin: 0; }

/* ---------- Public pages ---------- */
.hero { position: relative; overflow: hidden; background: var(--brand); color: #fff; padding: 28px 20px 70px; isolation: isolate; }
.hero-in { max-width: 860px; margin: 0 auto; position: relative; z-index: 2; }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 44px; }
.hero-logo { height: 58px; width: auto; display: block; }
.hero-tag { font: 600 11.5px/1.3 var(--font-b); letter-spacing: .22em; text-transform: uppercase; opacity: .85; text-align: right; }
.kicker { display: inline-block; font: 700 11.5px/1 var(--font-b); letter-spacing: .16em; text-transform: uppercase; background: var(--accent); color: var(--accent-ink); padding: 7px 10px; border-radius: 3px; margin-bottom: 14px; }
.hero h1 { font-size: calc(clamp(44px, 7vw, 76px) * var(--h-scale)); max-width: 14ch; }
.hero-intro { font-size: 16px; line-height: 1.6; max-width: 62ch; margin-top: 16px; opacity: .92; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; font-size: 13px; font-weight: 500; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; opacity: .9; }
.hero-meta .ic { width: 16px; height: 16px; color: var(--accent); }
.hero-shapes { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-shapes > * { position: absolute; display: block; }
.wordmark { font: 400 34px/1 'Bebas Neue', sans-serif; letter-spacing: .06em; }

/* HR POD hero: slice pattern + logo-geometry blocks */
.th-hr-pod .hero.has-pattern::before { content: ''; position: absolute; inset: 0; background: var(--pattern) right center / cover no-repeat; opacity: .55; z-index: 0; }
.th-hr-pod .hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--brand) 30%, color-mix(in srgb, var(--brand) 55%, transparent) 75%, transparent); z-index: 1; }
.th-hr-pod .hero-shapes { display: none; }
.th-hr-pod .kicker { border-radius: 0; }

/* DEV POD hero: Midnight→Navy→Pod Blue gradient, bowl + 45° triangle + dot */
.th-dev-pod .hero { background: linear-gradient(120deg, #0A1F3D 0%, #00407D 55%, #3D5FAC 130%); }
.th-dev-pod .hero-shapes i:nth-child(1) { right: -60px; top: -40px; width: 200px; height: 400px; border-radius: 200px 0 0 200px; background: #3D5FAC; opacity: .9; }
.th-dev-pod .hero-shapes i:nth-child(2) { right: 150px; bottom: 0; width: 220px; height: 220px; background: #1DBBB1; clip-path: polygon(0 100%, 100% 0, 100% 100%); opacity: .95; }
.th-dev-pod .hero-shapes i:nth-child(3) { right: 390px; bottom: 54px; width: 26px; height: 26px; border-radius: 50%; background: #1DBBB1; }
.th-dev-pod .hero-logo { height: 76px; }
.th-dev-pod .kicker { background: transparent; color: #1DBBB1; padding: 0; letter-spacing: .2em; }
.th-dev-pod .hero h1 { font-weight: 300; }
.th-dev-pod .hero h1::first-line { font-weight: 800; }

/* STUDY POD hero: Royal Blue with gold swoosh arcs + star */
.th-study-pod .hero { background: #0A2EC6; padding-bottom: 80px; }
.th-study-pod .hero-shapes i:nth-child(1) { right: -150px; top: -170px; width: 560px; height: 560px; border-radius: 50%; border: 28px solid transparent; border-left-color: #FBAE00; border-bottom-color: #FBAE00; transform: rotate(-10deg); z-index: 1; }
.th-study-pod .hero-shapes i:nth-child(2) { right: -110px; top: -130px; width: 470px; height: 470px; border-radius: 50%; background: #0B1446; opacity: .45; }
.th-study-pod .hero-tag { display: none; }
.th-study-pod .hero-shapes b { right: 120px; bottom: 30px; width: 44px; height: 44px; background: #FBAE00; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.th-study-pod .hero-logo { height: 46px; }
.th-study-pod .kicker { border-radius: 999px; padding: 8px 14px; }
.th-study-pod .hero h1::after { content: ''; display: block; width: 64px; height: 6px; border-radius: 6px; background: #FBAE00; margin-top: 18px; }
.th-study-pod .hero-meta .ic { color: #FBAE00; }

.pub-main { max-width: 860px; margin: -40px auto 0; padding: 0 16px 40px; position: relative; z-index: 3; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.form.card { padding: 8px 0 0; }
.fsec { padding: 26px 28px 28px; border-bottom: 1px solid var(--line); }
.fsec-h { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.fsec-h h2 { font-size: calc(30px * var(--h-scale)); color: var(--brand); }
.th-study-pod .fsec-h h2 { color: var(--ink); }
.fsec-n { font: 700 12px/1 var(--font-b); letter-spacing: .06em; color: var(--accent-ink); background: var(--accent); min-width: 32px; height: 26px; display: grid; place-items: center; border-radius: 4px; }
.th-dev-pod .fsec-n { background: var(--brand-2); color: #fff; border-radius: 50%; width: 30px; height: 30px; min-width: 30px; }
.th-study-pod .fsec-n { border-radius: 999px; }
.fsec-intro { color: var(--muted); font-size: 14px; margin: -8px 0 16px; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 28px; background: color-mix(in srgb, var(--soft) 40%, #fff); border-radius: 0 0 var(--radius) var(--radius); }
.crumb { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--link); text-decoration: none; margin: 0 0 12px; }
.pub .crumb { color: #fff; position: relative; top: -6px; }
.pub-foot { max-width: 860px; margin: 0 auto; padding: 8px 16px 36px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--muted); }

.flash { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--radius-sm); margin: 0 0 16px; font-size: 14px; font-weight: 500; background: var(--ok-bg); color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 25%, transparent); }
.flash.err { background: var(--err-bg); color: var(--err); border-color: color-mix(in srgb, var(--err) 25%, transparent); }

.done { text-align: center; padding: 48px 28px; }
.done-ic { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.done-ic .ic { width: 34px; height: 34px; stroke-width: 2.4; }
.done h2 { font-size: calc(40px * var(--h-scale)); color: var(--brand); margin-bottom: 10px; }
.th-study-pod .done h2 { color: var(--ink); }
.done p { color: var(--muted); max-width: 46ch; margin: 0 auto 22px; }

.steps { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.step { display: flex; align-items: center; gap: 16px; padding: 18px 20px; text-decoration: none; color: var(--ink); transition: transform .12s, box-shadow .12s, border-color .12s; }
.step:hover { transform: translateY(-2px); border-color: var(--brand-2); box-shadow: 0 8px 24px rgba(11, 27, 43, .09); }
.step-n { width: 46px; height: 46px; flex: none; border-radius: 10px; display: grid; place-items: center; font: 700 15px/1 var(--font-b); background: var(--soft); color: var(--brand); }
.th-study-pod .step-n, .th-dev-pod .step-n { border-radius: 50%; }
.step.is-done .step-n { background: var(--accent); color: var(--accent-ink); }
.step-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.step-b strong { font-size: 16px; }
.step-b small { color: var(--muted); font-size: 13px; }
.step-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--brand-2-ink); background: var(--brand-2); padding: 9px 14px; border-radius: var(--radius-btn); }
.step.is-done .step-go { background: transparent; color: var(--link); padding-right: 0; }
.sub-h { font-size: calc(26px * var(--h-scale)); color: var(--brand); margin: 28px 0 12px; }
.th-study-pod .sub-h { color: var(--ink); }
.res { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-bottom: 24px; }
.res-i { display: flex; align-items: center; gap: 14px; padding: 16px 18px; text-decoration: none; color: var(--ink); }
.res-i:hover { border-color: var(--brand-2); }
.res-i > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.res-i small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.res-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--soft); color: var(--brand-2); display: grid; place-items: center; flex: none; }

/* ---------- Auth ---------- */
.auth { background: var(--bg); }
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-art { position: relative; background: var(--brand); color: #fff; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; overflow: hidden; isolation: isolate; }
.auth-art::before { content: ''; position: absolute; inset: 0; background: var(--pattern) center / cover; opacity: .28; z-index: -1; mix-blend-mode: screen; }
.auth-logo { width: 96px; }
.auth-art h1 { font-size: clamp(64px, 9vw, 120px); line-height: .9; }
.auth-art p { max-width: 40ch; opacity: .9; margin-top: 16px; }
.auth-tag { font-weight: 600; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); }
.auth-panel { display: grid; place-items: center; padding: 40px 20px; }
.auth-form { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 16px; }
.auth-form h2 { font-size: 40px; color: var(--brand); }
.auth-form .fld { grid-column: auto; }

/* ---------- Admin shell ---------- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: var(--brand); color: #fff; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 22px 14px 16px; }
.side-brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 22px; margin-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, .12); text-decoration: none; color: #fff; }
.side-logo { width: 44px; }
.side-title { font: 400 24px/1 var(--font-h); letter-spacing: .04em; text-transform: uppercase; }
.side-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 8px; color: rgba(255, 255, 255, .78); text-decoration: none; font-weight: 500; font-size: 14px; transition: background .12s, color .12s; position: relative; }
.side-nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.side-nav a.on { background: rgba(255, 255, 255, .1); color: #fff; font-weight: 600; }
.side-nav a.on::before { content: ''; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 4px; background: var(--accent); border-radius: 0 3px 3px 0; }
.side-nav .ic { width: 19px; height: 19px; }
.side-foot { border-top: 1px solid rgba(255, 255, 255, .12); padding: 14px 6px 0; display: flex; flex-direction: column; gap: 10px; }
.side-user { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; }
.side-out { color: rgba(255, 255, 255, .7); font-size: 13px; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.side-out:hover { color: #fff; }
.av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 14px; flex: none; }
.av.lg { width: 58px; height: 58px; font: 400 30px/1 var(--font-h); background: var(--brand); color: #fff; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 12px; padding: 14px 32px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 85%, #fff); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(8px); }
.menu-btn { display: none; background: none; border: 1px solid var(--line-2); border-radius: 8px; padding: 7px; cursor: pointer; color: var(--ink); }
.co-switch { display: flex; gap: 4px; background: #fff; border: 1px solid var(--line); padding: 4px; border-radius: 10px; overflow-x: auto; scrollbar-width: none; }
.co-switch a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; }
.co-switch a:hover { color: var(--ink); background: var(--bg); }
.co-switch a.on { background: var(--brand); color: #fff; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dot, var(--brand)); display: inline-block; flex: none; }
.co-switch a.on .dot { box-shadow: 0 0 0 2px #fff; }
.content { padding: 28px 32px 60px; max-width: 1320px; width: 100%; }

.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-h h1 { font-size: 44px; color: var(--brand); }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.page-actions form { margin: 0; }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.tile { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); position: relative; overflow: hidden; transition: border-color .12s; }
a.tile:hover { border-color: var(--brand); }
.tile::after { content: ''; position: absolute; right: 0; top: 0; width: 34px; height: 34px; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 100%); opacity: .9; }
.tile-k { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.tile-v { font: 400 48px/1 var(--font-h); color: var(--brand); margin: 6px 0 2px; }
.tile-s { font-size: 12px; color: var(--muted); }
.tiles.mini { grid-template-columns: repeat(4, 1fr); padding-bottom: 0; }
.tiles.mini .tile-v { font-size: 36px; }

.co-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.co-card { display: flex; flex-direction: column; gap: 18px; padding: 20px 22px; border-radius: var(--radius); background: var(--brand); color: #fff; text-decoration: none; position: relative; overflow: hidden; transition: transform .12s; }
.co-card:hover { transform: translateY(-2px); }
.co-card::after { content: ''; position: absolute; right: -30px; bottom: -30px; width: 110px; height: 110px; background: var(--accent); clip-path: polygon(0 100%, 100% 0, 100% 100%); opacity: .9; }
.co-card-logo { height: 46px; display: flex; align-items: center; }
.co-logo { height: 42px; width: auto; max-width: 180px; }
.co-card-stats { display: flex; gap: 18px; font-size: 13px; opacity: .92; position: relative; z-index: 1; }
.co-card-stats b { font: 400 26px/1 var(--font-h); display: block; }

.cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.cols.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.grow { min-width: 0; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.panel + .panel { margin-top: 0; }
section.panel { margin-bottom: 18px; }
.stack > section.panel { margin-bottom: 0; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.side-col .panel-h h2, .stack .panel-h h2 { font-size: 21px; }
.panel-h h2 { font-size: 24px; color: var(--brand); display: flex; align-items: center; gap: 8px; }
.panel-h h2 .ic { width: 20px; height: 20px; }
.h3 { font-size: 20px; color: var(--brand); margin-bottom: 8px; }
.collapsible { display: none; }
.collapsible.open { display: block; }
.form-actions { display: flex; gap: 8px; margin-top: 18px; }
.inline-form { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.inline-form .fld { grid-column: auto; min-width: 200px; }
.inline-form p { margin: 0; flex-basis: 100%; }
.inline-form .sel { min-width: 240px; }
.warn-panel { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.warn-panel p { color: var(--warn); font-weight: 500; flex-basis: auto; display: flex; gap: 8px; align-items: center; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.tabs { display: flex; gap: 2px; border-bottom: 2px solid var(--line); overflow-x: auto; scrollbar-width: thin; max-width: 100%; }
.tabs a { padding: 9px 12px; font-size: 13.5px; font-weight: 600; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.tabs a span { font-size: 11.5px; background: var(--line); color: var(--muted); padding: 2px 7px; border-radius: 10px; }
.tabs a.on { color: var(--brand); border-color: var(--brand); }
.tabs a.on span { background: var(--brand); color: #fff; }
.search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--line-2); border-radius: 8px; padding: 0 12px; min-width: 260px; }
.search:focus-within { border-color: var(--brand); box-shadow: var(--focus); }
.search input { border: 0; outline: 0; padding: 10px 0; font: inherit; font-size: 14px; width: 100%; background: transparent; }
.search .ic { color: var(--muted); }

.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 11px 16px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 60%, #fff); white-space: nowrap; }
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tr[data-href] { cursor: pointer; }
.tbl tbody tr:hover td { background: color-mix(in srgb, var(--soft) 45%, #fff); }
.tbl .sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.mini { border-collapse: collapse; font-size: 13px; width: 100%; }
.mini th, .mini td { border: 1px solid var(--line); padding: 6px 9px; text-align: left; }
.mini th { background: var(--bg); font-weight: 600; }

.st { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.st-onboarding { background: #e0f7f2; color: #0b6b5c; }
.st-active { background: #e4ecf5; color: #003c64; }
.st-offboarding { background: #fff1d6; color: #8a5a00; }
.st-exited { background: #eceff1; color: #5d6b78; }
.st-warn { background: var(--warn-bg); color: var(--warn); }
.co-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.chip { display: inline-block; background: var(--soft); color: var(--brand); border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 500; margin: 2px 4px 2px 0; }
.form-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.form-tag .ic { width: 15px; height: 15px; color: var(--link); }

.prog { display: flex; align-items: center; gap: 9px; min-width: 120px; }
.prog-bar { flex: 1; height: 7px; border-radius: 7px; background: var(--line); overflow: hidden; }
.prog-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #17437d); border-radius: 7px; transition: width .3s; }
.prog span { font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }

.list { list-style: none; margin: 0; padding: 6px 0; }
.list li > a, .li-row { display: flex; align-items: center; gap: 12px; padding: 11px 20px; text-decoration: none; color: var(--ink); }
.list li > a:hover { background: color-mix(in srgb, var(--soft) 45%, #fff); }
.list li > a > span:nth-child(2), .li-row > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.list strong { font-size: 14px; font-weight: 600; }
.list small { font-size: 12.5px; color: var(--muted); }
.list li > a > .ic:last-child { color: var(--muted); }
.li-ic { width: 34px; height: 34px; border-radius: 8px; background: var(--soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.date-chip { width: 44px; flex: none; text-align: center; border: 1px solid var(--line); border-radius: 8px; padding: 4px 0; font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--muted); }
.date-chip b { display: block; font: 400 22px/1 var(--font-h); color: var(--brand); }
.date-chip.late { border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: var(--warn-bg); color: var(--warn); }
.date-chip.late b { color: var(--warn); }
.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty > .ic { width: 38px; height: 38px; color: var(--line-2); margin-bottom: 8px; }
.empty p { margin-bottom: 14px; }

.tip { display: flex; gap: 14px; align-items: flex-start; background: var(--soft); border: 1px solid color-mix(in srgb, var(--brand) 12%, transparent); padding: 14px 18px; border-radius: var(--radius); margin-bottom: 22px; font-size: 14px; }
.tip p { margin: 0; }
.tip > .ic { color: var(--brand); margin-top: 2px; }

.co-block { margin-bottom: 34px; }
.co-block-h { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-radius: var(--radius); background: var(--brand); color: #fff; position: relative; overflow: hidden; }
.co-block-h span { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; opacity: .85; position: relative; z-index: 1; }
.co-block-h::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 70px; background: var(--accent); clip-path: polygon(60% 0, 100% 0, 100% 100%, 0 100%); }
.co-block-h span { margin-right: 60px; }
.journey-h { font-size: 22px; color: var(--brand); margin: 20px 0 10px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.fcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); }
.fcard-top { display: flex; align-items: center; justify-content: space-between; }
.fcard-ic { width: 38px; height: 38px; border-radius: 9px; background: var(--brand); color: #fff; display: grid; place-items: center; }
.fcard-who { font-size: 12px; font-weight: 600; color: var(--muted); }
.fcard h4 { font: 700 16px/1.3 var(--font-b); text-transform: none; letter-spacing: 0; }
.fcard p { flex: 1; margin: 0; }
.fcard-foot { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px dashed var(--line); margin-top: 4px; }
.share { display: flex; gap: 6px; flex-wrap: wrap; }
.share .btn { flex: 1; }

.emp-h { display: flex; align-items: center; gap: 16px; }
.emp-h h1 { font-size: 40px; }
.emp-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 0; font-size: 13.5px; color: var(--muted); }
.share-panel { border-top: 4px solid var(--brand); }
.linkbox { display: flex; gap: 8px; margin-bottom: 10px; }
.linkbox .in { font-size: 13px; background: var(--bg); }
.form-status { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; margin-top: 16px; }
.fs-i { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.fs-i.done { background: var(--ok-bg); border-color: transparent; }
.fs-ic { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 7px; background: var(--bg); color: var(--muted); flex: none; }
.fs-i.done .fs-ic { background: var(--ok); color: #fff; }
.fs-t { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.fs-t strong { font-size: 13.5px; }
.fs-t small { font-size: 12px; color: var(--muted); }

.checklist { list-style: none; margin: 0; padding: 8px 10px; }
.checklist label { display: flex; align-items: flex-start; gap: 12px; padding: 10px; border-radius: 8px; cursor: pointer; }
.checklist label:hover { background: color-mix(in srgb, var(--soft) 50%, #fff); }
.checklist input { position: absolute; opacity: 0; }
.cb { width: 22px; height: 22px; flex: none; border: 2px solid var(--line-2); border-radius: 6px; display: grid; place-items: center; color: transparent; transition: all .12s; margin-top: 1px; }
.cb .ic { width: 14px; height: 14px; stroke-width: 3; }
.checklist input:checked + .cb { background: var(--brand); border-color: var(--brand); color: #fff; }
.checklist input:disabled + .cb { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.checklist input:focus-visible + .cb { box-shadow: var(--focus); }
.cl-t { display: flex; flex-direction: column; font-size: 14px; font-weight: 500; }
.cl-t small { font-size: 12px; color: var(--muted); font-weight: 400; }
.checklist li.done .cl-t { color: var(--muted); }
.checklist li.done .cl-t > :first-child { text-decoration: line-through; }

.dl { display: grid; grid-template-columns: auto 1fr; gap: 9px 16px; margin: 0; font-size: 13.5px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 500; word-break: break-word; }
.side-col .collapsible .fld { margin-bottom: 10px; }
.timeline { list-style: none; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.timeline li { display: flex; flex-direction: column; padding-left: 16px; border-left: 2px solid var(--line); font-size: 13.5px; }
.timeline small { color: var(--muted); font-size: 12px; }
details.danger { border: 1px dashed var(--line-2); border-radius: var(--radius); background: #fff; }
details.danger summary { padding: 12px 18px; cursor: pointer; font-weight: 600; font-size: 13.5px; color: var(--muted); }

.record { display: flex; flex-direction: column; gap: 0; }
.rec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.rec-r { padding: 13px 20px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rec-r:nth-child(odd):not(.wide) { border-right: 1px solid var(--line); }
.rec-r.wide { grid-column: 1 / -1; border-right: 0 !important; }
.rec-r dt { font-size: 12px; font-weight: 600; color: var(--muted); }
.rec-r dd { margin: 0; font-size: 14.5px; word-break: break-word; }
.sig-img { max-width: 280px; height: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.stars { display: inline-flex; gap: 3px; vertical-align: middle; }
.stars i { width: 12px; height: 12px; background: var(--line); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.stars i.on { background: #e6a700; }
.file-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.print-head { display: none; }
.report .tiles { margin: 0; }
.bullets { margin: 6px 0 0; padding-left: 18px; font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .cols { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .co-cards { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  .nav-open .side { transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .35); }
  .menu-btn { display: grid; }
  .top { padding: 12px 16px; }
  .content { padding: 20px 16px 50px; }
  .cols.two { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-art { padding: 28px 20px; gap: 20px; }
  .auth-art h1 { font-size: 64px; }
  .page-h h1 { font-size: 36px; }
  .search { min-width: 0; width: 100%; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; gap: 16px; }
  .fld, .fld.w-half, .fld.w-third { grid-column: 1 / -1; }
  .fsec { padding: 22px 18px; }
  .form-foot { padding: 18px; flex-direction: column-reverse; align-items: stretch; }
  .form-foot .btn { width: 100%; }
  .hero { padding: 20px 16px 64px; }
  .hero-top { margin-bottom: 30px; }
  .hero-tag { display: none; }
  .hero-logo { height: 46px; }
  .th-dev-pod .hero-logo { height: 60px; }
  .th-study-pod .hero-logo { height: 34px; }
  .th-dev-pod .hero-shapes i:nth-child(1) { width: 120px; height: 240px; right: -50px; }
  .th-dev-pod .hero-shapes i:nth-child(2) { width: 120px; height: 120px; right: 40px; }
  .th-dev-pod .hero-shapes i:nth-child(3) { display: none; }
  .th-study-pod .hero-shapes i:nth-child(1) { width: 300px; height: 300px; border-width: 16px; right: -150px; top: -130px; }
  .th-study-pod .hero-shapes i:nth-child(2) { width: 250px; height: 250px; right: -130px; top: -110px; }
  .th-study-pod .hero-shapes b { right: 24px; bottom: 20px; width: 30px; height: 30px; }
  .pub-main { padding: 0 12px 30px; }
  .rep-grid { grid-template-columns: 1fr 1fr; }
  .rating { gap: 4px; }
  .rt small { display: none; }
  .scale10 { grid-template-columns: repeat(6, 1fr); }
  .step { padding: 14px; gap: 12px; }
  .step-go { padding: 8px; font-size: 0; gap: 0; }
  .step-go .ic { width: 18px; height: 18px; }
  .tiles, .tiles.mini { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile-v { font-size: 38px; }
  .rec { grid-template-columns: 1fr; }
  .rec-r { border-right: 0 !important; }
  .emp-h h1 { font-size: 30px; }
  .co-switch a { padding: 6px 10px; }
}

/* ---------- Print (response records) ---------- */
@media print {
  .side, .top, .noprint, .crumb, details.danger { display: none !important; }
  .shell { display: block; }
  .content { padding: 0; }
  body { background: #fff; font-size: 12px; }
  .panel { box-shadow: none; break-inside: avoid; }
  .print-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 3px solid var(--brand); padding-bottom: 10px; margin-bottom: 16px; font-weight: 600; }
  .print-logo { height: 44px; width: auto; }
  .page-h h1 { font-size: 30px; }
}
