@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --core-bg: #0b0b0b;
  --core-card: #141414;
  --core-surface: #141414;
  --core-surface-2: #101010;
  --core-border: #2a2a2a;
  --core-gold: #d4af37;
  --core-gold-hover: #e6c256;
  --core-text: #ffffff;
  --core-muted: #c9c9c9;
  --core-text-muted: #c9c9c9;
  --core-accent: #d4af37;
  --core-accent-soft: #e6c256;
  --core-danger: #ff6b6b;
  --core-success: #3ddc84;
  --core-focus-ring: 2px solid rgba(212, 175, 55, 0.92);

  --core-space-1: 8px;
  --core-space-2: 16px;
  --core-space-3: 24px;
  --core-space-4: 40px;
  --core-space-5: 56px;
  --core-radius-1: 10px;
  --core-radius-2: 14px;
  --core-container-max: 1120px;
  --core-container-width: 94%;
  --core-container-pad-mobile: 20px;
  --core-container-pad-desktop: 40px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--core-bg);
  color: var(--core-text);
  color-scheme: dark;
}

a {
  color: var(--core-gold);
}

a:hover {
  color: var(--core-gold-hover);
}

::selection {
  background: rgba(212, 175, 55, 0.26);
  color: var(--core-text);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: var(--core-focus-ring);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -48px;
  z-index: 1000;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--core-accent);
  color: #111;
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus {
  top: 8px;
}

.site-main {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(212, 175, 55, 0.08) 0%, rgba(11, 11, 11, 0) 24%),
    linear-gradient(180deg, #111111 0%, var(--core-bg) 18%, var(--core-bg) 100%);
}

.has-app-shell .app-shell-main {
  padding-bottom: 66px;
}

.app-shell-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 120;
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
  background: rgba(12, 12, 12, 0.94);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px 20px;
}

.top-banner {
  display: none;
}

.app-shell-brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.app-shell-logo-link {
  display: inline-flex;
  align-items: center;
}

.app-shell-logo {
  height: 38px;
  width: auto;
}

.app-shell-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.app-shell-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--core-muted);
  text-decoration: none;
  font-size: 0.88rem;
}

.app-shell-link:hover {
  border-color: rgba(212, 175, 55, 0.5);
  color: var(--core-gold-hover);
  background: rgba(212, 175, 55, 0.08);
}

.app-shell-link.is-active {
  border-color: rgba(212, 175, 55, 0.85);
  color: var(--core-gold-hover);
  background: rgba(212, 175, 55, 0.14);
}

.app-shell-link-logout {
  margin-left: auto;
}

.mobile-tab-nav {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 130;
  display: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: rgba(12, 12, 12, 0.97);
  border-top: 1px solid rgba(212, 175, 55, 0.22);
}

.mobile-tab-link {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--core-muted);
  text-decoration: none;
  font-size: 0.82rem;
  border-top: 2px solid transparent;
}

.mobile-tab-link.is-active {
  color: var(--core-gold-hover);
  border-top-color: var(--core-gold);
}

.flash-messages {
  width: min(var(--core-container-width), var(--core-container-max));
  margin: 0.75rem auto 0;
  padding: 0 var(--core-container-pad-mobile);
  display: grid;
  gap: 0.5rem;
}

.flash-message {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: var(--core-text);
  font-size: 0.95rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

label,
legend {
  color: var(--core-text);
}

input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
select,
textarea {
  background: #1a1a1a;
  border: 1px solid var(--core-border);
  color: var(--core-text);
  border-radius: 8px;
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"])::placeholder,
textarea::placeholder {
  color: #8f8f8f;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--core-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

button,
.btn,
.action-btn,
.auth-submit-btn,
.auth-social-btn,
.onboarding-form button {
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.core-container,
.app-container {
  width: min(var(--core-container-width), var(--core-container-max));
  margin: 0 auto;
  padding: var(--core-space-2) var(--core-container-pad-mobile) var(--core-space-3);
}

.welcome-modal {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: min(360px, 92vw);
  z-index: 20;
}

.welcome-modal-card {
  background: var(--core-card);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 16px;
  padding: 1.25rem 1.2rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.welcome-modal-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: var(--core-text);
}

.welcome-modal-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--core-muted);
  line-height: 1.5;
}

.welcome-modal-actions {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.55rem;
}

.welcome-secondary {
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--core-border);
  background: transparent;
  color: var(--core-text);
  cursor: pointer;
  font-size: 0.9rem;
}

.welcome-secondary:hover {
  border-color: var(--core-gold);
  background: rgba(212, 175, 55, 0.08);
}

.app-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.home-page-title {
  margin: 0;
  font-size: 1.2rem;
  color: var(--core-text);
}

.logo {
  display: block;
  width: clamp(140px, 45vw, 240px);
  height: auto;
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
}

.setup-checklist-wrapper {
  margin: 0 0 0.5rem;
}

.home-page {
  width: 100%;
}

.home-desktop {
  display: none;
}

.home-mobile {
  display: block;
}

.home-mobile-header {
  margin-bottom: 1.25rem;
}

.actions.home-mobile-actions {
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.home-mobile-actions .action-btn {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-mobile-deadlines {
  margin-top: 0;
}

.home-desktop-logo {
  display: block;
  width: clamp(180px, 26vw, 280px);
  height: auto;
}

.home-desktop-copy {
  display: grid;
  gap: 0.8rem;
  text-align: center;
}

.home-desktop-fiscal-year {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #f5f5f5;
}

.home-desktop-deadline {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--core-gold-hover);
}

.home-desktop-detail {
  margin: 0;
  font-size: 1rem;
  color: #cfcfcf;
}

.home-grid {
  display: grid;
  gap: 1rem;
}

.actions {
  display: grid;
  gap: 0.6rem;
}

.action-btn {
  display: block;
  text-align: center;
  min-height: 44px;
  padding: 0.68rem 0.8rem;
  border-radius: 10px;
  background: #1a1a1a;
  color: var(--core-gold);
  text-decoration: none;
  font-size: 0.95rem;
  border: 1px solid var(--core-gold);
}

button.action-btn {
  width: 100%;
  cursor: pointer;
}

.action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.action-btn:active {
  background: var(--core-gold);
  color: #0b0b0b;
}

.btn-primary-core {
  background: var(--core-gold);
  color: #0b0b0b;
  border-color: var(--core-gold);
  font-weight: 700;
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.btn-primary-core:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(212, 175, 55, 0.24);
  background: var(--core-gold-hover);
  border-color: var(--core-gold-hover);
  filter: none;
}

.btn-secondary-core {
  background: transparent;
  color: var(--core-gold-hover);
  border-color: rgba(212, 175, 55, 0.72);
  font-weight: 500;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.btn-secondary-core:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--core-gold-hover);
  color: var(--core-gold-hover);
}

.btn-tertiary-core {
  background: transparent;
  border: 0;
  color: #c6a968;
  display: inline-block;
  width: auto;
  justify-self: start;
  padding: 0.45rem 0.2rem;
  text-decoration: none;
}

.btn-tertiary-core:hover {
  color: var(--core-gold-hover);
  text-decoration: underline;
  text-underline-offset: 0.16rem;
}

.stats {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #cccccc;
}

.deadlines {
  margin-top: 0.25rem;
  padding-top: 0.6rem;
  border-top: 1px solid #333;
  font-size: 0.95rem;
  color: #cccccc;
}

.deadlines h2,
.deadlines h3 {
  margin: 0 0 0.5rem;
  color: var(--core-gold);
  font-size: 1rem;
}

.deadlines div {
  margin-bottom: 0.5rem;
}

.deadlines .note {
  font-size: 0.8rem;
  color: #999999;
  margin-left: 0.25rem;
}

.deadlines .urgent {
  color: #ff4d4d;
  font-weight: bold;
}

.access-denied {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: radial-gradient(circle at top, #1b1b1b 0%, #0f0f0f 55%, #0b0b0b 100%);
}

.access-denied-card {
  width: min(520px, 100%);
  padding: 2.2rem 2rem;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--core-card) 0%, #101010 100%);
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.access-denied-logo {
  width: clamp(140px, 40vw, 220px);
  height: auto;
  margin: 0 auto 1.5rem;
  display: block;
}

.access-denied-card h1 {
  font-size: 1.6rem;
  margin: 0 0 0.75rem;
  color: #f5f5f5;
}

.access-denied-subtitle {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  color: #e0e0e0;
}

.access-denied-note {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  color: #a6a6a6;
}

.access-denied-link {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  color: #101010;
  background: var(--core-gold);
  font-weight: 600;
}

.access-denied-link:hover {
  background: var(--core-gold-hover);
}

.session-note {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: #9b9b9b;
}

.app-footer {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: #7f7f7f;
}

@media (min-width: 420px) {
  .actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .core-container,
  .app-container {
    width: 94%;
    padding: 0.5rem var(--core-container-pad-mobile) 0.75rem;
  }

  .core-panel,
  .cases-panel,
  .contacts-panel,
  .communications-panel {
    padding: var(--core-space-2);
  }

  .core-stats-grid,
  .cases-stats,
  .contacts-stats {
    grid-template-columns: 1fr;
  }

  .core-chip-group {
    margin: var(--core-space-2) 0;
  }

  .logo {
    width: clamp(120px, 55vw, 200px);
  }

  .action-btn {
    padding: 0.6rem 0.65rem;
    font-size: 0.9rem;
  }

  .deadlines {
    font-size: 0.9rem;
  }

  .app-footer {
    display: none;
  }
}

@media (min-width: 900px) {
  .flash-messages {
    padding-left: var(--core-container-pad-desktop);
    padding-right: var(--core-container-pad-desktop);
  }

  .core-container,
  .app-container {
    padding-left: var(--core-container-pad-desktop);
    padding-right: var(--core-container-pad-desktop);
  }

  .core-page-header {
    margin-bottom: var(--core-space-4);
  }

  .core-chip-group {
    margin: var(--core-space-4) 0 var(--core-space-3);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .home-mobile {
    max-width: 720px;
    margin: 0 auto;
  }
}

/* --------------------------------------------------
   Setup checklist
-------------------------------------------------- */

.setup-checklist {
  margin: 1rem 0 1.5rem;
  padding: 0.75rem 0;
}

.setup-checklist h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: #f5f5f5;
}

.setup-checklist-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.25rem;
}

.setup-checklist-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.15rem 0;
}

.setup-checklist-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
  flex: 0 0 10px;
}

.setup-checklist-dot.complete {
  background: #2ecc71;
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2);
}

.setup-checklist-dot.incomplete {
  background: #ff4d4d;
  box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.2);
}

.setup-checklist-label,
.setup-checklist-link {
  font-size: 0.95rem;
  color: #e7e7e7;
}

.setup-checklist-link {
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.35);
}

.setup-checklist-link:hover {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.6);
}

.setup-checklist-label.is-locked {
  color: #9b9b9b;
}

/* --------------------------------------------------
   Onboarding layout
-------------------------------------------------- */

.onboarding-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: radial-gradient(circle at top, rgba(212, 175, 55, 0.12) 0%, #111111 18%, var(--core-bg) 100%);
}

/* --------------------------------------------------
   Card
-------------------------------------------------- */

.onboarding-card {
  width: 100%;
  max-width: 460px;
  background: var(--core-card);
  border: 1px solid var(--core-border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.onboarding-card-wide {
  max-width: 680px;
}

/* --------------------------------------------------
   Logo
-------------------------------------------------- */

.onboarding-logo {
  max-width: 200px;
  margin-bottom: 1.75rem;
}

/* --------------------------------------------------
   Headings
-------------------------------------------------- */

.onboarding-card h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--core-text);
}

.onboarding-card .subtitle {
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--core-muted);
  margin-bottom: 2rem;
}

.onboarding-card h3 {
  margin: 0 0 0.6rem;
  color: var(--core-gold-hover);
  font-size: 1rem;
}

/* --------------------------------------------------
   Form
-------------------------------------------------- */

.onboarding-form {
  text-align: left;
}

.onboarding-form-grid {
  display: grid;
  gap: 0.75rem;
}

.onboarding-form-full {
  grid-column: 1 / -1;
}

.onboarding-form label {
  font-size: 0.95rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0.4rem;
}

.onboarding-form input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--core-border);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.onboarding-form input:focus {
  outline: none;
  border-color: var(--core-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

/* --------------------------------------------------
   Button
-------------------------------------------------- */

.onboarding-form button {
  width: 100%;
  padding: 0.9rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #0b0b0b;
  background: var(--core-gold);
  border: none;
  border-radius: 12px;
  cursor: pointer;
}

.onboarding-form button:hover {
  background: var(--core-gold-hover);
}

.onboarding-checklist-card,
.onboarding-note-card {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--core-border);
  background: #101010;
  text-align: left;
}

.onboarding-checklist-card .setup-checklist {
  margin: 0;
  padding: 0;
}

.onboarding-note-card .subtitle {
  margin-bottom: 0;
}

.onboarding-error {
  margin: 0 0 1.25rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 107, 107, 0.45);
  background: rgba(255, 107, 107, 0.12);
  color: #ffd4d4;
  text-align: left;
}

.onboarding-link-wrap {
  margin: 0;
  overflow-wrap: anywhere;
}

/* --------------------------------------------------
   Mobile refinements
-------------------------------------------------- */

@media (max-width: 480px) {
  .onboarding-card {
    padding: 2.75rem 2rem;
  }

  .onboarding-card h1 {
    font-size: 1.85rem;
  }

  .onboarding-card .subtitle {
    font-size: 1.1rem;
  }
}

.welcome-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: radial-gradient(circle at top, #1b1b1b 0%, #0f0f0f 55%, #0b0b0b 100%);
}

.core-panel,
.cases-panel,
.contacts-panel,
.communications-panel {
  margin: 0 auto;
  max-width: 100%;
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 14px;
  background: #151515;
  padding: var(--core-space-2);
}

.core-page-header {
  margin-bottom: var(--core-space-3);
}

.core-page-title,
.cases-panel h1,
.contacts-panel h1,
.communications-panel h1 {
  margin: 0;
  font-size: 1.35rem;
  color: #f5f5f5;
  font-weight: 700;
}

.core-page-subtext,
.cases-subtitle,
.contacts-subtitle,
.communications-subtitle {
  margin: 0.45rem 0 0;
  color: #bcbcbc;
  font-size: 0.95rem;
  line-height: 1.45;
}

.core-stats-grid,
.cases-stats,
.contacts-stats {
  margin-top: var(--core-space-3);
  display: grid;
  gap: var(--core-space-2);
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.core-stat-card,
.cases-stat,
.contacts-stat {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border: 1px solid #2d2d2d;
  border-radius: 10px;
  padding: 0.75rem 0.8rem;
  background: #111111;
  min-height: 76px;
  flex-direction: column;
  gap: 0.35rem;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.core-stat-card:hover,
.cases-stat:hover,
.contacts-stat:hover {
  border-color: rgba(212, 175, 55, 0.52);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.14);
}

.core-stat-label,
.cases-stat-label {
  color: #b5b5b5;
  font-size: 0.78rem;
  line-height: 1.1;
}

.core-stat-number,
.cases-stat-value {
  color: var(--core-gold-hover);
  font-size: 1.95rem;
  font-weight: 800;
  line-height: 1;
}

.core-actions,
.cases-actions,
.contacts-actions,
.communications-actions {
  margin-top: var(--core-space-3);
  display: grid;
  gap: var(--core-space-2);
}

.core-chip-group {
  margin: var(--core-space-3) 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--core-space-1);
}

.core-chip {
  border: 1px solid #3a3a3a;
  border-radius: 999px;
  background: #101010;
  color: #d7d7d7;
  font-size: 0.86rem;
  line-height: 1;
  padding: 0.42rem 0.8rem;
  text-decoration: none;
  transition: border-color 140ms ease, color 140ms ease, background-color 140ms ease;
}

.core-chip:hover {
  border-color: var(--core-gold);
  color: #ffd980;
}

.core-chip.is-active {
  border-color: rgba(212, 175, 55, 0.8);
  color: var(--core-gold-hover);
  background: rgba(212, 175, 55, 0.12);
}

.core-list,
.cases-list,
.contacts-list {
  margin-top: 0.95rem;
  display: grid;
  gap: 0.65rem;
}

.core-section-stack {
  margin-top: var(--core-space-3);
  display: grid;
  gap: var(--core-space-2);
}

.core-section,
.case-card {
  border: 1px solid #343434;
  border-radius: 10px;
  background: #101010;
  padding: 0.75rem;
}

.core-section + .core-section {
  margin-top: var(--core-space-3);
}

.core-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--core-space-1);
  padding-bottom: 0.55rem;
  border-bottom: 1px solid #2d2d2d;
}

.core-section-header h2 {
  margin: 0;
  color: #f5f5f5;
  font-size: 1.02rem;
}

.core-section-meta {
  color: #f5f5f5;
  font-size: 0.9rem;
  font-weight: 700;
}

.core-section-body {
  padding-top: 0.65rem;
}

.core-urgency-safe {
  border-left: 5px solid #2ecc71;
}

.core-urgency-moderate {
  border-left: 5px solid #f9a825;
}

.core-urgency-urgent {
  border-left: 5px solid #ff4d4d;
}

.case-card-title {
  color: #f5f5f5;
  font-weight: 600;
  font-size: 1rem;
}

/* Compact caseload layout for the cases screen. */
.cases-panel-table {
  padding: 1.1rem 1rem 1rem;
}

.cases-panel-table .core-page-header {
  margin-bottom: 1rem;
}

.cases-toolbar {
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cases-search {
  flex: 1 1 280px;
}

.cases-search-input {
  width: 100%;
  min-height: 40px;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: #101010;
  color: #f2f2f2;
  font-size: 0.92rem;
}

.cases-toolbar-meta {
  display: flex;
  align-items: center;
  min-height: 40px;
}

.cases-count {
  color: var(--core-gold-hover);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.cases-toolbar .action-btn {
  min-height: 40px;
  padding: 0.55rem 0.9rem;
  font-size: 0.9rem;
}

.case-table-shell {
  margin-top: 0.9rem;
}

.case-table-container {
  max-height: 520px;
  overflow-y: auto;
  overflow-x: auto;
  border: 1px solid rgba(212, 175, 55, 0.16);
  border-radius: 12px;
  background: #101010;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.case-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.9rem;
  color: #ededed;
}

.case-table th,
.case-table td {
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  text-align: left;
  vertical-align: middle;
  line-height: 1.2;
}

.case-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #161616;
  color: #f4d47b;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-table tbody tr {
  transition: background-color 140ms ease;
}

.case-table tbody tr:hover {
  background-color: #1a1a1a;
}

.case-table tbody tr:last-child td {
  border-bottom: 0;
}

.case-table td:nth-child(2),
.case-table td:nth-child(5) {
  white-space: nowrap;
}

.case-table td:nth-child(4) {
  color: #d6d6d6;
  overflow: hidden;
  text-overflow: ellipsis;
}

.case-table-link {
  color: #f5f5f5;
  font-weight: 700;
  text-decoration: none;
}

.case-table-link:hover {
  color: var(--core-gold-hover);
  text-decoration: underline;
  text-underline-offset: 0.16rem;
}

.case-table-link:focus-visible {
  border-radius: 4px;
  outline: var(--core-focus-ring);
  outline-offset: 2px;
}

.case-hub-panel {
  padding: 1.2rem 1rem 1rem;
}

.case-hub-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.case-hub-kicker {
  color: var(--core-gold-hover);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-hub-hero-copy .core-page-title {
  margin-top: 0.25rem;
}

.case-hub-hero-meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.case-status-pill,
.case-meta-chip {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: #101010;
  color: #f1f1f1;
  font-size: 0.84rem;
  font-weight: 700;
}

.case-status-pill {
  background: rgba(212, 175, 55, 0.14);
  color: var(--core-gold-hover);
}

.case-hub-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(280px, 0.84fr) minmax(0, 1.16fr);
}

.case-profile-summary,
.case-workspace,
.case-timeline-section {
  min-width: 0;
}

.case-profile-list {
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.case-profile-item {
  display: grid;
  gap: 0.2rem;
}

.case-profile-item dt {
  color: #9d9d9d;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-profile-item dd {
  margin: 0;
  color: #f3f3f3;
  font-size: 0.96rem;
  line-height: 1.4;
}

.case-workspace-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case-workspace .case-workspace-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-support-grid {
  margin-top: 1rem;
}

.case-workspace-card {
  min-height: 188px;
  display: grid;
  align-content: start;
  gap: 0.55rem;
  padding: 1rem;
  border: 1px solid rgba(212, 175, 55, 0.14);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015) 0%, rgba(0, 0, 0, 0.18) 100%),
    #101010;
}

.case-workspace-label {
  color: #a8a8a8;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.case-workspace-card h3 {
  margin: 0;
  color: #f5f5f5;
  font-size: 1.08rem;
}

.case-workspace-card p {
  margin: 0;
  color: #c6c6c6;
  font-size: 0.92rem;
  line-height: 1.45;
}

.case-workspace-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.case-workspace-note {
  color: #9a9a9a;
  font-size: 0.86rem;
}

.case-timeline-section {
  margin-top: 1rem;
}

.case-timeline-list {
  display: grid;
  gap: 0.8rem;
}

.case-timeline-card {
  padding: 0.95rem 1rem;
  border: 1px solid #2d2d2d;
  border-radius: 12px;
  background: #101010;
}

.case-timeline-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.case-timeline-title {
  color: #f3f3f3;
  font-size: 1rem;
  font-weight: 700;
}

.case-timeline-time {
  margin-top: 0.25rem;
  color: #a6a6a6;
  font-size: 0.84rem;
}

.case-timeline-copy {
  margin-top: 0.6rem;
  color: #dddddd;
  font-size: 0.92rem;
  line-height: 1.45;
}

.case-timeline-copy-muted {
  color: #989898;
}

.case-card-meta {
  margin-top: 0.35rem;
  display: flex;
  gap: 0.8rem;
  color: #a9a9a9;
  font-size: 0.86rem;
  flex-wrap: wrap;
}

.case-card-line {
  margin-top: 0.35rem;
  color: #d7d7d7;
  font-size: 0.9rem;
}

.cases-empty {
  margin-top: 0.95rem;
  border: 1px dashed #4a4a4a;
  border-radius: 10px;
  padding: 0.75rem;
  color: #bcbcbc;
  font-size: 0.92rem;
}

.cases-empty-filter {
  margin-top: 0.75rem;
}

@media (max-width: 599px) {
  .cases-panel-table {
    padding: 1rem 0.85rem 0.9rem;
  }

  .cases-toolbar {
    align-items: stretch;
  }

  .cases-toolbar-meta {
    min-height: auto;
  }

  .case-hub-panel {
    padding: 1rem 0.85rem 0.9rem;
  }

  .case-workspace-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 899px) {
  .case-hub-grid {
    grid-template-columns: 1fr;
  }
}

.contacts-panel h2,
.contacts-panel h3 {
  margin: 0 0 0.6rem;
  color: var(--core-gold-hover);
}


.contacts-top-actions {
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: flex-end;
}

.contacts-top-actions .action-btn {
  width: auto;
  min-width: 220px;
}

.contacts-filters {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.55rem;
}

.contacts-search-form {
  margin-top: 0.9rem;
}

.contacts-search-grid {
  margin-top: 0;
}

.contacts-search-actions {
  margin-top: 0.75rem;
}

.contacts-results-meta {
  margin-top: 0.85rem;
  color: #bcbcbc;
  font-size: 0.9rem;
}

.contacts-list {
  margin-top: 0.95rem;
  display: grid;
  gap: 0.65rem;
}

.contact-card {
  border: 1px solid #343434;
  border-radius: 10px;
  background: #101010;
  padding: 0.75rem;
  color: #d7d7d7;
}

.contact-card h3 {
  margin: 0;
  color: #f5f5f5;
}

.contact-card p {
  margin: 0.35rem 0 0;
}

.contacts-directory-list {
  margin-top: 0.75rem;
}

.contact-directory-card {
  padding: 0.85rem;
}

.contact-directory-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.6rem;
  border-bottom: 1px solid #2d2d2d;
  padding-bottom: 0.5rem;
}

.contact-directory-header h3 {
  margin: 0;
}

.contact-directory-body {
  margin-top: 0.55rem;
  display: grid;
  gap: 0.25rem;
}

.contact-directory-body p {
  margin: 0;
}

.contact-kind {
  color: var(--core-gold-hover);
  font-size: 0.9rem;
}

.contact-notes {
  color: #bcbcbc;
  font-size: 0.92rem;
}

.contact-tags {
  margin-top: 0.45rem;
}

.contact-tag {
  display: inline-block;
  margin: 0 0.3rem 0.3rem 0;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.6);
  color: var(--core-gold-hover);
  font-size: 0.78rem;
}

.contacts-empty {
  margin-top: 0.95rem;
  border: 1px dashed #4a4a4a;
  border-radius: 10px;
  padding: 0.75rem;
  color: #bcbcbc;
  font-size: 0.92rem;
}

.contacts-form {
  margin-top: 0.9rem;
}

.contacts-kind-toggle {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.9rem;
  color: #d7d7d7;
}

.contacts-kind-toggle label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.contact-section {
  margin-bottom: 0.95rem;
  border: 1px solid #2d2d2d;
  border-radius: 10px;
  padding: 0.75rem;
  background: #111111;
}

.contact-grid {
  display: grid;
  gap: 0.65rem;
}

.contact-grid label {
  display: grid;
  gap: 0.3rem;
  color: #d4d4d4;
  font-size: 0.9rem;
}

.contact-grid input,
.contact-grid select,
.contact-grid textarea {
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid #3b3b3b;
  background: #0f0f0f;
  color: #f1f1f1;
}

.tags-editor {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  min-height: 42px;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  border: 1px solid #3b3b3b;
  background: #0f0f0f;
}

.tags-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.6);
  color: var(--core-gold-hover);
  font-size: 0.82rem;
}

.tag-chip-remove {
  border: 0;
  background: transparent;
  color: var(--core-gold-hover);
  cursor: pointer;
  font-size: 0.76rem;
  line-height: 1;
  padding: 0;
}

.tags-editor input {
  flex: 1;
  min-width: 190px;
  border: 0;
  background: transparent;
  color: #f1f1f1;
  padding: 0.2rem 0;
}

.tags-editor input:focus {
  outline: none;
}

.contact-notes-input {
  grid-column: 1 / -1;
}

.contacts-submit {
  border: 0;
  cursor: pointer;
}

.communications-meta {
  margin: 0.55rem 0 0;
  color: var(--core-gold-hover);
  font-size: 0.9rem;
}

.communications-form {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.7rem;
}

.communications-form label {
  display: grid;
  gap: 0.3rem;
  color: #d4d4d4;
  font-size: 0.9rem;
}

.communications-form input,
.communications-form select,
.communications-form textarea {
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid #3b3b3b;
  background: #0f0f0f;
  color: #f1f1f1;
}

.communications-submit {
  border: 0;
  cursor: pointer;
}

@media (min-width: 760px) {
  .contacts-filters,
  .contacts-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contacts-search-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.welcome-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1.5rem;
  background: radial-gradient(circle at top, #1b1b1b 0%, #0f0f0f 55%, #0b0b0b 100%);
}

.welcome-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  width: min(1080px, 100%);
  align-items: center;
  margin: 0 auto;
}

@media (min-width: 960px) {
  .welcome-split {
    grid-template-columns: 1.10fr 0.90fr;
  }
}

.welcome-marketing {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.welcome-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

.welcome-logo {
  width: 140px;
  height: auto;
  margin-bottom: 0.5rem;
}

.welcome-kicker {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--core-gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.welcome-body {
  margin: 0;
}

.welcome-title {
  margin: 0 0 0.85rem;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.welcome-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.05rem;
  line-height: 1.6;
}

.welcome-highlights {
  display: grid;
  gap: 1.5rem;
  margin-top: 1rem;
}

@media (min-width: 580px) {
  .welcome-highlights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.highlight-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.welcome-highlights h3 {
  margin: 0;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
}

.welcome-highlights p {
  margin: 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.88rem;
  line-height: 1.45;
}

.welcome-auth {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* --------------------------------------------------
   Auth page
-------------------------------------------------- */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: radial-gradient(circle at top, #1b1b1b 0%, #0f0f0f 55%, #0b0b0b 100%);
}

.auth-card {
  width: min(420px, 100%);
  padding: 2.25rem 2rem;
  border-radius: 24px;
  background: rgba(18, 18, 18, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}

.auth-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1.75rem;
}

.auth-logo {
  width: 140px;
  height: auto;
  margin-bottom: 1rem;
}

.auth-kicker {
  margin: 0;
  color: var(--core-gold);
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-title {
  margin: 0.35rem 0 0;
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.auth-subtitle {
  margin: 0.4rem 0 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.45;
}

.auth-invite-note {
  margin-bottom: 1.25rem;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.06);
  color: var(--core-gold-hover);
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  line-height: 1.4;
  text-align: center;
}

.auth-social-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.auth-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.auth-social-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.auth-social-btn:active {
  transform: translateY(0);
}

.auth-btn-icon {
  flex-shrink: 0;
}

.auth-divider {
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-forms-container {
  position: relative;
  width: 100%;
}

.auth-form-section {
  display: none;
  width: 100%;
  animation: authFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.auth-forms-container[data-mode="login"] #auth-section-login {
  display: block;
}

.auth-forms-container[data-mode="register"] #auth-section-register {
  display: block;
}

.auth-section-title {
  display: none; /* Subsumed into the header title dynamic text */
}

.auth-form {
  display: grid;
  gap: 1.1rem;
}

.auth-field-group {
  display: grid;
  gap: 0.4rem;
}

.auth-field-group label {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.84rem;
  font-weight: 500;
}

.auth-field-group input {
  min-height: 48px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  color: #ffffff;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-field-group input:focus {
  outline: none;
  border-color: var(--core-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
  background: rgba(0, 0, 0, 0.4);
}

.auth-field-group input::placeholder {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.9rem;
}

.auth-submit-btn {
  margin-top: 0.5rem;
  min-height: 48px;
  width: 100%;
  border: none;
  border-radius: 12px;
  background: var(--core-gold);
  color: #0b0b0b;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-submit-btn:hover {
  background: var(--core-gold-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.auth-submit-btn:active {
  transform: translateY(0);
}

.auth-toggle-link {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
}

.auth-toggle-link a {
  color: var(--core-gold);
  font-weight: 600;
  text-decoration: none;
  margin-left: 0.25rem;
  transition: color 0.15s ease;
}

.auth-toggle-link a:hover {
  color: var(--core-gold-hover);
  text-decoration: underline;
}

@keyframes authFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .auth-card {
    padding: 1.75rem 1.25rem;
  }
}

/* --------------------------------------------------
   Owner overview
-------------------------------------------------- */

.owner-hero {
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 16px;
  padding: 1.2rem 1.15rem;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.16) 0%, rgba(17, 17, 17, 0.92) 48%);
}

.owner-hero-eyebrow {
  margin: 0;
  color: var(--core-gold-hover);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.owner-hero h1 {
  margin: 0.4rem 0 0;
  font-size: 1.5rem;
  color: #f8f8f8;
}

.owner-hero-subtitle {
  margin: 0.5rem 0 0;
  color: #d0d0d0;
  line-height: 1.5;
  font-size: 0.95rem;
}

.owner-info-grid {
  margin-top: 1rem;
  display: grid;
  gap: 0.9rem;
}

.owner-info-card,
.owner-stats-card,
.owner-roadmap-card {
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 14px;
  background: #151515;
  padding: 0.95rem;
}

.owner-info-card h2,
.owner-stats-card h2,
.owner-roadmap-card h2 {
  margin: 0;
  color: #f4f4f4;
  font-size: 1.07rem;
}

.owner-meta-list {
  margin: 0.85rem 0 0;
  display: grid;
  gap: 0.62rem;
}

.owner-meta-list div {
  border-top: 1px solid #2e2e2e;
  padding-top: 0.55rem;
}

.owner-meta-list dt {
  margin: 0;
  color: #b8b8b8;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.owner-meta-list dd {
  margin: 0.22rem 0 0;
  color: #f0f0f0;
  font-size: 0.97rem;
  line-height: 1.35;
  word-break: break-word;
}

.owner-stats-card {
  margin-top: 0.95rem;
}

.owner-stats-header p,
.owner-roadmap-card p {
  margin: 0.42rem 0 0;
  color: #bdbdbd;
  font-size: 0.92rem;
}

.owner-stats-grid {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.owner-stat {
  border: 1px solid #2b2b2b;
  border-radius: 10px;
  padding: 0.7rem 0.75rem;
  background: #111111;
}

.owner-stat p {
  margin: 0;
  color: #b8b8b8;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.owner-stat h3 {
  margin: 0.42rem 0 0;
  color: var(--core-gold-hover);
  font-size: 1.55rem;
  line-height: 1.05;
}

.owner-roadmap-card {
  margin-top: 0.95rem;
}

.owner-activity-card {
  margin-top: 0.95rem;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 14px;
  background: #151515;
  padding: 0.95rem;
}

.owner-activity-card h2 {
  margin: 0;
  color: #f4f4f4;
  font-size: 1.07rem;
}

.owner-activity-card > p {
  margin: 0.42rem 0 0;
  color: #bdbdbd;
  font-size: 0.92rem;
}

.owner-activity-list {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.55rem;
}

.owner-activity-item {
  border: 1px solid #323232;
  border-radius: 10px;
  background: #111111;
  padding: 0.62rem 0.68rem;
  display: grid;
  gap: 0.3rem;
}

.owner-activity-main h3 {
  margin: 0;
  color: #f0f0f0;
  font-size: 0.96rem;
}

.owner-activity-main p {
  margin: 0.25rem 0 0;
  color: #b9b9b9;
  font-size: 0.86rem;
}

.owner-activity-time {
  color: var(--core-gold-hover);
  font-size: 0.82rem;
}

.owner-activity-empty {
  margin-top: 0.7rem;
  color: #bdbdbd;
  font-size: 0.92rem;
}

.owner-roadmap-list {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.55rem;
}

.owner-roadmap-item {
  border: 1px dashed #474747;
  border-radius: 10px;
  padding: 0.58rem 0.65rem;
  color: #dadada;
  font-size: 0.9rem;
  background: #101010;
}

.owner-roadmap-actions {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.6rem;
}

.owner-roadmap-actions .action-btn[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

.owner-nav-actions {
  margin-top: 0.95rem;
  display: grid;
  gap: 0.6rem;
}

@media (min-width: 860px) {
  .owner-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .owner-hero {
    padding: 1.35rem 1.3rem;
  }
}

/* --------------------------------------------------
   Shared components
-------------------------------------------------- */

.shared-page-header {
  margin-bottom: var(--core-space-3);
}

.shared-page-kicker {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--core-accent-soft);
}

.shared-page-title {
  margin: 0.4rem 0 0;
  font-size: 1.5rem;
}

.shared-page-subtitle {
  margin: 0.45rem 0 0;
  color: var(--core-text-muted);
  line-height: 1.5;
}

.standard-actions {
  display: grid;
  gap: 0.65rem;
  margin-top: var(--core-space-3);
}

.coming-soon-card {
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 14px;
  background: #141414;
  padding: 1rem;
}

.coming-soon-card h2 {
  margin: 0;
  font-size: 1.15rem;
  color: #f7f7f7;
}

.coming-soon-card p {
  margin: 0.55rem 0 0;
  color: #cfcfcf;
  line-height: 1.5;
}

.coming-soon-list {
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
  color: #d9d9d9;
  display: grid;
  gap: 0.35rem;
}

/* --------------------------------------------------
   Referral menu
-------------------------------------------------- */

.intake-menu-panel {
  padding: 0.85rem 1rem;
}

.intake-menu-title {
  margin-bottom: 0.6rem;
}

.intake-menu-subtitle {
  margin-top: 0;
  margin-bottom: 0.85rem;
}

.intake-review-status {
  margin-bottom: 0.65rem;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-radius: 999px;
  padding: 0.34rem 0.7rem;
  background: rgba(212, 175, 55, 0.08);
  color: var(--core-gold-hover);
  font-size: 0.9rem;
  font-weight: 600;
}

.intake-menu-actions {
  margin-top: 0;
  gap: 0.5rem;
}

.intake-menu-actions .btn-tertiary-core {
  padding: 0.45rem 0.2rem;
  display: inline-block;
  width: auto;
  justify-self: center;
}

/* --------------------------------------------------
   Referral dashboard
-------------------------------------------------- */

.referrals-board {
  display: grid;
  gap: var(--core-space-3);
}

.referrals-summary {
  margin-top: 0.1rem;
}

.summary-value.pending {
  color: var(--core-gold-hover);
}

.summary-value.accepted {
  color: #7fe3a5;
}

.summary-value.declined {
  color: #ff9b9b;
}

.range-filters {
  margin: 0;
}

.cases-top-actions {
  margin-top: 0;
}

.flash-inline {
  max-width: none;
  padding: 0;
  margin-top: 0;
}

.status-header {
  width: 100%;
  background: var(--core-card);
  border: 0;
  color: #f5f5f5;
  text-align: left;
  cursor: pointer;
}

.status-header.core-section-header {
  padding: 0.78rem 0.85rem;
  border-bottom: 1px solid #2b2b2b;
}

.status-header.pending {
  color: var(--core-gold-hover);
}

.status-header.accepted {
  color: #7fe3a5;
}

.status-header.declined {
  color: #ff9b9b;
}

.status-count {
  color: #f5f5f5;
  font-weight: 700;
  font-size: 0.9rem;
}

.status-body {
  padding: 0.75rem;
}

.collapsed {
  display: none;
}

.referral-row-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.referral-row {
  display: block;
  width: 100%;
  border: 1px solid #2f2f2f;
  border-radius: 8px;
  background: #131313;
  color: #f1f1f1;
  text-decoration: none;
  padding: 0.58rem 0.72rem;
  transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.referral-row:hover {
  border-color: var(--core-gold);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
}

.referral-row:focus-visible {
  outline: 2px solid rgba(212, 175, 55, 0.75);
  outline-offset: 2px;
}

.referral-row.timeline-safe {
  border-left: 5px solid #2ecc71;
  background: linear-gradient(90deg, rgba(46, 204, 113, 0.08) 0%, #131313 46%);
}

.referral-row.timeline-warning {
  border-left: 6px solid #f9a825;
  background: linear-gradient(90deg, rgba(249, 168, 37, 0.15) 0%, #131313 48%);
}

.referral-row.timeline-critical {
  border-left: 6px solid #ff4d4d;
  background: linear-gradient(90deg, rgba(255, 77, 77, 0.18) 0%, #131313 48%);
}

.referral-row.timeline-neutral {
  border-left: 5px solid #5b5b5b;
  background: linear-gradient(90deg, rgba(91, 91, 91, 0.12) 0%, #131313 46%);
}

.referral-row.timeline-warning .referral-row-text {
  color: #fbe6bf;
}

.referral-row.timeline-critical .referral-row-text {
  color: #ffd5d5;
  font-weight: 700;
}

.intake-timeline-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.intake-timeline-badge.timeline-safe {
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
}

.intake-timeline-badge.timeline-warning {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.2);
}

.intake-timeline-badge.timeline-critical {
  color: #f87171;
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
}

.intake-timeline-badge.timeline-neutral {
  color: #9ca3af;
}

.workflow-progress-fill {
  width: 0%;
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #d4af37, #b38f20);
  transition: width 0.3s ease;
}

.referral-row-text {
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

/* --------------------------------------------------
   Referral review
-------------------------------------------------- */

.review-wrap {
  width: min(calc(100vw - 32px), 1888px);
  margin: 20px auto 52px;
  padding: 0;
}

.core-decision-bar {
  position: sticky;
  top: 78px;
  z-index: 20;
  border: 1px solid rgba(212, 175, 55, 0.36);
  border-radius: 14px;
  background: #141414;
  padding: 14px;
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.decision-summary h1 {
  margin: 0;
  color: #f5f5f5;
  font-size: 1.3rem;
  font-weight: 700;
}

.decision-status-row {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.status-pill,
.compliance-pill,
.due-pill {
  border-radius: 999px;
  padding: 0.22rem 0.62rem;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid #343434;
  background: #101010;
  color: #e2e2e2;
}

.status-pill {
  border-color: rgba(212, 175, 55, 0.52);
  color: var(--core-gold-hover);
}

.compliance-pill.is-safe {
  border-color: rgba(46, 204, 113, 0.52);
  color: #8fe5b5;
}

.compliance-pill.is-warning {
  border-color: rgba(249, 168, 37, 0.55);
  color: #ffd896;
}

.compliance-pill.is-urgent {
  border-color: rgba(255, 77, 77, 0.6);
  color: #ffb0b0;
}

.decision-snapshot {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.snapshot-item {
  border: 1px solid #2c2c2c;
  border-radius: 8px;
  padding: 0.26rem 0.56rem;
  font-size: 0.82rem;
  color: #cbcbcb;
  background: #101010;
}

.decision-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.decision-actions .action-btn,
.decision-actions .btn-primary-core,
.decision-actions .btn-secondary-core,
.decision-actions .btn-tertiary-core {
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  line-height: 1.2;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.decision-actions .btn-secondary-core {
  display: inline-block;
}

.decision-actions .btn-tertiary-core {
  color: #d2b676;
  background: transparent;
}

.decision-inline-form {
  margin: 0;
}

.accepted-actions {
  margin-bottom: 18px;
}

.accepted-actions .core-section-body {
  padding-top: 10px;
}

.accepted-actions-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.review-workspace-grid {
  display: grid;
  grid-template-columns: minmax(420px, 0.72fr) minmax(720px, 1.38fr);
  gap: clamp(14px, 1.4vw, 24px);
  align-items: start;
}

.review-document-pane {
  order: 1;
}

.review-form-pane {
  order: 2;
}

.review-overview,
.review-ai,
.placement-overview,
.referral-reference {
  border-color: rgba(212, 175, 55, 0.26);
  background: #141414;
}

.review-overview .core-section-header,
.review-ai .core-section-header,
.placement-overview .core-section-header,
.referral-reference .core-section-header {
  border-bottom-color: #2c2c2c;
}

.review-overview .core-section-body,
.review-ai .core-section-body,
.placement-overview .core-section-body,
.referral-reference .core-section-body {
  color: #d8d8d8;
}

.review-ai {
  margin-top: 16px;
}

.review-ai-summary {
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border-color: rgba(212, 175, 55, 0.26);
  background: #141414;
}

.ai-summary-copy {
  display: grid;
  gap: 8px;
}

.ai-summary-copy h2 {
  margin: 0;
  color: var(--core-gold-hover);
  font-size: 1rem;
}

.ai-summary-copy p {
  margin: 0;
  color: #d8d8d8;
  font-size: 0.92rem;
  line-height: 1.45;
}

.ai-summary-meta {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.ai-summary-meta span {
  border: 1px solid #2c2c2c;
  border-radius: 999px;
  background: #101010;
  color: #cfcfcf;
  padding: 0.2rem 0.55rem;
  font-size: 0.78rem;
}

.ai-summary-actions,
.ai-action-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-section-intro {
  margin: 0 0 15px;
  color: #9f9f9f;
}

.ai-rec-result {
  margin-top: 15px;
  margin-bottom: 25px;
  color: #e0e0e0;
  line-height: 1.6;
}

.ai-analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.ai-assessment-card {
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.04);
  padding: 16px;
  margin-bottom: 20px;
}

.ai-assessment-card--jobs {
  border-color: rgba(100, 181, 246, 0.25);
  background: rgba(100, 181, 246, 0.04);
}

.ai-assessment-card--supports {
  border-color: rgba(129, 199, 132, 0.25);
  background: rgba(129, 199, 132, 0.04);
}

.ai-assessment-card h3 {
  margin: 0 0 10px;
  color: var(--core-gold-hover);
  font-size: 1.05rem;
}

.ai-assessment-card--jobs h3 {
  color: #64b5f6;
}

.ai-assessment-card--supports h3 {
  color: #81c784;
}

.ai-assessment-card p,
.ai-assessment-card ul {
  margin: 0;
  color: #e0e0e0;
  font-size: 0.93rem;
}

.ai-assessment-card ul {
  padding-left: 20px;
}

.ai-rec-loading {
  display: none;
  align-items: center;
  gap: 10px;
  color: #b0bec5;
  font-style: italic;
  margin-top: 10px;
  margin-bottom: 25px;
  padding: 20px;
  background: #111;
  border: 1px solid #222;
  border-radius: 8px;
}

.ai-rec-loading .spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(212, 175, 55, 0.2);
  border-top-color: #d4af37;
  border-radius: 50%;
}

.ai-action-panel {
  margin-bottom: 25px;
}

.ai-employer-matches {
  border-top: 1px solid #282828;
  padding-top: 25px;
  margin-top: 25px;
}

.ai-employer-matches h3 {
  margin: 0 0 15px;
  color: #ffffff;
  font-size: 1.1rem;
}

.missing-fields-alert {
  border: 1px solid rgba(255, 77, 77, 0.52);
  border-radius: 10px;
  background: rgba(255, 77, 77, 0.12);
  color: #ffcfcf;
  padding: 10px 12px;
  margin: 0 0 12px;
  font-size: 0.9rem;
}

.missing-fields-alert ul {
  margin: 6px 0 0 18px;
  padding: 0;
}

.core-review-group + .core-review-group {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #272727;
}

.core-review-group h3 {
  margin: 0 0 8px;
  color: var(--core-gold-hover);
  font-size: 0.93rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.review-row {
  display: grid;
  grid-template-columns: minmax(120px, 145px) 1fr;
  gap: 12px;
  align-items: start;
  padding: 0.18rem 0;
}

.review-label {
  color: #a9a9a9;
  font-size: 0.85rem;
}

.review-value {
  color: #e7e7e7;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.barrier-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.barrier-tag {
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.12);
  color: #efcf89;
  font-size: 0.82rem;
  padding: 0.2rem 0.58rem;
}

.review-edit-controls {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.review-pane-rail {
  position: sticky;
  top: 0;
  z-index: 8;
  display: grid;
  gap: 12px;
  margin: -4px 0 14px;
  padding: 10px 0 12px;
  background:
    linear-gradient(180deg, rgba(20, 20, 20, 0.98) 0%, rgba(20, 20, 20, 0.94) 82%, rgba(20, 20, 20, 0) 100%);
  backdrop-filter: blur(6px);
}

.review-pane-rail-edit {
  margin-top: 0;
}

.review-pane-rail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.review-pane-rail-actions .action-btn,
.review-pane-rail-actions .btn-primary-core,
.review-pane-rail-actions .btn-secondary-core,
.review-pane-rail-actions .btn-tertiary-core {
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  line-height: 1.2;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.review-pane-rail-actions .btn-secondary-core {
  display: inline-block;
}

.review-pane-rail-actions .btn-tertiary-core {
  color: #d2b676;
  background: transparent;
}

.review-edit-toggle {
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  background: #101010;
  color: #dfdfdf;
  padding: 0.38rem 0.66rem;
  font-size: 0.86rem;
  cursor: pointer;
}

.review-edit-hint {
  color: #9f9f9f;
  font-size: 0.8rem;
}

.review-edit-panel {
  margin-top: 12px;
  border-top: 1px dashed #353535;
  padding-top: 12px;
  display: none;
}

.review-edit-panel.is-open {
  display: block;
}

.review-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.review-edit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 12px;
}

.review-edit-field-group {
  display: grid;
  gap: 5px;
}

.review-edit-field-group.full {
  grid-column: 1 / -1;
}

.review-edit-field-group label {
  color: #b6b6b6;
  font-size: 0.84rem;
}

.review-edit-input,
.review-edit-textarea {
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  background: #101010;
  color: #e6e6e6;
  padding: 0.5rem 0.58rem;
  font-size: 0.9rem;
}

.review-edit-textarea {
  min-height: 90px;
  resize: vertical;
}

.barrier-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
}

.barrier-checkbox-item {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #d5d5d5;
  font-size: 0.87rem;
}

.review-ai-toggle,
.document-toggle {
  width: 100%;
  border: 0;
  background: #141414;
  cursor: pointer;
  text-align: left;
  padding: 0.78rem 0.82rem;
}

.review-ai .core-section-body,
.referral-reference .core-section-body {
  padding-top: 10px;
}

.ai-placeholder {
  margin-top: 10px;
  border: 1px dashed #3a3a3a;
  border-radius: 10px;
  padding: 10px;
  color: #b9b9b9;
  background: rgba(212, 175, 55, 0.05);
  font-size: 0.9rem;
}

.placement-overview {
  margin-top: 16px;
}

.match-card-list {
  display: grid;
  gap: 10px;
}

.match-card {
  border: 1px solid #2f2f2f;
  border-left: 4px solid var(--core-gold);
  border-radius: 10px;
  background: #101010;
  padding: 11px;
}

.match-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 7px;
}

.match-employer-name {
  color: #f3f3f3;
  font-weight: 700;
}

.match-score {
  color: #efcf89;
  font-size: 0.88rem;
  font-weight: 600;
}

.match-details p {
  margin: 0 0 5px;
  color: #c8c8c8;
  font-size: 0.88rem;
}

.match-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.match-actions .action-btn {
  width: auto;
  display: inline-flex;
  padding: 0.42rem 0.7rem;
  font-size: 0.84rem;
  line-height: 1.2;
}

.empty-state {
  margin: 0;
  color: #bcbcbc;
  font-size: 0.91rem;
}

.referral-reference {
  margin-top: 16px;
}

.review-workspace-grid .referral-reference {
  margin-top: 0;
}

.document-body {
  background: #111111;
  border: 1px solid #232323;
  border-radius: 10px;
  padding: 10px;
}

.document-actions {
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.document-actions .action-btn,
.document-actions .btn-secondary-core,
.document-actions .btn-tertiary-core {
  width: auto;
  display: inline-flex;
  padding: 0.43rem 0.68rem;
  font-size: 0.84rem;
  line-height: 1.2;
}

.doc-frame-wrap {
  border: 1px solid #313131;
  border-radius: 8px;
  overflow: hidden;
  background: #0c0c0c;
}

.doc-frame {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}

.review-document-pane .doc-frame {
  height: min(72vh, 920px);
}

.doc-frame.is-expanded {
  height: 74vh;
}

.document-source-scroll {
  margin-top: 10px;
  border: 1px solid #2c2c2c;
  border-radius: 10px;
  background: #101010;
  padding: 10px;
  font-size: 0.88rem;
  color: #d3d3d3;
}

.source-section-title {
  margin: 0 0 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--core-gold-hover);
}

.source-block {
  margin: 0;
  white-space: pre-wrap;
}

.document-note {
  margin: 0 0 8px;
  color: #b8b8b8;
  font-size: 0.88rem;
}

.notice-warning {
  border: 1px solid rgba(212, 175, 55, 0.48);
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.12);
  color: var(--core-gold-hover);
  padding: 8px 10px;
  margin: 0 0 8px;
  font-size: 0.88rem;
}

.review-text-fallback {
  color: #dadada;
  font-size: 0.9rem;
}

/* --------------------------------------------------
   Intake upload flow
-------------------------------------------------- */

.intake-wrap {
  width: min(var(--core-container-width), var(--core-container-max));
  margin: 28px auto 48px;
  padding: 0 var(--core-container-pad-mobile);
}

.intake-card {
  border: 1px solid #2f2f2f;
  border-radius: 12px;
  background: #151515;
  padding: 20px;
}

.intake-workspace-grid {
  display: grid;
  gap: 18px;
}

.intake-main-pane {
  min-width: 0;
}

.intake-preview-pane {
  min-width: 0;
}

.intake-preview-card {
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 12px;
  background: #101010;
  padding: 14px;
  min-height: 100%;
}

.intake-preview-header {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.intake-preview-shell {
  border: 1px solid #2e2e2e;
  border-radius: 12px;
  background: #0d0d0d;
  min-height: 420px;
  overflow: hidden;
}

.intake-preview-placeholder {
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  text-align: center;
  color: #b8b8b8;
  line-height: 1.6;
}

.intake-preview-pdf-wrap,
.intake-preview-text-wrap {
  height: 100%;
}

.intake-preview-pdf-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 12px;
}

.intake-preview-pdf-controls {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.intake-preview-page-label {
  color: #d9d9d9;
  font-size: 0.92rem;
  text-align: center;
  flex: 1 1 auto;
}

.intake-preview-placeholder.collapsed,
.intake-preview-pdf-controls.collapsed,
.intake-preview-pdf-wrap.collapsed,
.intake-preview-text-wrap.collapsed {
  display: none;
}

.intake-preview-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  align-self: center;
  border: 1px solid #262626;
  border-radius: 10px;
  background: #ffffff;
  object-fit: contain;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.28);
}

.intake-preview-text-wrap {
  padding: 12px;
}

.intake-preview-text {
  margin: 10px 0 0;
  min-height: 720px;
  max-height: 860px;
  overflow: auto;
  padding: 18px;
  border: 1px solid #262626;
  border-radius: 10px;
  background: #121212;
  color: #e2e2e2;
  font-size: 1rem;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.intake-title {
  margin: 0 0 8px;
  color: #f5f5f5;
}

.intake-subtitle {
  margin: 0 0 18px;
  color: #c8c8c8;
}

.intake-autofill-panel {
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.04);
}

.intake-autofill-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.intake-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.intake-stepper-item {
  min-height: 44px;
  border: 1px solid #3a3a3a;
  background: #101010;
  color: #cfcfcf;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.82rem;
  padding: 0.45rem 0.5rem;
}

.intake-stepper-item.is-active {
  border-color: var(--core-accent);
  color: var(--core-accent-soft);
  background: rgba(212, 175, 55, 0.12);
}

.intake-step {
  margin-top: 10px;
}

.intake-step[hidden] {
  display: none;
}

.intake-step-title {
  margin: 0 0 10px;
  font-size: 1rem;
  color: var(--core-gold-hover);
}

.intake-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.9rem;
  color: #dddddd;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #3b3b3b;
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 1rem;
  color: #f1f1f1;
  background: #111111;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.helper {
  font-size: 0.84rem;
  color: #b0b0b0;
  margin: 2px 0 0;
}

.tags-editor {
  width: 100%;
  border: 1px solid #3b3b3b;
  border-radius: 8px;
  padding: 8px;
  background: #101010;
  display: grid;
  gap: 8px;
}

.tags-editor-input {
  width: 100%;
  border: 1px solid #3b3b3b;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 1rem;
  color: #f1f1f1;
  background: #111111;
}

.requested-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  background: transparent;
}

.requested-service-item {
  position: relative;
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--core-card);
  border: 1px solid var(--core-border);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  min-height: 64px;
}

.requested-service-item:hover {
  background: #1a1a1a;
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.requested-service-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
}

.requested-service-item span {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--core-muted);
  transition: color 0.2s ease;
  z-index: 1;
  line-height: 1.4;
  padding-right: 28px;
}

/* Checked state */
.requested-service-item:has(input[type="checkbox"]:checked) {
  background: rgba(212, 175, 55, 0.08); /* slight gold tint */
  border-color: var(--core-gold);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15), inset 0 0 0 1px var(--core-gold);
}

.requested-service-item:has(input[type="checkbox"]:checked) span {
  color: #ffffff;
}

/* Checkmark effect using ::after */
.requested-service-item::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 22px;
  height: 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s ease;
  opacity: 0;
}

.requested-service-item:has(input[type="checkbox"]:checked)::after {
  transform: translateY(-50%) scale(1);
  opacity: 1;
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
}

.btn.primary {
  background: var(--core-accent);
  color: #111;
}

.btn.secondary {
  background: #1a1a1a;
  color: var(--core-gold-hover);
  border-color: rgba(212, 175, 55, 0.65);
}

.new-counselor {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #2f2f2f;
  border-radius: 10px;
  background: #111111;
  display: none;
}

.new-counselor-confirm {
  margin-top: 10px;
}

.new-counselor-confirm label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #dcdcdc;
}

.new-counselor-summary {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(46, 204, 113, 0.35);
  border-radius: 10px;
  background: rgba(46, 204, 113, 0.1);
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.new-counselor-summary-text {
  font-size: 0.9rem;
  color: #b6f0c7;
}

.drop-zone {
  border: 2px dashed #5a5a5a;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  background: #101010;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.drop-zone.dragover {
  border-color: var(--core-gold);
  background: rgba(212, 175, 55, 0.08);
}

.hidden-file-input {
  display: none;
}

.file-meta {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #bdbdbd;
}

.intake-autofill-status {
  display: none;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #3a3a3a;
  background: rgba(255, 255, 255, 0.03);
  color: #d0d0d0;
  font-size: 0.88rem;
}

.intake-autofill-status.is-visible {
  display: block;
}

.intake-autofill-status[data-tone="success"] {
  border-color: rgba(46, 204, 113, 0.4);
  color: #b6f0c7;
  background: rgba(46, 204, 113, 0.08);
}

.intake-autofill-status[data-tone="warning"] {
  border-color: rgba(212, 175, 55, 0.4);
  color: var(--core-gold-hover);
  background: rgba(212, 175, 55, 0.08);
}

.intake-autofill-status[data-tone="error"] {
  border-color: rgba(231, 76, 60, 0.45);
  color: #ffb4ac;
  background: rgba(231, 76, 60, 0.08);
}

.note {
  margin-top: 10px;
  color: #9f9f9f;
  font-size: 0.9rem;
}

.intake-action-rail {
  margin-top: 18px;
  gap: 10px;
}

.intake-rail-link {
  margin-left: auto;
}

.is-hidden {
  display: none !important;
}

.intake-success-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 999;
}

.intake-success-card {
  width: 100%;
  max-width: 520px;
  border: 1px solid #3a3a3a;
  border-radius: 14px;
  background: #151515;
  padding: 20px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.3);
}

.intake-success-title {
  margin: 0 0 8px;
  font-size: 1.35rem;
  color: #f5f5f5;
}

.intake-success-copy {
  margin: 0 0 14px;
  color: #d2d2d2;
}

.intake-success-warning {
  margin: 0 0 14px;
  border: 1px solid #f1d08b;
  background: #332910;
  color: #f4d797;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.9rem;
}

/* --------------------------------------------------
   Accepted profile + saved state
-------------------------------------------------- */

.client-profile-form,
.client-profile-grid,
.client-profile-field {
  min-width: 0;
}

.workflow-panel {
  gap: 1rem;
}

.workflow-summary-card {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(16, 16, 16, 0.96));
}

.workflow-summary-copy {
  min-width: 0;
}

.workflow-summary-kicker {
  display: inline-block;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d7c27a;
}

.workflow-summary-title {
  margin: 0.3rem 0 0;
  font-size: 1.2rem;
  color: #f5f5f5;
}

.workflow-summary-text {
  margin: 0.35rem 0 0;
  max-width: 60ch;
  color: #d0d0d0;
  line-height: 1.5;
}

.workflow-summary-metrics {
  display: grid;
  gap: 0.65rem;
  min-width: 170px;
}

.workflow-summary-metric {
  display: grid;
  gap: 0.18rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(7, 7, 7, 0.42);
}

.workflow-summary-label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ababab;
}

.workflow-summary-metric strong {
  font-size: 1.1rem;
  color: #fff5cf;
}

.workflow-stepper {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workflow-step-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid #343434;
  border-radius: 12px;
  background: #101010;
  color: inherit;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.workflow-step-card:hover {
  transform: translateY(-1px);
  border-color: rgba(212, 175, 55, 0.36);
  background: #141414;
}

.workflow-step-card.is-current {
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.14);
}

.workflow-step-card.is-complete {
  border-color: rgba(61, 220, 132, 0.4);
}

.workflow-step-card.is-locked {
  opacity: 0.9;
}

.workflow-step-number {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.14);
  color: var(--core-gold-hover);
  font-size: 0.95rem;
  font-weight: 800;
}

.workflow-step-card.is-complete .workflow-step-number {
  background: rgba(61, 220, 132, 0.16);
  color: #8bf0b6;
}

.workflow-step-copy h2 {
  margin: 0;
  font-size: 1rem;
  color: #f5f5f5;
}

.workflow-step-copy p {
  margin: 0.35rem 0 0;
  color: #cfcfcf;
  font-size: 0.9rem;
  line-height: 1.45;
}

.workflow-step-progress {
  margin-top: 0.65rem;
  color: #f0ddb0;
  font-size: 0.9rem;
  font-weight: 700;
}

.workflow-step-status {
  margin-top: 0.35rem;
  color: #a7a7a7;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.workflow-form,
.client-profile-form {
  display: grid;
  gap: 0.95rem;
}

.client-profile-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: minmax(0, 1fr);
}

.client-profile-grid-two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.workflow-section {
  border-color: rgba(255, 255, 255, 0.08);
}

.workflow-section.is-current {
  border-color: rgba(212, 175, 55, 0.46);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.12);
}

.workflow-section.is-complete {
  border-color: rgba(61, 220, 132, 0.3);
}

.workflow-section-caption {
  margin: 0.3rem 0 0;
  color: #bdbdbd;
  font-size: 0.92rem;
}

.workflow-section--call-mode .core-section-body {
  padding-top: 0.25rem;
}

.call-mode-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 1rem;
  align-items: start;
}

.call-mode-shell.has-calendar-visible {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

@media (min-width: 1200px) {
  .call-mode-shell.has-calendar-visible {
    grid-template-columns: minmax(0, 1.1fr) minmax(350px, 1.1fr) minmax(320px, 0.9fr);
  }
}

/* Calendar widget specific styles */
#google_calendar_card {
  border-color: rgba(197, 168, 92, 0.18);
}
#calendar_iframe_container iframe {
  width: 100%;
  border: 0;
  border-radius: 8px;
}

.call-mode-sidebar {
  display: grid;
  gap: 1rem;
}

.call-mode-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.96), rgba(11, 11, 11, 0.92));
}

.call-mode-card--preview {
  position: sticky;
  top: 88px;
}

.call-mode-card-kicker {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d9c47b;
}

.call-mode-card h3 {
  margin: 0;
  color: #f7f7f7;
  font-size: 1.15rem;
}

.call-mode-contact-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.call-mode-contact-list div {
  display: grid;
  gap: 0.2rem;
}

.call-mode-contact-list dt {
  color: #9fa3a7;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.call-mode-contact-list dd {
  margin: 0;
  color: #f5f5f5;
  font-size: 1rem;
}

.call-mode-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.selection-group--call-mode {
  gap: 0.75rem;
}

.call-mode-radio-group {
  display: grid;
  gap: 0.7rem;
}

.call-mode-radio {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: #111214;
  cursor: pointer;
}

.call-mode-radio:has(input:checked) {
  border-color: rgba(212, 175, 55, 0.48);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0.04));
}

.call-mode-radio input {
  margin: 0;
  accent-color: #d4af37;
}

.call-mode-radio span {
  color: #f3f3f3;
  font-weight: 600;
}

.email-preview-panel {
  display: grid;
  gap: 1rem;
  min-height: 100%;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(13, 13, 13, 0.96), rgba(9, 9, 9, 0.92));
}

.email-preview-subject {
  display: grid;
  gap: 0.25rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.email-preview-subject span {
  color: #9fa3a7;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.email-preview-subject strong {
  color: #fff5cf;
  font-size: 1rem;
}

.email-preview-body {
  display: grid;
  gap: 0.45rem;
}

.email-preview-body p {
  margin: 0;
  color: #e4e4e4;
  line-height: 1.5;
  white-space: pre-line;
}

.email-preview-spacer {
  min-height: 0.6rem;
}

.helper-error {
  color: #ffb3b3;
}

.workflow-subsection {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.96), rgba(11, 11, 11, 0.92));
}

.workflow-subsection + .workflow-subsection {
  margin-top: 0.1rem;
}

.workflow-subsection-header h3 {
  margin: 0;
  color: #f5f5f5;
  font-size: 1rem;
}

.workflow-subsection-header p {
  margin: 0.25rem 0 0;
  color: #aeb0b5;
  font-size: 0.85rem;
  line-height: 1.45;
}

.client-profile-field {
  display: grid;
  gap: 0.35rem;
}

.time-picker {
  position: relative;
}

.time-picker-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
}

.time-picker-toggle {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid #3a3a3a;
  background: #141414;
  color: #f1f1f1;
  cursor: pointer;
}

.time-picker-toggle:hover {
  border-color: rgba(212, 175, 55, 0.46);
  background: #191919;
}

.time-picker-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.time-picker-popover {
  position: absolute;
  z-index: 20;
  top: calc(100% + 0.55rem);
  right: 0;
  width: 280px;
  padding: 0.9rem;
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.99), rgba(12, 12, 12, 0.98));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

/* Selected Time Header */
.time-picker-header {
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  margin-bottom: 0.85rem;
}

.time-picker-header-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: #9fa3a7;
  letter-spacing: 1.2px;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.time-picker-header-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.header-time {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  font-family: inherit;
  line-height: 1;
}

.header-meridiem-pill {
  font-size: 0.72rem;
  font-weight: 700;
  background: #c5a85c;
  color: #121212;
  padding: 0.15rem 0.45rem;
  border-radius: 20px;
  text-transform: uppercase;
}

/* Wheels Section */
.time-picker-wheels-container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr 1fr;
  align-items: center;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  height: 180px;
}

.wheel-selection-overlay {
  position: absolute;
  left: 0;
  right: 0;
  top: 72px; /* (180 - 36) / 2 */
  height: 36px;
  background: rgba(197, 168, 92, 0.06);
  border-top: 1px solid rgba(197, 168, 92, 0.35);
  border-bottom: 1px solid rgba(197, 168, 92, 0.35);
  pointer-events: none;
  z-index: 2;
}

.wheel-column {
  height: 180px;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  box-sizing: border-box;
  padding: 72px 0;
  scrollbar-width: none; /* Firefox */
  position: relative;
  z-index: 1;
}

.wheel-column::-webkit-scrollbar {
  display: none; /* Safari/Chrome */
}

.wheel-item {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 600;
  color: #717579;
  cursor: pointer;
  scroll-snap-align: center;
  transition: all 0.2s ease;
  user-select: none;
}

.wheel-item:hover {
  color: #fff;
}

.wheel-item.active {
  color: #c5a85c;
  font-size: 1.45rem;
  font-weight: 700;
}

.wheel-divider {
  font-size: 1.4rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.2);
  user-select: none;
  text-align: center;
}









/* Actions Footer */
.time-picker-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.time-picker-actions button {
  min-height: 38px;
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.time-picker-actions [data-time-picker-cancel] {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #9fa3a7 !important;
}

.time-picker-actions [data-time-picker-cancel]:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.time-picker-actions [data-time-picker-apply] {
  background: #c5a85c !important;
  border: 1px solid #c5a85c !important;
  color: #121212 !important;
}

.time-picker-actions [data-time-picker-apply]:hover {
  background: #d9c47b !important;
  border-color: #d9c47b !important;
  transform: translateY(-1px) !important;
}

.client-profile-field.is-missing input:not([type="checkbox"]):not([type="radio"]),
.client-profile-field.is-missing select,
.client-profile-field.is-missing textarea,
.selection-group.is-missing {
  border-color: rgba(255, 119, 119, 0.62);
  box-shadow: 0 0 0 1px rgba(255, 89, 89, 0.14);
}

.client-profile-field.is-missing .time-picker-toggle {
  border-color: rgba(255, 119, 119, 0.62);
  box-shadow: 0 0 0 1px rgba(255, 89, 89, 0.14);
}

.client-profile-field.span-two {
  grid-column: 1 / -1;
}

.client-profile-field label {
  font-weight: 600;
  color: #f3f3f3;
}

.selection-group {
  margin: 0;
  min-width: 0;
  padding: 0.9rem 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(19, 19, 19, 0.98), rgba(14, 14, 14, 0.94));
}

.selection-group--flags {
  border-color: rgba(212, 175, 55, 0.14);
}

.selection-group-title {
  margin: 0;
  max-width: 100%;
  padding: 0 0.2rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: #f4f4f4;
}

.selection-group-caption {
  margin: 0.25rem 0 0.85rem;
  color: #aeb0b5;
  font-size: 0.82rem;
  line-height: 1.45;
}

.selection-grid {
  display: grid;
  gap: 0.65rem 0.8rem;
}

.selection-grid--barriers {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.selection-grid--flags {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.selection-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  min-height: 50px;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: #111214;
  color: #f3f3f3;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.selection-item:hover {
  background: #15171a;
  border-color: rgba(255, 255, 255, 0.14);
}

.selection-item:has(input:focus-visible) {
  border-color: rgba(212, 175, 55, 0.78);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.2);
}

.selection-item:has(input:checked) {
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0.05));
  border-color: rgba(212, 175, 55, 0.46);
}

.selection-group--flags .selection-item:has(input:checked) {
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.14), rgba(77, 58, 10, 0.22));
  border-color: rgba(212, 175, 55, 0.56);
}

.selection-item input {
  margin: 0.12rem 0 0;
  flex: 0 0 auto;
  accent-color: #d4af37;
}

.selection-item-copy {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.selection-item-title {
  color: #f4f4f5;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}

.client-profile-field input:not([type="checkbox"]):not([type="radio"]),
.client-profile-field select,
.client-profile-field textarea {
  width: 100%;
  min-width: 0;
  border-radius: 8px;
  border: 1px solid #3a3a3a;
  background: #141414;
  color: #f1f1f1;
  padding: 0.62rem 0.72rem;
  font-size: 1rem;
}

.client-profile-field input[type="date"],
.client-profile-field input[data-time-picker-input] {
  height: 44px;
  box-sizing: border-box;
  padding: 0.52rem 0.72rem;
}

.client-profile-field textarea {
  min-height: 92px;
  resize: vertical;
}

.client-profile-email-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #e6e6e6;
  font-size: 0.93rem;
  padding: 0.1rem 0;
}

.client-profile-meta {
  display: grid;
  gap: 0.25rem;
  color: #d4d4d4;
  font-size: 0.93rem;
}

.workflow-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.workflow-utility-actions {
  padding-top: 0.25rem;
  border-top: 1px solid #232323;
}

.saved-wrap {
  min-height: calc(100vh - 120px);
  padding: 20px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 17, 17, 0.08);
}

.saved-card {
  width: 100%;
  max-width: 560px;
  border: 1px solid #2f2f2f;
  border-radius: 14px;
  background: #151515;
  padding: 24px;
  color: #f1f1f1;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.24);
}

.saved-title {
  margin: 0 0 8px;
}

.saved-copy {
  margin: 0 0 18px;
  color: #cccccc;
}

.saved-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* --------------------------------------------------
   Responsive system
-------------------------------------------------- */

@media (max-width: 1199px) {
  .app-shell-links {
    gap: 6px;
  }

  .app-shell-link {
    font-size: 0.82rem;
    padding: 0 10px;
  }

  .case-workspace .case-workspace-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .mobile-tab-nav {
    display: grid;
  }
}

@media (max-width: 899px) {
  .call-mode-shell {
    grid-template-columns: 1fr;
  }

  .call-mode-card--preview {
    position: static;
  }

  .workflow-summary-card,
  .workflow-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .workflow-summary-metrics {
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-stepper,
  .client-profile-grid-two-up,
  .selection-grid--barriers,
  .selection-grid--flags,
  .review-workspace-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .review-form-pane {
    order: 1;
  }

  .review-document-pane {
    order: 2;
  }

  .review-edit-grid {
    grid-template-columns: 1fr;
  }

  .review-ai-summary {
    grid-template-columns: 1fr;
  }

  .ai-summary-actions {
    justify-content: flex-start;
  }

  .ai-analysis-grid {
    grid-template-columns: 1fr;
  }

  .review-pane-rail {
    position: static;
    margin: 0 0 14px;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
  }
}

@media (max-width: 599px) {
  .time-picker-popover {
    left: 0;
    right: auto;
    min-width: 0;
    width: min(100%, 320px);
  }

  .time-picker-clock {
    width: 140px;
    height: 140px;
  }

  .clock-markers {
    font-size: 12px;
  }

  .time-picker-grid {
    grid-template-columns: 1fr;
  }

  .quick-minutes {
    grid-template-columns: repeat(4, 1fr);
  }

  .workflow-summary-metrics {
    grid-template-columns: 1fr;
  }

  .intake-grid,
  .requested-services-grid,
  .barrier-checkbox-grid {
    grid-template-columns: 1fr;
  }

  .selection-group {
    padding: 0.8rem 0.82rem 0.86rem;
  }

  .selection-item {
    min-height: 46px;
    padding: 0.62rem 0.68rem;
  }

  .review-row {
    grid-template-columns: 1fr;
    gap: 3px;
    padding: 0.24rem 0;
  }

  .intake-stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intake-action-rail {
    position: sticky;
    bottom: 72px;
    background: rgba(15, 15, 15, 0.96);
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 12px;
    padding: 8px;
  }

  .intake-rail-link {
    margin-left: 0;
  }

  .saved-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .doc-frame {
    height: 290px;
  }

  .review-document-pane .doc-frame {
    height: 290px;
  }

  .doc-frame.is-expanded {
    height: 66vh;
  }
}

@media (min-width: 1024px) {
  .has-app-shell .app-shell-main {
    padding-top: 78px;
    padding-bottom: 0;
  }

  .top-banner {
    display: flex;
  }

  .mobile-tab-nav {
    display: none;
  }

  .is-homepage,
  .is-homepage .site-main {
    background: #000000;
  }

  .home-page {
    min-height: calc(100vh - 78px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--core-space-4);
    padding-bottom: var(--core-space-4);
  }

  .home-desktop {
    width: 100%;
    min-height: calc(100vh - 158px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
  }

  .home-mobile {
    display: none;
  }

  .intake-workspace-grid {
    grid-template-columns: minmax(0, 1.06fr) minmax(520px, 0.94fr);
    align-items: start;
  }

  .intake-preview-pane {
    position: sticky;
    top: 96px;
  }

  .intake-preview-card {
    max-height: calc(100vh - 116px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .intake-preview-shell {
    min-height: 0;
    max-height: calc(100vh - 196px);
    overflow: auto;
    scrollbar-gutter: stable;
  }

  .intake-preview-placeholder {
    min-height: min(760px, calc(100vh - 220px));
  }

  .intake-preview-pdf-wrap {
    min-height: min(1120px, calc(100vh - 220px));
  }

  .intake-preview-text {
    min-height: min(920px, calc(100vh - 250px));
    max-height: none;
  }

  .review-workspace-grid {
    align-items: start;
  }

  .review-pane-rail {
    top: 0;
  }

  .core-decision-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px 20px;
  }

  .decision-actions {
    justify-content: flex-end;
  }
}

@media (min-width: 1200px) {
  .core-container,
  .app-container {
    width: min(94%, 1200px);
  }

  .review-wrap {
    width: min(calc(100vw - 32px), 1888px);
  }

  .intake-wrap {
    width: min(96vw, 1500px);
  }
}

@media (min-width: 1440px) {
  .review-workspace-grid {
    grid-template-columns: minmax(520px, 0.72fr) minmax(900px, 1.38fr);
  }

  .intake-wrap {
    width: min(97vw, 1640px);
  }

  .intake-workspace-grid {
    grid-template-columns: minmax(0, 1fr) minmax(680px, 1fr);
    gap: 22px;
  }
}

/* --------------------------------------------------
   Theme consolidation
-------------------------------------------------- */

.app-shell-nav,
.mobile-tab-nav {
  border-color: rgba(212, 175, 55, 0.22);
  background: rgba(11, 11, 11, 0.95);
}

.app-shell-link,
.mobile-tab-link,
.app-shell-link-logout {
  color: var(--core-muted);
}

.app-shell-link:hover,
.app-shell-link.is-active,
.mobile-tab-link.is-active {
  color: var(--core-gold-hover);
}

.welcome-hero,
.auth-card,
.access-denied-card,
.onboarding-card,
.coming-soon-card,
.owner-hero,
.owner-info-card,
.owner-stats-card,
.owner-roadmap-card,
.owner-activity-card,
.core-panel,
.cases-panel,
.contacts-panel,
.communications-panel,
.core-section,
.case-card,
.contact-card,
.contact-section,
.saved-card,
.intake-card,
.review-overview,
.review-ai,
.placement-overview,
.referral-reference,
.core-decision-bar,
.intake-success-card,
.onboarding-note-card,
.onboarding-checklist-card {
  background: var(--core-card);
  border-color: var(--core-border);
  color: var(--core-text);
}

.core-panel,
.cases-panel,
.contacts-panel,
.communications-panel,
.coming-soon-card,
.owner-hero,
.owner-info-card,
.owner-stats-card,
.owner-roadmap-card,
.owner-activity-card,
.core-section,
.case-card,
.contact-card,
.contact-section,
.saved-card,
.intake-card,
.review-overview,
.review-ai,
.placement-overview,
.referral-reference,
.core-decision-bar,
.intake-success-card,
.onboarding-note-card,
.onboarding-checklist-card {
  border-radius: 12px;
}

.core-page-title,
.cases-panel h1,
.contacts-panel h1,
.communications-panel h1,
.coming-soon-card h2,
.owner-hero-title,
.owner-hero h1,
.owner-section h2,
.intake-title,
.saved-title,
.decision-summary h1,
.access-denied-card h1 {
  color: var(--core-text);
}

.core-page-subtext,
.cases-subtitle,
.contacts-subtitle,
.communications-subtitle,
.coming-soon-card p,
.coming-soon-list,
.auth-header p,
.welcome-note,
.welcome-highlights p,
.deadlines,
.saved-copy,
.intake-subtitle,
.owner-hero-subtitle,
.owner-stats-header p,
.owner-roadmap-card p,
.owner-activity-card > p,
.owner-activity-main p,
.owner-roadmap-item,
.owner-hero-copy,
.review-label,
.helper,
.note,
.document-note {
  color: var(--core-muted);
}

.core-stat-card,
.cases-stat,
.contacts-stat,
.snapshot-item,
.status-pill,
.compliance-pill,
.due-pill,
.owner-stat,
.owner-activity-item,
.intake-review-status,
.requested-services-grid,
.new-counselor,
.drop-zone,
.document-body,
.document-source-scroll {
  background: #101010;
  border-color: var(--core-border);
}

.core-stat-number,
.cases-stat-value,
.home-desktop-deadline,
.auth-kicker,
.welcome-highlights h3,
.contacts-panel h2,
.contacts-panel h3,
.deadlines h2,
.deadlines h3,
.shared-page-kicker,
.owner-hero-eyebrow,
.owner-activity-time,
.intake-step-title,
.summary-value.pending,
.status-header.pending,
.status-pill,
.intake-review-status,
.core-section-header h2,
.source-section-title,
.core-review-group h3,
.match-score,
.notice-warning,
.owner-stat-label strong {
  color: var(--core-gold-hover);
}

.core-chip,
.review-edit-toggle,
.status-header,
.intake-stepper-item,
.referral-row {
  background: #101010;
  border-color: var(--core-border);
  color: var(--core-muted);
}

.core-chip:hover,
.core-chip.is-active,
.intake-stepper-item.is-active,
.review-edit-toggle:hover,
.referral-row:hover,
.drop-zone.dragover {
  border-color: var(--core-gold);
  color: var(--core-gold-hover);
  background: rgba(212, 175, 55, 0.12);
}

.referral-row:focus-visible {
  outline: 2px solid rgba(212, 175, 55, 0.78);
  outline-offset: 2px;
}

.action-btn,
.btn.primary,
.btn-primary-core,
.access-denied-link,
.auth-submit-btn,
.onboarding-form button {
  background: var(--core-gold);
  border-color: var(--core-gold);
  color: #0b0b0b;
}

.action-btn:hover,
.btn.primary:hover,
.btn-primary-core:hover,
.access-denied-link:hover,
.auth-submit-btn:hover,
.onboarding-form button:hover {
  background: var(--core-gold-hover);
  border-color: var(--core-gold-hover);
  color: #0b0b0b;
}

.btn-secondary-core,
.welcome-secondary,
.btn.secondary,
.decision-actions .btn-tertiary-core {
  background: transparent;
  border-color: rgba(212, 175, 55, 0.72);
  color: var(--core-gold-hover);
}

.btn-secondary-core:hover,
.welcome-secondary:hover,
.btn.secondary:hover,
.decision-actions .btn-tertiary-core:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--core-gold-hover);
  color: var(--core-gold-hover);
}

.contact-grid input,
.contact-grid select,
.contact-grid textarea,
.communications-form input,
.communications-form select,
.communications-form textarea,
.field input,
.field select,
.field textarea,
.tags-editor,
.tags-editor-input,
.auth-form input,
.review-edit-input,
.review-edit-textarea,
.client-profile-field input,
.client-profile-field select,
.client-profile-field textarea {
  background: #1a1a1a;
  border-color: var(--core-border);
  color: var(--core-text);
}

.contact-grid input:focus,
.contact-grid select:focus,
.contact-grid textarea:focus,
.communications-form input:focus,
.communications-form select:focus,
.communications-form textarea:focus,
.field input:focus,
.field select:focus,
.field textarea:focus,
.tags-editor-input:focus,
.auth-form input:focus,
.review-edit-input:focus,
.review-edit-textarea:focus,
.client-profile-field input:focus,
.client-profile-field select:focus,
.client-profile-field textarea:focus {
  border-color: var(--core-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn-danger-core {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: #a23b2d;
  color: var(--core-text);
  border: 1px solid rgba(226, 114, 91, 0.55);
  border-radius: 8px;
  text-decoration: none;
}

.btn-danger-core:hover {
  background: #bb4635;
  color: var(--core-text);
}

.mobile-tab-nav {
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
}

.admin-shell {
  gap: 1.5rem;
}

.admin-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.admin-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.admin-section {
  background: var(--core-card);
  border: 1px solid var(--core-border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.admin-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-section-header h2 {
  margin: 0.2rem 0 0;
  color: var(--core-text);
}

.admin-search-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.admin-search-form input {
  min-width: 280px;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(212, 175, 55, 0.12);
  border-radius: 14px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: top;
  text-align: left;
}

.admin-table th {
  background: rgba(212, 175, 55, 0.08);
  color: var(--core-text);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-table-primary {
  color: var(--core-text);
  font-weight: 700;
}

.admin-table-secondary {
  color: var(--core-muted);
  font-size: 0.92rem;
}

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.admin-row-actions form {
  margin: 0;
}

.admin-row-action {
  min-width: 88px;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--core-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--core-text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-badge.is-success {
  border-color: rgba(76, 175, 80, 0.35);
  background: rgba(76, 175, 80, 0.12);
  color: #b7f0b9;
}

.admin-badge.is-warning {
  border-color: rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.12);
  color: #f1d57f;
}

.admin-badge.is-danger {
  border-color: rgba(226, 114, 91, 0.35);
  background: rgba(226, 114, 91, 0.12);
  color: #ffb7aa;
}

.admin-metadata {
  color: var(--core-muted);
  font-size: 0.82rem;
  white-space: pre-wrap;
}

.admin-tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.admin-tool-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(0, 0, 0, 0.18) 100%);
  border: 1px solid rgba(212, 175, 55, 0.14);
  border-radius: 14px;
  padding: 1.2rem;
}

.admin-tool-card h3 {
  margin: 0 0 0.5rem;
  color: var(--core-text);
}

.admin-tool-card p {
  margin: 0 0 1rem;
  color: var(--core-muted);
}

@media (max-width: 900px) {
  .admin-hero,
  .admin-section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-search-form {
    width: 100%;
  }

  .admin-search-form input {
    min-width: 0;
    width: 100%;
  }
}




/* Custom dashboard-level styling matching the high-end glassmorphic theme */
.intake-menu-panel {
  padding: 2.5rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

.intake-menu-header-area {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1.5rem;
}

.intake-menu-header-area .core-page-header {
  margin-bottom: 0;
}

.intake-dashboard-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 0;
}

.glass-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.glass-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.intake-stat-card.glass-card {
  padding: 1rem;
}

.intake-stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon {
  font-size: 2rem;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f3f4f6;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.75rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.intake-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.intake-card-pane {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pane-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #f9fafb;
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.pane-subtitle {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

/* Drop-zone design */
.quick-drop-zone {
  position: relative;
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 1.5rem 1rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s, background-color 0.2s;
  cursor: pointer;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 160px;
}

.quick-drop-zone.dragover {
  border-color: #3b82f6;
  background-color: rgba(59, 130, 246, 0.05);
}

.drop-zone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.upload-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.quick-drop-zone .primary-text {
  font-weight: 500;
  color: #e5e7eb;
  margin-bottom: 0.25rem;
}

.quick-drop-zone .secondary-text {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

.choose-file-label {
  display: inline-block;
  cursor: pointer;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: background-color 0.2s;
}

/* Upload Progress overlay */
.upload-progress-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(17, 24, 39, 0.9);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.progress-message {
  font-size: 0.95rem;
  color: #e5e7eb;
  margin-bottom: 1rem;
}

.progress-bar-track {
  width: 80%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  width: 10%;
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  animation: progressPulse 2s infinite ease-in-out;
  border-radius: 3px;
}

@keyframes progressPulse {
  0% { width: 10%; margin-left: 0%; }
  50% { width: 40%; margin-left: 30%; }
  100% { width: 10%; margin-left: 90%; }
}

/* Notification status alerts */
.upload-status-alert {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: left;
  border: 1px solid transparent;
}

.upload-status-alert.success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.upload-status-alert.error {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.hidden {
  display: none !important;
}

/* Action panel layout */
.actions-pane {
  justify-content: space-between;
}

.intake-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.flex-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
}

.flex-action .icon {
  font-size: 1.2rem;
}

/* Modal Styling */
.gmail-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gmail-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}
.gmail-modal-content {
  position: relative;
  width: 90%;
  max-width: 500px;
  background: rgba(17, 24, 39, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
  z-index: 1001;
}
.hidden-modal {
  display: none !important;
}
.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #f9fafb;
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Dynamic Queue Styling */
.upload-queue-list {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 4px;
}
.upload-queue-list::-webkit-scrollbar {
  width: 6px;
}
.upload-queue-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 3px;
}
.upload-queue-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}
.upload-queue-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}
.queue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.15rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
  animation: slideDown 0.3s ease-out;
}
.queue-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}
.queue-item.success {
  border-color: rgba(16, 185, 129, 0.2);
  background: rgba(16, 185, 129, 0.02);
}
.queue-item.success:hover {
  background: rgba(16, 185, 129, 0.04);
}
.queue-item.error {
  border-color: rgba(239, 68, 68, 0.2);
  background: rgba(239, 68, 68, 0.02);
}
.queue-item.error:hover {
  background: rgba(239, 68, 68, 0.04);
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.badge-status {
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25px;
  display: inline-block;
}
.badge-status.queued {
  background: rgba(156, 163, 175, 0.15);
  color: #d1d5db;
}
.badge-status.uploading {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  animation: pulseGhost 2s infinite ease-in-out;
}
.badge-status.parsing {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  animation: pulseGhost 2s infinite ease-in-out;
}
.badge-status.success {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}
.badge-status.error {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}
@keyframes pulseGhost {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.queue-item-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  margin-top: 0.5rem;
  overflow: hidden;
}
.queue-item-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: 2px;
  transition: width 0.2s ease;
  line-height: 1.4;
  text-align: left;
  border: 1px solid transparent;
}

.upload-status-alert.success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.upload-status-alert.error {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.hidden {
  display: none !important;
}

/* Action panel layout */
.actions-pane {
  justify-content: space-between;
}

.intake-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.flex-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
}

.flex-action .icon {
  font-size: 1.2rem;
}

/* Modal Styling */
.gmail-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gmail-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}
.gmail-modal-content {
  position: relative;
  width: 90%;
  max-width: 500px;
  background: rgba(17, 24, 39, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
  z-index: 1001;
}
.hidden-modal {
  display: none !important;
}
.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #f9fafb;
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Dynamic Queue Styling */
.upload-queue-list {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 4px;
}
.upload-queue-list::-webkit-scrollbar {
  width: 6px;
}
.upload-queue-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 3px;
}
.upload-queue-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}
.upload-queue-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}
.queue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.15rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
  animation: slideDown 0.3s ease-out;
}
.queue-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}
.queue-item.success {
  border-color: rgba(16, 185, 129, 0.2);
  background: rgba(16, 185, 129, 0.02);
}
.queue-item.success:hover {
  background: rgba(16, 185, 129, 0.04);
}
.queue-item.error {
  border-color: rgba(239, 68, 68, 0.2);
  background: rgba(239, 68, 68, 0.02);
}
.queue-item.error:hover {
  background: rgba(239, 68, 68, 0.04);
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.badge-status {
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25px;
  display: inline-block;
}
.badge-status.queued {
  background: rgba(156, 163, 175, 0.15);
  color: #d1d5db;
}
.badge-status.uploading {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  animation: pulseGhost 2s infinite ease-in-out;
}
.badge-status.parsing {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  animation: pulseGhost 2s infinite ease-in-out;
}
.badge-status.success {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}
.badge-status.error {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}
@keyframes pulseGhost {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.queue-item-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  margin-top: 0.5rem;
  overflow: hidden;
}
.queue-item-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: 2px;
  transition: width 0.2s ease;
}
.queue-item-progress-fill.parsing {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  animation: pulseBar 1.5s infinite ease-in-out;
}
@keyframes pulseBar {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}

/* --------------------------------------------------
   Global Processing Blocker Overlay
-------------------------------------------------- */
.global-processing-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.processing-overlay-card {
  width: min(420px, 100%);
  background: rgba(20, 20, 20, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(212, 175, 55, 0.05);
  text-align: center;
  backdrop-filter: blur(4px);
}

.spinner-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.processing-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(212, 175, 55, 0.1);
  border-top-color: var(--core-gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.4));
}

.processing-overlay-card h3 {
  font-size: 1.4rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: var(--core-text);
  margin: 0 0 0.75rem;
  letter-spacing: 0.01em;
}

.processing-overlay-card p {
  font-size: 0.95rem;
  color: var(--core-muted);
  line-height: 1.5;
  margin: 0;
}

/* --------------------------------------------------
   Intake Dashboard Responsive & Efficiency Overrides
   -------------------------------------------------- */

/* Tablet & Smaller Layouts */
@media (max-width: 1024px) {
  .intake-menu-panel {
    padding: 1.5rem;
  }
  .intake-menu-header-area {
    gap: 1.5rem;
  }
  .intake-dashboard-grid {
    gap: 1rem;
  }
}

@media (max-width: 900px) {
  .intake-menu-header-area {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
  }
  .intake-dashboard-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 1rem;
  }
}

@media (max-width: 850px) {
  .intake-dashboard-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .glass-card {
    padding: 1rem;
  }
}

/* Mobile Layouts */
@media (max-width: 768px) {
  .quick-drop-zone {
    min-height: auto;
    padding: 0.75rem 1rem;
  }
  .drop-zone-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    width: 100%;
  }
  .quick-drop-zone .upload-icon {
    font-size: 1.5rem;
    margin-bottom: 0;
    animation: none;
  }
  .quick-drop-zone .primary-text {
    font-size: 0.85rem;
    margin-bottom: 0;
    text-align: left;
    flex-grow: 1;
  }
  .quick-drop-zone .secondary-text {
    display: none;
  }
  .choose-file-label {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    margin-top: 0;
    margin-bottom: 0;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .intake-dashboard-stats {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .intake-stat-card.glass-card {
    padding: 0.75rem;
    gap: 0.5rem;
    flex-direction: column;
    text-align: center;
  }
  .intake-stat-card .stat-icon {
    font-size: 1.5rem;
  }
  .intake-stat-card .stat-value {
    font-size: 1.2rem;
  }
  .intake-stat-card .stat-label {
    font-size: 0.65rem;
    text-align: center;
  }
}

/* --------------------------------------------------
   Referral Dashboard Responsive & Layout Overrides
   -------------------------------------------------- */

.referrals-header-area {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1.5rem;
}

.referrals-header-area .core-page-header {
  margin-bottom: 0;
}

.referrals-header-area .referrals-summary {
  margin-top: 0;
  display: flex;
  gap: 0.75rem;
}

.referrals-header-area .summary-item {
  min-width: 110px;
  flex-grow: 1;
}

.referrals-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.referrals-toolbar .range-filters {
  margin: 0;
}

.referrals-toolbar .core-actions {
  margin-top: 0;
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
}

.referrals-toolbar .action-btn {
  white-space: nowrap;
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  min-height: auto;
}

/* Tablet & Smaller Layouts */
@media (max-width: 900px) {
  .referrals-header-area {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
  }
  .referrals-header-area .referrals-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
  }
  .referrals-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem;
  }
  .referrals-toolbar .core-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
  .referrals-toolbar .action-btn {
    text-align: center;
    width: 100%;
  }
}

/* Mobile Layouts */
@media (max-width: 480px) {
  .referrals-header-area .referrals-summary {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .referrals-header-area .summary-item {
    padding: 0.6rem 0.75rem;
    min-height: auto;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
  }
  .referrals-header-area .summary-item .stat-number {
    font-size: 1.35rem;
    margin-bottom: 0;
    order: 2;
  }
  .referrals-header-area .summary-item .stat-label {
    font-size: 0.72rem;
    margin-bottom: 0;
    order: 1;
    text-align: left;
  }
  .referrals-toolbar .range-filters {
    justify-content: center;
  }
}

/* Custom premium styles for tabbed interface in Step 2 */
.tabs-container {
  margin-top: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  position: relative;
  z-index: 10;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(4px);
}

.tabs-nav {
  display: flex;
  background: rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.5rem 0.5rem 0;
  gap: 0.25rem;
  overflow-x: auto;
  border-radius: 12px 12px 0 0;
}

.tab-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  padding: 0.85rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
  color: #a78bfa;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 2px solid #a78bfa;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tab-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.7rem;
  color: currentColor;
  transition: all 0.25s ease;
}

.tab-btn.active .tab-num {
  background: #a78bfa;
  color: #0d0e12;
  font-weight: bold;
}

.tab-pane {
  padding: 1.5rem;
  animation: fadeIn 0.2s ease-out;
}

.tab-pane.hidden {
  display: none;
}

.radio-group {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
  padding: 0.25rem 0;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  cursor: pointer;
}

.radio-label input[type="radio"] {
  accent-color: #a78bfa;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Custom Multi-Select Dropdown Styles */
.custom-multiselect {
  position: relative;
  width: 100%;
  margin-top: 0.5rem;
  z-index: 1;
}

.custom-multiselect.active {
  z-index: 50;
}

.multiselect-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  user-select: none;
}

.multiselect-select:hover {
  border-color: rgba(167, 139, 250, 0.5);
  background: rgba(255, 255, 255, 0.05);
}

.multiselect-select.active {
  border-color: #a78bfa;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
}

.multiselect-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex-grow: 1;
  max-width: calc(100% - 20px);
}

.multiselect-placeholder {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
}

.multiselect-tag-chip {
  display: inline-flex;
  align-items: center;
  background: rgba(167, 139, 250, 0.15);
  border: 1px solid rgba(167, 139, 250, 0.3);
  color: #c084fc;
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: 4px;
  gap: 4px;
  font-weight: 500;
}

.multiselect-tag-chip .remove-tag {
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

.multiselect-tag-chip .remove-tag:hover {
  color: #ef4444;
}

.multiselect-arrow {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  transition: transform 0.2s;
}

.multiselect-select.active .multiselect-arrow {
  transform: rotate(180deg);
}

.multiselect-dropdown {
  position: absolute;
  top: 105%;
  left: 0;
  width: 100%;
  max-height: 250px;
  overflow-y: auto;
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 6px 0;
  animation: dropdownSlide 0.15s ease-out;
}

@keyframes dropdownSlide {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.multiselect-option {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  user-select: none;
  gap: 10px;
}

.multiselect-option:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.multiselect-option input[type="checkbox"] {
  accent-color: #a78bfa;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Tag Input Styles (for Strengths, Job Interests, Target Roles) */
.tag-input-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 42px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  margin-top: 0.5rem;
}

.tag-input-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  background: rgba(167, 139, 250, 0.15);
  border: 1px solid rgba(167, 139, 250, 0.3);
  color: #c084fc;
  font-size: 0.85rem;
  padding: 3px 8px;
  border-radius: 4px;
  gap: 6px;
  font-weight: 500;
}

.tag-chip .remove-tag {
  cursor: pointer;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}

.tag-chip .remove-tag:hover {
  color: #ef4444;
}

.tag-input-field {
  flex-grow: 1;
  border: none !important;
  background: transparent !important;
  outline: none !important;
  color: #fff !important;
  padding: 0 !important;
  margin: 0 !important;
  min-width: 150px;
  font-size: 0.9rem;
}

.tag-input-field::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .tabs-nav {
    flex-direction: column;
    padding: 0.5rem;
    gap: 0.25rem;
  }
  .tab-btn {
    border-radius: 6px;
    border-bottom: none;
    justify-content: flex-start;
    padding: 0.75rem 1rem;
  }
  .tab-btn.active {
    border-bottom: none;
    border-left: 3px solid #a78bfa;
    border-radius: 0 6px 6px 0;
  }
}
