/* marker ACT_CHANGE002 brand skin. A Class Talent. One stylesheet for public pages, talent portal and admin. */
@font-face { font-family: Inter; src: url(/fonts/inter-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url(/fonts/inter-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Inter; src: url(/fonts/inter-latin-800-normal.woff2) format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url(/fonts/jetbrains-mono-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; }

:root {
  /* Brand from the A Class Talent logo. Deep navy, gold, royal blue. */
  --night: #011030;
  --night-2: #0A1F4D;
  --gold: #E8B21C;
  --gold-hi: #F5C842;
  --gold-ink: #7A5600;
  --gold-soft: #FBF3DD;
  --blue: #0B3A8C;
  --blue-dark: #082C6B;
  --navy: #011030;
  --sky: #FBF3DD;
  --white: #FFFFFF;
  --grey: #F7F5EF;
  --ink: #14213D;
  --muted: #4A5268;
  --line: #DCD6C8;
  --line-soft: #ECE7DC;
  --green: #16A36A;
  --green-ink: #0B6B44;
  --green-bg: #E5F6EE;
  --amber: #E9A23B;
  --amber-ink: #8A5A10;
  --amber-bg: #FDF3E1;
  --red: #C93838;
  --red-bg: #FCEBEB;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(1, 16, 48, .06), 0 4px 16px rgba(1, 16, 48, .07);
  --font: Inter, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--white); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 800; }
h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 600; }
h4 { font-size: 16px; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--blue); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--blue); outline-offset: 2px;
}
.mono { font-family: var(--mono); font-size: 14px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: var(--radius-sm);
  border: 2px solid var(--blue); background: var(--blue); color: var(--white);
  font: 600 16px var(--font); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn.secondary { background: var(--white); color: var(--blue); }
.btn.secondary:hover { background: var(--sky); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--navy); }
.btn.ghost:hover { background: var(--grey); }
.btn.danger { background: var(--white); color: var(--red); border-color: var(--red); }
.btn.danger:hover { background: var(--red-bg); }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn.block { width: 100%; }

/* ---------- forms ---------- */
label { display: block; font-weight: 600; font-size: 15px; color: var(--navy); margin-bottom: 6px; }
.hint { display: block; font-weight: 400; font-size: 14px; color: var(--muted); margin-top: 4px; }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=number], input[type=password],
input[type=date], input[type=time], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; font: 16px var(--font); color: var(--ink);
  background: var(--white); border: 1.5px solid #B9C4D4; border-radius: var(--radius-sm);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(37, 99, 235, .2); }
.field { margin-bottom: 18px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red); }
.field .error { color: var(--red); font-size: 14px; margin-top: 6px; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.choice { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 12px; border: 1.5px solid #B9C4D4; border-radius: var(--radius-sm); font-weight: 400; color: var(--ink); cursor: pointer; margin: 0; background: var(--white); }
.choice:has(input:checked) { border-color: var(--blue); background: var(--sky); }
.choice input { width: 18px; height: 18px; accent-color: var(--blue); margin: 0; flex: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink); margin-bottom: 12px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); flex: none; }

/* ---------- surfaces ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.card h3:first-child, .card h4:first-child { margin-top: 0; }
.panel { background: var(--grey); border-radius: var(--radius); padding: 20px; }
.notice { padding: 12px 16px; border-radius: var(--radius-sm); border: 1.5px solid; font-size: 15px; }
.notice.info { background: var(--sky); border-color: #A9C6F5; color: var(--navy); }
.notice.ok { background: var(--green-bg); border-color: #9ED8BD; color: var(--green-ink); }
.notice.warn { background: var(--amber-bg); border-color: #F0CB8A; color: var(--amber-ink); }
.notice.bad { background: var(--red-bg); border-color: #EDB0B0; color: #8E1F1F; }

.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--grey); color: var(--navy); border: 1px solid var(--line); white-space: nowrap; }
.pill.ok { background: var(--green-bg); color: var(--green-ink); border-color: #9ED8BD; }
.pill.warn { background: var(--amber-bg); color: var(--amber-ink); border-color: #F0CB8A; }
.pill.bad { background: var(--red-bg); color: #8E1F1F; border-color: #EDB0B0; }
.pill.blue { background: var(--sky); color: var(--blue-dark); border-color: #A9C6F5; }

/* ---------- public header ---------- */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line-soft); }
.site-head .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--navy); text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--blue); color: var(--white); display: grid; place-items: center; font-weight: 800; font-size: 16px; }
.site-nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.site-nav a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: var(--radius-sm); }
.site-nav a:hover { background: var(--grey); }
.site-nav .btn { color: var(--white); margin-left: 8px; }
.menu-toggle { display: none; margin-left: auto; }
@media (max-width: 820px) {
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--white); border-bottom: 1px solid var(--line); padding: 12px 16px 16px; }
  .site-nav.open { display: flex; }
  .site-nav .btn { margin: 8px 0 0; }
}

/* ---------- public sections ---------- */
.hero { position: relative; overflow: hidden; background: var(--sky); padding: 72px 0 80px; }
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; background: var(--white); opacity: .7; }
.hero::before { width: 420px; height: 160px; right: -80px; top: 40px; }
.hero::after { width: 300px; height: 120px; right: 220px; bottom: -40px; opacity: .5; }
.hero .wrap { position: relative; z-index: 1; }
.hero p.lead { font-size: 19px; max-width: 620px; color: var(--ink); }
.hero .tag { font-family: var(--mono); color: var(--blue-dark); font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
.section { padding: 64px 0; }
.section.alt { background: var(--grey); }
.cat-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--navy); font-weight: 600; transition: border-color .15s, transform .15s; }
.cat-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.cat-card .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--sky); display: grid; place-items: center; color: var(--blue); }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { counter-increment: s; display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-weight: 600; color: var(--navy); }
.steps li::before { content: counter(s); width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--blue); color: var(--white); display: grid; place-items: center; font-family: var(--mono); font-size: 15px; }
.cta-band { background: var(--navy); color: var(--white); border-radius: 20px; padding: 48px 32px; text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band .btn.secondary { border-color: var(--white); }
.site-foot { border-top: 1px solid var(--line-soft); padding: 28px 0; font-size: 14px; color: var(--muted); }
.site-foot a { color: var(--muted); }

/* ---------- apply wizard ---------- */
.apply-shell { max-width: 680px; margin: 0 auto; padding: 32px 16px 64px; }
.progress { display: flex; gap: 6px; margin: 16px 0 24px; }
.progress span { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.progress span.done { background: var(--blue); }
.step-label { font-family: var(--mono); font-size: 14px; color: var(--blue-dark); }
.wizard-nav { display: flex; gap: 12px; justify-content: space-between; margin-top: 24px; position: sticky; bottom: 0; background: var(--white); padding: 12px 0; border-top: 1px solid var(--line-soft); }
.upload-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-top: 8px; }
.upload-row .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar { height: 8px; background: var(--line-soft); border-radius: 4px; overflow: hidden; width: 120px; }
.bar > i { display: block; height: 100%; background: var(--blue); width: 0; transition: width .2s; }
.success-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--green-bg); color: var(--green); display: grid; place-items: center; margin-bottom: 16px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; }
table.data th { text-align: left; font-weight: 600; color: var(--muted); font-size: 14px; padding: 10px 12px; background: var(--grey); border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr.clickable { cursor: pointer; }
table.data tr.clickable:hover td { background: #F9FBFE; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- admin layout ---------- */
body.admin { background: var(--grey); }
.admin-shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { background: var(--navy); color: var(--white); padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .brand { color: var(--white); margin: 4px 8px 22px; }
.side .brand-mark { background: var(--white); color: var(--navy); }
.side nav a { display: flex; align-items: center; gap: 10px; color: #DCE5F5; text-decoration: none; padding: 10px 12px; border-radius: var(--radius-sm); font-weight: 600; font-size: 15px; }
.side nav a:hover { background: rgba(255, 255, 255, .08); color: var(--white); }
.side nav a.active { background: var(--blue); color: var(--white); }
.side nav a svg { flex: none; }
.side .me-box { margin-top: 24px; padding: 12px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: 14px; color: #DCE5F5; }
.main { padding: 24px; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.topbar h1 { font-size: 28px; margin: 0; }
.topbar .actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.admin-menu-btn { display: none; }
@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 30% 0 0; z-index: 50; transform: translateX(-105%); transition: transform .2s; height: 100%; }
  .side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .35); }
  .admin-menu-btn { display: inline-flex; }
  .main { padding: 16px; }
}
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; display: block; color: inherit; }
.stat:hover { border-color: var(--blue); }
.stat .n { font-size: 34px; font-weight: 800; color: var(--navy); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .l { font-size: 14px; color: var(--muted); font-weight: 600; }
.stat.hot .n { color: var(--blue); }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.filters input, .filters select { min-height: 42px; font-size: 15px; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.seg button { border: 0; background: var(--white); padding: 8px 14px; font: 600 14px var(--font); color: var(--navy); cursor: pointer; min-height: 38px; }
.seg button.on { background: var(--navy); color: var(--white); }
.tabs { display: flex; gap: 4px; border-bottom: 1.5px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 10px 14px; font: 600 15px var(--font); color: var(--muted); border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs button.on { color: var(--blue); border-bottom-color: var(--blue); }
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.kcol { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; min-height: 200px; }
.kcol h4 { display: flex; justify-content: space-between; font-size: 15px; margin: 4px 4px 10px; }
.kcol.drop { border-color: var(--blue); background: var(--sky); }
.kcard { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 8px; cursor: grab; font-size: 15px; }
.kcard strong { display: block; color: var(--navy); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.person-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; cursor: pointer; }
.person-card:hover { border-color: var(--blue); }
.person-card .name { font-weight: 600; color: var(--navy); font-size: 17px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--sky); color: var(--blue-dark); display: grid; place-items: center; font-weight: 800; flex: none; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 12px; font-size: 15px; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; } .kv dd { margin-bottom: 8px; } }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.feed li:last-child { border-bottom: 0; }
.feed time { color: var(--muted); font-size: 14px; display: block; }
.score-grid { display: grid; gap: 10px; }
.score-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.score-row .dots { display: flex; gap: 4px; }
.score-row .dots button { width: 36px; height: 36px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--white); font: 600 15px var(--font); cursor: pointer; color: var(--navy); }
.score-row .dots button.on { background: var(--blue); border-color: var(--blue); color: var(--white); }
.big-total { font-size: 40px; font-weight: 800; color: var(--blue); font-variant-numeric: tabular-nums; }
.bulkbar { position: sticky; bottom: 12px; z-index: 10; background: var(--navy); color: var(--white); padding: 10px 14px; border-radius: var(--radius); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.bulkbar select { width: auto; min-height: 38px; }
.bulkbar .btn { min-height: 38px; }
.cal-day { margin-bottom: 18px; }
.cal-day h4 { font-size: 15px; color: var(--muted); margin-bottom: 8px; }

/* ---------- dialog and toast ---------- */
dialog { border: 0; border-radius: 16px; padding: 0; width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 32px); box-shadow: 0 20px 60px rgba(23, 37, 84, .25); color: var(--ink); }
dialog::backdrop { background: rgba(23, 37, 84, .45); }
dialog .dhead { display: flex; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line-soft); }
dialog .dhead h3 { margin: 0; }
dialog .dhead button { margin-left: auto; }
dialog .dbody { padding: 20px; overflow-y: auto; max-height: calc(100vh - 180px); }
dialog .dfoot { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--line-soft); }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; width: min(440px, calc(100vw - 32px)); }
#toast div { background: var(--navy); color: var(--white); padding: 12px 16px; border-radius: var(--radius-sm); box-shadow: var(--shadow); font-size: 15px; }
#toast div.bad { background: var(--red); }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.loading { padding: 40px; text-align: center; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.filters label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; color: var(--navy); }
.copy-box { display: flex; gap: 8px; }
.copy-box input { font-family: var(--mono); font-size: 14px; }
.filter-box { margin-bottom: 12px; }
.filter-box > summary { list-style: none; margin-bottom: 10px; }
.filter-box > summary::-webkit-details-marker { display: none; }
@media (min-width: 900px) { .filter-box > summary { display: none; } }

/* ================= Brand skin (navy and gold, from the logo) ================= */
.btn { background: var(--gold); border-color: var(--gold); color: var(--night); }
.btn:hover { background: var(--gold-hi); border-color: var(--gold-hi); }
.btn.secondary { background: var(--white); color: var(--night); border-color: var(--night); }
.btn.secondary:hover { background: var(--gold-soft); }
.on-dark a:focus-visible, .on-dark button:focus-visible, .side a:focus-visible, .side button:focus-visible { outline-color: var(--gold); }
.on-dark .btn.secondary { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .7); }
.on-dark .btn.secondary:hover { background: rgba(255, 255, 255, .08); border-color: var(--gold); }
.choice:has(input:checked) { border-color: var(--gold-ink); background: var(--gold-soft); }
.choice input, .check input { accent-color: var(--night); }
.progress span.done { background: var(--gold); }
.step-label { color: var(--gold-ink); }
.bar > i { background: var(--gold); }
.pill.blue { background: #E6EDFA; color: var(--blue); border-color: #B9CBEF; }

.logo-img { display: block; height: 52px; width: auto; }
.site-head { background: var(--night); border-bottom: 1px solid rgba(232, 178, 28, .35); }
.site-head .wrap { min-height: 76px; }
.site-nav a { color: #E4E9F4; }
.site-nav a:hover { background: rgba(255, 255, 255, .08); color: var(--white); }
.site-nav .btn, .site-nav .btn:hover { color: var(--night); }
.menu-toggle { color: var(--white); }
.menu-toggle:hover { background: rgba(255, 255, 255, .08); }
@media (max-width: 820px) {
  .site-nav { top: 76px; background: var(--night); border-bottom-color: rgba(232, 178, 28, .35); }
  .logo-img { height: 42px; }
}

.hero { background: var(--night); color: #D9E0EF; padding: 88px 0 96px; }
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; background: none; opacity: 1; pointer-events: none; }
/* Two thin gold arcs echo the swoosh in the logo. */
.hero::before { width: 760px; height: 300px; right: -180px; top: 40px; border-top: 3px solid rgba(232, 178, 28, .55); transform: rotate(-12deg); }
.hero::after { width: 560px; height: 220px; right: -60px; bottom: -120px; border-top: 2px solid rgba(11, 58, 140, .9); transform: rotate(-8deg); }
.hero h1 { color: var(--white); }
.hero h1 .gold { color: var(--gold); }
.hero p.lead { color: #D9E0EF; }
.hero .tag { color: var(--gold); }

.cat-card { color: var(--night); }
.cat-card:hover { border-color: var(--gold); box-shadow: 0 6px 18px rgba(232, 178, 28, .18); }
.cat-card .ico { background: var(--night); color: var(--gold); }
.steps li::before { background: var(--night); color: var(--gold); }
.cta-band { background: var(--night); border-top: 4px solid var(--gold); }
.site-foot { background: var(--night); color: #C9D1E4; border-top: 3px solid var(--gold); }
.site-foot a { color: #E4E9F4; }
.site-foot .logo-img { height: 40px; }

/* Admin */
.side { background: var(--night); border-right: 1px solid rgba(232, 178, 28, .3); }
.side .brand { margin: 0 4px 22px; }
.side .logo-img { height: 46px; }
.side nav a.active { background: var(--gold); color: var(--night); }
.side nav a.active svg { color: var(--night); }
.side .me-box .btn.secondary { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .6); }
.side .me-box .btn.secondary:hover { border-color: var(--gold); background: rgba(255, 255, 255, .06); }
.stat .n { color: var(--night); }
.stat.hot .n { color: var(--blue); }
.stat.hot { border-left: 4px solid var(--gold); }
.stat:hover { border-color: var(--gold); }
.seg button.on { background: var(--night); color: var(--gold); }
.tabs button.on { color: var(--night); border-bottom-color: var(--gold); }
.kcol.drop { border-color: var(--gold); background: var(--gold-soft); }
.bulkbar { background: var(--night); border: 1px solid var(--gold); }
.score-row .dots button.on { background: var(--night); border-color: var(--night); color: var(--gold); }
.big-total { color: var(--blue); }
.auth-brand { display: inline-flex; background: var(--night); padding: 12px 16px; border-radius: var(--radius); margin-bottom: 20px; }
.auth-brand .logo-img { height: 44px; }
.person-card:hover, table.data tr.clickable:hover td { border-color: var(--gold); }
@media (max-width: 820px) { .hero::before { top: -40px; right: -320px; } .hero::after { right: -260px; } }

/* ================= Discovery (change003) ================= */
.work-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.work-tile { position: relative; display: flex; align-items: center; min-height: 64px; padding: 14px 16px; margin: 0; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--white); font-weight: 600; color: var(--night); cursor: pointer; }
.work-tile input { position: absolute; opacity: 0; pointer-events: none; }
.work-tile:has(input:checked) { border-color: var(--gold); background: var(--night); color: var(--white); box-shadow: inset 0 0 0 1px var(--gold); }
.work-tile:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.work-tile:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.work-section { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 16px 16px 4px; margin: 18px 0 0; background: var(--grey); }
.work-section legend { font-weight: 800; color: var(--night); padding: 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; margin: 0; cursor: pointer; font-weight: 400; color: var(--ink); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 8px 14px; min-height: 40px; line-height: 22px; border: 1.5px solid #C9C1AE; border-radius: 999px; background: var(--white); font-size: 15px; }
.chip input:checked + span { background: var(--night); border-color: var(--night); color: var(--gold); font-weight: 600; }
.chip input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }

.tcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.tcard { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.tcard.picked { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.tcard-head { display: flex; gap: 14px; align-items: center; }
.tcard-photo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid var(--gold); background: var(--night); }
.tcard-initials { display: grid; place-items: center; color: var(--gold); font-weight: 800; font-size: 26px; }
.tcard-id h3 { margin: 0; font-size: 20px; }
.tcard-headline { font-weight: 600; color: var(--blue); font-size: 15px; }
.tcard-id .pill { margin-top: 6px; }
.tcard-skills { display: flex; flex-wrap: wrap; gap: 6px; }
.skill { padding: 4px 10px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-ink); font-size: 14px; font-weight: 600; }
.tcard-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--muted); }
.tcard-facts span::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-right: 6px; vertical-align: middle; }
.tcard-intro, .tcard-note { margin: 0; font-size: 15px; }
.tcard-note { background: var(--grey); border-left: 3px solid var(--gold); padding: 8px 10px; border-radius: 6px; }
.tcard-media { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tcard-thumb { position: relative; padding: 0; border: 0; border-radius: 8px; overflow: hidden; aspect-ratio: 1; background: var(--night); cursor: zoom-in; }
.tcard-thumb img, .tcard-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tcard-thumb.is-video span { position: absolute; inset: auto 6px 6px auto; background: var(--gold); color: var(--night); font-size: 14px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.tcard-more summary { cursor: pointer; font-weight: 600; color: var(--night); font-size: 15px; }
.tcard-more .kv { margin-top: 8px; grid-template-columns: 140px 1fr; font-size: 14px; }
.tcard-pick { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px; border-radius: var(--radius-sm); background: var(--night); color: var(--white); font-weight: 600; cursor: pointer; }
.tcard-pick input { width: 20px; height: 20px; accent-color: var(--gold); }
dialog.media-view { width: auto; max-width: min(960px, calc(100vw - 32px)); background: var(--night); padding: 12px; text-align: center; }
dialog.media-view img, dialog.media-view video { max-width: 100%; max-height: 78vh; display: block; margin: 0 auto 12px; border-radius: 8px; }
.pickbar { position: sticky; bottom: 12px; z-index: 10; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: space-between; background: var(--night); color: var(--white); border: 1px solid var(--gold); border-radius: var(--radius); padding: 12px 16px; margin-top: 20px; }

.team-builder { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 20px 0; }
.team-builder .role { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.team-builder .role .n { font-size: 40px; font-weight: 800; color: var(--blue); line-height: 1; }
.team-builder .role .l { font-weight: 600; color: var(--night); margin-top: 6px; }
.team-total { display: inline-flex; gap: 10px; align-items: baseline; background: var(--night); color: var(--white); border-radius: var(--radius); padding: 12px 18px; }
.team-total strong { color: var(--gold); font-size: 30px; }
.profile-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); background: var(--night); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.vis-box { border: 2px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 10px; }
.vis-box:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }
