/* ============================================================
   Delectus — brand theme and shared components
   ------------------------------------------------------------
   Tokens first (colours, type, spacing), then base, then the
   public-site layout, then shared components used by both the
   public site and the portal (buttons, forms, cards, badges,
   tables, modal, toast). Portal-only shell rules live in portal.css.
   ============================================================ */

:root {
  /* brand */
  --navy: #0f2a44;
  --navy-deep: #0a1d30;
  --teal: #0f9d8a;
  --teal-dark: #0b7d6e;
  --teal-soft: #e3f5f1;
  --amber: #f4a83a;
  --amber-dark: #d98a14;
  --amber-soft: #fff1da;

  /* neutrals */
  --ink: #17263a;
  --ink-2: #33475b;
  --muted: #64758a;
  --line: #dde4ec;
  --line-strong: #c6d0dc;
  --paper: #ffffff;
  --ground: #f4f6f9;
  --ground-2: #eaeef3;

  /* semantic */
  --success: #2e9e5b;
  --success-soft: #e4f6ea;
  --warning: #c77d00;
  --warning-soft: #fff4dc;
  --danger: #c0392b;
  --danger-soft: #fbe6e3;
  --info: #2a6fd6;
  --info-soft: #e5eefb;

  /* type */
  --font-heading: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  /* shape */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(15, 42, 68, 0.06), 0 1px 6px rgba(15, 42, 68, 0.05);
  --shadow: 0 8px 28px rgba(15, 42, 68, 0.10);
  --nav-h: 68px;
  --content-max: 1180px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ground);
  min-height: 100vh;
}
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; color: var(--navy); font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }
p { color: var(--ink-2); }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { color: var(--navy); text-decoration: underline; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.tiny { font-size: 0.78rem; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 0.85em; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { max-width: var(--content-max); margin: 0 auto; padding: 0 20px; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grid { display: grid; gap: 20px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.text-center { text-align: center; }
.w-100 { width: 100%; }

/* ---------- public navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 2px 14px rgba(10, 29, 48, 0.25);
}
.nav-inner { max-width: var(--content-max); margin: 0 auto; padding: 0 20px; height: var(--nav-h); display: flex; align-items: center; gap: 24px; }
.brand { font-family: var(--font-heading); font-weight: 700; font-size: 1.35rem; color: #fff; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand:hover { color: #fff; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--teal), #35c7b1); display: inline-grid; place-items: center; color: #fff; font-weight: 800; font-size: 0.95rem; }
.brand-tag { font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; background: rgba(255,255,255,0.14); padding: 3px 8px; border-radius: var(--radius-pill); color: #cfeee8; font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a { color: #dbe6f2; padding: 8px 14px; border-radius: var(--radius-sm); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover, .nav-links a.active { background: rgba(255,255,255,0.10); color: #fff; text-decoration: none; }
.nav-links .btn { margin-left: 8px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; width: 42px; height: 42px; border-radius: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px auto; transition: transform 0.2s; }
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--navy-deep); padding: 12px 16px 20px; gap: 6px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links .btn { margin: 8px 0 0; }
}

/* ---------- hero & public sections ---------- */
.hero {
  background: radial-gradient(1200px 500px at 15% -10%, rgba(15,157,138,0.35), transparent 60%),
              radial-gradient(900px 400px at 95% 10%, rgba(244,168,58,0.22), transparent 60%),
              var(--navy);
  color: #fff;
  padding: clamp(56px, 9vw, 110px) 0 clamp(48px, 7vw, 90px);
}
.hero h1 { color: #fff; max-width: 760px; }
.hero p.lead { color: #d3dfeb; font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 640px; margin-top: 16px; }
.hero .search { margin-top: 32px; background: #fff; border-radius: 14px; padding: 8px; display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 8px; box-shadow: var(--shadow); max-width: 820px; }
.hero .search input { border: 0; padding: 12px 14px; border-radius: 8px; background: var(--ground); color: var(--ink); }
.hero .search input:focus { outline: 2px solid var(--teal); }
@media (max-width: 680px) { .hero .search { grid-template-columns: 1fr; } }
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 28px; }
.hero-stats div { color: #cfe0ef; font-size: 0.9rem; }
.hero-stats strong { display: block; font-family: var(--font-heading); font-size: 1.5rem; color: #fff; }
.section { padding: clamp(40px, 6vw, 72px) 0; }
.section.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head p { max-width: 560px; }
.eyebrow { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--teal-dark); margin-bottom: 8px; }
.feature { padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.feature .icon { width: 42px; height: 42px; border-radius: 10px; background: var(--teal-soft); color: var(--teal-dark); display: grid; place-items: center; font-weight: 800; margin-bottom: 14px; font-family: var(--font-heading); }
.feature.amber .icon { background: var(--amber-soft); color: var(--amber-dark); }
.feature.navy .icon { background: #e6ecf4; color: var(--navy); }
.steps { counter-reset: step; }
.step { position: relative; padding-left: 56px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--font-heading); font-weight: 700; }
.cta-band { background: linear-gradient(120deg, var(--teal-dark), var(--teal)); color: #fff; border-radius: 18px; padding: clamp(28px, 4vw, 48px); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #e6f7f3; }
footer.site-footer { background: var(--navy-deep); color: #b7c7d8; padding: 40px 0 28px; margin-top: 40px; font-size: 0.9rem; }
footer.site-footer a { color: #d9e5f0; }
footer.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { footer.site-footer .cols { grid-template-columns: 1fr 1fr; } }
footer.site-footer h4 { color: #fff; margin-bottom: 10px; font-size: 0.9rem; }
footer.site-footer li { margin: 6px 0; }
footer.site-footer .legal { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 28px; padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.page-hero { background: var(--paper); border-bottom: 1px solid var(--line); padding: 40px 0 28px; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 28px; margin-bottom: 8px; }
.prose p, .prose li { margin-bottom: 10px; }
.prose ul { list-style: disc; padding-left: 22px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-weight: 600; font-size: 0.95rem; line-height: 1.2; white-space: nowrap;
  background: var(--navy); color: #fff; transition: background 0.15s, transform 0.05s, box-shadow 0.15s;
}
.btn:hover { background: var(--navy-deep); color: #fff; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.btn.primary { background: var(--amber); color: var(--navy-deep); }
.btn.primary:hover { background: var(--amber-dark); color: #fff; }
.btn.teal { background: var(--teal); }
.btn.teal:hover { background: var(--teal-dark); }
.btn.ghost { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--ground-2); color: var(--navy); }
.btn.light { background: rgba(255,255,255,0.14); color: #fff; border-color: rgba(255,255,255,0.28); }
.btn.light:hover { background: rgba(255,255,255,0.24); }
.btn.danger { background: var(--danger); }
.btn.danger:hover { background: #9d2c21; }
.btn.sm { padding: 6px 12px; font-size: 0.85rem; }
.btn.lg { padding: 14px 24px; font-size: 1.05rem; }
.btn.block { width: 100%; }
.btn .spinner { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { background: none; border: 0; color: var(--teal-dark); font-weight: 600; padding: 0; }
.link-btn:hover { text-decoration: underline; }
.link-btn.danger { color: var(--danger); }

/* ---------- forms ---------- */
.form-group { margin-bottom: 16px; }
.form-group label, .label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--ink); }
.form-group .hint { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }
.form-group .error-text { font-size: 0.8rem; color: var(--danger); margin-top: 4px; }
.form-group.has-error input, .form-group.has-error select, .form-group.has-error textarea { border-color: var(--danger); }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="tel"], input[type="url"], input[type="date"], input[type="search"], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,157,138,0.18); }
textarea { min-height: 120px; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364758a' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--teal); flex-shrink: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radio-card { border: 1.5px solid var(--line-strong); border-radius: var(--radius); padding: 14px; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.radio-card input { position: absolute; opacity: 0; }
.radio-card strong { display: block; font-family: var(--font-heading); }
.radio-card span { font-size: 0.85rem; color: var(--muted); }
.radio-card.selected { border-color: var(--teal); background: var(--teal-soft); }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.alert { padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid; font-size: 0.93rem; margin-bottom: 14px; }
.alert.error { background: var(--danger-soft); border-color: #f0b8b1; color: #7f261c; }
.alert.success { background: var(--success-soft); border-color: #b9e6c8; color: #1f6b3d; }
.alert.info { background: var(--info-soft); border-color: #bcd2f5; color: #1f4f9c; }
.alert.warning { background: var(--warning-soft); border-color: #f2d9a3; color: #7a4d00; }
.alert:empty { display: none; }
.auth-shell { min-height: calc(100vh - var(--nav-h)); display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 460px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.6rem; margin-bottom: 6px; }
.auth-card .sub { margin-bottom: 22px; color: var(--muted); }
.auth-card .foot { margin-top: 18px; font-size: 0.9rem; color: var(--muted); text-align: center; }
.auth-card.wide { max-width: 560px; }

/* ---------- cards / lists ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.card.flat { box-shadow: none; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.card-head h2, .card-head h3 { margin: 0; }
.job-card { display: grid; grid-template-columns: 52px 1fr auto; gap: 16px; align-items: start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; transition: border-color 0.15s, box-shadow 0.15s; }
.job-card:hover { border-color: var(--teal); box-shadow: var(--shadow-sm); }
.job-card .logo { width: 52px; height: 52px; border-radius: 10px; background: var(--ground-2); display: grid; place-items: center; font-family: var(--font-heading); font-weight: 700; color: var(--navy); overflow: hidden; }
.job-card .logo img { width: 100%; height: 100%; object-fit: cover; }
.job-card h3 { font-size: 1.08rem; margin-bottom: 2px; }
.job-card h3 a { color: var(--navy); }
.job-card .company { color: var(--muted); font-size: 0.9rem; }
.job-card .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 0.85rem; color: var(--ink-2); }
.job-card .summary { margin-top: 8px; font-size: 0.93rem; }
.job-card .side { text-align: right; font-size: 0.85rem; color: var(--muted); display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.job-card .salary { font-weight: 600; color: var(--teal-dark); font-size: 0.95rem; }
@media (max-width: 640px) { .job-card { grid-template-columns: 44px 1fr; } .job-card .side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; text-align: left; } }
.pill-list { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--radius-pill); background: var(--ground-2); color: var(--ink-2); font-size: 0.8rem; font-weight: 500; }
.pill.teal { background: var(--teal-soft); color: var(--teal-dark); }
.pill.amber { background: var(--amber-soft); color: var(--amber-dark); }
.pill.navy { background: #e6ecf4; color: var(--navy); }
.pill.req::after { content: '★'; font-size: 0.7em; color: var(--amber-dark); }
.pill button { border: 0; background: none; color: inherit; font-size: 1rem; line-height: 1; padding: 0 0 0 2px; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 6px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; background: var(--ground-2); color: var(--ink-2); white-space: nowrap; }
.badge.published, .badge.active, .badge.verified, .badge.hired, .badge.resolved, .badge.sent { background: var(--success-soft); color: #1f6b3d; }
.badge.pending_review, .badge.submitted, .badge.new, .badge.pending, .badge.unverified, .badge.reviewing { background: var(--warning-soft); color: #7a4d00; }
.badge.draft, .badge.viewed, .badge.disabled, .badge.closed, .badge.expired, .badge.withdrawn, .badge.dismissed { background: var(--ground-2); color: var(--muted); }
.badge.rejected, .badge.suspended, .badge.failed { background: var(--danger-soft); color: #7f261c; }
.badge.shortlisted, .badge.interview, .badge.offered { background: var(--info-soft); color: #1f4f9c; }
.badge.moderator { background: #e8e3fb; color: #4b2fb0; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); background: #fff; }
.empty strong { display: block; color: var(--ink); margin-bottom: 4px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat .n { font-family: var(--font-heading); font-size: 1.7rem; font-weight: 700; color: var(--navy); line-height: 1.1; }
.stat .l { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }
.stat.warn .n { color: var(--warning); }
.stat.good .n { color: var(--success); }
.stat.bad .n { color: var(--danger); }
.score { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; font-family: var(--font-heading); font-weight: 700; font-size: 0.95rem; color: #fff; background: conic-gradient(var(--teal) calc(var(--pct) * 1%), var(--ground-2) 0); position: relative; flex-shrink: 0; }
.score::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }
.score span { position: relative; color: var(--navy); }
.score.hi { background: conic-gradient(var(--success) calc(var(--pct) * 1%), var(--ground-2) 0); }
.score.mid { background: conic-gradient(var(--amber) calc(var(--pct) * 1%), var(--ground-2) 0); }
.score.lo { background: conic-gradient(var(--line-strong) calc(var(--pct) * 1%), var(--ground-2) 0); }
.bar { height: 8px; background: var(--ground-2); border-radius: 4px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--teal); border-radius: 4px; }
.breakdown { display: grid; gap: 8px; font-size: 0.86rem; }
.breakdown .k { display: grid; grid-template-columns: 150px 1fr 48px; gap: 10px; align-items: center; }
.breakdown .k .bar { width: 100%; }
.breakdown .k .v { text-align: right; color: var(--muted); }
.breakdown .note { grid-column: 1 / -1; color: var(--muted); font-size: 0.8rem; margin-top: -4px; }
@media (max-width: 520px) { .breakdown .k { grid-template-columns: 110px 1fr 44px; } }
.timeline { border-left: 2px solid var(--line-strong); padding-left: 16px; display: grid; gap: 12px; }
.timeline > li { position: relative; font-size: 0.9rem; }
.timeline > li::before { content: ''; position: absolute; left: -22px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 6px 14px; font-size: 0.93rem; }
.kv dt { color: var(--muted); }
.kv dd { color: var(--ink); }
@media (max-width: 520px) { .kv { grid-template-columns: 1fr; } .kv dt { margin-top: 6px; } }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
table.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.table th, table.table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.table th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: var(--ground); font-weight: 700; white-space: nowrap; }
table.table tr:last-child td { border-bottom: 0; }
table.table tr:hover td { background: #fafbfd; }
table.table .actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; font-size: 0.9rem; color: var(--muted); }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; align-items: end; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 18px; }
.filters .form-group { margin: 0; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 10px 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.active { color: var(--navy); border-bottom-color: var(--amber); }
.tabs button .count { background: var(--ground-2); border-radius: var(--radius-pill); padding: 1px 8px; font-size: 0.75rem; margin-left: 6px; }

/* ---------- modal & toast ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(10, 29, 48, 0.55); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal-backdrop.open { display: flex; }
.modal { background: #fff; border-radius: 16px; width: 100%; max-width: 560px; max-height: 90vh; overflow: auto; padding: 24px; box-shadow: var(--shadow); }
.modal.lg { max-width: 820px; }
.modal h2 { font-size: 1.3rem; margin-bottom: 6px; }
.modal .close { float: right; background: none; border: 0; font-size: 1.4rem; color: var(--muted); line-height: 1; }
.toast-wrap { position: fixed; bottom: 20px; right: 20px; z-index: 120; display: grid; gap: 8px; max-width: 360px; }
.toast { background: var(--navy-deep); color: #fff; padding: 12px 16px; border-radius: 10px; box-shadow: var(--shadow); font-size: 0.92rem; animation: toast-in 0.2s ease-out; border-left: 4px solid var(--teal); }
.toast.error { border-left-color: var(--danger); }
.toast.success { border-left-color: var(--success); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.skeleton { background: linear-gradient(90deg, var(--ground-2) 25%, #f6f8fb 50%, var(--ground-2) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 8px; min-height: 18px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.loading { color: var(--muted); padding: 20px; text-align: center; }
.skill-picker { position: relative; }
.skill-picker .results { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); box-shadow: var(--shadow); z-index: 20; max-height: 240px; overflow: auto; display: none; }
.skill-picker .results.open { display: block; }
.skill-picker .results button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 9px 12px; font-size: 0.92rem; }
.skill-picker .results button:hover { background: var(--teal-soft); }
.skill-picker .results button small { color: var(--muted); margin-left: 6px; }
.dropzone { border: 2px dashed var(--line-strong); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--muted); background: #fff; transition: border-color 0.15s, background 0.15s; cursor: pointer; }
.dropzone.over { border-color: var(--teal); background: var(--teal-soft); }
.dropzone strong { color: var(--navy); }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
