:root {
  --ink: #183234;
  --ink-soft: #4f6464;
  --brand-950: #0e3033;
  --brand-900: #143f43;
  --brand-800: #185056;
  --brand-700: #23656a;
  --brand-100: #dce9e7;
  --brand-50: #edf4f2;
  --coral: #e87551;
  --coral-dark: #c85838;
  --coral-soft: #fce7dc;
  --sand: #f5f2eb;
  --sand-deep: #ebe4d8;
  --paper: #fffefb;
  --white: #fff;
  --success: #2c795e;
  --success-soft: #e2f2e9;
  --warning: #9b6726;
  --warning-soft: #fff1d9;
  --danger: #b34343;
  --danger-soft: #fae3e1;
  --info: #356c91;
  --info-soft: #e5f0f6;
  --line: #dedfd9;
  --line-soft: #ecece6;
  --shadow-sm: 0 2px 10px rgba(19, 47, 49, .06);
  --shadow-md: 0 14px 38px rgba(19, 47, 49, .12);
  --shadow-lg: 0 28px 70px rgba(19, 47, 49, .18);
  --radius-sm: 9px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --sidebar: 258px;
  --font-sans: Inter, "SF Pro Text", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, -apple-system, sans-serif;
  --font-serif: Iowan Old Style, "Palatino Linotype", "Noto Serif JP", YuMincho, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--sand);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.025em; }
h1 { font-size: clamp(28px, 3vw, 42px); line-height: 1.1; }
h2 { font-size: clamp(22px, 2vw, 28px); line-height: 1.2; }
h3 { font-size: 17px; line-height: 1.3; }
:focus-visible { outline: 3px solid rgba(232, 117, 81, .42); outline-offset: 2px; }

.skip-link { position: fixed; z-index: 999; top: -80px; left: 16px; padding: 12px 18px; background: var(--white); border-radius: 8px; }
.skip-link:focus { top: 16px; }
.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; }
.muted { color: var(--ink-soft); }
.danger-text { color: var(--danger); }
.success-text { color: var(--success); }
.nowrap { white-space: nowrap; }
.grow { flex: 1; }
.spacer { height: 20px; }
.mobile-only { display: none; }

.boot-screen { min-height: 100vh; display: grid; place-content: center; justify-items: center; background: radial-gradient(circle at 50% 30%, #fff 0, var(--sand) 48%, #e7e1d5 100%); }
.brand-mark { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 10px; background: #fff; object-fit: cover; box-shadow: 0 1px 4px rgba(14,48,51,.16); }
.brand-mark--large { width: 70px; height: 70px; border-radius: 18px; margin-bottom: 16px; box-shadow: var(--shadow-md); }
.boot-logo { width: 250px; max-width: 72vw; height: auto; margin-bottom: 8px; }
.eyebrow { margin: 0 0 8px; color: var(--brand-700); font-size: 11px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.loader { width: 28px; height: 28px; margin-top: 16px; border: 3px solid var(--brand-100); border-top-color: var(--coral); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.button { min-height: 44px; padding: 10px 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 11px; background: var(--brand-900); color: var(--white); font-weight: 750; line-height: 1.1; text-decoration: none; cursor: pointer; transition: transform .16s, background .16s, box-shadow .16s; }
.button:hover { background: var(--brand-800); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button:disabled { opacity: .48; cursor: not-allowed; transform: none; }
.button--coral { background: var(--coral); }
.button--coral:hover { background: var(--coral-dark); }
.button--secondary { border-color: var(--line); background: var(--white); color: var(--ink); }
.button--secondary:hover { background: var(--brand-50); border-color: var(--brand-100); }
.button--ghost { border-color: transparent; background: transparent; color: var(--brand-800); }
.button--ghost:hover { background: var(--brand-50); box-shadow: none; }
.button--danger { background: var(--danger); }
.button--small { min-height: 36px; padding: 8px 12px; border-radius: 9px; font-size: 13px; }
.button--wide { width: 100%; }
.icon-button { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); cursor: pointer; }
.icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.button .icon { width: 17px; height: 17px; }

.badge { display: inline-flex; align-items: center; gap: 6px; min-height: 25px; padding: 4px 8px; border-radius: 999px; background: var(--brand-50); color: var(--brand-800); font-size: 11px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.badge::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ""; }
.badge--success { background: var(--success-soft); color: var(--success); }
.badge--warning { background: var(--warning-soft); color: var(--warning); }
.badge--danger { background: var(--danger-soft); color: var(--danger); }
.badge--info { background: var(--info-soft); color: var(--info); }
.badge--neutral { background: #eef0ed; color: #63706d; }
.badge--outline { border: 1px solid currentColor; background: transparent; }
.tag { display: inline-flex; align-items: center; min-height: 25px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); color: var(--ink-soft); font-size: 11px; font-weight: 700; }

.field { display: grid; gap: 7px; }
.field label, .field-label { color: var(--ink); font-size: 13px; font-weight: 750; }
.required::after { color: var(--danger); content: " *"; }
.input, .select, .textarea { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid #ccd2ce; border-radius: 11px; background: var(--white); color: var(--ink); transition: border .15s, box-shadow .15s; }
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2323656a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; }
.select:hover { border-color: var(--brand-700); }
.textarea { min-height: 108px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand-700); outline: 0; box-shadow: 0 0 0 3px rgba(35,101,106,.12); }
.input[readonly] { background: #f5f5f1; color: var(--ink-soft); }
.field-help { margin: 0; color: var(--ink-soft); font-size: 12px; }
.field-error { margin: 0; color: var(--danger); font-size: 12px; font-weight: 650; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label { min-height: 48px; padding: 11px 13px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); cursor: pointer; }
.choice label::before { width: 17px; height: 17px; flex: 0 0 auto; border: 2px solid #a6b1ad; border-radius: 50%; content: ""; }
.choice input:checked + label { border-color: var(--brand-700); background: var(--brand-50); box-shadow: inset 0 0 0 1px var(--brand-700); }
.choice input:checked + label::before { border: 5px solid var(--brand-700); background: white; }
.choice input:focus-visible + label { outline: 3px solid rgba(232,117,81,.42); }
.chip-group { display: flex; flex-wrap: wrap; gap: 9px; }
.chip-choice { position: relative; }
.chip-choice input { position: absolute; opacity: 0; }
.chip-choice label { min-height: 42px; padding: 9px 13px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: 13px; font-weight: 700; cursor: pointer; }
.chip-choice input:checked + label { border-color: var(--brand-700); background: var(--brand-900); color: white; }

.card { border: 1px solid var(--line-soft); border-radius: var(--radius-md); background: var(--paper); box-shadow: var(--shadow-sm); }
.card__header { padding: 18px 20px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.card__body { padding: 18px 20px 20px; }
.card__title { margin: 0; font-size: 16px; }
.section-heading { margin-bottom: 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.section-heading h1, .section-heading h2 { margin-bottom: 6px; }
.section-heading p { margin: 0; color: var(--ink-soft); }
.stack { display: grid; gap: 14px; }
.inline { display: flex; align-items: center; gap: 10px; }
.inline--wrap { flex-wrap: wrap; }
.split { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, .9fr) minmax(520px, 1.1fr); background: var(--paper); }
.auth-story { min-height: 100vh; padding: clamp(38px, 6vw, 84px); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; color: white; background: var(--brand-950); }
.auth-story::before { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,48,51,.25), rgba(14,48,51,.88)), url("https://images.unsplash.com/photo-1583417319070-4a69db38a482?auto=format&fit=crop&w=1600&q=80") center/cover; opacity: .72; content: ""; }
.auth-story::after { position: absolute; width: 480px; height: 480px; left: -180px; bottom: -220px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.04), 0 0 0 140px rgba(255,255,255,.03); content: ""; }
.auth-story > * { position: relative; z-index: 1; }
.auth-brand { display: flex; align-items: center; gap: 12px; font-weight: 850; letter-spacing: .12em; }
.auth-copy { max-width: 560px; }
.auth-copy h1 { margin-bottom: 20px; color: #fffdf8; font-family: var(--font-serif); font-size: clamp(40px, 5vw, 68px); font-weight: 500; letter-spacing: -.04em; }
.auth-copy p { max-width: 500px; color: rgba(255,255,255,.78); font-size: 17px; }
.auth-quote { padding-top: 22px; border-top: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.66); font-size: 13px; }
.auth-panel { padding: clamp(30px, 6vw, 90px); display: grid; place-content: center; background: radial-gradient(circle at 100% 0, var(--sand) 0, transparent 38%); }
.auth-box { width: min(540px, 100%); }
.auth-box h2 { margin-bottom: 8px; font-size: 30px; }
.role-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.role-card { padding: 16px; min-height: 118px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; border: 1px solid var(--line); border-radius: 14px; background: var(--white); text-align: left; cursor: pointer; transition: border .16s, transform .16s, box-shadow .16s; }
.role-card:hover { border-color: var(--brand-700); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.role-card strong { font-size: 14px; }
.role-card > span:last-child { display: grid; gap: 2px; }
.role-card small { display: block; color: var(--ink-soft); }
.role-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--brand-50); color: var(--brand-800); }
.auth-divider { margin: 28px 0 20px; display: flex; align-items: center; gap: 12px; color: #87918e; font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.auth-divider::before, .auth-divider::after { flex: 1; height: 1px; background: var(--line); content: ""; }
.guest-demo { padding: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-radius: 14px; background: var(--coral-soft); }
.guest-demo p { margin: 2px 0 0; color: #805340; font-size: 12px; }

.staff-shell { min-height: 100vh; padding-left: var(--sidebar); background: #f3f4f0; }
.sidebar { width: var(--sidebar); position: fixed; z-index: 40; inset: 0 auto 0 0; padding: 22px 16px 18px; display: flex; flex-direction: column; color: rgba(255,255,255,.82); background: var(--brand-950); }
.sidebar-brand { height: 50px; padding: 0 8px; display: flex; align-items: center; gap: 11px; color: white; font-size: 14px; font-weight: 850; letter-spacing: .11em; }
.trip-switcher { margin: 16px 0 22px; padding: 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(255,255,255,.06); }
.trip-switcher small { display: block; margin-bottom: 4px; color: rgba(255,255,255,.46); font-size: 10px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.trip-switcher strong { display: block; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-label { padding: 0 11px; margin-bottom: 7px; color: rgba(255,255,255,.38); font-size: 9px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.sidebar-nav { display: grid; gap: 4px; }
.nav-item { min-height: 43px; padding: 9px 11px; display: flex; align-items: center; gap: 11px; border: 0; border-radius: 10px; background: transparent; color: rgba(255,255,255,.65); font-size: 13px; font-weight: 680; text-align: left; cursor: pointer; }
.nav-item:hover { background: rgba(255,255,255,.06); color: white; }
.nav-item.active { background: rgba(255,255,255,.11); color: white; }
.nav-item.active::after { width: 5px; height: 5px; margin-left: auto; border-radius: 50%; background: var(--coral); content: ""; }
.nav-item .icon { width: 18px; height: 18px; }
.sidebar-spacer { flex: 1; }
.sidebar-user { padding: 12px 8px 0; border-top: 1px solid rgba(255,255,255,.1); }
.user-chip { display: flex; align-items: center; gap: 10px; }
.avatar { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: var(--brand-100); color: var(--brand-800); font-size: 13px; font-weight: 850; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-user strong { display: block; color: white; font-size: 12px; }
.sidebar-user small { color: rgba(255,255,255,.45); font-size: 10px; }
.sidebar-actions { margin-top: 10px; display: flex; gap: 7px; }
.sidebar-actions button { flex: 1; min-height: 33px; border: 0; border-radius: 8px; background: rgba(255,255,255,.07); color: rgba(255,255,255,.65); font-size: 11px; cursor: pointer; }

.staff-topbar { height: 68px; padding: 0 clamp(20px, 3vw, 40px); position: sticky; z-index: 30; top: 0; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-soft); background: rgba(255,255,255,.91); backdrop-filter: blur(18px); }
.breadcrumbs { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 12px; }
.breadcrumbs strong { color: var(--ink); }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.sync-state { display: flex; align-items: center; gap: 6px; color: var(--ink-soft); font-size: 11px; }
.sync-state::before { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px var(--success-soft); content: ""; }
.staff-main { width: min(1480px, 100%); min-height: calc(100vh - 68px); padding: 30px clamp(20px, 3vw, 40px) 70px; }
.mobile-topbar { display: none; }

.trip-hero { margin-bottom: 22px; padding: 22px 24px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-radius: var(--radius-lg); color: white; background: linear-gradient(118deg, var(--brand-950), var(--brand-800)); box-shadow: var(--shadow-md); }
.trip-hero::after { width: 240px; height: 240px; position: absolute; right: -80px; top: -100px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; box-shadow: 0 0 0 42px rgba(255,255,255,.04), 0 0 0 84px rgba(255,255,255,.025); content: ""; }
.trip-hero > * { position: relative; z-index: 1; }
.trip-hero .eyebrow { color: #f1b89a; }
.trip-hero h1 { margin-bottom: 9px; font-size: clamp(24px, 2.6vw, 36px); }
.trip-meta { display: flex; flex-wrap: wrap; gap: 14px; color: rgba(255,255,255,.67); font-size: 12px; }
.trip-meta span { display: flex; align-items: center; gap: 5px; }
.trip-hero__actions { display: flex; align-items: center; gap: 10px; }
.trip-hero .button--secondary { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.1); color: white; }

.kpi-grid { margin-bottom: 22px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.kpi-card { min-height: 132px; padding: 17px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line-soft); border-radius: 14px; background: var(--paper); box-shadow: var(--shadow-sm); cursor: pointer; }
.kpi-card:hover { border-color: #c5d7d4; }
.kpi-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.kpi-card__icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: var(--brand-50); color: var(--brand-700); }
.kpi-card--danger .kpi-card__icon { background: var(--danger-soft); color: var(--danger); }
.kpi-card--warning .kpi-card__icon { background: var(--warning-soft); color: var(--warning); }
.kpi-value { margin: 12px 0 2px; font-family: var(--font-serif); font-size: 31px; font-weight: 700; line-height: 1; }
.kpi-label { margin: 0; color: var(--ink-soft); font-size: 11px; font-weight: 700; }
.kpi-trend { color: var(--success); font-size: 10px; font-weight: 750; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(330px, .7fr); gap: 18px; }
.dashboard-grid + .dashboard-grid { margin-top: 18px; }
.readiness { padding: 18px 20px; }
.progress-track { height: 8px; overflow: hidden; border-radius: 999px; background: #e8ebe6; }
.progress-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-700), #45a28f); transition: width .25s; }
.p0 { width: 0%; } .p10 { width: 10%; } .p20 { width: 20%; } .p30 { width: 30%; } .p40 { width: 40%; }
.p50 { width: 50%; } .p60 { width: 60%; } .p70 { width: 70%; } .p80 { width: 80%; } .p90 { width: 90%; } .p100 { width: 100%; }
.readiness-legend { margin-top: 13px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.legend-item strong { display: block; font-size: 16px; }
.legend-item small { color: var(--ink-soft); font-size: 10px; }
.timeline { position: relative; }
.timeline-item { padding: 0 0 19px 27px; position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 10px; }
.timeline-item::before { width: 9px; height: 9px; position: absolute; left: 5px; top: 6px; border: 2px solid var(--paper); border-radius: 50%; background: var(--brand-700); box-shadow: 0 0 0 1px var(--brand-100); content: ""; }
.timeline-item::after { width: 1px; position: absolute; left: 9px; top: 18px; bottom: -1px; background: var(--line); content: ""; }
.timeline-item:last-child::after { display: none; }
.timeline-time { color: var(--brand-800); font-size: 12px; font-weight: 800; }
.timeline-item strong { display: block; margin-bottom: 2px; font-size: 13px; }
.timeline-item small { color: var(--ink-soft); }
.issue-list { display: grid; }
.issue-row { padding: 14px 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; border-bottom: 1px solid var(--line-soft); cursor: pointer; }
.issue-row:last-child { border: 0; }
.severity-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--info); box-shadow: 0 0 0 4px var(--info-soft); }
.severity-dot.urgent { background: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
.issue-row strong { display: block; margin-bottom: 2px; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.issue-row small { color: var(--ink-soft); font-size: 10px; }

.toolbar { margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.toolbar__filters { flex: 1; display: flex; align-items: center; gap: 9px; }
.search { width: min(340px, 100%); position: relative; }
.search .input { padding-left: 40px; }
.search .icon { position: absolute; left: 13px; top: 13px; color: #7c8a86; }
.toolbar .select { width: auto; min-width: 150px; }
.table-wrap { overflow: auto; border: 1px solid var(--line-soft); border-radius: var(--radius-md); background: var(--paper); box-shadow: var(--shadow-sm); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 12px 14px; position: sticky; top: 0; background: #f7f8f4; color: #71807c; font-size: 10px; font-weight: 850; letter-spacing: .06em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 13px 14px; border-top: 1px solid var(--line-soft); font-size: 12px; vertical-align: middle; }
.data-table tbody tr { cursor: pointer; }
.data-table tbody tr:hover { background: var(--brand-50); }
.person-cell { display: flex; align-items: center; gap: 10px; min-width: 170px; }
.person-cell .avatar { width: 34px; height: 34px; }
.person-cell strong { display: block; font-size: 12px; }
.person-cell small { color: var(--ink-soft); font-size: 10px; }
.flag-list { display: flex; flex-wrap: wrap; gap: 5px; }
.empty-state { min-height: 260px; padding: 40px; display: grid; place-content: center; justify-items: center; text-align: center; }
.empty-state__icon { width: 54px; height: 54px; margin-bottom: 13px; display: grid; place-items: center; border-radius: 16px; background: var(--brand-50); color: var(--brand-700); }
.empty-state h3 { margin-bottom: 5px; }
.empty-state p { max-width: 360px; color: var(--ink-soft); }

.board-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.board-column { min-height: 300px; padding: 12px; border-radius: var(--radius-md); background: #e9ece7; }
.board-column__title { padding: 4px 4px 12px; display: flex; justify-content: space-between; color: #5c6b67; font-size: 11px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.task-card { margin-bottom: 10px; padding: 14px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--paper); box-shadow: var(--shadow-sm); }
.task-card__top { margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.task-card h3 { margin-bottom: 8px; font-size: 13px; }
.task-card p { margin-bottom: 12px; color: var(--ink-soft); font-size: 11px; }
.task-meta { display: flex; align-items: center; justify-content: space-between; color: var(--ink-soft); font-size: 10px; }

.itinerary-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; }
.publish-banner { margin-bottom: 16px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid #f0cfab; border-radius: 13px; background: var(--warning-soft); }
.publish-banner strong { display: block; font-size: 13px; }
.publish-banner small { color: #8a643c; }
.day-tabs { margin-bottom: 16px; display: flex; gap: 8px; overflow-x: auto; }
.day-tab { min-width: 90px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); cursor: pointer; }
.day-tab.active { border-color: var(--brand-700); background: var(--brand-900); color: white; }
.day-tab span { display: block; font-size: 10px; opacity: .7; }
.activity-editor-card { margin-bottom: 10px; padding: 14px 16px; display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 14px; align-items: center; border: 1px solid var(--line-soft); border-radius: 13px; background: var(--paper); }
.activity-time { color: var(--brand-800); font-weight: 850; }
.activity-time small { display: block; color: var(--ink-soft); font-size: 10px; font-weight: 500; }
.activity-editor-card h3 { margin-bottom: 3px; font-size: 14px; }
.activity-editor-card p { margin: 0; color: var(--ink-soft); font-size: 11px; }
.preview-phone { width: 100%; max-width: 300px; margin: 0 auto; padding: 10px; border-radius: 32px; background: #1f2b2c; box-shadow: var(--shadow-lg); }
.preview-phone__screen { min-height: 530px; padding: 24px 14px; overflow: hidden; border-radius: 24px; background: var(--sand); }
.preview-phone__notch { width: 70px; height: 17px; margin: -18px auto 18px; border-radius: 0 0 12px 12px; background: #1f2b2c; }
.preview-phone h3 { font-family: var(--font-serif); font-size: 19px; }
.preview-activity { margin-top: 10px; padding: 12px; border-radius: 12px; background: var(--white); box-shadow: var(--shadow-sm); }
.preview-activity time { color: var(--coral-dark); font-size: 10px; font-weight: 800; }

.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.contact-card { padding: 18px; }
.contact-card__person { margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.contact-card__person .avatar { width: 50px; height: 50px; }
.contact-card h3 { margin: 0 0 3px; }
.contact-card p { margin: 0; color: var(--ink-soft); font-size: 11px; }
.contact-info { display: grid; gap: 8px; }
.contact-info div { padding: 9px 0; display: flex; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line-soft); font-size: 11px; }
.contact-info span { color: var(--ink-soft); }

.insight-grid { margin-bottom: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mini-stat { padding: 17px; }
.mini-stat strong { display: block; margin-bottom: 4px; font-family: var(--font-serif); font-size: 28px; }
.mini-stat span { color: var(--ink-soft); font-size: 11px; }
.charts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.bar-chart { display: grid; gap: 13px; }
.bar-row { display: grid; grid-template-columns: 100px 1fr 26px; align-items: center; gap: 10px; font-size: 11px; }
.bar-track { height: 9px; overflow: hidden; border-radius: 999px; background: #e7ebe7; }
.bar-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-700), #5aab95); }
.bar-fill.coral { background: linear-gradient(90deg, var(--coral), #f2b27d); }
.recommendation { margin-top: 18px; padding: 20px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; border: 1px solid #c9ded9; border-radius: var(--radius-md); background: var(--brand-50); }
.recommendation__icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; background: var(--brand-900); color: white; }
.recommendation h3 { margin-bottom: 3px; }
.recommendation p { margin: 0; color: var(--ink-soft); font-size: 12px; }

.report-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.report-card { padding: 20px; }
.report-icon { width: 42px; height: 42px; margin-bottom: 25px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-50); color: var(--brand-700); }
.report-card h3 { margin-bottom: 6px; }
.report-card p { min-height: 42px; color: var(--ink-soft); font-size: 11px; }

.audit-list { display: grid; }
.audit-row { padding: 13px 0; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; border-bottom: 1px solid var(--line-soft); }
.audit-row:last-child { border: 0; }
.audit-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--brand-50); color: var(--brand-700); }
.audit-row strong { display: block; font-size: 12px; }
.audit-row small { color: var(--ink-soft); font-size: 10px; }

.ops-hero { margin-bottom: 18px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 18px; }
.ops-greeting { min-height: 230px; padding: 26px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; border-radius: var(--radius-lg); color: white; background: linear-gradient(135deg, var(--brand-950), var(--brand-700)); }
.ops-greeting::after { width: 230px; height: 230px; position: absolute; top: -80px; right: -70px; border: 1px solid rgba(255,255,255,.17); border-radius: 50%; box-shadow: 0 0 0 40px rgba(255,255,255,.04); content: ""; }
.ops-greeting h1 { margin-bottom: 7px; font-size: 30px; }
.ops-greeting p { margin: 0; color: rgba(255,255,255,.7); }
.action-alerts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.action-alert { padding: 18px; display: flex; flex-direction: column; justify-content: space-between; border-radius: var(--radius-md); background: var(--paper); box-shadow: var(--shadow-sm); }
.action-alert strong { font-family: var(--font-serif); font-size: 34px; }
.action-alert p { margin: 4px 0 0; color: var(--ink-soft); font-size: 11px; }
.action-alert.danger { border: 1px solid #efc9c5; background: #fff9f7; }
.action-alert.warning { border: 1px solid #ead9b8; background: #fffaf1; }
.ops-list { display: grid; gap: 10px; }
.ops-item { padding: 15px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 13px; border: 1px solid var(--line-soft); border-radius: 13px; background: var(--paper); }
.check-toggle { width: 26px; height: 26px; display: grid; place-items: center; border: 2px solid #b7c1bd; border-radius: 8px; background: transparent; cursor: pointer; }
.check-toggle.done { border-color: var(--success); background: var(--success); color: white; }
.ops-item h3 { margin: 0 0 3px; font-size: 13px; }
.ops-item p { margin: 0; color: var(--ink-soft); font-size: 11px; }

.drawer-backdrop { position: fixed; z-index: 90; inset: 0; background: rgba(9,32,34,.38); opacity: 0; animation: fade-in .18s forwards; }
.drawer { width: min(480px, 100%); position: fixed; z-index: 100; inset: 0 0 0 auto; overflow-y: auto; background: var(--paper); box-shadow: var(--shadow-lg); transform: translateX(100%); animation: slide-in .22s forwards; }
@keyframes slide-in { to { transform: translateX(0); } }
@keyframes fade-in { to { opacity: 1; } }
.drawer__header { padding: 20px 22px; position: sticky; z-index: 2; top: 0; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-soft); background: rgba(255,254,251,.95); backdrop-filter: blur(12px); }
.drawer__header h2 { margin: 0; font-size: 20px; }
.drawer__body { padding: 24px 22px 50px; }
.detail-section { padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.detail-section:first-child { padding-top: 0; }
.detail-section h3 { margin-bottom: 12px; color: var(--ink-soft); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; }
.detail-value span { display: block; color: var(--ink-soft); font-size: 10px; }
.detail-value strong { display: block; margin-top: 2px; font-size: 12px; }
.drawer-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }

.toast-region { position: fixed; z-index: 200; right: 20px; bottom: 20px; display: grid; gap: 8px; pointer-events: none; }
.toast { width: min(360px, calc(100vw - 32px)); padding: 13px 15px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--brand-950); color: white; box-shadow: var(--shadow-lg); animation: toast-in .2s ease-out; }
.toast--error { background: #7e2929; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

/* Guest PWA */
.guest-shell { min-height: 100vh; padding-bottom: calc(82px + env(safe-area-inset-bottom)); background: var(--sand); }
.guest-container { width: min(680px, 100%); margin: 0 auto; padding: 0 18px; }
.guest-topbar { height: 68px; padding: env(safe-area-inset-top) 18px 0; position: sticky; z-index: 30; top: 0; display: flex; align-items: center; justify-content: space-between; background: rgba(245,242,235,.9); backdrop-filter: blur(16px); }
.guest-brand { display: flex; align-items: center; gap: 9px; color: var(--brand-900); font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.guest-brand .brand-mark { width: 32px; height: 32px; font-size: 16px; }
.locale-switch { padding: 3px; display: flex; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.65); }
.locale-switch button { min-height: 30px; padding: 5px 9px; border: 0; border-radius: 7px; background: transparent; color: var(--ink-soft); font-size: 10px; font-weight: 850; cursor: pointer; }
.locale-switch button.active { background: var(--brand-900); color: white; }
.guest-main { padding-top: 18px; }
.guest-greeting { margin: 8px 0 20px; }
.guest-greeting .eyebrow { color: var(--coral-dark); }
.guest-greeting h1 { margin-bottom: 5px; font-family: var(--font-serif); font-size: clamp(30px, 8vw, 42px); font-weight: 500; }
.guest-greeting p { color: var(--ink-soft); }
.guest-hero { min-height: 290px; padding: 24px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; border-radius: 26px; color: white; background: linear-gradient(180deg, rgba(14,48,51,.08), rgba(14,48,51,.88)), url("https://images.unsplash.com/photo-1583417319070-4a69db38a482?auto=format&fit=crop&w=1000&q=80") center/cover; box-shadow: var(--shadow-md); }
.guest-hero__label { width: fit-content; padding: 6px 9px; border-radius: 999px; background: rgba(255,255,255,.16); font-size: 10px; font-weight: 850; letter-spacing: .08em; backdrop-filter: blur(8px); }
.guest-hero time { display: block; color: #ffd4bf; font-size: 12px; font-weight: 800; }
.guest-hero h2 { margin: 6px 0 8px; font-family: var(--font-serif); font-size: 28px; font-weight: 500; }
.guest-hero p { margin: 0 0 15px; color: rgba(255,255,255,.76); font-size: 13px; }
.guest-hero__actions { display: flex; gap: 9px; }
.guest-hero .button { background: var(--white); color: var(--brand-900); }
.guest-hero .button--ghost { border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.09); color: white; }
.guest-section { margin-top: 28px; }
.guest-section__head { margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.guest-section__head h2 { margin: 0; font-family: var(--font-serif); font-size: 22px; font-weight: 550; }
.guest-section__head button, .guest-section__head a { border: 0; background: transparent; color: var(--brand-700); font-size: 12px; font-weight: 750; text-decoration: none; cursor: pointer; }
.guest-timeline { padding: 5px 17px; }
.guest-timeline .timeline-item { padding-top: 15px; padding-bottom: 15px; grid-template-columns: 54px 1fr; border-bottom: 1px solid var(--line-soft); }
.guest-timeline .timeline-item:last-child { border: 0; }
.guest-timeline .timeline-item::before, .guest-timeline .timeline-item::after { display: none; }
.guest-timeline .timeline-time { color: var(--coral-dark); }
.guest-timeline .timeline-item p { margin: 3px 0 0; color: var(--ink-soft); font-size: 11px; }
.pickup-card { padding: 18px; display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 16px; align-items: center; }
.pickup-photo { width: 74px; height: 86px; overflow: hidden; border-radius: 14px; background: var(--brand-100); }
.pickup-photo img { width: 100%; height: 100%; object-fit: cover; }
.pickup-card h3 { margin-bottom: 2px; font-family: var(--font-serif); font-size: 21px; }
.pickup-card p { margin-bottom: 8px; color: var(--ink-soft); font-size: 11px; }
.pickup-details { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--ink-soft); font-size: 11px; }
.pickup-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.update-banner { padding: 15px 17px; display: grid; grid-template-columns: auto 1fr; gap: 12px; border: 1px solid #efcfb7; border-radius: 14px; background: #fff6ed; }
.update-banner__icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--coral-soft); color: var(--coral-dark); }
.update-banner strong { display: block; margin-bottom: 2px; font-size: 12px; }
.update-banner p { margin: 0; color: #795f50; font-size: 11px; }
.help-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.help-card { min-height: 116px; padding: 17px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line-soft); border-radius: 16px; background: var(--paper); box-shadow: var(--shadow-sm); text-decoration: none; cursor: pointer; }
.help-card .icon { color: var(--brand-700); }
.help-card strong { display: block; font-size: 13px; }
.help-card small { color: var(--ink-soft); font-size: 10px; }
.help-card--emergency { border-color: #efc9c5; background: #fff9f7; }
.help-card--emergency .icon { color: var(--danger); }

.guest-bottom-nav { height: calc(70px + env(safe-area-inset-bottom)); padding: 7px max(12px, env(safe-area-inset-left)) env(safe-area-inset-bottom); position: fixed; z-index: 40; inset: auto 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(218,218,211,.85); background: rgba(255,254,251,.94); backdrop-filter: blur(18px); }
.guest-nav-item { min-width: 0; min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: transparent; color: #73807c; font-size: 9px; font-weight: 700; cursor: pointer; }
.guest-nav-item .icon { width: 21px; height: 21px; }
.guest-nav-item.active { color: var(--brand-900); }
.guest-nav-item.active::after { width: 4px; height: 4px; border-radius: 50%; background: var(--coral); content: ""; }

.guest-page-head { padding: 12px 0 20px; }
.guest-page-head h1 { margin-bottom: 6px; font-family: var(--font-serif); font-weight: 500; }
.guest-page-head p { margin: 0; color: var(--ink-soft); }
.guest-day { margin-bottom: 24px; }
.guest-day__title { margin-bottom: 10px; display: flex; align-items: baseline; justify-content: space-between; }
.guest-day__title h2 { margin: 0; font-family: var(--font-serif); font-size: 22px; font-weight: 550; }
.guest-day__title span { color: var(--ink-soft); font-size: 11px; }
.schedule-card { padding: 16px; display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 12px; border-bottom: 1px solid var(--line-soft); }
.schedule-card:last-child { border: 0; }
.schedule-card time { color: var(--coral-dark); font-size: 13px; font-weight: 850; }
.schedule-card h3 { margin-bottom: 4px; font-family: var(--font-serif); font-size: 17px; font-weight: 600; }
.schedule-card p { margin: 0; color: var(--ink-soft); font-size: 11px; }
.schedule-card__meta { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 7px; }
.change-note { margin-top: 10px; padding: 9px 11px; border-radius: 9px; background: var(--coral-soft); color: #8a4e38; font-size: 11px; font-weight: 650; }

.guest-contact-list { display: grid; gap: 12px; }
.guest-contact { padding: 16px; display: grid; grid-template-columns: 54px minmax(0,1fr) auto; align-items: center; gap: 12px; }
.guest-contact .avatar { width: 54px; height: 54px; }
.guest-contact h3 { margin-bottom: 2px; }
.guest-contact p { margin: 0; color: var(--ink-soft); font-size: 10px; }
.guest-contact .icon-button { border: 0; background: var(--brand-50); color: var(--brand-700); }
.emergency-panel { margin-bottom: 18px; padding: 18px; border-radius: 18px; background: var(--danger-soft); }
.emergency-panel h3 { margin-bottom: 5px; color: var(--danger); }
.emergency-panel p { margin-bottom: 12px; color: #7c5551; font-size: 12px; }

.issue-form { padding: 20px; }
.issue-category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.category-choice { position: relative; }
.category-choice input { position: absolute; opacity: 0; }
.category-choice label { min-height: 78px; padding: 10px 7px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); font-size: 10px; font-weight: 750; text-align: center; cursor: pointer; }
.category-choice label .icon { color: var(--brand-700); }
.category-choice input:checked + label { border-color: var(--brand-700); background: var(--brand-50); box-shadow: inset 0 0 0 1px var(--brand-700); }
.severity-choice { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.severity-choice .choice label { justify-content: center; text-align: center; }
.severity-choice .urgent input:checked + label { border-color: var(--danger); background: var(--danger-soft); box-shadow: inset 0 0 0 1px var(--danger); }
.guest-issues { margin-top: 18px; display: grid; gap: 10px; }
.guest-issue { padding: 15px; }
.guest-issue__head { margin-bottom: 9px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.guest-issue h3 { margin: 0; font-size: 13px; }
.guest-issue p { margin: 0 0 10px; color: var(--ink-soft); font-size: 11px; }
.issue-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.issue-progress span { padding-top: 7px; position: relative; color: #99a09d; font-size: 8px; font-weight: 800; text-align: center; }
.issue-progress span::before { height: 3px; position: absolute; inset: 0 2px auto; border-radius: 3px; background: #e2e5e0; content: ""; }
.issue-progress span.done { color: var(--brand-700); }
.issue-progress span.done::before { background: var(--brand-700); }

.survey-shell { min-height: 100vh; background: var(--paper); }
.survey-topbar { min-height: 68px; padding: 0 max(18px, env(safe-area-inset-left)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-soft); }
.survey-container { width: min(680px, 100%); margin: 0 auto; padding: 34px 20px 80px; }
.survey-progress { margin-bottom: 34px; }
.survey-progress__meta { margin-bottom: 9px; display: flex; align-items: center; justify-content: space-between; color: var(--ink-soft); font-size: 11px; font-weight: 700; }
.survey-step h1 { margin-bottom: 8px; font-family: var(--font-serif); font-size: clamp(30px, 7vw, 40px); font-weight: 500; }
.survey-step > p { margin-bottom: 28px; color: var(--ink-soft); }
.survey-form { display: grid; gap: 20px; }
.survey-actions { margin-top: 34px; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line-soft); }
.autosave-state { color: var(--ink-soft); font-size: 10px; }
.completion-page { min-height: 100vh; background: var(--sand); }
.completion-hero { min-height: 410px; padding: 34px 22px; position: relative; display: flex; align-items: flex-end; color: white; background: linear-gradient(180deg, rgba(14,48,51,.05), rgba(14,48,51,.92)), url("https://images.unsplash.com/photo-1583417319070-4a69db38a482?auto=format&fit=crop&w=1100&q=80") center/cover; }
.completion-hero__content { width: min(620px,100%); margin: 0 auto; }
.completion-hero h1 { margin-bottom: 10px; font-family: var(--font-serif); font-weight: 500; }
.completion-hero p { color: rgba(255,255,255,.76); }
.completion-body { width: min(620px,100%); margin: -18px auto 0; padding: 0 18px 70px; position: relative; }
.countdown-card { padding: 20px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; }
.countdown-card strong { display: block; font-family: var(--font-serif); font-size: 25px; }
.countdown-number { width: 68px; height: 68px; display: grid; place-items: center; border-radius: 18px; background: var(--brand-900); color: white; font-family: var(--font-serif); font-size: 27px; }
.keep-link { margin-top: 14px; padding: 15px; border-radius: 13px; background: var(--warning-soft); color: #7d633e; font-size: 12px; }

.offline-banner { padding: 8px 14px; position: sticky; z-index: 50; top: 0; background: var(--warning-soft); color: var(--warning); font-size: 11px; font-weight: 750; text-align: center; }
.error-page { min-height: 100vh; padding: 30px; display: grid; place-content: center; justify-items: center; background: var(--sand); text-align: center; }
.error-page .brand-mark { margin-bottom: 20px; }
.error-page p { max-width: 440px; color: var(--ink-soft); }

@media (max-width: 1180px) {
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid, .report-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --sidebar: 224px; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-story { min-height: 370px; padding: 38px; }
  .auth-copy h1 { font-size: 44px; }
  .auth-panel { padding: 45px 24px; }
  .dashboard-grid, .itinerary-layout, .ops-hero { grid-template-columns: 1fr; }
  .board-grid { grid-template-columns: 1fr; }
  .charts-grid { grid-template-columns: 1fr; }
  .insight-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: initial; }
  .staff-shell { padding: 0; padding-bottom: 74px; }
  .sidebar, .staff-topbar { display: none; }
  .mobile-topbar { height: 62px; padding: 0 16px; position: sticky; z-index: 35; top: 0; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-soft); background: rgba(255,255,255,.93); backdrop-filter: blur(16px); }
  .mobile-topbar .brand-mark { width: 34px; height: 34px; }
  .staff-main { min-height: calc(100vh - 62px); padding: 20px 14px 34px; }
  .staff-mobile-nav { height: 68px; padding-bottom: env(safe-area-inset-bottom); position: fixed; z-index: 45; inset: auto 0 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); background: rgba(255,255,255,.95); backdrop-filter: blur(16px); }
  .staff-mobile-nav .nav-item { min-height: 60px; padding: 5px 2px; flex-direction: column; justify-content: center; gap: 2px; border-radius: 0; color: #74817d; font-size: 8px; text-align: center; }
  .staff-mobile-nav .nav-item.active { background: transparent; color: var(--brand-900); }
  .staff-mobile-nav .nav-item.active::after { position: absolute; top: 3px; margin: 0; }
  .trip-hero { padding: 20px; align-items: flex-start; flex-direction: column; }
  .trip-hero__actions { width: 100%; }
  .trip-hero__actions .button { flex: 1; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .kpi-card { min-height: 116px; padding: 14px; }
  .kpi-value { font-size: 27px; }
  .dashboard-grid { gap: 12px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .section-heading .button { width: 100%; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .toolbar__filters { align-items: stretch; flex-direction: column; }
  .search, .toolbar .select { width: 100%; }
  .table-wrap { border: 0; overflow: visible; background: transparent; box-shadow: none; }
  .data-table, .data-table tbody { display: grid; gap: 10px; }
  .data-table thead { display: none; }
  .data-table tr { padding: 14px; display: grid; grid-template-columns: 1fr auto; gap: 8px; border: 1px solid var(--line-soft); border-radius: 13px; background: var(--paper); box-shadow: var(--shadow-sm); }
  .data-table td { padding: 0; border: 0; }
  .data-table td[data-mobile-hidden] { display: none; }
  .data-table td::before { display: block; color: var(--ink-soft); font-size: 9px; font-weight: 750; content: attr(data-label); }
  .data-table .person-cell::before { display: none; }
  .contact-grid, .report-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .recommendation { grid-template-columns: auto 1fr; }
  .recommendation .button { grid-column: 1 / -1; }
  .auth-story { min-height: 300px; }
  .auth-copy h1 { font-size: 36px; }
  .auth-copy p, .auth-quote { display: none; }
  .role-grid { grid-template-columns: 1fr 1fr; }
  .role-card { min-height: 105px; }
  .issue-category-grid { grid-template-columns: repeat(2,1fr); }
  .guest-container { padding: 0 14px; }
}

@media (max-width: 430px) {
  .auth-story { padding: 28px 22px; }
  .auth-panel { padding: 35px 18px; }
  .role-grid { grid-template-columns: 1fr; }
  .role-card { min-height: 82px; flex-direction: row; align-items: center; }
  .guest-demo { align-items: stretch; flex-direction: column; }
  .guest-demo .button { width: 100%; }
  .readiness-legend { grid-template-columns: repeat(2,1fr); }
  .action-alerts { grid-template-columns: 1fr 1fr; }
  .insight-grid { grid-template-columns: repeat(2,1fr); }
  .bar-row { grid-template-columns: 78px 1fr 22px; }
  .choice-grid { grid-template-columns: 1fr; }
  .survey-actions { align-items: stretch; flex-direction: column-reverse; }
  .survey-actions .button { width: 100%; }
  .activity-editor-card { grid-template-columns: 58px minmax(0,1fr); }
  .activity-editor-card > :last-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.guest-login-box { width: min(360px, 92vw); margin: 18px auto 8px; text-align: left; }

.preview-activity.is-live { outline: 2px dashed var(--coral, #e8865f); outline-offset: 2px; border-radius: 8px; }
.trip-switcher .select { margin-top: 6px; width: 100%; font-size: 13px; }
.trip-switcher .button { margin-top: 8px; width: 100%; color: rgba(255,255,255,.85); }
.day-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }

.setup-card { margin-bottom: 22px; border-left: 4px solid var(--brand-700); }
.setup-card .audit-row.setup-done { opacity: .55; }
.tag--button { cursor: pointer; border: 1px dashed var(--brand-700); background: var(--brand-50); transition: background .15s; }
.tag--button:hover { background: var(--brand-100); }
.activity-editor-card.is-cancelled { opacity: .5; }
.sync-state { display: inline-flex; align-items: center; gap: 6px; }

.status-chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.status-chip { text-align: center; }
.status-chip { min-height: 30px; padding: 5px 10px; border: 1px solid #d6dcd8; border-radius: 999px; background: var(--white); color: #5a6d66; font-size: 12px; font-weight: 750; line-height: 1; cursor: pointer; transition: border-color .15s, color .15s, background .15s, transform .15s; }
.status-chip:hover:not(:disabled) { border-color: var(--brand-700); color: var(--brand-800); transform: translateY(-1px); }
.status-chip.is-active { cursor: default; color: #fff; }
.status-chip.is-active.status-todo { background: var(--brand-800); border-color: var(--brand-800); }
.status-chip.is-active.status-in_progress { background: #b97a24; border-color: #b97a24; }
.status-chip.is-active.status-blocked { background: #b3403a; border-color: #b3403a; }
.status-chip.is-active.status-done { background: #2e7d5b; border-color: #2e7d5b; }

.preview-activity time { display: block; font-size: 11px; font-weight: 800; letter-spacing: .04em; color: var(--coral, #d96b45); }
.preview-activity strong { display: block; margin: 3px 0 2px; line-height: 1.35; }
.preview-activity small { display: block; line-height: 1.4; }
.trip-switcher .select { text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }

.nice-select { position: relative; }
.nice-select > select { position: absolute !important; width: 1px; height: 1px; margin: -1px; opacity: 0; pointer-events: none; }
.nice-select__trigger { display: flex; width: 100%; align-items: center; text-align: left; font: inherit; }
.nice-select__label { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nice-select__menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 240; min-width: 100%; width: max-content; max-width: 320px; max-height: 280px; overflow: auto; padding: 6px; border: 1px solid #dde3df; border-radius: 13px; background: var(--white); box-shadow: 0 14px 34px rgba(14,48,51,.18); animation: menuIn .12s ease-out; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.nice-select__option { display: flex; width: 100%; align-items: center; padding: 9px 11px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font-size: 13.5px; font-weight: 600; text-align: left; cursor: pointer; }
.nice-select__option:hover { background: var(--brand-50); }
.nice-select__option.is-selected { background: var(--brand-900); color: #fff; }
.nice-select__option.is-selected:hover { background: var(--brand-800); }
.nice-select__option + .nice-select__option { margin-top: 2px; }

.ai-suggestion { margin-top: 10px; padding: 13px 14px; border: 1px solid #e3e8e4; border-radius: 13px; background: var(--white); box-shadow: var(--shadow-sm); }
.ai-suggestion .flag-list { margin-top: 8px; }
.ai-reason { margin: 8px 0 0; padding: 8px 10px; border-radius: 9px; background: var(--brand-50); color: var(--brand-800); font-size: 12.5px; line-height: 1.45; }
.ai-reason .icon { width: 13px; height: 13px; }

.nav-badge { margin-left: auto; min-width: 20px; padding: 2px 7px; border-radius: 999px; background: var(--coral, #d96b45); color: #fff; font-size: 10.5px; font-weight: 850; text-align: center; }
.staff-mobile-nav .nav-badge { position: absolute; top: 4px; right: 14px; margin: 0; }
.staff-mobile-nav .nav-item { position: relative; }

.map-overlay { position: fixed; inset: 0; z-index: 260; display: flex; flex-direction: column; background: var(--paper, #f5f2eb); animation: menuIn .15s ease-out; }
.map-overlay__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top)); background: var(--white); border-bottom: 1px solid #e3e8e4; }
.map-overlay__frame { flex: 1 1 auto; width: 100%; border: 0; }
.map-overlay__foot { padding: 12px 16px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid #e3e8e4; }

.quick-link { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 1px solid #e3e8e4; text-align: left; cursor: pointer; }
.quick-link:hover { border-color: var(--brand-700); box-shadow: var(--shadow-md); }
.quick-link .quick-link__arrow { margin-left: auto; color: var(--brand-700); }
.ai-pick { display: block; width: 100%; margin-top: 8px; padding: 11px 13px; border: 1px dashed var(--brand-700); border-radius: 11px; background: var(--brand-50); color: var(--ink); text-align: left; font-size: 13px; cursor: pointer; }
.ai-pick:hover { background: var(--brand-100); }
.ai-pick small { display: block; margin-top: 3px; color: var(--brand-800); }
.ai-reason--swap { background: #fdf1e6; color: #8a5a1f; }
