:root {
    --ink: #183234;
    --ink-soft: #4f6464;
    --brand-950: #00281d;
    --brand-900: #004831;
    --brand-800: #006247;
    --brand-700: #087a5a;
    --brand-100: #cde9dc;
    --brand-50: #edf8f2;
    --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(0, 72, 49, 0.07);
    --shadow-md: 0 14px 38px rgba(0, 72, 49, 0.13);
    --shadow-lg: 0 28px 70px rgba(0, 40, 29, 0.2);
    --radius-sm: 9px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --sidebar: 258px;
    --font-sans:
        "Google Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP",
        system-ui, -apple-system, sans-serif;
    --font-serif:
        "Google Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP",
        system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    scrollbar-color: var(--brand-700) var(--brand-50);
    scrollbar-width: thin;
}
body {
    min-width: 320px;
    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;
    overflow-x: clip;
}
body:has(.auth-page) {
    background: var(--paper);
}
* {
    scrollbar-color: var(--brand-700) var(--brand-50);
    scrollbar-width: thin;
}
*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
*::-webkit-scrollbar-track {
    background: var(--brand-50);
}
*::-webkit-scrollbar-thumb {
    border: 2px solid var(--brand-50);
    border-radius: 999px;
    background: var(--brand-700);
}
*::-webkit-scrollbar-thumb:hover {
    background: var(--brand-900);
}
*::-webkit-scrollbar-corner {
    background: var(--brand-50);
}
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: -0.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(0, 72, 49, 0.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(0, 40, 29, 0.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: 0.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 0.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 0.16s,
        background 0.16s,
        box-shadow 0.16s;
}
.button:hover {
    background: var(--brand-800);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}
.button:active {
    transform: translateY(0);
}
.button:disabled {
    opacity: 0.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--danger-soft {
    border-color: #efb8b8;
    background: var(--danger-soft);
    color: var(--danger);
}
.button--danger-soft:hover {
    border-color: var(--danger);
    background: #f9d9d7;
    color: #9f2f32;
}
.button--success {
    border-color: #acd8c6;
    background: var(--success-soft);
    color: #08684e;
}
.button--success:hover {
    border-color: var(--success);
    background: #ccebdd;
}
@keyframes page-enter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes status-attention {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(179, 67, 67, 0);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(179, 67, 67, 0.16);
    }
}
.page-content--enter {
    animation: page-enter 0.2s ease-out both;
}
.button--trip-create {
    margin-top: 12px;
    border-color: rgba(175, 202, 49, 0.58);
    background: #afca31;
    color: #163326;
    box-shadow: 0 8px 22px rgba(175, 202, 49, 0.2);
}
.button--trip-create:hover {
    background: #c6dd45;
    box-shadow: 0 10px 28px rgba(175, 202, 49, 0.3);
}
.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;
    transition:
        background 0.16s,
        border-color 0.16s,
        transform 0.16s;
}
.icon-button:hover {
    border-color: var(--brand-100);
    background: var(--brand-50);
}
.icon-button:active {
    transform: translateY(1px);
}
.icon-button--quiet {
    width: 40px;
    height: 40px;
    border-color: var(--brand-100);
    background: var(--brand-50);
    color: var(--brand-800);
}
.icon-button--quiet .icon {
    width: 19px;
    height: 19px;
}
.icon-button--quiet.is-loading .icon {
    animation: spin 0.8s linear infinite;
}
.icon {
    width: 19px;
    height: 19px;
    display: block;
    flex: 0 0 auto;
    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: 0.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;
    min-width: 0;
    gap: 7px;
}
.badge--attention {
    animation: status-attention 1.8s ease-in-out 2;
}
.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-width: 0;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid #ccd2ce;
    border-radius: 11px;
    background: var(--white);
    color: var(--ink);
    transition:
        border 0.15s,
        box-shadow 0.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='%23087a5a' 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(0, 72, 49, 0.16);
}
.input[readonly] {
    background: #f5f5f1;
    color: var(--ink-soft);
}
.field-help {
    margin: 0;
    color: var(--ink-soft);
    font-size: 12px;
}
.searchable-select {
    display: grid;
    gap: 8px;
}
.searchable-select__search {
    width: 100%;
}
.searchable-select .field-help {
    min-height: 18px;
    margin: 0;
}
.contact-pickup-fields {
    margin: 2px 0;
    padding: 22px 0 4px;
}
.contact-pickup-fields .field-help {
    margin: 0 0 20px;
    line-height: 1.55;
}
.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 > * {
    min-width: 0;
}
.input[type="date"],
.input[type="datetime-local"] {
    min-width: 0;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
}
.form-grid .span-2 {
    grid-column: 1 / -1;
}

@media (max-width: 640px) {
    .drawer .form-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .drawer .form-grid .span-2 {
        grid-column: auto;
    }
}
.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(0, 72, 49, 0.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: 100dvh;
    display: grid;
    grid-template-columns: minmax(420px, 0.9fr) minmax(520px, 1.1fr);
    background: var(--paper);
}
.auth-story {
    min-height: 100dvh;
    align-self: stretch;
    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(0, 40, 29, 0.25), rgba(0, 40, 29, 0.88)),
        url("https://images.unsplash.com/photo-1583417319070-4a69db38a482?auto=format&fit=crop&w=1600&q=80")
            center/cover;
    opacity: 0.72;
    content: "";
}
.auth-story::after {
    position: absolute;
    width: 480px;
    height: 480px;
    left: -180px;
    bottom: -220px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    box-shadow:
        0 0 0 70px rgba(255, 255, 255, 0.04),
        0 0 0 140px rgba(255, 255, 255, 0.03);
    content: "";
}
.auth-story > * {
    position: relative;
    z-index: 1;
}
.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 850;
    letter-spacing: 0.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: -0.04em;
}
.auth-copy p {
    max-width: 500px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 17px;
}
.auth-quote {
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.66);
    font-size: 13px;
}
.auth-panel {
    min-height: 100dvh;
    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;
}
.password-input {
    position: relative;
}
.password-input .input {
    padding-right: 54px;
}
.password-toggle {
    width: 44px;
    height: 44px;
    padding: 0;
    position: absolute;
    top: 50%;
    right: 5px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--brand-800);
    cursor: pointer;
    transform: translateY(-50%);
}
.password-toggle:hover,
.password-toggle:focus-visible {
    background: var(--brand-50);
}
.password-toggle .icon {
    width: 19px;
    height: 19px;
}
.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 0.16s,
        transform 0.16s,
        box-shadow 0.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: 0.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 {
    --staff-sidebar-width: var(--sidebar);
    min-height: 100vh;
    padding-left: var(--staff-sidebar-width);
    background: #f3f4f0;
    transition: padding-left 260ms cubic-bezier(0.2, 0.75, 0.25, 1);
}
.sidebar {
    width: var(--staff-sidebar-width);
    height: 100dvh;
    position: fixed;
    z-index: 40;
    inset: 0 auto 0 0;
    padding: 22px 16px 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto minmax(0, 1fr) auto;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.82);
    background: var(--brand-950);
    transition:
        width 260ms cubic-bezier(0.2, 0.75, 0.25, 1),
        padding 260ms cubic-bezier(0.2, 0.75, 0.25, 1);
}
.sidebar-collapse-toggle {
    width: 36px;
    height: 36px;
    padding: 0;
    position: fixed;
    z-index: 55;
    top: 16px;
    left: calc(var(--staff-sidebar-width) - 18px);
    display: grid;
    place-items: center;
    border: 2px solid var(--white);
    border-radius: 50%;
    background: #afca31;
    color: var(--brand-950);
    box-shadow:
        0 0 0 3px rgba(175, 202, 49, 0.24),
        0 7px 18px rgba(0, 40, 29, 0.24);
    cursor: pointer;
    transition:
        left 260ms cubic-bezier(0.2, 0.75, 0.25, 1),
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}
.sidebar-collapse-toggle:hover {
    border-color: var(--white);
    background: #c6dd45;
    box-shadow:
        0 0 0 4px rgba(175, 202, 49, 0.3),
        0 9px 22px rgba(0, 40, 29, 0.28);
    transform: scale(1.06);
}
.sidebar-collapse-toggle:focus-visible {
    outline: 3px solid rgba(0, 72, 49, 0.28);
    outline-offset: 3px;
}
.sidebar-collapse-toggle .icon {
    width: 15px;
    height: 15px;
    transition: transform 260ms cubic-bezier(0.2, 0.75, 0.25, 1);
}
.staff-shell.is-sidebar-collapsed {
    --staff-sidebar-width: 76px;
}
.staff-shell.is-sidebar-collapsed .sidebar {
    padding-right: 10px;
    padding-left: 10px;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: visible;
}
.staff-shell.is-sidebar-collapsed .sidebar-brand {
    padding: 0;
    justify-content: center;
}
.staff-shell.is-sidebar-collapsed .sidebar-brand__name,
.staff-shell.is-sidebar-collapsed .trip-switcher,
.staff-shell.is-sidebar-collapsed .sidebar-label,
.staff-shell.is-sidebar-collapsed .nav-item > span:not(.nav-badge),
.staff-shell.is-sidebar-collapsed .user-chip__identity,
.staff-shell.is-sidebar-collapsed .user-chip > .avatar {
    display: none;
}
.staff-shell.is-sidebar-collapsed .sidebar-nav {
    padding-top: 16px;
}
.staff-shell.is-sidebar-collapsed .nav-item {
    width: 48px;
    min-height: 44px;
    margin-inline: auto;
    padding: 9px;
    position: relative;
    justify-content: center;
}
.staff-shell.is-sidebar-collapsed .sidebar-user {
    padding-inline: 0;
}
.staff-shell.is-sidebar-collapsed .user-chip {
    justify-content: center;
}
.staff-shell.is-sidebar-collapsed .sidebar-user-menu__popover {
    right: auto;
    bottom: 0;
    left: calc(100% + 14px);
}
.staff-shell.is-sidebar-collapsed .sidebar-collapse-toggle .icon {
    transform: rotate(180deg);
}
.sidebar-brand__name,
.trip-switcher,
.sidebar-label,
.nav-item > span:not(.nav-badge),
.user-chip__identity,
.user-chip > .avatar {
    transition:
        opacity 160ms ease,
        transform 200ms cubic-bezier(0.2, 0.75, 0.25, 1),
        max-width 260ms cubic-bezier(0.2, 0.75, 0.25, 1);
}
.sidebar-brand__name,
.nav-item > span:not(.nav-badge),
.user-chip__identity {
    max-width: 180px;
    overflow: hidden;
    white-space: nowrap;
}
.staff-shell.is-sidebar-collapsed .sidebar-brand__name,
.staff-shell.is-sidebar-collapsed .nav-item > span:not(.nav-badge),
.staff-shell.is-sidebar-collapsed .user-chip__identity,
.staff-shell.is-sidebar-collapsed .user-chip > .avatar {
    display: block;
    max-width: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-8px);
}
.sidebar-brand {
    height: 50px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    gap: 11px;
    color: white;
    font-size: 14px;
    font-weight: 850;
    letter-spacing: 0.11em;
}
.trip-switcher {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 16px 0 22px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
}
.trip-switcher small {
    display: block;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.46);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}
.trip-switcher strong {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sidebar-label {
    padding: 0 11px;
    margin-bottom: 7px;
    color: rgba(255, 255, 255, 0.38);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.sidebar-nav {
    display: grid;
    align-content: start;
    grid-auto-rows: min-content;
    gap: 4px;
    min-height: 0;
    padding-bottom: 14px;
    overflow-y: auto;
    scrollbar-width: none;
}
.sidebar-nav::-webkit-scrollbar {
    width: 0;
    height: 0;
}
.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, 0.65);
    font-size: 13px;
    font-weight: 680;
    text-align: left;
    cursor: pointer;
}
.nav-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: white;
}
.nav-item.active {
    background: rgba(255, 255, 255, 0.11);
    color: white;
}
.nav-item .icon {
    width: 18px;
    height: 18px;
}
.sidebar-user {
    margin-top: 4px;
    padding: 14px 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
}
.user-chip__identity {
    min-width: 0;
    flex: 1;
}
.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, 0.45);
    font-size: 10px;
}
.sidebar-user-menu {
    position: relative;
}
.sidebar-user-menu__trigger {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.78);
    cursor: pointer;
}
.sidebar-user-menu__trigger:hover,
.sidebar-user-menu__trigger[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.14);
    color: white;
}
.sidebar-user-menu__popover {
    width: 190px;
    padding: 6px;
    position: absolute;
    z-index: 70;
    right: 0;
    bottom: calc(100% + 10px);
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 14px 30px rgba(0, 40, 29, 0.2);
}
.sidebar-user-menu__popover button {
    width: 100%;
    min-height: 40px;
    padding: 8px 9px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--brand-800);
    font: inherit;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
}
.sidebar-user-menu__popover button:hover:not(:disabled) {
    background: var(--brand-50);
    color: var(--brand-900);
}
.sidebar-user-menu__popover button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.sidebar-user-menu__popover .icon {
    width: 16px;
    height: 16px;
}
.sidebar-user-menu__popover small {
    margin-left: auto;
    color: var(--ink-soft);
    font-size: 9px;
}
.sidebar-user-menu__popover [data-logout] {
    color: var(--danger);
}
.sidebar-user-menu__popover [data-logout]:hover:not(:disabled) {
    background: var(--danger-soft);
    color: var(--danger);
}

.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, 0.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;
}
.language-picker {
    position: relative;
}
.language-picker__trigger {
    min-height: 36px;
    padding: 5px 9px 5px 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    color: var(--ink);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}
.language-picker__trigger:hover,
.language-picker__trigger[aria-expanded="true"] {
    border-color: var(--brand-300);
    background: var(--brand-50);
}
.flag-circle {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.flag-circle svg {
    width: 100%;
    height: 100%;
    display: block;
}
.language-picker__trigger > .icon {
    width: 15px;
    height: 15px;
    color: var(--brand-700);
    stroke-width: 2.5;
}
.language-picker__menu {
    width: 176px;
    padding: 5px;
    position: absolute;
    z-index: 60;
    top: calc(100% + 8px);
    right: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    box-shadow: var(--shadow-md);
}
.language-picker__menu button {
    width: 100%;
    min-height: 38px;
    padding: 7px 8px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
}
.language-picker__menu button:hover,
.language-picker__menu button.is-active {
    background: var(--brand-50);
    color: var(--brand-900);
}
.language-picker__menu button.is-unavailable {
    color: #81908b;
    cursor: not-allowed;
}
.language-picker__menu button.is-unavailable .flag-circle {
    opacity: 0.72;
}
.language-picker__menu button small {
    margin-left: auto;
    color: #83918c;
    font-size: 10px;
    font-weight: 650;
}
.language-picker__menu .icon {
    width: 15px;
    height: 15px;
    margin-left: auto;
}
.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: "";
}
.sync-state .icon {
    width: 15px;
    height: 15px;
}
.staff-main {
    width: 100%;
    min-height: calc(100vh - 68px);
    padding: 30px clamp(20px, 3vw, 40px) 36px;
    background: #f3f4f0;
}
.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, 0.18);
    border-radius: 50%;
    box-shadow:
        0 0 0 42px rgba(255, 255, 255, 0.04),
        0 0 0 84px rgba(255, 255, 255, 0.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, 0.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, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.kpi-grid {
    margin-bottom: 22px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}
.kpi-card {
    width: 100%;
    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);
    color: var(--ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}
.kpi-card:hover {
    border-color: #c5d7d4;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.kpi-card:focus-visible {
    outline: 3px solid rgba(0, 72, 49, 0.2);
    outline-offset: 2px;
}
.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, 0.7fr);
    gap: 18px;
}
.dashboard-grid + .dashboard-grid {
    margin-top: 18px;
}
.workstreams-card {
    margin-top: 18px;
}
.workstreams-card .card__header {
    align-items: center;
    padding-bottom: 2px;
}
.workstreams-card .card__body {
    padding-top: 12px;
}
.workstream-row {
    padding: 16px 0;
}
.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), #51ad89);
    transition: width 0.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 22px;
    position: relative;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
}
.timeline-item::before {
    width: 10px;
    height: 10px;
    position: absolute;
    left: 18px;
    top: 6px;
    border: 2px solid var(--paper);
    border-radius: 50%;
    background: var(--brand-700);
    box-shadow:
        0 0 0 4px var(--paper),
        0 0 0 5px var(--brand-100);
    content: "";
}
.timeline-item::after {
    width: 1px;
    position: absolute;
    left: 23px;
    top: 20px;
    bottom: -1px;
    background: var(--line);
    content: "";
}
.timeline-item:last-child::after {
    display: none;
}
.timeline-time {
    padding-left: 50px;
    color: var(--brand-800);
    font-size: 12px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.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: 0.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);
}
.data-table tbody tr.user-row--self,
.data-table tbody tr.user-row--self:hover {
    background: #e4f4ec;
}
.self-label {
    width: fit-content;
    margin-top: 3px;
    padding: 2px 7px;
    display: block;
    border-radius: 999px;
    background: var(--brand-900);
    color: var(--white);
    font-size: 9px;
    font-weight: 800;
    line-height: 1.45;
}
.self-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--brand-800);
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
}
.self-action .icon {
    width: 15px;
    height: 15px;
}
.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: 0;
    padding: 12px;
    border-radius: var(--radius-md);
    background: #e9ece7;
    transition:
        background 0.16s,
        box-shadow 0.16s;
}
.board-column.is-drop-target {
    background: var(--brand-50);
    box-shadow: inset 0 0 0 2px var(--brand-700);
}
.board-column__title {
    padding: 4px 4px 12px;
    display: flex;
    justify-content: space-between;
    color: #5c6b67;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.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);
    cursor: grab;
    transition:
        box-shadow 0.16s,
        opacity 0.16s,
        transform 0.16s;
}
.task-card:hover {
    box-shadow: var(--shadow-md);
}
.task-card:active {
    cursor: grabbing;
}
.task-card.is-dragging {
    opacity: 0.45;
    transform: rotate(1deg);
}
.task-card__top {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.task-drag-handle {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--brand-50);
    color: var(--brand-700);
}
.task-drag-handle .icon {
    width: 16px;
    height: 16px;
}
.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;
}
.pagination {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--ink-soft);
    font-size: 13px;
}
.pagination__controls {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.pagination__size-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink-soft);
    font-size: 12px;
    white-space: nowrap;
}
.pagination__size {
    width: 68px;
    min-height: 36px;
    padding: 6px 26px 6px 10px;
    border-radius: 9px;
    font-size: 12px;
}
.pagination .nice-select {
    width: 68px;
    flex: 0 0 68px;
}
.pagination .nice-select__menu {
    top: auto;
    right: 0;
    bottom: calc(100% + 6px);
    left: auto;
    width: 84px;
    min-width: 84px;
    max-height: 218px;
}
.pagination__actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.pagination__actions .icon-button {
    width: 40px;
    height: 40px;
}
.pagination__current {
    min-width: 82px;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    text-align: center;
}
.task-card__actions {
    margin-top: 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
}
.task-card__actions .button {
    grid-column: 1 / -1;
    width: 100%;
}
.task-card__actions .status-chip {
    min-height: 35px;
}

.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;
}
.publish-banner--synced {
    border-color: #b9ddca;
    background: var(--success-soft);
}
.publish-banner--synced small {
    color: #267054;
}
.day-tabs {
    margin-bottom: 16px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
}
.day-tabs--guest {
    margin: 2px 0 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line-soft);
}
.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: 0.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: 30px;
}
.mini-stat span {
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.4;
}
.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), #62b995);
}
.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-assurance {
    margin-bottom: 16px;
    padding: 17px 20px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    border: 1px solid #b7d7ca;
    border-radius: 16px;
    background: linear-gradient(115deg, #e8f5ef, #f9fcf9 62%);
}
.report-assurance__icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--brand-900);
    color: white;
}
.report-assurance__icon .icon {
    width: 22px;
    height: 22px;
}
.report-assurance .eyebrow {
    margin-bottom: 3px;
}
.report-assurance strong {
    display: block;
    font-size: 16px;
}
.report-assurance p {
    margin: 3px 0 0;
    color: var(--ink-soft);
    font-size: 13px;
}
.report-assurance__stats {
    display: flex;
    gap: 18px;
}
.report-assurance__stats span {
    display: grid;
    gap: 2px;
    color: var(--ink-soft);
    font-size: 10px;
    white-space: nowrap;
}
.report-assurance__stats b {
    color: var(--brand-900);
    font-size: 17px;
}
.report-card {
    min-height: 246px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    border-color: #dbe4df;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}
.report-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.report-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.report-card__top .tag {
    font-size: 9px;
}
.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: 54px;
    margin-bottom: 18px;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.55;
}
.report-card__foot {
    margin-top: auto;
    display: grid;
    gap: 11px;
}
.report-card__foot > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--ink-soft);
    font-size: 10px;
}
.report-card__foot > span .icon {
    width: 13px;
    height: 13px;
    color: var(--brand-700);
}
.report-principles {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.report-principles article {
    min-height: 106px;
    padding: 17px;
    display: flex;
    gap: 10px;
    border: 1px solid var(--line-soft);
    border-radius: 13px;
    background: var(--paper);
}
.report-principles strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}
.report-principles p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.45;
}

.audit-list {
    display: grid;
}
.audit-row {
    padding: 9px 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: 13px;
}
.audit-row small {
    color: var(--ink-soft);
    font-size: 11.5px;
    line-height: 1.4;
}
.is-hidden {
    display: none !important;
}

.ops-dashboard {
    display: grid;
    gap: 18px;
}
.ops-hero {
    margin-bottom: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.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, 0.17);
    border-radius: 50%;
    box-shadow: 0 0 0 40px rgba(255, 255, 255, 0.04);
    content: "";
}
.ops-greeting h1 {
    margin-bottom: 7px;
    font-size: 30px;
}
.ops-greeting p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}
.ops-greeting .ops-greeting__next {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
}
.ops-greeting .ops-greeting__focus {
    max-width: 66ch;
    margin-top: 9px;
    font-size: 12px;
    line-height: 1.5;
}
.action-alerts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.action-alert {
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    background: var(--paper);
    box-shadow: var(--shadow-sm);
    color: var(--ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}
.action-alert:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.action-alert:focus-visible {
    outline: 3px solid rgba(0, 72, 49, 0.2);
    outline-offset: 2px;
}
.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;
}
.action-alert.success {
    grid-column: 1 / -1;
    min-height: 92px;
    padding-block: 14px;
    flex-direction: row;
    align-items: center;
    border-color: #c8e4d8;
    background: #f4fbf7;
}
.action-alert.success > div {
    margin-right: auto;
}
.action-alert.success strong {
    font-size: 28px;
}
.action-alert__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--brand-800);
    font-size: 11px;
    font-weight: 800;
}
.action-alert__link .icon {
    width: 14px;
    height: 14px;
}
.ops-priority-card .card__header {
    align-items: center;
}
.ops-summary {
    color: var(--ink-soft);
    font-size: 12px;
    white-space: nowrap;
}
.ops-summary span {
    margin-inline: 5px;
    color: var(--brand-300);
}
.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);
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}
.ops-item:hover {
    border-color: #c7d9d3;
    box-shadow: 0 6px 18px rgba(0, 40, 29, 0.06);
}
.ops-item.is-overdue {
    border-color: #efc9c5;
    background: #fffafa;
}
.ops-item__content {
    min-width: 0;
}
.ops-item__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}
.ops-task-state {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--brand-50);
    color: var(--brand-700);
}
.ops-task-state .icon {
    width: 18px;
    height: 18px;
}
.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(0, 40, 29, 0.44);
    opacity: 0;
    animation: fade-in 0.18s forwards;
}
body.has-drawer {
    overflow: hidden;
}
.drawer {
    width: min(560px, 100%);
    position: fixed;
    z-index: 100;
    inset: 0 0 0 auto;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
    overscroll-behavior: contain;
    background: var(--paper);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    animation: slide-in 0.22s forwards;
}
@keyframes slide-in {
    to {
        transform: translateX(0);
    }
}
@keyframes fade-in {
    to {
        opacity: 1;
    }
}
.drawer__header {
    padding: 22px 26px 18px;
    position: relative;
    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, 0.95);
    backdrop-filter: blur(12px);
}
.drawer__header h2 {
    margin: 0;
    font-size: 21px;
    line-height: 1.25;
}
.drawer__body {
    min-height: 0;
    padding: 24px 26px 32px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
}
.drawer__body::-webkit-scrollbar {
    width: 0;
    height: 0;
}
.drawer__required-note {
    margin: 0 0 18px;
    color: var(--ink-soft);
    font-size: 12px;
}
.drawer__required-note span {
    color: var(--danger);
    font-weight: 800;
}
.drawer--form .survey-form {
    gap: 18px;
}
.drawer--form .form-grid {
    gap: 14px 16px;
}
.drawer .field {
    position: relative;
    padding-bottom: 19px;
    gap: 8px;
}
.drawer .field-help {
    line-height: 1.5;
}
.drawer .field-error[data-inline-error] {
    min-height: 16px;
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    font-size: 11px;
    line-height: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.drawer .field-error[data-inline-error][hidden] {
    display: block;
    visibility: hidden;
}
.drawer__footer {
    position: relative;
    margin-top: 12px;
    padding: 16px 0 calc(6px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 10px;
    border-top: 1px solid var(--line-soft);
    background: var(--paper);
}
.drawer__footer > .button {
    min-height: 48px;
}
.drawer__footer > .button:only-child {
    grid-column: 1 / -1;
}
.drawer--detail .detail-section {
    padding: 20px 0;
}
.drawer--detail .detail-section:last-child {
    border-bottom: 0;
}
.drawer--detail .detail-section > h2 {
    font-size: 18px;
    line-height: 1.35;
}
.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: 0.08em;
    text-transform: uppercase;
}
.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}
.credential-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}
.credential-summary .detail-value {
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--brand-50);
}
.credential-summary .detail-value strong {
    overflow-wrap: anywhere;
    word-break: break-word;
}
.detail-value span {
    display: block;
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.35;
}
.detail-value strong {
    display: block;
    margin-top: 2px;
    font-size: 14px;
    line-height: 1.4;
}
.guest-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 18px;
}
.guest-detail-header .person-cell strong {
    font-size: 15px;
}
.guest-detail-header .person-cell small {
    font-size: 12px;
}

.confirm-backdrop {
    position: fixed;
    z-index: 320;
    inset: 0;
    padding: 20px;
    display: grid;
    place-items: center;
    background: rgba(0, 34, 24, 0.42);
    backdrop-filter: blur(3px);
}
.confirm-dialog {
    width: min(430px, 100%);
    padding: 24px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    color: var(--ink);
    box-shadow: 0 24px 60px rgba(0, 40, 29, 0.28);
    animation: menuIn 0.16s ease-out;
}
.confirm-dialog__icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--danger-soft);
    color: var(--danger);
}
.confirm-dialog h2 {
    margin: 0 0 7px;
    font-size: 19px;
}
.confirm-dialog p:not(.eyebrow) {
    margin: 0;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.5;
}
.confirm-dialog__actions {
    grid-column: 1 / -1;
    margin-top: 4px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.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 0.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, 0.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: 0.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, 0.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(0, 40, 29, 0.08), rgba(0, 40, 29, 0.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, 0.16);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.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, 0.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, 0.25);
    background: rgba(255, 255, 255, 0.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, 0.85);
    background: rgba(255, 254, 251, 0.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;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--danger);
}
.emergency-panel h3 .icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}
.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-step > .update-banner {
    margin-bottom: 26px;
}
.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;
}

/* Guest detail polish: preserve a calm, legible touch layout under 430px. */
.guest-hero {
    padding: 26px;
}
.guest-hero time {
    line-height: 1.45;
}
.guest-hero__location {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    line-height: 1.45;
}
.guest-hero__location .icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}
.guest-hero__location span {
    min-width: 0;
    overflow-wrap: anywhere;
}
.guest-section__head {
    gap: 12px;
}
.guest-section__head button,
.guest-section__head a {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
    white-space: nowrap;
}
.pickup-card {
    padding: 20px;
    gap: 17px;
}
.pickup-details {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 7px 13px;
}
.pickup-details span {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    line-height: 1.35;
}
.pickup-details span .icon {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}
.pickup-details span:last-child {
    overflow-wrap: anywhere;
}
.help-grid {
    gap: 12px;
}
.help-card {
    min-height: 146px;
    padding: 18px;
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr;
    align-items: start;
    border-radius: 19px;
    text-align: left;
}
.help-card > span:first-child {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--brand-50);
}
.help-card > span:last-child {
    align-self: end;
    min-width: 0;
}
.help-card strong {
    font-size: 14px;
    line-height: 1.35;
}
.help-card small {
    min-height: 16px;
    font-size: 11px;
}
.help-card--emergency {
    background: linear-gradient(145deg, #fffafa, #fff5f2);
}
.help-card--emergency > span:first-child {
    background: #fff0ed;
}
.guest-scroll-top {
    width: 40px;
    height: 40px;
    position: fixed;
    z-index: 38;
    right: max(16px, env(safe-area-inset-right));
    bottom: calc(80px + env(safe-area-inset-bottom));
    display: grid;
    place-items: center;
    border: 1px solid rgba(0, 72, 49, 0.18);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: var(--brand-800);
    box-shadow: 0 10px 24px rgba(0, 40, 29, 0.17);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px) scale(0.92);
    transition:
        background 180ms ease,
        color 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease,
        opacity 180ms ease,
        visibility 180ms ease;
}
.guest-scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}
.guest-scroll-top:hover {
    background: var(--brand-900);
    color: white;
    box-shadow: 0 12px 26px rgba(0, 40, 29, 0.26);
    transform: translateY(-2px);
}
.guest-scroll-top:active {
    transform: scale(0.94);
}
.guest-scroll-top .icon {
    width: 18px;
    height: 18px;
}
.survey-actions > div:first-child {
    min-width: 0;
}
.autosave-state {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1.35;
    white-space: nowrap;
}
.autosave-state .icon {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}
.guest-profile-card {
    padding: 22px;
    overflow: hidden;
    position: relative;
}
.guest-profile-card::before {
    width: 150px;
    height: 150px;
    position: absolute;
    top: -76px;
    right: -52px;
    border: 1px solid var(--brand-100);
    border-radius: 50%;
    box-shadow: 0 0 0 26px rgba(232, 247, 239, 0.58);
    content: "";
    pointer-events: none;
}
.guest-profile-card__identity {
    min-width: 0;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 13px;
}
.guest-profile-card__avatar {
    width: 54px;
    height: 54px;
    font-size: 15px;
    box-shadow: 0 0 0 5px var(--brand-50);
}
.guest-profile-card__identity .eyebrow {
    margin: 0 0 3px;
    font-size: 9px;
}
.guest-profile-card__identity h2 {
    margin: 0 0 3px;
    font-size: 18px;
    line-height: 1.25;
}
.guest-profile-card__identity p:last-child {
    margin: 0;
    color: var(--ink-soft);
    font-size: 12px;
}
.guest-profile-card__divider {
    height: 1px;
    margin: 20px 0 15px;
    background: var(--line-soft);
}
.guest-profile-card__meta {
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.guest-profile-card__meta > div {
    min-width: 0;
    padding: 12px;
    display: grid;
    gap: 6px;
    border: 1px solid var(--line-soft);
    border-radius: 13px;
    background: rgba(250, 251, 248, 0.82);
}
.guest-profile-card__meta span {
    color: var(--ink-soft);
    font-size: 10px;
    font-weight: 750;
}
.guest-profile-card__meta strong {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.guest-profile-card__actions {
    margin-top: 4px;
    position: relative;
    z-index: 1;
}
.guest-profile-card__actions .button {
    min-height: 44px;
}

/* Guest experience: mobile-first, calm, and resilient on narrow screens. */
.guest-topbar__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.guest-sync-button {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.72);
    color: var(--brand-700);
    cursor: pointer;
    transition:
        background 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}
.guest-sync-button:hover {
    border-color: var(--brand-700);
    background: var(--brand-50);
}
.guest-sync-button:active {
    transform: scale(0.94);
}
.guest-sync-button .icon {
    width: 17px;
    height: 17px;
}
.guest-sync-button.is-loading .icon {
    animation: guest-refresh-spin 800ms linear infinite;
}
.guest-main > * {
    animation: guest-content-enter 260ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}
.guest-main > :nth-child(2) {
    animation-delay: 45ms;
}
.guest-main > :nth-child(3) {
    animation-delay: 80ms;
}
.guest-main > :nth-child(4) {
    animation-delay: 115ms;
}
@keyframes guest-content-enter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes guest-refresh-spin {
    to {
        transform: rotate(360deg);
    }
}
.guest-section__meta {
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 700;
}
.guest-timeline {
    padding: 5px 18px;
}
.guest-timeline .timeline-item {
    min-width: 0;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 0;
}
.guest-timeline .timeline-time {
    padding-left: 0;
    color: var(--coral-dark);
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
}
.guest-timeline .timeline-item > div {
    min-width: 0;
}
.guest-timeline .timeline-item strong {
    overflow-wrap: anywhere;
}
.guest-timeline .timeline-item p {
    overflow-wrap: anywhere;
    line-height: 1.45;
}
.guest-hero {
    isolation: isolate;
}
.guest-hero::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(115deg, rgba(0, 72, 49, 0.14), transparent 55%);
    content: "";
}
.guest-hero__actions .button {
    min-height: 44px;
}
.help-card {
    min-height: 126px;
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}
.help-card:hover {
    border-color: var(--brand-300);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.help-card small {
    margin-top: 5px;
    display: block;
    font-size: 11px;
    line-height: 1.45;
}
.keep-link {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}
.keep-link > .icon {
    flex: 0 0 auto;
    margin-top: 1px;
}
.keep-link strong {
    display: block;
    margin-bottom: 1px;
    color: var(--ink);
    font-size: 12px;
}
.guest-day-tabs {
    margin: 0 -2px 18px;
    padding: 2px 2px 8px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.guest-day-tabs::-webkit-scrollbar {
    display: none;
}
.guest-day-tab {
    min-width: 88px;
    min-height: 54px;
    padding: 8px 11px;
    display: grid;
    align-content: center;
    gap: 2px;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.62);
    color: var(--ink-soft);
    text-align: left;
    cursor: pointer;
    transition:
        background 180ms ease,
        border-color 180ms ease,
        color 180ms ease,
        transform 180ms ease;
}
.guest-day-tab span {
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.05em;
}
.guest-day-tab strong {
    color: inherit;
    font-size: 12px;
}
.guest-day-tab.active {
    border-color: var(--brand-700);
    background: var(--brand-900);
    color: white;
    box-shadow: 0 8px 18px rgba(0, 72, 49, 0.18);
}
.guest-day-tab:active {
    transform: scale(0.97);
}
.guest-day__title {
    align-items: flex-end;
    gap: 14px;
}
.guest-day__title > div {
    min-width: 0;
}
.guest-day__title .eyebrow {
    margin: 0 0 3px;
    display: block;
}
.guest-day__title > span {
    max-width: 128px;
    text-align: right;
    line-height: 1.4;
}
.schedule-card {
    grid-template-columns: 62px minmax(0, 1fr);
}
.schedule-card time {
    white-space: nowrap;
}
.schedule-card h3,
.schedule-card p {
    overflow-wrap: anywhere;
}
.guest-contact .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.survey-stepper {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
}
.survey-stepper__item {
    min-width: 0;
    min-height: 58px;
    padding: 6px 3px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 4px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--ink-soft);
    cursor: pointer;
    transition:
        background 180ms ease,
        color 180ms ease,
        transform 180ms ease;
}
.survey-stepper__item > span {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--white);
    color: inherit;
    font-size: 10px;
    font-weight: 850;
}
.survey-stepper__item > span .icon {
    width: 13px;
    height: 13px;
}
.survey-stepper__item small {
    width: 100%;
    overflow: hidden;
    font-size: 8px;
    font-weight: 750;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.survey-stepper__item.done,
.survey-stepper__item.active {
    color: var(--brand-800);
}
.survey-stepper__item.done > span {
    border-color: var(--brand-300);
    background: var(--brand-100);
}
.survey-stepper__item.active {
    background: var(--brand-50);
}
.survey-stepper__item.active > span {
    border-color: var(--brand-700);
    background: var(--brand-900);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 72, 49, 0.18);
}
.survey-stepper__item:active {
    transform: scale(0.95);
}
.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(0, 40, 29, 0.05), rgba(0, 40, 29, 0.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, 0.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 (min-width: 901px) and (max-height: 720px) {
    .auth-panel {
        padding-top: 38px;
        padding-bottom: 56px;
        place-content: start center;
    }
}

@media (max-width: 900px) {
    .report-assurance {
        grid-template-columns: auto minmax(0, 1fr);
    }
    .report-assurance__stats {
        grid-column: 1 / -1;
        padding-left: 60px;
    }
    .report-principles {
        grid-template-columns: 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,
    .sidebar-collapse-toggle {
        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, 0.93);
        backdrop-filter: blur(16px);
    }
    .mobile-topbar .brand-mark {
        width: 34px;
        height: 34px;
    }
    .mobile-topbar .language-picker__trigger {
        min-height: 38px;
        padding-inline: 8px;
    }
    .report-assurance {
        padding: 15px;
        grid-template-columns: auto minmax(0, 1fr);
    }
    .report-assurance__stats {
        padding-left: 0;
    }
    .pagination {
        align-items: flex-start;
        flex-direction: column;
    }
    .pagination__controls {
        width: 100%;
        justify-content: space-between;
    }
    .staff-main {
        min-height: calc(100vh - 62px);
        padding: 20px 14px 22px;
    }
    .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, 0.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);
    }
    .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%;
    }
    .section-heading > .inline {
        width: 100%;
        align-items: stretch;
        flex-wrap: wrap;
    }
    .section-heading > .inline .button {
        width: auto;
        flex: 1 1 140px;
    }
    .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;
    }
    .task-card {
        cursor: default;
    }
    .task-drag-handle {
        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 > div:first-child {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .survey-actions .autosave-state {
        justify-content: center;
        text-align: center;
    }
    .survey-actions .button {
        width: 100%;
    }
    .activity-editor-card {
        grid-template-columns: 58px minmax(0, 1fr);
    }
    .activity-editor-card > :last-child {
        grid-column: 1 / -1;
    }
}

.profile-page-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}
.profile-summary-card {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(240px, 0.8fr);
    align-items: center;
    gap: 20px;
    padding: 24px;
}
.profile-summary-card__avatar {
    width: 68px;
    height: 68px;
    font-size: 20px;
}
.profile-summary-card h2 {
    margin: 4px 0;
}
.profile-summary-card p {
    margin: 0 0 10px;
}
.profile-summary-card dl {
    margin: 0;
    display: grid;
    gap: 11px;
}
.profile-summary-card dl div {
    display: grid;
    gap: 3px;
}
.profile-summary-card dt,
.profile-summary-card dd {
    margin: 0;
}
.profile-summary-card dt,
.guest-document-row small {
    color: var(--ink-soft);
    font-size: 12px;
}
.profile-summary-card dd {
    font-weight: 650;
}
.profile-trips-card {
    grid-column: span 2;
}
.profile-trip-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: grid;
    gap: 10px;
}
.profile-trip-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.profile-trip-list li:last-child {
    border-bottom: 0;
}
.profile-trip-list span {
    color: var(--ink-soft);
    font-size: 13px;
}
.profile-page-grid .card__body > .field-help {
    margin: 10px 0 22px;
    line-height: 1.55;
}
.guest-documents {
    display: grid;
    gap: 18px;
}
.guest-document-upload {
    border: 1px dashed var(--brand-700);
    border-color: color-mix(in srgb, var(--brand-700) 38%, var(--line));
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    background: var(--brand-50);
    background: color-mix(in srgb, var(--brand-50) 56%, white);
}
.guest-document-upload .field {
    margin: 0;
}
.guest-document-upload .button {
    min-height: 46px;
    white-space: nowrap;
}
.guest-document-upload > .button {
    width: 100%;
}
.guest-document-file {
    min-width: 0;
}
.document-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}
.document-dropzone {
    width: 100%;
    min-height: 116px;
    margin-top: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 13px;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    appearance: none;
    border: 2px dashed var(--brand-700);
    border-color: color-mix(in srgb, var(--brand-700) 48%, var(--line));
    border-radius: 13px;
    background: var(--brand-50);
    background: color-mix(in srgb, var(--brand-50) 42%, white);
    transition:
        border-color 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}
.document-dropzone:hover,
.document-dropzone:focus-visible,
.document-dropzone.is-dragover {
    outline: none;
    border-color: var(--brand-700);
    background: color-mix(in srgb, var(--brand-50) 78%, white);
}
.document-dropzone.is-dragover {
    background: color-mix(in srgb, var(--brand-700) 10%, white);
    box-shadow:
        0 0 0 4px color-mix(in srgb, var(--brand-700) 14%, transparent),
        0 10px 24px color-mix(in srgb, var(--brand-700) 16%, transparent);
    animation: document-dropzone-active 1.1s ease-in-out infinite;
}
.document-dropzone.has-file {
    border-style: solid;
    border-color: color-mix(in srgb, var(--brand-700) 62%, var(--line));
    background: color-mix(in srgb, var(--brand-50) 86%, white);
}
.document-dropzone__icon {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--brand-700);
    border-radius: 12px;
    background: white;
    box-shadow: inset 0 0 0 1px
        color-mix(in srgb, var(--brand-700) 15%, transparent);
}
.document-dropzone__icon .icon {
    width: 21px;
    height: 21px;
}
.document-dropzone__copy {
    display: grid;
    min-width: 0;
    gap: 2px;
}
.document-dropzone__copy strong {
    font-size: 14px;
}
.document-dropzone__copy small,
.document-dropzone__copy em {
    overflow: hidden;
    color: var(--ink-soft);
    font-size: 12px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.document-dropzone__copy em {
    margin-top: 4px;
    color: var(--brand-700);
}
.guest-document-list {
    display: grid;
    gap: 10px;
}
.guest-document-list-section {
    display: grid;
    gap: 12px;
    padding-top: 4px;
}
.guest-document-list-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 4px;
    border-top: 1px solid var(--line-soft);
}
.guest-document-list-heading h4 {
    margin: 14px 0 0;
    color: var(--ink-soft);
    font-size: 12px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}
.guest-document-list-count {
    display: inline-grid;
    min-width: 26px;
    min-height: 26px;
    margin-top: 10px;
    padding: 4px 8px;
    place-items: center;
    border-radius: 999px;
    background: var(--brand-50);
    color: var(--brand-800);
    font-size: 12px;
    font-weight: 800;
}
.guest-document-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
}
.guest-document-row > div:first-child {
    display: grid;
    gap: 4px;
    min-width: 0;
}
.guest-document-row strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.guest-document-row__type {
    color: var(--brand-700);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
@media (max-width: 760px) {
    .profile-page-grid {
        grid-template-columns: 1fr;
    }
    .profile-summary-card,
    .profile-trips-card {
        grid-column: auto;
    }
    .profile-summary-card {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 14px;
    }
    .profile-summary-card dl {
        grid-column: 1 / -1;
        border-top: 1px solid var(--line);
        padding-top: 14px;
    }
    .guest-document-row {
        align-items: flex-start;
        flex-direction: column;
    }
    .guest-document-row .inline {
        width: 100%;
    }
    .guest-document-row .button {
        flex: 1;
    }
}

@keyframes document-dropzone-active {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.015);
    }
}

.linked-task-list {
    display: grid;
    gap: 8px;
}
.linked-task-row,
.linked-issue-row {
    width: 100%;
    min-height: 48px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
    color: var(--ink);
    cursor: pointer;
    text-align: left;
    transition:
        border-color 180ms ease,
        background 180ms ease,
        transform 180ms ease;
}
.linked-task-row:hover,
.linked-issue-row:hover {
    border-color: var(--brand-400);
    background: var(--brand-50);
    transform: translateY(-1px);
}
.linked-task-row > span:nth-child(2),
.linked-issue-row > span:nth-child(2) {
    min-width: 0;
    display: grid;
    gap: 3px;
}
.linked-task-row strong,
.linked-issue-row strong,
.linked-task-row small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.linked-task-row small {
    color: var(--ink-soft);
}
.task-issue-context {
    margin-bottom: 6px;
    padding: 14px !important;
    border: 1px solid var(--brand-100) !important;
    border-radius: var(--radius-sm);
    background: var(--brand-50);
}
.form-message--info {
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px solid #e8c98f;
    border-radius: var(--radius-sm);
    background: var(--warning-soft);
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.45;
}
@media (max-width: 560px) {
    .linked-task-row,
    .linked-issue-row {
        align-items: start;
    }
    .linked-task-row > span:first-child {
        grid-column: 1 / -1;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.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;
}
.board-column__tasks {
    min-height: 100px;
}
.board-column .empty-state {
    min-height: 100px;
    padding: 18px 12px;
}
.board-column .empty-state__icon {
    width: 42px;
    height: 42px;
    margin-bottom: 8px;
    border-radius: 12px;
}
.itinerary-editor-column {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 16px;
}
.itinerary-days-panel,
.itinerary-day-panel {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-sm);
}
.itinerary-panel-heading,
.selected-day-header,
.itinerary-activity-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}
.itinerary-panel-heading {
    margin-bottom: 16px;
}
.itinerary-panel-heading h2,
.selected-day-header h2,
.itinerary-activity-heading h3 {
    margin: 2px 0 4px;
    color: var(--ink);
}
.itinerary-panel-heading h2,
.selected-day-header h2 {
    font-size: 20px;
}
.itinerary-activity-heading h3 {
    font-size: 16px;
}
.itinerary-panel-heading p:not(.eyebrow),
.selected-day-header p:not(.eyebrow),
.itinerary-activity-heading p:not(.eyebrow) {
    margin: 0;
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.5;
}
.itinerary-days-panel .day-tabs {
    margin: 0;
    padding: 2px 2px 4px;
    flex-wrap: nowrap;
}
.itinerary-days-panel .day-tab {
    min-width: 142px;
    min-height: 88px;
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
    text-align: left;
}
.itinerary-days-panel .day-tab strong {
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}
.itinerary-days-panel .day-tab small {
    width: 100%;
    overflow: hidden;
    font-size: 11px;
    opacity: 0.78;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.selected-day-header {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line-soft);
}
.selected-day-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}
.itinerary-activity-heading {
    margin: 18px 0 14px;
    align-items: center;
}
.itinerary-activity-list {
    display: grid;
    gap: 10px;
}
.itinerary-activity-list .activity-editor-card {
    margin: 0;
}
.activity-editor-card.is-live {
    border: 2px dashed var(--coral);
    background: #fffaf6;
    box-shadow: 0 0 0 3px rgba(239, 117, 79, 0.07);
}

@media (max-width: 720px) {
    .itinerary-days-panel,
    .itinerary-day-panel {
        padding: 14px;
    }
    .itinerary-panel-heading,
    .selected-day-header,
    .itinerary-activity-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }
    .selected-day-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .selected-day-actions .button,
    .itinerary-activity-heading .button {
        width: 100%;
    }
    .itinerary-days-panel .day-tab {
        min-width: 126px;
    }
}
.trip-switcher .select {
    margin-top: 6px;
    width: 100%;
    font-size: 13px;
}
.trip-switcher .button {
    margin-top: 8px;
    width: 100%;
    color: rgba(255, 255, 255, 0.85);
}
.trip-switcher .button--trip-create {
    color: #163326;
}
.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: 0.55;
}
.tag--button {
    cursor: pointer;
    border: 1px dashed var(--brand-700);
    background: var(--brand-50);
    transition: background 0.15s;
}
.tag--button:hover {
    background: var(--brand-100);
}
.activity-editor-card.is-cancelled {
    opacity: 0.5;
}
.sync-state {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-chips {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}
.status-chips--actions {
    gap: 8px;
}
.status-chip {
    text-align: center;
}
.status-chip.status-todo {
    border-color: #a6d9c8;
    color: var(--brand-800);
    background: var(--brand-50);
}
.status-chip.status-in_progress {
    border-color: #efd39a;
    color: #875b1f;
    background: var(--warning-soft);
}
.status-chip.status-blocked {
    border-color: #efbeb9;
    color: #9f3632;
    background: var(--danger-soft);
}
.status-chip.status-done {
    border-color: #b9ddca;
    color: #267054;
    background: var(--success-soft);
}
.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 0.15s,
        color 0.15s,
        background 0.15s,
        transform 0.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: 0.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(0, 40, 29, 0.18);
    animation: menuIn 0.12s ease-out;
    scrollbar-width: none;
}
.nice-select__menu--up {
    top: auto;
    bottom: calc(100% + 6px);
}
.nice-select__menu::-webkit-scrollbar {
    width: 0;
    height: 0;
}
@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;
}
.no-special-requirements {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 650;
}
.no-special-requirements::before {
    content: "—";
}

.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 0.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 > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.quick-link strong,
.quick-link small {
    display: block;
}
.quick-link small {
    color: var(--ink-soft);
    line-height: 1.45;
}
.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;
}

/* Responsive hardening: preserve task flows while prioritising the primary action on touch. */
button,
.nav-item,
.guest-nav-item,
.help-card,
.quick-link,
.status-chip,
.tag--button,
.ai-pick {
    touch-action: manipulation;
}

@media (max-width: 720px) {
    .inline,
    .trip-hero__actions {
        width: 100%;
        flex-wrap: wrap;
    }
    .inline > .button,
    .inline > a.button,
    .trip-hero__actions > .button {
        flex: 1 1 180px;
    }
    .recommendation {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 12px;
        padding: 16px;
    }
    .recommendation .button {
        grid-column: 1 / -1;
        width: 100%;
    }
    .drawer {
        width: 100%;
    }
    .drawer__header {
        padding: calc(16px + env(safe-area-inset-top)) 16px 16px;
    }
    .drawer__body {
        padding: 20px 16px calc(24px + env(safe-area-inset-bottom));
    }
    .drawer__footer {
        grid-template-columns: 1fr;
        padding-bottom: calc(4px + env(safe-area-inset-bottom));
    }
    .drawer__footer > .button:only-child {
        grid-column: auto;
    }
    .toast-region {
        right: 12px;
        bottom: calc(82px + env(safe-area-inset-bottom));
        left: 12px;
    }
    .toast {
        width: 100%;
    }
    .nice-select__menu {
        width: 100%;
        max-width: 100%;
    }
    .guest-hero__actions {
        width: 100%;
    }
    .guest-hero__actions .button {
        flex: 1 1 140px;
    }
    .ops-dashboard {
        gap: 14px;
    }
    .ops-greeting {
        min-height: 210px;
        padding: 22px;
    }
    .action-alerts {
        grid-template-columns: 1fr;
    }
    .action-alert.success {
        grid-column: auto;
    }
    .ops-priority-card .card__header {
        align-items: flex-start;
    }
    .ops-summary {
        white-space: normal;
    }
    .ops-item {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
    }
    .ops-item__actions {
        grid-column: 1 / -1;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    .ops-item__actions .button {
        flex: 1 1 132px;
    }
}

@media (max-width: 430px) {
    .staff-main {
        padding-right: 12px;
        padding-left: 12px;
    }
    .guest-container,
    .survey-container {
        padding-right: 14px;
        padding-left: 14px;
    }
    .guest-hero {
        min-height: 270px;
        padding: 22px;
        border-radius: 20px;
    }
    .guest-hero h2 {
        font-size: 24px;
    }
    .guest-hero__actions .button {
        width: 100%;
        flex: 0 0 auto;
    }
    .guest-hero__actions {
        flex-direction: column;
    }
    .guest-topbar {
        padding-right: 14px;
        padding-left: 14px;
    }
    .guest-brand {
        gap: 7px;
        font-size: 10px;
    }
    .guest-sync-button {
        width: 32px;
        height: 32px;
    }
    .locale-switch button {
        min-height: 30px;
        padding-right: 7px;
        padding-left: 7px;
    }
    .guest-timeline {
        padding-right: 14px;
        padding-left: 14px;
    }
    .guest-timeline .timeline-item {
        grid-template-columns: 58px minmax(0, 1fr);
    }
    .guest-timeline .timeline-item strong {
        font-size: 12px;
    }
    .pickup-card {
        gap: 12px;
        grid-template-columns: 64px minmax(0, 1fr);
        padding: 15px;
    }
    .pickup-photo {
        width: 64px;
        height: 74px;
    }
    .pickup-card h3 {
        font-size: 18px;
    }
    .pickup-actions {
        gap: 8px;
    }
    .pickup-actions .button {
        min-width: 0;
        padding-right: 9px;
        padding-left: 9px;
        font-size: 12px;
    }
    .guest-day__title h2 {
        font-size: 19px;
    }
    .guest-day__title > span {
        max-width: 110px;
        font-size: 10px;
    }
    .schedule-card {
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 9px;
        padding: 14px;
    }
    .survey-container {
        padding-top: 26px;
    }
    .survey-progress {
        margin-bottom: 25px;
    }
    .survey-stepper {
        gap: 6px;
    }
    .survey-stepper__item {
        min-height: 48px;
        padding: 4px 1px;
    }
    .survey-stepper__item small {
        display: none;
    }
    .help-grid {
        gap: 10px;
    }
    .help-card {
        min-height: 138px;
        padding: 15px;
    }
    .help-card > span:first-child {
        width: 36px;
        height: 36px;
    }
    .help-card strong {
        font-size: 13px;
    }
    .help-card small {
        font-size: 10px;
    }
    .guest-profile-card {
        padding: 20px;
    }
    .guest-profile-card__meta {
        gap: 8px;
    }
    .guest-profile-card__meta > div {
        padding: 10px;
    }
    .detail-grid,
    .drawer-actions {
        grid-template-columns: 1fr;
    }
    .guest-contact {
        grid-template-columns: 46px minmax(0, 1fr) auto;
        gap: 10px;
    }
    .guest-contact .avatar {
        width: 46px;
        height: 46px;
    }
}

@media (max-height: 540px) and (orientation: landscape) {
    .guest-topbar,
    .mobile-topbar {
        height: 54px;
    }
    .guest-main {
        padding-top: 10px;
    }
    .guest-greeting {
        margin-bottom: 12px;
    }
    .guest-hero {
        min-height: 230px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
