/* ==========================================================================
   India Casting Company — design system
   Navy + gold, editorial serif headlines, compact data-first panels.
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "Noto Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/noto-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/noto-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/noto-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/noto-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans Gujarati"; font-weight: 400; font-display: swap; src: url("../fonts/noto-sans-gujarati-gujarati-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans Gujarati"; font-weight: 600; font-display: swap; src: url("../fonts/noto-sans-gujarati-gujarati-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans Devanagari"; font-weight: 400; font-display: swap; src: url("../fonts/noto-sans-devanagari-devanagari-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans Devanagari"; font-weight: 600; font-display: swap; src: url("../fonts/noto-sans-devanagari-devanagari-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 600; font-display: swap; src: url("../fonts/playfair-display-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 700; font-display: swap; src: url("../fonts/playfair-display-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 800; font-display: swap; src: url("../fonts/playfair-display-latin-800-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --navy-950: #071528;
  --navy-900: #0B1F3A;
  --navy-800: #12294A;
  --navy-700: #163A6B;
  --navy-600: #1F4C86;
  --navy-100: #E6ECF5;
  --navy-50:  #F2F5FA;
  --gold-50:  #FDF7EA;
  --gold-100: #F8EDD3;
  --gold-300: #E8C47A;
  --gold-500: #D4A13A;
  --gold-600: #BF8A28;
  --gold-700: #9A6B15;
  --ivory:    #FBF8F2;
  --white:    #FFFFFF;
  --slate-50:  #F6F7F9;
  --slate-100: #EEF0F4;
  --slate-200: #DFE3EA;
  --slate-300: #C7CDD8;
  --slate-400: #98A2B3;
  --slate-500: #687387;
  --slate-600: #4B5565;
  --slate-700: #364152;
  --slate-800: #202939;
  --slate-900: #121926;
  --good: #187A4E;  --good-bg: #E7F5EE;
  --warn: #9A5B0B;  --warn-bg: #FDF1DC;
  --bad:  #B42318;  --bad-bg:  #FDECEA;
  --info: #1D4ED8;  --info-bg: #E8EEFD;

  --font-sans: "Noto Sans", "Noto Sans Gujarati", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Playfair Display", "Noto Sans Gujarati", "Noto Sans Devanagari", Georgia, "Times New Roman", serif;

  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-lg: 0 12px 32px -8px rgba(11, 31, 58, .22);
  --ring: 0 0 0 3px rgba(212, 161, 58, .45);
  --control-h: 36px;
  --sidebar-w: 232px;
  --topbar-h: 56px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-sans); font-size: 15px; line-height: 1.55;
  color: var(--slate-800); background: var(--slate-50); text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
img { background-color: var(--slate-100); }
a { color: var(--navy-700); text-underline-offset: 2px; }
/* Zero-specificity hover so any component's own colour always wins (dark cards that are links). */
:where(a):where(:hover) { color: var(--navy-900); }
h1, h2, h3, h4 { color: var(--navy-900); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
h4 { font-size: .95rem; }
p { margin: 0 0 .9em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
hr { border: 0; border-top: 1px solid var(--slate-200); margin: 1.25rem 0; }
small, .small { font-size: .85rem; }
.xsmall { font-size: .78rem; }
.muted { color: var(--slate-500); }
.strong { font-weight: 600; }
.display { font-family: var(--font-display); letter-spacing: -.01em; }
code, kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--slate-100); padding: .1em .35em; border-radius: 4px; }
:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--gold-100); }
.icon { width: 18px; height: 18px; flex: none; }
.icon-sm { width: 15px; height: 15px; flex: none; }
.icon-lg { width: 24px; height: 24px; flex: none; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--navy-900); color: #fff; padding: 8px 14px; border-radius: var(--radius); z-index: 100; }
.skip-link:focus { top: 8px; color: #fff; }

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.container-narrow { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px; }
.container-wide { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 16px; }
.stack > * + * { margin-top: var(--gap, 16px); }
.stack-sm { --gap: 8px; }
.stack-lg { --gap: 28px; }
.row { display: flex; align-items: center; gap: var(--gap, 10px); }
.row-wrap { flex-wrap: wrap; }
.row-between { justify-content: space-between; }
.row-start { align-items: flex-start; }
.row-end { justify-content: flex-end; }
.flex-1 { flex: 1 1 auto; min-width: 0; }
.grid { display: grid; gap: var(--gap, 16px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(var(--min, 220px), 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.split-left { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }
.mb-0 { margin-bottom: 0 !important; } .mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }
.text-right { text-align: right; } .text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hidden, [hidden] { display: none !important; }
.w-full { width: 100%; }
.sticky { position: sticky; top: calc(var(--topbar-h) + 12px); }

@media (max-width: 960px) {
  .split, .split-left { grid-template-columns: minmax(0, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sticky { position: static; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hide-mobile { display: none !important; }
  h1 { font-size: 1.35rem; }
}
@media (min-width: 641px) { .show-mobile { display: none !important; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: var(--control-h); padding: 0 14px; border-radius: var(--radius-sm);
  font: 600 .9rem/1 var(--font-sans); text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1px solid var(--slate-300); background: var(--white); color: var(--slate-800);
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
:where(.btn):hover { background: var(--slate-50); border-color: var(--slate-400); color: var(--slate-900); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn-primary { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-950); }
.btn-primary:hover { background: var(--gold-600); border-color: var(--gold-600); color: var(--navy-950); }
.btn-navy { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.btn-navy:hover { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--navy-700); }
.btn-ghost:hover { background: var(--navy-50); border-color: transparent; }
.btn-danger { background: var(--white); border-color: #F1B5AE; color: var(--bad); }
.btn-danger:hover { background: var(--bad-bg); border-color: var(--bad); color: var(--bad); }
.btn-danger-solid { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn-danger-solid:hover { background: #912018; color: #fff; }
.btn-sm { height: 30px; padding: 0 10px; font-size: .82rem; }
.btn-xs { height: 26px; padding: 0 8px; font-size: .78rem; border-radius: 5px; }
.btn-lg { height: 44px; padding: 0 20px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-icon { width: var(--control-h); padding: 0; }
.btn-sm.btn-icon { width: 30px; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid currentColor; border-color: var(--slate-400) transparent var(--slate-400) transparent; border-radius: 50%; animation: spin .8s linear infinite; }
.btn-primary.is-loading::after, .btn-navy.is-loading::after { border-color: #fff transparent #fff transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { background: none; border: 0; padding: 0; color: var(--navy-700); font: inherit; text-decoration: underline; cursor: pointer; }
.link-danger { color: var(--bad); }

/* ---------- Forms ---------- */
.form { max-width: 100%; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; min-width: 0; }
.field:last-child { margin-bottom: 0; }
.label { font-size: .86rem; font-weight: 600; color: var(--slate-700); }
.label .opt { font-weight: 400; color: var(--slate-500); }
.req { color: var(--bad); margin-left: 2px; }
.hint { font-size: .8rem; color: var(--slate-500); margin: 0; }
.field-error { font-size: .82rem; color: var(--bad); margin: 0; font-weight: 500; }
.input, .select, .textarea {
  width: 100%; height: var(--control-h); padding: 6px 10px; border: 1px solid var(--slate-300); border-radius: var(--radius-sm);
  background: var(--white); color: var(--slate-900); font: 400 .92rem/1.4 var(--font-sans);
  transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 96px; resize: vertical; line-height: 1.5; padding: 8px 10px; }
.select { appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23687387' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; background-size: 16px; }
.select[multiple] { height: auto; min-height: 120px; background-image: none; padding: 4px; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--slate-400); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--gold-500); box-shadow: var(--ring); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--bad); }
.input:disabled, .select:disabled, .textarea:disabled { background: var(--slate-100); color: var(--slate-500); }
input[type="file"].input { height: auto; padding: 6px; }
.input-sm { height: 30px; font-size: .85rem; }
.input-group { display: flex; align-items: stretch; }
.input-group > .input { border-radius: 0; }
.input-group > :first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group > :last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.input-addon { display: inline-flex; align-items: center; padding: 0 10px; background: var(--slate-100); border: 1px solid var(--slate-300); color: var(--slate-600); font-size: .88rem; }
.input-group > .input-addon:first-child { border-right: 0; }
.input-group > .input-addon:last-child { border-left: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.form-grid .span-2, .form-grid-3 .span-3 { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid, .form-grid-3 { grid-template-columns: minmax(0, 1fr); } }
.form-actions { display: flex; gap: 10px; align-items: center; justify-content: flex-end; padding-top: 16px; border-top: 1px solid var(--slate-200); margin-top: 18px; flex-wrap: wrap; }
.form-actions.start { justify-content: flex-start; }
fieldset.fieldset { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.legend { font-size: .95rem; font-weight: 700; color: var(--navy-900); margin-bottom: 4px; padding: 0; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; cursor: pointer; line-height: 1.4; }
.check input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--navy-700); flex: none; }
.check-list { display: grid; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 12px; border: 1px solid var(--slate-300); border-radius: 999px; font-size: .84rem; background: var(--white); cursor: pointer; user-select: none; transition: all .15s; }
.chip input:checked + span { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.chip input:focus-visible + span { box-shadow: var(--ring); }
.chip span:hover { border-color: var(--navy-600); }
.choice-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.choice-card { position: relative; display: block; cursor: pointer; }
.choice-card input { position: absolute; opacity: 0; }
.choice-card .choice-body { display: block; border: 1.5px solid var(--slate-200); border-radius: var(--radius); padding: 14px; background: var(--white); height: 100%; transition: border-color .15s, box-shadow .15s; }
.choice-card .choice-title { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy-900); }
.choice-card .choice-text { display: block; font-size: .84rem; color: var(--slate-600); margin-top: 4px; }
.choice-card input:checked + .choice-body { border-color: var(--gold-500); box-shadow: 0 0 0 1px var(--gold-500); background: var(--gold-50); }
.choice-card input:focus-visible + .choice-body { box-shadow: var(--ring); }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: .9rem; }
.switch input { appearance: none; width: 36px; height: 20px; border-radius: 999px; background: var(--slate-300); position: relative; cursor: pointer; transition: background .15s; flex: none; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: var(--shadow-sm); }
.switch input:checked { background: var(--good); }
.switch input:checked::after { transform: translateX(16px); }
.counter { font-size: .75rem; color: var(--slate-500); text-align: right; }

/* ---------- Cards & surfaces ---------- */
.card { background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--slate-200); flex-wrap: wrap; }
.card-title { font-size: .98rem; font-weight: 700; color: var(--navy-900); margin: 0; display: flex; align-items: center; gap: 8px; }
.card-body { padding: 16px; }
.card-body-lg { padding: 24px; }
.card-foot { padding: 10px 16px; border-top: 1px solid var(--slate-200); background: var(--slate-50); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.card-flush .card-body { padding: 0; }
.card-link { display: block; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card-link:hover { border-color: var(--slate-300); box-shadow: var(--shadow); color: inherit; }
.panel-muted { background: var(--slate-50); border: 1px dashed var(--slate-300); border-radius: var(--radius); padding: 14px; }
.divider-list > * + * { border-top: 1px solid var(--slate-200); }
.kv { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 6px 14px; font-size: .9rem; margin: 0; }
.kv dt { color: var(--slate-500); }
.kv dd { margin: 0; color: var(--slate-800); word-break: break-word; }
@media (max-width: 640px) { .kv { grid-template-columns: minmax(0, 1fr); } .kv dt { margin-top: 6px; } }

/* ---------- Badges, pills ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: .74rem; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-good { background: var(--good-bg); color: var(--good); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-bad { background: var(--bad-bg); color: var(--bad); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-muted { background: var(--slate-100); color: var(--slate-600); }
.badge-gold { background: var(--gold-100); color: var(--gold-700); }
.badge-navy { background: var(--navy-900); color: #fff; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 4px; background: var(--slate-100); color: var(--slate-700); font-size: .78rem; font-weight: 500; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.verified-mark { display: inline-flex; align-items: center; gap: 4px; color: var(--good); font-size: .8rem; font-weight: 600; }
.verified-mark .icon { width: 15px; height: 15px; }

/* ---------- Alerts & flash ---------- */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: var(--radius); border: 1px solid; font-size: .9rem; }
.alert .icon { margin-top: 2px; }
.alert > div > :last-child { margin-bottom: 0; }
.alert-info { background: var(--info-bg); border-color: #C3D3FA; color: #1E3A8A; }
.alert-success { background: var(--good-bg); border-color: #B5E0C8; color: #0F5132; }
.alert-warning { background: var(--warn-bg); border-color: #F2D29B; color: #7A4508; }
.alert-danger { background: var(--bad-bg); border-color: #F5C0BA; color: #8A1C12; }
.alert-navy { background: var(--navy-900); border-color: var(--navy-900); color: #E6ECF5; }
.alert-navy a { color: var(--gold-300); }
.flash-stack { position: fixed; top: 14px; right: 14px; z-index: 90; display: grid; gap: 8px; max-width: min(420px, calc(100vw - 28px)); }
.flash-stack .alert { box-shadow: var(--shadow-lg); }

/* ---------- Tables ---------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.table th { text-align: left; font-weight: 600; font-size: .76rem; text-transform: uppercase; letter-spacing: .03em; color: var(--slate-500); background: var(--slate-50); padding: 9px 12px; border-bottom: 1px solid var(--slate-200); white-space: nowrap; }
.table td { padding: 9px 12px; border-bottom: 1px solid var(--slate-100); vertical-align: middle; }
.table tbody tr:hover { background: var(--navy-50); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .actions { text-align: right; white-space: nowrap; }
.table a.row-link { font-weight: 600; text-decoration: none; color: var(--navy-900); }
.table a.row-link:hover { text-decoration: underline; }

/* ---------- Stats ---------- */
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.stat { background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-lg); padding: 14px 16px; }
.stat-label { font-size: .78rem; color: var(--slate-500); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; display: flex; align-items: center; gap: 6px; }
.stat-value { font-size: 1.6rem; font-weight: 700; color: var(--navy-900); line-height: 1.2; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat-note { font-size: .8rem; color: var(--slate-500); margin-top: 2px; }
.stat-alert { border-color: #F2D29B; background: var(--warn-bg); }

/* ---------- Empty states, skeletons, progress ---------- */
.empty { text-align: center; padding: 36px 16px; color: var(--slate-600); }
.empty-icon { width: 46px; height: 46px; margin: 0 auto 10px; border-radius: 50%; background: var(--navy-50); color: var(--navy-700); display: grid; place-items: center; }
.empty-title { font-weight: 700; color: var(--navy-900); margin-bottom: 4px; }
.empty p { max-width: 420px; margin: 0 auto 12px; font-size: .9rem; }
.skeleton { background: linear-gradient(90deg, var(--slate-100), var(--slate-200), var(--slate-100)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 6px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.progress { height: 8px; background: var(--slate-200); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-600), var(--gold-500)); border-radius: inherit; }

/* ---------- Tabs, pagination, steps ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--slate-200); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; font-size: .88rem; font-weight: 600; color: var(--slate-600); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--navy-900); }
.tab.is-active { color: var(--navy-900); border-bottom-color: var(--gold-500); }
.tab .count { background: var(--slate-100); color: var(--slate-600); border-radius: 999px; font-size: .72rem; padding: 1px 7px; }
.tab.is-active .count { background: var(--gold-100); color: var(--gold-700); }
.pagination { display: flex; gap: 4px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.pagination a, .pagination span { min-width: 34px; height: 34px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--slate-200); border-radius: var(--radius-sm); font-size: .86rem; text-decoration: none; color: var(--slate-700); background: var(--white); }
.pagination a:hover { border-color: var(--navy-600); color: var(--navy-900); }
.pagination .is-current { background: var(--navy-900); color: #fff; border-color: var(--navy-900); font-weight: 600; }
.pagination .is-disabled { color: var(--slate-500); }
.steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px; counter-reset: step; overflow-x: auto; }
.step { flex: 1 1 0; min-width: 110px; font-size: .8rem; color: var(--slate-500); padding-top: 8px; border-top: 3px solid var(--slate-200); counter-increment: step; }
.step::before { content: counter(step) ". "; font-weight: 700; }
.step a { color: inherit; text-decoration: none; }
.step.is-done { border-color: var(--navy-700); color: var(--navy-700); }
.step.is-active { border-color: var(--gold-500); color: var(--navy-900); font-weight: 700; }

/* ---------- Menus (details/summary) & dialogs ---------- */
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 6px); min-width: 210px; background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px; z-index: 60; }
.menu-panel a, .menu-panel button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border-radius: 6px; font-size: .88rem; color: var(--slate-700); text-decoration: none; background: none; border: 0; cursor: pointer; text-align: left; font-family: inherit; }
.menu-panel a:hover, .menu-panel button:hover { background: var(--slate-100); color: var(--navy-900); }
.menu-panel .menu-sep { height: 1px; background: var(--slate-200); margin: 5px 0; }
.menu-panel .menu-head { padding: 8px 10px; font-size: .8rem; color: var(--slate-500); }
dialog.dialog { border: 0; border-radius: var(--radius-lg); padding: 0; width: min(520px, calc(100vw - 24px)); box-shadow: var(--shadow-lg); color: inherit; }
dialog.dialog::backdrop { background: rgba(7, 21, 40, .55); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--slate-200); }
.dialog-head h2 { margin: 0; font-size: 1.05rem; }
.dialog-body { padding: 18px; }
.dialog-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 18px; border-top: 1px solid var(--slate-200); background: var(--slate-50); }

/* ---------- Avatars ---------- */
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--navy-100); color: var(--navy-700); display: inline-grid; place-items: center; font-weight: 700; font-size: .85rem; flex: none; overflow: hidden; }
.avatar-sm { width: 30px; height: 30px; font-size: .72rem; }
.avatar-lg { width: 64px; height: 64px; font-size: 1.1rem; }
.avatar-xl { width: 112px; height: 112px; font-size: 1.6rem; }
.avatar-sq { border-radius: var(--radius); }

/* ==========================================================================
   PUBLIC SITE
   ========================================================================== */
.site { background: var(--ivory); }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--slate-200); }
.site-header .container { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; flex: none; }
.brand img { background: none; }
.brand .brand-emblem { height: 42px; width: auto; }
.brand .brand-word { height: 30px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.site-nav a { padding: 8px 11px; border-radius: 6px; font-size: .9rem; font-weight: 600; color: var(--slate-700); text-decoration: none; }
.site-nav a:hover, .site-nav a.is-active { color: var(--navy-900); background: var(--navy-50); }
.site-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; }
@media (max-width: 960px) {
  .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--slate-200); flex-direction: column; align-items: stretch; padding: 8px 16px 14px; box-shadow: var(--shadow-lg); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 11px 10px; }
  .nav-toggle { display: inline-flex; }
  .site-actions .btn-ghost:not(.nav-toggle) { display: none; }
  .brand .brand-word { height: 24px; }
  .brand .brand-emblem { height: 36px; }
}
@media (max-width: 420px) { .site-actions .btn-primary { display: none; } }

.hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(212, 161, 58, .22), transparent 60%), linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%); color: #E6ECF5; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 28px; background: repeating-linear-gradient(90deg, rgba(212,161,58,.35) 0 14px, transparent 14px 26px); opacity: .25; mask: linear-gradient(transparent, #000); }
.hero .container { padding-top: 64px; padding-bottom: 72px; position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-300); }
.hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.4rem); color: #fff; line-height: 1.08; max-width: 820px; margin: 14px 0 16px; font-weight: 800; letter-spacing: -.015em; }
.hero h1 em { font-style: normal; color: var(--gold-500); }
.hero p.lead { font-size: 1.08rem; max-width: 640px; color: #C9D3E3; }
.hero-search { margin-top: 26px; background: #fff; border-radius: var(--radius-lg); padding: 8px; display: grid; grid-template-columns: 150px 1fr 200px auto; gap: 8px; max-width: 900px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); }
.hero-search .input, .hero-search .select { height: 44px; border-color: var(--slate-200); }
.hero-search .btn { height: 44px; }
@media (max-width: 760px) { .hero-search { grid-template-columns: 1fr; } .hero .container { padding-top: 40px; padding-bottom: 52px; } }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero-ctas .btn-secondary-light { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.hero-ctas .btn-secondary-light:hover { background: rgba(255,255,255,.08); color: #fff; }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-size: .86rem; color: #AFC0D8; }
.trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.trust-row .icon { color: var(--gold-500); width: 16px; height: 16px; }

.section { padding: 56px 0; }
.section-sm { padding: 36px 0; }
.section-white { background: var(--white); }
.section-navy { background: var(--navy-900); color: #DCE4F0; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-title { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0; letter-spacing: -.01em; }
.section-sub { color: var(--slate-600); margin: 6px 0 0; max-width: 640px; }
.section-navy .section-sub { color: #AFC0D8; }

.category-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.category-tile { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--slate-200); text-decoration: none; color: var(--navy-900); transition: transform .15s, box-shadow .15s, border-color .15s; }
.category-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--gold-300); color: var(--navy-900); }
.category-tile .tile-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--navy-900); color: var(--gold-500); display: grid; place-items: center; }
.category-tile .tile-name { font-weight: 700; font-size: .95rem; }
.category-tile .tile-count { font-size: .78rem; color: var(--slate-500); }

.feature { padding: 18px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--slate-200); }
.feature .feature-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--gold-100); color: var(--gold-700); display: grid; place-items: center; margin-bottom: 10px; }
.feature h3 { font-size: 1rem; margin-bottom: 4px; }
.feature p { font-size: .9rem; color: var(--slate-600); margin: 0; }
.section-navy .feature { background: var(--navy-800); border-color: var(--navy-700); }
.section-navy .feature p { color: #AFC0D8; }
.section-navy .feature .feature-icon { background: rgba(212,161,58,.15); color: var(--gold-500); }
.numbered { counter-reset: n; display: grid; gap: 14px; }
.numbered > li { list-style: none; position: relative; padding-left: 46px; counter-increment: n; }
.numbered > li::before { content: counter(n); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--gold-500); color: var(--navy-950); font-weight: 800; display: grid; place-items: center; font-family: var(--font-display); }
.numbered h3 { margin-bottom: 2px; font-size: 1rem; }
.numbered p { margin: 0; color: var(--slate-600); font-size: .92rem; }
.section-navy .numbered p { color: #AFC0D8; }

.cta-band { background: linear-gradient(120deg, var(--navy-900), var(--navy-700)); color: #E6ECF5; border-radius: var(--radius-lg); padding: 28px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-family: var(--font-display); margin: 0 0 4px; }
.cta-band p { margin: 0; color: #C9D3E3; }

.prose { max-width: 760px; font-size: 1rem; line-height: 1.7; }
.prose h1 { font-family: var(--font-display); font-size: 2rem; }
.prose h2 { margin-top: 1.8em; font-size: 1.3rem; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { margin-bottom: 1.1em; }
.prose li + li { margin-top: .3em; }
.prose blockquote { border-left: 3px solid var(--gold-500); margin: 1em 0; padding: .2em 1em; color: var(--slate-600); }
.prose table { border-collapse: collapse; width: 100%; font-size: .92rem; }
.prose th, .prose td { border: 1px solid var(--slate-200); padding: 6px 10px; text-align: left; }

.page-banner { background: var(--navy-900); color: #DCE4F0; padding: 36px 0 30px; }
.page-banner h1 { color: #fff; font-family: var(--font-display); font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin: 0 0 6px; }
.page-banner p { margin: 0; color: #AFC0D8; max-width: 680px; }
.breadcrumb { display: flex; gap: 6px; flex-wrap: wrap; font-size: .82rem; color: var(--slate-500); margin-bottom: 8px; list-style: none; padding: 0; }
.breadcrumb a { color: inherit; }
.page-banner .breadcrumb { color: #8FA3C0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .6; }

.site-footer { background: var(--navy-950); color: #9FB0C8; padding: 44px 0 26px; font-size: .88rem; }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.site-footer a { color: #C9D3E3; text-decoration: none; }
.site-footer a:hover { color: var(--gold-300); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 26px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.footer-bottom { border-top: 1px solid #1B2F4D; margin-top: 30px; padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .8rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* Filters + results */
.filters { background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-lg); padding: 14px; }
.filter-group + .filter-group { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--slate-100); }
.filter-group .label { display: block; margin-bottom: 6px; }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.results-count { font-size: .9rem; color: var(--slate-600); }
.filter-toggle { display: none; }
@media (max-width: 960px) {
  .filters { display: none; }
  .filters.is-open { display: block; }
  .filter-toggle { display: inline-flex; }
}

/* Talent cards */
.talent-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.talent-card { background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.talent-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: inherit; }
.talent-card .tc-photo { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; background: var(--navy-100); }
.talent-card .tc-photo-ph { aspect-ratio: 4 / 5; display: grid; place-items: center; background: linear-gradient(160deg, var(--navy-800), var(--navy-600)); color: var(--gold-300); font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; }
.talent-card .tc-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.talent-card .tc-name { font-weight: 700; color: var(--navy-900); font-size: .96rem; line-height: 1.3; }
.talent-card .tc-meta { font-size: .8rem; color: var(--slate-600); display: flex; align-items: center; gap: 4px; }
.talent-card .tc-meta .icon { width: 13px; height: 13px; }

/* Opportunity cards */
.opp-list { display: grid; gap: 10px; }
.opp-card { background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-lg); padding: 14px 16px; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; align-items: start; transition: border-color .15s, box-shadow .15s; position: relative; }
.opp-card:hover { border-color: var(--slate-300); box-shadow: var(--shadow); }
.opp-card .opp-logo { width: 48px; height: 48px; border-radius: 10px; background: var(--navy-900); color: var(--gold-500); display: grid; place-items: center; font-weight: 800; font-family: var(--font-display); overflow: hidden; }
.opp-card .opp-logo img { width: 100%; height: 100%; object-fit: cover; }
.opp-card .opp-title { font-weight: 700; color: var(--navy-900); font-size: 1rem; text-decoration: none; line-height: 1.3; }
.opp-card .opp-title::after { content: ""; position: absolute; inset: 0; }
.opp-card .opp-org { font-size: .84rem; color: var(--slate-600); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 2px; }
.opp-card .opp-facts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .82rem; color: var(--slate-600); margin-top: 8px; }
.opp-card .opp-facts span { display: inline-flex; align-items: center; gap: 4px; }
.opp-card .opp-facts .icon { width: 14px; height: 14px; color: var(--slate-400); }
.opp-card .opp-side { text-align: right; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; position: relative; z-index: 1; }
.opp-card .opp-pay { font-weight: 700; color: var(--navy-900); font-size: .9rem; }
@media (max-width: 640px) { .opp-card { grid-template-columns: 40px minmax(0, 1fr); } .opp-card .opp-logo { width: 40px; height: 40px; } .opp-card .opp-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; text-align: left; } }

/* Profile page */
.profile-hero { background: linear-gradient(160deg, var(--navy-950), var(--navy-800)); color: #DCE4F0; }
.profile-hero .container { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 26px; padding-top: 30px; padding-bottom: 30px; align-items: end; }
.profile-photo { width: 220px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); border: 3px solid rgba(255,255,255,.12); background: var(--navy-700); }
.profile-hero h1 { color: #fff; font-family: var(--font-display); font-size: clamp(1.7rem, 4vw, 2.6rem); margin: 0 0 6px; }
.profile-hero .headline { font-size: 1.05rem; color: #C9D3E3; margin-bottom: 10px; }
.profile-hero .meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .88rem; color: #AFC0D8; }
.profile-hero .meta span { display: inline-flex; align-items: center; gap: 5px; }
.profile-hero .meta .icon { width: 15px; height: 15px; color: var(--gold-500); }
.profile-hero .tags .tag { background: rgba(255,255,255,.08); color: #E6ECF5; }
@media (max-width: 760px) { .profile-hero .container { grid-template-columns: 120px minmax(0, 1fr); align-items: center; } .profile-photo { width: 120px; } .profile-hero .profile-actions { grid-column: 1 / -1; } }
.portfolio-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.media-tile { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--slate-100); border: 1px solid var(--slate-200); }
.media-tile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.media-tile .media-cap { position: absolute; inset: auto 0 0 0; padding: 18px 8px 6px; font-size: .76rem; color: #fff; background: linear-gradient(transparent, rgba(7,21,40,.85)); }
.media-tile .media-badge { position: absolute; top: 6px; left: 6px; }
.media-tile .media-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.media-tile .media-play .icon { width: 42px; height: 42px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.media-tile a { display: block; color: inherit; }
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--slate-200); }
.timeline li { position: relative; padding: 0 0 14px 26px; font-size: .88rem; }
.timeline li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 2px solid var(--slate-400); }
.timeline li.is-current::before { background: var(--gold-500); border-color: var(--gold-600); }
.timeline .tl-title { font-weight: 600; color: var(--navy-900); }
.timeline .tl-time { font-size: .78rem; color: var(--slate-500); }

/* ==========================================================================
   APP PANELS (talent / hirer / admin)
   ========================================================================== */
.app { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; }
.app-sidebar { background: var(--navy-900); color: #C9D3E3; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; z-index: 40; }
.app-sidebar .sb-brand { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.06); text-decoration: none; }
.app-sidebar .sb-brand img { height: 34px; width: auto; background: none; }
.app-sidebar .sb-brand .sb-word { height: 22px; }
.app-sidebar .sb-context { margin: 12px 12px 4px; padding: 10px; border-radius: var(--radius); background: rgba(255,255,255,.05); font-size: .82rem; }
.app-sidebar .sb-context strong { color: #fff; display: block; font-size: .88rem; }
.app-sidebar .sb-context select { width: 100%; margin-top: 6px; background: var(--navy-800); color: #fff; border: 1px solid rgba(255,255,255,.15); border-radius: 6px; height: 30px; font-size: .82rem; }
.app-nav { padding: 8px 10px 16px; display: flex; flex-direction: column; gap: 1px; }
.app-nav .nav-section { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #6F84A3; padding: 14px 10px 6px; }
.app-nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px; color: #C9D3E3; text-decoration: none; font-size: .88rem; font-weight: 500; }
.app-nav a .icon { width: 17px; height: 17px; color: #8FA3C0; }
.app-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.app-nav a.is-active { background: rgba(212,161,58,.14); color: #fff; box-shadow: inset 3px 0 0 var(--gold-500); }
.app-nav a.is-active .icon { color: var(--gold-500); }
.app-nav .nav-count { margin-left: auto; background: var(--gold-500); color: var(--navy-950); font-size: .7rem; font-weight: 700; border-radius: 999px; padding: 1px 7px; }
.app-sidebar .sb-foot { margin-top: auto; padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.06); font-size: .78rem; color: #6F84A3; }
.app-main { min-width: 0; display: flex; flex-direction: column; }
.app-topbar { position: sticky; top: 0; z-index: 30; height: var(--topbar-h); background: rgba(255,255,255,.97); border-bottom: 1px solid var(--slate-200); display: flex; align-items: center; gap: 10px; padding: 0 20px; }
.app-topbar .tb-title { font-weight: 700; color: var(--navy-900); font-size: .95rem; }
.app-topbar .tb-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.tb-bell { position: relative; }
.tb-bell .dot { position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; border-radius: 999px; background: var(--bad); color: #fff; font-size: .65rem; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
.app-content { padding: 20px; max-width: 1280px; width: 100%; }
.app-content-narrow { max-width: 900px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.page-title { font-size: 1.35rem; margin: 0; }
.page-subtitle { color: var(--slate-600); font-size: .9rem; margin: 3px 0 0; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sb-toggle { display: none; }
.sb-overlay { display: none; }
@media (max-width: 1024px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .app-sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 264px; transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow-lg); }
  .app-sidebar.is-open { transform: none; }
  .sb-overlay.is-open { display: block; position: fixed; inset: 0; background: rgba(7,21,40,.5); z-index: 35; }
  .sb-toggle { display: inline-flex; }
  .app-content { padding: 16px; }
  .app-topbar { padding: 0 12px; }
}
/* Mobile bottom tab bar (talent) */
.bottom-tabs { display: none; }
@media (max-width: 640px) {
  .has-bottom-tabs .app-content { padding-bottom: 84px; }
  .bottom-tabs { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--white); border-top: 1px solid var(--slate-200); padding-bottom: env(safe-area-inset-bottom); }
  .bottom-tabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 7px; font-size: .68rem; font-weight: 600; color: var(--slate-500); text-decoration: none; }
  .bottom-tabs a .icon { width: 20px; height: 20px; }
  .bottom-tabs a.is-active { color: var(--navy-900); }
  .bottom-tabs a.is-active .icon { color: var(--gold-600); }
}

/* Lists inside cards */
.list { list-style: none; margin: 0; padding: 0; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--slate-100); }
.list-item:last-child { border-bottom: 0; }
.list-item-link { text-decoration: none; color: inherit; }
.list-item-link:hover { background: var(--navy-50); color: inherit; }
.list-item .li-title { font-weight: 600; color: var(--navy-900); font-size: .9rem; }
.list-item .li-sub { font-size: .8rem; color: var(--slate-500); }
.list-item.is-unread { background: var(--gold-50); }
.list-item.is-unread .li-title::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-600); margin-right: 6px; vertical-align: middle; }

/* Kanban pipeline */
.pipeline { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.pipe-col { background: var(--slate-100); border-radius: var(--radius-lg); padding: 10px; min-height: 120px; }
.pipe-col h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--slate-600); display: flex; justify-content: space-between; margin: 2px 4px 10px; }
.pipe-card { background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 10px; display: flex; gap: 10px; align-items: center; text-decoration: none; color: inherit; margin-bottom: 8px; }
.pipe-card:hover { border-color: var(--gold-300); color: inherit; }

/* Chat */
.chat { display: grid; grid-template-columns: 300px minmax(0, 1fr); height: calc(100vh - var(--topbar-h) - 40px); min-height: 480px; background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-lg); overflow: hidden; }
.chat-list { border-right: 1px solid var(--slate-200); overflow-y: auto; }
.chat-list a { display: flex; gap: 10px; padding: 12px 14px; text-decoration: none; color: inherit; border-bottom: 1px solid var(--slate-100); }
.chat-list a:hover { background: var(--slate-50); }
.chat-list a.is-active { background: var(--navy-50); box-shadow: inset 3px 0 0 var(--gold-500); }
.chat-thread { display: flex; flex-direction: column; min-width: 0; }
.chat-head { padding: 12px 16px; border-bottom: 1px solid var(--slate-200); display: flex; align-items: center; gap: 10px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: var(--slate-50); }
.msg { max-width: 76%; padding: 9px 12px; border-radius: 12px; font-size: .9rem; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.msg-theirs { background: var(--white); border: 1px solid var(--slate-200); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg-mine { background: var(--navy-900); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg-system { align-self: center; background: transparent; color: var(--slate-500); font-size: .8rem; }
.msg-time { display: block; font-size: .7rem; opacity: .65; margin-top: 3px; }
.msg-warning { align-self: stretch; max-width: none; }
.composer { border-top: 1px solid var(--slate-200); padding: 10px; display: flex; gap: 8px; align-items: flex-end; background: var(--white); }
.composer .textarea { min-height: 42px; max-height: 160px; }
@media (max-width: 760px) {
  .chat { grid-template-columns: minmax(0, 1fr); height: auto; }
  .chat.has-thread .chat-list { display: none; }
  .chat:not(.has-thread) .chat-thread { display: none; }
  .chat-messages { max-height: 60vh; }
}

/* Auth pages */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--white); }
.auth-aside { background: radial-gradient(800px 400px at 100% 0%, rgba(212,161,58,.18), transparent 60%), linear-gradient(165deg, var(--navy-950), var(--navy-800)); color: #C9D3E3; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-aside h2 { font-family: var(--font-display); color: #fff; font-size: 2rem; line-height: 1.15; margin: 0 0 10px; }
.auth-aside ul { list-style: none; padding: 0; display: grid; gap: 12px; margin: 22px 0 0; }
.auth-aside li { display: flex; gap: 10px; font-size: .92rem; }
.auth-aside li .icon { color: var(--gold-500); margin-top: 2px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 32px 18px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card-wide { max-width: 620px; }
.auth-card h1 { font-size: 1.5rem; font-family: var(--font-display); margin-bottom: 4px; }
.auth-sub { color: var(--slate-600); margin-bottom: 20px; font-size: .92rem; }
.auth-foot { margin-top: 18px; font-size: .88rem; color: var(--slate-600); text-align: center; }
@media (max-width: 900px) { .auth { grid-template-columns: minmax(0, 1fr); } .auth-aside { display: none; } }
.otp-input { letter-spacing: .5em; font-size: 1.3rem; text-align: center; font-weight: 700; height: 50px; }

/* Misc */
.notice-bar { background: var(--gold-100); color: var(--gold-700); font-size: .84rem; text-align: center; padding: 7px 12px; font-weight: 600; }
.notice-bar a { color: var(--navy-900); }
.kbd-hint { font-size: .75rem; color: var(--slate-400); }
.dot-sep::before { content: "·"; margin: 0 6px; color: var(--slate-400); }
.rating { display: inline-flex; gap: 2px; color: var(--gold-500); }
.code-block { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8rem; background: var(--navy-950); color: #E6ECF5; padding: 12px; border-radius: var(--radius); overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
.qr-box { width: 200px; height: 200px; background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius); display: grid; place-items: center; padding: 8px; }
.qr-box svg, .qr-box img { width: 100%; height: 100%; }
.recovery-codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; font-family: ui-monospace, Menlo, monospace; font-size: .9rem; background: var(--slate-50); padding: 12px; border-radius: var(--radius); border: 1px solid var(--slate-200); }
.photo-upload { display: flex; align-items: center; gap: 14px; }
.photo-upload img { width: 88px; height: 110px; object-fit: cover; border-radius: var(--radius); }
.preview-banner { background: var(--warn-bg); color: var(--warn); font-weight: 600; font-size: .85rem; text-align: center; padding: 8px; }
.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 16px; }
.error-code { font-family: var(--font-display); font-size: 5rem; font-weight: 800; color: #9A6B12; line-height: 1; }

@media print {
  .site-header, .site-footer, .app-sidebar, .app-topbar, .bottom-tabs, .no-print { display: none !important; }
  .app { display: block; }
  body { background: #fff; }
  .card { box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}


/* ---------- Install-app prompt ---------- */
.install-banner { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 95; background: var(--navy-900); color: #fff; border-radius: 18px; box-shadow: 0 18px 40px -10px rgba(7, 21, 40, .55); padding: 18px 16px 10px; animation: installUp .3s ease-out; max-width: 520px; margin: 0 auto; }
.has-bottom-tabs .install-banner { bottom: calc(70px + env(safe-area-inset-bottom)); }
.install-row { display: flex; align-items: center; gap: 14px; margin: 0 28px 14px 0; }
.install-row img { width: 56px; height: 56px; border-radius: 14px; background: #fff; flex: none; padding: 3px; }
.install-text { flex: 1; min-width: 0; line-height: 1.3; }
.install-text strong { display: block; font-size: 1.08rem; color: #fff; }
.install-text span { display: block; font-size: .9rem; color: #C9D3E3; margin-top: 3px; }
.install-banner .install-go { height: 50px; font-size: 1.05rem; border-radius: 12px; }
.install-later { display: block; width: 100%; background: none; border: 0; color: #C9D3E3; font: 600 .95rem var(--font-sans); padding: 12px 0 6px; cursor: pointer; }
.install-x { background: none; border: 0; font-size: 1.7rem; line-height: 1; color: var(--slate-400); width: 40px; height: 40px; cursor: pointer; flex: none; border-radius: 10px; }
.install-banner .install-x { position: absolute; top: 8px; right: 8px; color: #8FA3C0; }
.install-x:hover { background: rgba(127, 127, 127, .15); }
@keyframes installUp { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.install-guide { position: fixed; inset: 0; z-index: 100; background: rgba(7, 21, 40, .65); display: flex; align-items: flex-end; justify-content: center; padding: 12px 12px calc(76px + env(safe-area-inset-bottom)); }
.install-guide-card { position: relative; width: 100%; max-width: 460px; background: var(--white); border-radius: 18px; padding: 20px 18px 18px; box-shadow: var(--shadow-lg); animation: installUp .3s ease-out; }
.install-guide-card .install-x { position: absolute; top: 8px; right: 8px; }
.install-head { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; padding-right: 36px; }
.install-head img { width: 52px; height: 52px; border-radius: 13px; background: none; }
.install-head strong { display: block; color: var(--navy-900); font-size: 1.15rem; }
.install-head span { display: block; font-size: .9rem; color: var(--slate-500); }
.install-steps { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 14px; }
.install-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; color: var(--slate-800); line-height: 1.5; }
.step-n { width: 28px; height: 28px; border-radius: 50%; background: var(--gold-500); color: var(--navy-950); font-weight: 800; font-size: .9rem; display: grid; place-items: center; flex: none; }
.ios-ico { display: inline-flex; vertical-align: middle; color: #0A84FF; background: var(--slate-100); border-radius: 7px; padding: 3px 5px; margin: 0 2px; }
.ios-ico svg { width: 20px; height: 20px; }
.install-note { font-size: .9rem; color: var(--slate-600); background: var(--slate-50); border-radius: 10px; padding: 10px 12px; }
.install-guide-card .install-done { height: 50px; font-size: 1.05rem; border-radius: 12px; }
.install-arrow { position: absolute; bottom: calc(16px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); color: #fff; animation: installBounce 1.2s ease-in-out infinite; }
.install-arrow svg { width: 36px; height: 36px; }
@keyframes installBounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }
@media (min-width: 768px) { .install-arrow { display: none; } .install-guide { align-items: center; padding: 12px; } }

/* ---------- Cookie consent ---------- */
.consent-bar { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 96; max-width: 760px; margin: 0 auto; background: var(--white); border: 1px solid var(--slate-200); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 12px 14px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: .86rem; color: var(--slate-700); }
.consent-bar p { margin: 0; flex: 1 1 320px; line-height: 1.45; }
.consent-actions { display: flex; gap: 8px; margin-left: auto; }
.has-bottom-tabs .consent-bar { bottom: calc(70px + env(safe-area-inset-bottom)); }

/* Native self-tapes */
.tape-up { border: 1.5px dashed var(--slate-300); border-radius: 12px; padding: 14px; background: var(--slate-50); }
.tape-drop { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tape-drop.is-over { outline: 2px solid var(--gold-500); outline-offset: 6px; border-radius: 8px; }
.tape-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-900); color: var(--gold-300); flex: none; }
.tape-copy { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 2px; }
.tape-pick { cursor: pointer; }
.tape-progress { display: grid; gap: 6px; }
.tape-bar { height: 8px; border-radius: 999px; background: var(--slate-200); overflow: hidden; }
.tape-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-500), var(--gold-600)); transition: width .25s ease; }
.tape-done video, .tape-card video { width: 100%; max-height: 420px; border-radius: 10px; background: #000; display: block; }
.tape-error { color: var(--bad); margin: 8px 0 0; }
.tape-card { display: grid; gap: 6px; }
.tape-card + .tape-card { margin-top: 14px; }
.tape-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--slate-600); }
.tape-removed { display: flex; align-items: center; gap: 8px; padding: 18px; border-radius: 10px; background: var(--slate-100); color: var(--slate-600); font-size: .9rem; }
.tape-list { display: grid; gap: 14px; }

/* Audition scheduling */
.slot-rows { list-style: none; margin: 0; padding: 0; }
.slot-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 10px; align-items: center; padding: 8px 16px; border-top: 1px solid var(--slate-100); }
.slot-row:first-child { border-top: 0; }
.slot-row.is-past { opacity: .55; }
.slot-row.is-full .slot-time strong { color: var(--navy-700); }
.slot-time { display: flex; flex-direction: column; line-height: 1.2; }
.slot-where, .slot-who { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.slot-who a { font-weight: 600; margin-right: 6px; }
@media (max-width: 640px) { .slot-row { grid-template-columns: 78px 1fr auto; } .slot-where { display: none; } }
.invite-list { display: grid; gap: 4px; max-height: 260px; overflow: auto; padding: 2px; }
.slot-pick { margin: 6px 0 14px; padding: 12px; border-radius: 10px; background: var(--slate-50); border: 1px solid var(--slate-200); }
.slot-pick summary { cursor: pointer; }
.slot-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.slot-chip { display: inline-flex; flex-direction: column; align-items: center; min-width: 78px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--slate-300); background: #fff; font: inherit; font-weight: 700; font-size: .86rem; color: var(--navy-900); cursor: pointer; }
.slot-chip small { font-weight: 500; font-size: .68rem; color: var(--slate-600); }
.slot-chip:hover { border-color: var(--gold-500); background: #FFF9EC; }
.slot-chip.is-mine { border-color: var(--good); background: #ECFDF3; cursor: default; }
.booked-box { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 10px; background: #ECFDF3; border: 1px solid #ABEFC6; margin-bottom: 12px; }
.bb-when { display: flex; flex-direction: column; align-items: center; min-width: 96px; padding: 6px 10px; border-radius: 8px; background: #fff; line-height: 1.25; }
.bb-when span { font-size: .8rem; color: var(--slate-600); }

/* Child-performer checklist */
.child-checklist { border-top: 1px dashed var(--slate-300); padding-top: 10px; display: grid; gap: 6px; }
.child-checklist .check { align-items: flex-start; }
.child-commit { display: grid; gap: 6px; padding-left: 0; list-style: none; margin: 0; }
.child-commit li { display: flex; gap: 8px; font-size: .88rem; }
.child-commit li .icon-sm { color: var(--good); flex: none; margin-top: 3px; }
