:root {
  --ink: #19292c;
  --muted: #596a6d;
  --teal: #0c6667;
  --teal-dark: #074c4e;
  --teal-soft: #e5f1ef;
  --gold: #b08b49;
  --gold-soft: #f3e9d3;
  --surface: #fff;
  --background: #f5f8f7;
  --line: #dce5e2;
  --line-strong: #bdceca;
  --safe: #1d684e;
  --caution: #856116;
  --danger: #a53c4a;
  --shadow: 0 12px 32px rgba(24, 50, 48, 0.07);
  --radius: 8px;
  color-scheme: light;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--background); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: 0; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
a { color: var(--teal); text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1, h2, h3 { line-height: 1.18; letter-spacing: 0; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }
p { line-height: 1.65; }
button:disabled { cursor: not-allowed; opacity: 0.55; }
:focus-visible { outline: 3px solid #218686; outline-offset: 3px; }
h1:focus { outline: none; }
.icon { width: 20px; height: 20px; flex: 0 0 20px; object-fit: contain; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: 12px; padding: 12px 18px; color: white; background: var(--teal-dark); border-radius: var(--radius); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.app-shell { width: min(1480px, 100%); margin: auto; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 80px; padding: 12px 40px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.97); }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 10px; border: 0; padding: 0; background: transparent; text-align: left; text-decoration: none; color: var(--ink); }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius); color: var(--teal); background: var(--gold-soft); font-weight: 750; }
.brand strong { display: block; font-size: 1.15rem; font-weight: 750; }
.brand small { display: block; color: var(--muted); font-size: 0.7rem; }
.nav, .topbar-auth { display: flex; align-items: center; gap: 4px; min-width: 0; }
.topbar-auth { gap: 8px; }
.nav-link, .small-link, .workspace-menu summary { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 0; padding: 10px 12px; border-radius: var(--radius); color: var(--muted); background: transparent; text-decoration: none; font-size: 0.88rem; font-weight: 650; white-space: nowrap; }
.nav-link:hover, .nav-link.active, .small-link:hover, .workspace-menu summary:hover { color: var(--teal-dark); background: var(--teal-soft); }
.auth-account { max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
.workspace-menu { position: relative; }
.workspace-menu summary { cursor: pointer; list-style: none; }
.workspace-menu summary::-webkit-details-marker { display: none; }
.workspace-menu summary::after { content: "+"; margin-left: 8px; font-size: 1rem; font-weight: 500; }
.workspace-menu[open] summary::after { content: "-"; }
.workspace-options { position: absolute; top: 50px; right: 0; z-index: 40; display: grid; width: 240px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.workspace-options button, .workspace-options a { min-height: 44px; padding: 10px; border: 0; border-radius: 6px; text-align: left; background: transparent; text-decoration: none; font-size: 0.88rem; }
.workspace-options button:hover, .workspace-options a:hover { background: var(--teal-soft); }
.workspace-options .mini-label { padding: 4px 10px; }
.mobile-menu { display: none; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
main { padding: 0 40px 64px; }
.screen { display: none; animation: screen-in 220ms ease-out both; }
.active-screen { display: block; }
@keyframes screen-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.preview-notice { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0 0; padding: 12px 16px; border-left: 3px solid var(--gold); color: #65512b; background: #f7f1e4; border-radius: 0 6px 6px 0; }
.preview-notice p { margin: 0; font-size: 0.84rem; line-height: 1.5; }
.preview-notice strong { margin-right: 8px; }
.preview-notice .icon { margin-top: 1px; }
.hero { position: relative; display: flex; align-items: center; isolation: isolate; min-height: 570px; height: min(690px, calc(100svh - 150px)); margin: 0 -40px; padding: 48px 56px; overflow: hidden; background: #eef0ed; }
.hero-image { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(247, 249, 247, 0.97), rgba(247, 249, 247, 0.78) 30%, rgba(247, 249, 247, 0) 65%); }
.hero-copy { width: 430px; max-width: 100%; }
.eyebrow, .mini-label { display: block; margin: 0 0 12px; color: var(--teal); font-size: 0.76rem; font-weight: 750; letter-spacing: 0; text-transform: uppercase; }
.hero h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 5.6rem; font-weight: 500; line-height: 1.04; }
.hero-subtitle { margin: 18px 0 12px; font-size: 1.6rem; line-height: 1.32; font-weight: 600; max-width: 360px; }
.hero-description { max-width: 330px; margin: 0; color: #41565a; font-size: 1rem; }
.hero-actions, .check-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-trust-strip { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-trust-strip span { display: inline-flex; align-items: center; gap: 5px; color: #354e50; font-size: 0.78rem; font-weight: 650; }
.hero-trust-strip .icon { width: 16px; height: 16px; flex-basis: 16px; }
.hero-caption { position: absolute; bottom: 12px; right: 20px; padding: 3px 7px; color: #344d4d; background: rgba(255, 255, 255, 0.85); border-radius: 3px; font-size: 0.65rem; }
.start-paths { display: grid; grid-template-columns: 0.8fr 1fr 1fr; align-items: center; gap: 20px; padding: 36px 0; }
.start-paths-heading h2 { margin: 0; font-size: 1.65rem; }
.start-paths-heading p:last-child { margin: 10px 0 0; color: var(--muted); font-size: 0.9rem; }
.start-path { display: flex; align-items: flex-start; gap: 16px; height: 100%; padding: 24px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: var(--surface); text-decoration: none; transition: border-color 160ms ease, box-shadow 160ms ease; }
.start-path:hover { border-color: var(--teal); box-shadow: var(--shadow); }
.start-path:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.start-path-icon { flex: 0 0 42px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--teal-soft); }
.start-path:last-child .start-path-icon { background: var(--gold-soft); }
.start-path > span:last-child { display: grid; gap: 10px; min-width: 0; }
.start-path small { color: var(--teal); font-size: 0.68rem; letter-spacing: 0.07em; font-weight: 750; }
.start-path strong { font-size: 1.1rem; line-height: 1.35; }
.start-path > span > span { color: var(--muted); font-size: 0.87rem; line-height: 1.6; }
.start-path b { margin-top: 4px; color: var(--teal); font-size: 0.85rem; }
@media (max-width: 1000px) { .start-paths { grid-template-columns: 1fr 1fr; } .start-paths-heading { grid-column: 1 / -1; } }
@media (max-width: 600px) { .start-paths { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; } .start-path { padding: 20px; } .start-paths-heading { margin-bottom: 8px; } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; max-width: 100%; padding: 11px 17px; border: 1px solid transparent; border-radius: var(--radius); text-align: center; font-size: 0.9rem; line-height: 1.35; font-weight: 700; text-decoration: none; transition: background 160ms ease, border-color 160ms ease; }
.btn-primary { color: white; background: var(--teal); }
.btn-primary:not(:disabled):hover { background: var(--teal-dark); }
.btn-primary .icon { filter: brightness(0) invert(1); }
.btn-secondary { color: var(--teal-dark); background: var(--teal-soft); border-color: #c6dcd6; }
.btn-secondary:not(:disabled):hover { background: #d6e9e4; }
.btn-ghost { color: var(--ink); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.8); }
.btn-ghost:not(:disabled):hover { background: #edf3f1; }
.btn-compact { min-height: 44px; padding: 10px 13px; white-space: nowrap; font-size: 0.84rem; }
.full-width, .btn-full { width: 100%; }
.full-width + .full-width { margin-top: 8px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 -40px; padding: 28px 40px; border-bottom: 1px solid var(--line); background: white; }
.stat-card { padding: 8px 24px; border-right: 1px solid var(--line); }
.stat-card:first-child { padding-left: 0; }
.stat-card:last-child { border: 0; }
.stat-card > span { color: var(--gold); font-size: 0.75rem; font-weight: 750; }
.stat-card strong { display: block; margin-top: 7px; font-size: 0.95rem; }
.stat-card p { margin: 7px 0 0; color: var(--muted); font-size: 0.82rem; }
.section-block { padding: 52px 0 0; }
.section-heading { margin-bottom: 24px; max-width: 650px; }
.section-heading h2 { margin: 0; font-size: 2rem; font-weight: 650; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 36px; row-gap: 28px; }
.feature-card { padding: 0 0 22px; border-bottom: 1px solid var(--line); }
.feature-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: 10px; border-radius: var(--radius); background: var(--teal-soft); }
.feature-icon .icon { width: 23px; height: 23px; }
.feature-card:nth-child(3n+2) .feature-icon { background: var(--gold-soft); }
.feature-card:nth-child(3n) .feature-icon { background: #ede9f2; }
.feature-card h3 { margin: 5px 0 8px; font-size: 1.05rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.category-carousel { display: flex; gap: 12px; overflow-x: auto; padding: 0 0 12px; scrollbar-width: thin; }
.category-card { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: white; font-size: 0.9rem; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 40px; border-top: 1px solid var(--line); background: white; }
.footer-copy { display: grid; gap: 4px; font-size: 0.85rem; color: var(--muted); }
.footer-copy > span:first-child { color: var(--ink); font-weight: 750; }
.footer-links { display: flex; gap: 16px; }
.footer-links a { display: flex; align-items: center; min-height: 44px; font-size: 0.88rem; font-weight: 650; }
.page-heading { padding: 30px 0 26px; max-width: 780px; }
.page-heading h1 { margin: 0; font-size: 2.1rem; font-weight: 650; }
.page-heading p:not(.eyebrow) { margin: 12px 0 0; color: var(--muted); font-size: 0.97rem; }
.dashboard-grid, .admin-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dashboard-card { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.dashboard-card h2 { margin: 0 0 16px; font-size: 1.06rem; }
.dashboard-card p { color: var(--muted); font-size: 0.9rem; }
.span-2 { grid-column: span 2; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-heading h2 { margin: 0; font-size: 1.06rem; }
.metric { margin-top: 14px; color: var(--teal-dark); font-size: 2.2rem; line-height: 1.2; font-weight: 700; font-variant-numeric: tabular-nums; }
.event-list, .stack-list, .selected-list, .crew-space-list, .chat-box, .alert-table { display: grid; gap: 10px; }
.event-row, .stack-list > div, .chat-message, .alert-table > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-width: 0; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.88rem; }
.event-row:last-child, .stack-list > div:last-child, .alert-table > div:last-child { border-bottom: 0; }
.event-row strong, .event-row span, .selected-person strong, .selected-person span, .crew-space-person strong, .crew-space-person span { display: block; }
.event-row div > span, .selected-person div > span, .crew-space-person div > span { color: var(--muted); font-size: 0.78rem; margin-top: 4px; }
.status-pill { display: inline-flex; align-items: center; flex: 0 0 auto; padding: 4px 8px; border-radius: 4px; font-size: 0.73rem; line-height: 1.45; font-weight: 700; }
.status-pill.safe { color: var(--safe); background: #e3f1e9; }
.status-pill.caution { color: var(--caution); background: #fbefcf; }
.status-pill.danger { color: var(--danger); background: #fae8eb; }
.status-pill.neutral { color: #486166; background: #eaf0ef; }
.alert-card { padding: 12px 14px; border-radius: 6px; margin-top: 10px; font-size: 0.85rem; line-height: 1.6; }
.alert-card.warning { color: #745815; background: #fbf2db; }
.alert-card.clean { color: #225d48; background: #e6f3eb; }
.booking-table { display: grid; font-size: 0.82rem; }
.booking-table > div { display: grid; grid-template-columns: 1.4fr 0.7fr 0.7fr 0.7fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.booking-table > div:first-child { color: var(--muted); }
.two-column, .crew-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 340px); gap: 32px; align-items: start; }
.glass-panel { border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.event-form { padding: 24px; }
.event-form, .form-split { display: grid; gap: 18px; }
.form-split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
label { display: grid; gap: 7px; min-width: 0; color: #3f575a; font-size: 0.84rem; font-weight: 650; }
input, select, textarea { width: 100%; min-width: 0; min-height: 46px; padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--ink); background: white; font-size: 1rem; line-height: 1.4; }
input::placeholder, textarea::placeholder { color: #718184; }
input:focus, select:focus, textarea:focus { outline: 2px solid #368c8c; outline-offset: 1px; border-color: var(--teal); }
textarea { resize: vertical; }
.form-error { margin: 0; color: var(--danger); font-size: 0.85rem; }
.form-error:empty { display: none; }
.ai-box { padding: 24px; position: sticky; top: 100px; }
.ai-box h2 { font-size: 1.2rem; }
.ai-response { color: var(--muted); line-height: 1.7; font-size: 0.93rem; margin: 14px 0 22px; }
blockquote { margin: 16px 0; padding-left: 16px; border-left: 3px solid var(--gold); color: var(--muted); }
.crew-toolbar { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(180px, 0.75fr) repeat(3, auto); align-items: end; gap: 16px; padding: 20px; }
.crew-toolbar > div:first-child strong { display: block; font-size: 0.95rem; overflow-wrap: anywhere; }
.crew-toolbar .mini-label { margin-bottom: 7px; }
.toggle-row { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: #f7faf9; font-size: 0.8rem; }
.toggle-row input { width: 18px; height: 18px; min-height: 18px; flex: 0 0 18px; padding: 0; accent-color: var(--teal); }
.toolbar-actions { display: flex; flex-wrap: wrap; gap: 10px; grid-column: 1 / -1; }
.preview-check-note { margin: 10px 0 24px; color: var(--muted); font-size: 0.8rem; }
.directory-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.directory-heading > span { color: var(--muted); font-size: 0.8rem; white-space: nowrap; }
.search-field { display: flex; align-items: center; gap: 10px; flex: 1 1 240px; padding-left: 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: white; }
.search-field input { border: 0; background: transparent; }
.filter-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 14px; margin-bottom: 4px; scrollbar-width: thin; }
.filter-tab { flex: 0 0 auto; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; color: #4a6265; background: white; font-size: 0.8rem; font-weight: 650; }
.filter-tab.active { color: var(--teal-dark); border-color: #7aaea6; background: var(--teal-soft); }
.talent-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.talent-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.talent-card.is-selected { border-color: #559e91; box-shadow: 0 0 0 1px #559e91; }
.talent-photo { position: relative; display: flex; align-items: center; justify-content: flex-start; height: 90px; padding: 18px; background: #edf3f1; }
.talent-card:nth-child(3n+2) .talent-photo { background: #f4efe5; }
.talent-card:nth-child(3n) .talent-photo { background: #eff0f5; }
.talent-initials { display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid #c6d8d3; border-radius: 50%; background: white; color: var(--teal-dark); font-family: Georgia, serif; font-size: 1.25rem; }
.photo-badge { position: absolute; right: 16px; top: 20px; }
.talent-body { padding: 18px; }
.talent-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px; }
.talent-title h3 { margin: 0 0 4px; font-size: 1.06rem; }
.talent-title span { color: var(--teal); font-size: 0.84rem; font-weight: 650; }
.talent-title > strong { font-size: 0.84rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.talent-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 14px 0; color: var(--muted); font-size: 0.76rem; }
.badge-row { display: flex; flex-wrap: wrap; gap: 5px; margin: 12px 0 16px; }
.badge { padding: 3px 6px; border: 1px solid var(--line); border-radius: 4px; color: #5c6b6e; font-size: 0.68rem; background: #f8faf9; }
.badge.gold { border-color: #e7d8b6; color: #806223; background: #faf3e4; }
.talent-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.talent-actions .btn { min-height: 44px; padding: 9px 10px; font-size: 0.8rem; }
.crew-summary { position: sticky; top: 100px; padding: 20px; max-height: calc(100svh - 124px); overflow-y: auto; scrollbar-gutter: stable; overscroll-behavior: contain; }
.crew-summary .card-heading { align-items: flex-start; flex-wrap: wrap; }
.crew-summary .full-width { margin-top: 12px; }
.crew-summary p { color: var(--muted); font-size: 0.85rem; }
.selected-person { display: grid; grid-template-columns: 34px minmax(0, 1fr) 44px; gap: 9px; align-items: center; min-width: 0; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.84rem; }
.avatar { display: grid !important; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--teal-dark); background: var(--teal-soft); font-size: 0.7rem; font-weight: 750; }
.avatar-2 { color: #7c5e26; background: #f5ecd7; }
.avatar-3 { color: #654d71; background: #ece7f1; }
.avatar-4 { color: #8b4756; background: #f5e9ed; }
.remove-button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 6px; background: transparent; }
.remove-button:hover { background: #f4e9eb; }
.summary-divider { height: 1px; margin: 20px 0; background: var(--line); }
.summary-row { display: flex; justify-content: space-between; gap: 20px; margin: 12px 0; font-size: 0.88rem; }
.summary-row > strong { max-width: 64%; text-align: right; font-variant-numeric: tabular-nums; }
.estimate-note { margin: -6px 0 18px; font-size: 0.73rem !important; }
.safety-status { margin: 18px 0; padding: 14px; border-left: 3px solid; border-radius: 0 6px 6px 0; font-size: 0.82rem; line-height: 1.65; }
.safety-status.green { color: #245d48; border-color: #479272; background: #e9f5ed; }
.safety-status.yellow { color: #755914; border-color: #c6a452; background: #faf3de; }
.safety-status.red { color: #8f3545; border-color: #bf6777; background: #faedef; }
.trust-grid, .detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.trust-grid > div, .detail-grid > div { min-width: 0; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.trust-grid span, .detail-grid span { color: var(--muted); font-size: 0.73rem; }
.trust-grid strong, .detail-grid strong { display: block; margin-top: 4px; font-size: 0.8rem; overflow-wrap: anywhere; }
.empty-state { grid-column: 1 / -1; padding: 24px 16px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); background: #f9fbfa; font-size: 0.87rem; line-height: 1.7; }
.empty-state h3 { margin: 0 0 8px; color: var(--ink); }
.empty-state p { margin: 0 0 16px; }
.review-content { min-width: 0; }
.review-content > p { color: var(--muted); }
.review-content > h2 { margin-top: 0; }
.review-content > h3 { margin-top: 28px; }
.review-total { display: block; color: var(--teal-dark); font-size: 2.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.readiness-list { list-style: none; padding: 0; margin: 16px 0; }
.readiness-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 0.85rem; }
.readiness-list strong { font-size: 0.76rem; }
.readiness-list .complete strong { color: var(--safe); }
.readiness-list .pending strong { color: var(--danger); }
.profile-layout { display: grid; grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1fr); gap: 24px; padding-top: 30px; }
.profile-main { padding: 20px; align-self: start; }
.profile-photo { min-height: 200px; justify-content: center; border-radius: var(--radius); }
.profile-photo .talent-initials { width: 110px; height: 110px; font-size: 2.6rem; }
.profile-info { padding-top: 24px; }
.profile-info h1 { margin: 0; font-size: 2rem; }
.profile-layout .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.calendar-preview { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.calendar-preview span { display: grid; place-items: center; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: 0.8rem; }
.calendar-preview .available { color: var(--safe); background: #e8f2ec; }
.crew-space-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.crew-space-person { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.87rem; }
.chat-message { align-items: flex-start; }
.check-list { margin: 0; padding-left: 20px; color: var(--muted); font-size: 0.86rem; line-height: 1.85; }
.emergency-button { display: flex; align-items: center; justify-content: center; min-height: 46px; margin-top: 18px; padding: 10px 16px; border: 1px solid #e0b9c2; border-radius: var(--radius); color: #9a3f50; background: #fcf1f3; text-decoration: none; font-weight: 650; font-size: 0.85rem; }
.progress-track, .risk-meter { height: 8px; border-radius: 4px; overflow: hidden; background: #e8eeeb; }
.progress-track span, .risk-meter span { display: block; height: 100%; background: #498f80; }
.risk-meter span { background: #bc9a52; }
.alert-table > div { display: grid; grid-template-columns: 1fr 1.35fr auto; }
.auth-modal { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 20px; overflow-y: auto; }
.auth-backdrop { position: fixed; inset: 0; border: 0; background: rgba(18, 39, 42, 0.52); }
.auth-dialog { position: relative; width: min(460px, 100%); max-height: calc(100svh - 40px); padding: 32px; overflow-y: auto; box-shadow: 0 24px 80px rgba(15, 37, 39, 0.18); }
.auth-close { position: absolute; right: 12px; top: 12px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 6px; background: transparent; }
.auth-close:hover { background: var(--teal-soft); }
.auth-lockup { display: flex; align-items: center; gap: 12px; margin: 8px 0 24px; font-size: 1.25rem; font-weight: 700; }
.auth-lockup img { width: 48px; height: 48px; border-radius: var(--radius); }
.auth-dialog h2 { margin: 0; font-size: 1.55rem; }
.auth-copy, .auth-note { color: var(--muted); font-size: 0.9rem; }
.google-button { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 48px; padding: 11px 16px; margin-top: 20px; border: 1px solid #747775; border-radius: 6px; color: #1f1f1f; background: white; font-family: "Google Sans", Arial, sans-serif; font-size: 14px; font-weight: 500; }
.google-button:hover { background: #f4f8f6; }
.google-mark { display: block; flex: 0 0 20px; width: 20px; height: 20px; object-fit: contain; }
.auth-user-panel { display: grid; gap: 6px; padding: 18px 0; border-block: 1px solid var(--line); margin-top: 20px; overflow-wrap: anywhere; }
.auth-user-panel small { color: var(--muted); }
.auth-note[data-tone="error"] { color: var(--danger); }
.auth-note[data-tone="success"] { color: var(--safe); }
.auth-legal { margin: 20px 0 0; color: var(--muted); font-size: 0.75rem; }
.auth-legal a { display: inline-flex; align-items: center; min-height: 44px; margin-right: 16px; font-weight: 650; }
.modal-open { overflow: hidden; }
.legal-page { max-width: 1180px; margin: auto; padding: 40px 40px 64px; }
.legal-hero { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; padding: 18px 0 40px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.legal-hero > *, .legal-content-grid > *, .support-card { min-width: 0; }
.legal-hero-copy { padding: 0; }
.legal-hero-copy h1 { margin: 0; font-size: 2.7rem; font-weight: 650; }
.legal-hero-copy p:not(.eyebrow) { max-width: 680px; color: var(--muted); font-size: 1rem; }
.legal-meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.legal-meta-row span { padding: 5px 8px; color: #526b69; background: var(--teal-soft); border-radius: 4px; font-size: 0.75rem; }
.legal-summary-card { padding-left: 24px; border-left: 2px solid #cfb17a; overflow-wrap: anywhere; }
.legal-summary-card strong { display: block; color: var(--teal-dark); font-size: 1.12rem; line-height: 1.4; }
.legal-summary-card p { color: var(--muted); font-size: 0.88rem; }
.legal-summary-card .btn { margin-top: 5px; }
.legal-content-grid { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 44px; align-items: start; }
.legal-index { display: grid; gap: 3px; position: sticky; top: 104px; }
.legal-index a { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; border-radius: 6px; color: #4b6265; font-size: 0.88rem; text-decoration: none; }
.legal-index a:hover { background: var(--teal-soft); color: var(--teal-dark); }
.legal-panel.glass-panel { border: 0; background: transparent; }
.legal-section { padding: 0 0 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.legal-section:last-child { border: 0; margin: 0; }
.legal-panel h2, .support-card h2 { font-size: 1.18rem; margin: 0 0 12px; }
.legal-panel p, .legal-panel li, .support-card p { color: var(--muted); font-size: 0.94rem; line-height: 1.8; }
.legal-panel a, .legal-summary-card a { overflow-wrap: anywhere; }
.support-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 32px 0 44px; }
.support-card { padding: 0 0 20px; border-bottom: 1px solid var(--line); }
.support-card > span { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px; border-radius: var(--radius); color: var(--teal); background: var(--teal-soft); font-size: 0.8rem; font-weight: 750; }
.legal-check-list { padding-left: 20px; }
.legal-check-list li { margin-bottom: 8px; }
.legal-topbar .legal-nav { display: flex; }
.legal-topbar .brand { text-decoration: none; }
@media (min-width: 1400px) {
  .hero { padding-left: 64px; }
  .hero-copy { width: 460px; }
}
@media (max-width: 1180px) {
  .topbar { gap: 12px; padding-inline: 24px; }
  main { padding-inline: 24px; }
  .nav-link, .workspace-menu summary { padding-inline: 9px; }
  .brand small { display: none; }
  .hero { margin-inline: -24px; padding-left: 40px; }
  .hero-copy { width: 370px; }
  .hero h1 { font-size: 4.6rem; }
  .hero-subtitle { font-size: 1.4rem; }
  .stats-grid { margin-inline: -24px; padding-inline: 24px; }
  .dashboard-grid, .admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crew-toolbar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .crew-toolbar > div:first-child { grid-column: span 2; }
  .crew-layout { gap: 20px; grid-template-columns: minmax(0, 1fr) 310px; }
  .talent-grid { grid-template-columns: 1fr; }
  .crew-space-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-layout { grid-template-columns: 280px minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .mobile-menu { display: grid; }
  .nav { display: none; position: absolute; top: 79px; left: 16px; right: 16px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
  .nav.open { display: flex; flex-direction: column; align-items: stretch; }
  .nav-link { justify-content: flex-start; }
  .workspace-menu summary { justify-content: flex-start; }
  .workspace-options { position: static; width: 100%; margin-top: 5px; border: 0; box-shadow: none; background: #f5f8f7; }
  .topbar-auth { margin-left: auto; }
  .legal-topbar .legal-nav { position: static; flex-direction: row; padding: 0; border: 0; box-shadow: none; }
  .hero { min-height: 530px; height: auto; }
  .hero-image { object-position: 57% center; }
  .hero::before { background: linear-gradient(90deg, rgba(248, 250, 248, 0.97), rgba(248, 250, 248, 0.85) 34%, rgba(248, 250, 248, 0.05) 80%); }
  .two-column, .crew-layout, .profile-layout { grid-template-columns: 1fr; }
  .crew-summary, .ai-box { position: static; }
  .crew-summary { max-height: none; overflow: visible; scrollbar-gutter: auto; }
  .crew-summary .selected-list:not(.empty-state) { max-height: 264px; overflow-y: auto; overscroll-behavior: contain; }
  .crew-layout > .crew-summary { order: -1; }
  .crew-summary .selected-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  .crew-summary .trust-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .talent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .stat-card { padding: 0 20px 0 0; }
  .stat-card:nth-child(2) { border: 0; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-page { padding: 32px 24px 48px; }
  .legal-hero { grid-template-columns: 1fr; gap: 28px; }
  .legal-content-grid { grid-template-columns: 1fr; gap: 32px; }
  .legal-index { position: static; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-bottom: 20px; border-bottom: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .topbar { min-height: 72px; padding: 12px 16px; gap: 8px; }
  .brand { gap: 7px; }
  .brand strong { font-size: 1rem; }
  .brand-mark { width: 40px; height: 40px; }
  .topbar-auth .btn-compact { display: none; }
  .auth-account { max-width: 112px; font-size: 0.82rem; padding-inline: 8px; }
  .nav { top: 71px; }
  main { padding: 0 16px 40px; }
  .hero { margin-inline: -16px; padding: 38px 24px 46px; min-height: 550px; align-items: flex-start; }
  .hero-copy { width: 100%; max-width: 335px; }
  .hero h1 { font-size: 3.8rem; }
  .hero-subtitle { max-width: 290px; font-size: 1.4rem; margin-top: 14px; }
  .hero-description { max-width: 280px; font-size: 0.92rem; }
  .hero-actions { margin-top: 22px; }
  .hero-trust-strip { max-width: 265px; gap: 10px 14px; margin-top: 24px; }
  .hero-image { object-position: 66% center; }
  .hero::before { background: linear-gradient(180deg, rgba(248, 250, 248, 0.97), rgba(248, 250, 248, 0.88) 47%, rgba(248, 250, 248, 0.14) 100%); }
  .hero-caption { right: 12px; bottom: 8px; }
  .stats-grid { margin-inline: -16px; padding: 24px 16px; gap: 20px; }
  .stat-card { padding-right: 10px; }
  .stat-card strong { font-size: 0.88rem; }
  .stat-card p { font-size: 0.78rem; }
  .section-block { padding-top: 36px; }
  .section-heading h2 { font-size: 1.65rem; }
  .feature-grid { gap: 24px 18px; }
  .feature-card h3 { font-size: 0.93rem; }
  .feature-card p { font-size: 0.82rem; }
  .page-heading { padding: 24px 0; }
  .page-heading h1 { font-size: 1.8rem; }
  .page-heading p:not(.eyebrow) { font-size: 0.9rem; }
  .dashboard-grid, .admin-grid, .crew-space-grid, .talent-grid, .profile-layout .dashboard-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .dashboard-card, .event-form, .crew-summary, .ai-box { padding: 18px; }
  .event-row, .card-heading { flex-wrap: wrap; }
  .booking-table > div { grid-template-columns: 1.4fr 0.75fr 0.85fr; gap: 8px; }
  .booking-table > div > :last-child { grid-column: 1 / -1; }
  .crew-toolbar { grid-template-columns: 1fr; gap: 12px; padding: 18px; }
  .crew-toolbar > div:first-child { grid-column: auto; }
  .toolbar-actions { display: grid; grid-template-columns: 1fr auto; }
  .toolbar-actions .btn { padding-inline: 10px; font-size: 0.82rem; }
  .toggle-row { min-height: 46px; }
  .directory-heading { flex-wrap: wrap; }
  .directory-heading > span { width: 100%; }
  .crew-summary .selected-list { grid-template-columns: 1fr; }
  .crew-summary .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crew-space-person { grid-template-columns: 34px minmax(0, 1fr); }
  .crew-space-person .status-pill { grid-column: 2; justify-self: start; }
  .alert-table > div { grid-template-columns: 1fr; gap: 8px; }
  .alert-table .status-pill { justify-self: start; }
  .readiness-list li { grid-template-columns: 20px minmax(0, 1fr); }
  .readiness-list strong { grid-column: 2; }
  .footer { align-items: flex-start; flex-direction: column; padding: 24px 16px; gap: 12px; }
  .footer-copy { font-size: 0.8rem; }
  .auth-modal { padding: 14px; }
  .auth-dialog { padding: 24px; max-height: calc(100svh - 28px); }
  .auth-dialog h2 { font-size: 1.35rem; }
  .legal-topbar { flex-wrap: wrap; }
  .legal-topbar .legal-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 6px; }
  .legal-topbar .legal-nav .nav-link { justify-content: center; font-size: 0.84rem; }
  .legal-page { padding: 24px 16px 40px; }
  .legal-hero-copy h1 { font-size: 2.15rem; }
  .legal-hero-copy p:not(.eyebrow) { font-size: 0.93rem; }
  .legal-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-index a { font-size: 0.81rem; padding-inline: 8px; }
  .support-card-grid { grid-template-columns: 1fr; gap: 24px; }
  .legal-panel p, .legal-panel li, .support-card p { font-size: 0.89rem; }
}
@media (max-width: 360px) {
  .hero { padding-inline: 20px; }
  .hero h1 { font-size: 3.4rem; }
  .hero-actions { gap: 8px; }
  .hero-actions .btn { padding-inline: 12px; font-size: 0.82rem; }
  .form-split { grid-template-columns: 1fr; }
  .topbar-auth .auth-account { max-width: 90px; }
  .feature-grid { grid-template-columns: 1fr; }
}
@media (max-height: 660px) {
  .hero { min-height: 0; height: auto; padding-block: 28px; }
  .hero h1 { font-size: 3.4rem; }
  .hero-subtitle { margin-block: 12px; font-size: 1.25rem; }
  .hero-description { margin-block: 12px; }
  .hero-actions { margin-block: 16px; }
  .hero-proof { margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
