:root {
    color-scheme: light;
    --bg: #f6f7fb;
    --surface: #ffffff;
    --surface-soft: #eef7f5;
    --text: #172033;
    --muted: #64748b;
    --line: #d8e0ea;
    --primary: #0f766e;
    --primary-strong: #115e59;
    --blue: #2563eb;
    --amber: #b45309;
    --red: #b91c1c;
    --green: #15803d;
    --radius: 8px;
    --shadow: 0 10px 28px rgba(15, 23, 42, .08);
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0f172a;
    --surface: #162033;
    --surface-soft: #143a38;
    --text: #e5edf7;
    --muted: #9fb0c5;
    --line: #334155;
    --primary: #14b8a6;
    --primary-strong: #5eead4;
    --blue: #93c5fd;
    --amber: #fbbf24;
    --red: #fca5a5;
    --green: #86efac;
    --shadow: 0 12px 30px rgba(0, 0, 0, .28);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 82px;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.45;
    letter-spacing: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.app-shell {
    min-height: 100vh;
    padding-bottom: 0;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 300;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.topbar-inner,
.main {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 12px 16px;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.topbar-actions,
.auth-head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-actions {
    flex: 0 0 auto;
}

.auth-head {
    justify-content: space-between;
}

.auth-head-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.auth-version {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 4px 9px;
    border: 1px solid rgba(15, 118, 110, .22);
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--primary-strong);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    white-space: nowrap;
}

.primary-nav {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
}

.theme-toggle {
    display: inline-flex;
    width: auto;
    min-width: 126px;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 12px;
}

.theme-toggle-icon {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border-radius: 50%;
    color: #111827;
    background: currentColor;
    box-shadow: inset -5px 0 0 #fff, 0 0 0 1px rgba(15, 23, 42, .12);
    transition: background .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease;
}

.theme-toggle-icon::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, .14);
    opacity: .5;
    transition: opacity .18s ease, transform .18s ease;
}

.theme-toggle-icon::after {
    content: "";
    position: absolute;
    display: none;
}

.theme-toggle-label {
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
}

:root[data-theme="dark"] .theme-toggle-icon::before {
    opacity: .55;
    transform: scale(1.08);
}

:root[data-theme="dark"] .theme-toggle-icon {
    color: #facc15;
    background: currentColor;
    box-shadow:
        0 -8px 0 -6px currentColor,
        0 8px 0 -6px currentColor,
        8px 0 0 -6px currentColor,
        -8px 0 0 -6px currentColor,
        6px 6px 0 -6px currentColor,
        -6px -6px 0 -6px currentColor,
        6px -6px 0 -6px currentColor,
        -6px 6px 0 -6px currentColor;
}

.topbar-help-toggle {
    min-height: 38px;
    padding: 0 11px;
    border-color: rgba(37, 99, 235, .18);
    background: #eff6ff;
    color: var(--blue);
}

.topbar-help-toggle[hidden] {
    display: none;
}

.topbar-help-icon {
    display: inline-grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 999px;
    background: rgba(37, 99, 235, .12);
    font-size: 13px;
    font-weight: 900;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.brand-mark,
.avatar {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 900;
}

.brand-logo {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--line);
    background: #fff;
}

.brand-preview {
    width: min(180px, 100%);
    max-height: 120px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 8px;
}

.brand-title {
    display: block;
    font-size: 17px;
    font-weight: 900;
}

.brand-subtitle {
    display: block;
    max-width: 52vw;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.main {
    padding-top: 18px;
    padding-bottom: 34px;
}

.bottom-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
    padding: 10px 16px;
    scrollbar-width: none;
    backdrop-filter: blur(18px);
}

.bottom-nav::-webkit-scrollbar,
.primary-nav::-webkit-scrollbar {
    display: none;
}

.nav-section {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
}

.nav-section-label {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(216, 224, 234, .78);
    border-radius: calc(var(--radius) + 4px);
    background: rgba(255, 255, 255, .72);
    color: var(--text);
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
    white-space: nowrap;
}

.nav-section-label::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

.nav-section-label:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.nav-section:has(.active) .nav-section-label {
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, .14);
    background: var(--surface-soft);
    color: var(--primary-strong);
}

.nav-section-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 40;
    display: grid;
    min-width: 190px;
    gap: 4px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 4px);
    background: var(--surface);
    box-shadow: 0 18px 42px rgba(15, 23, 42, .14);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity .16s ease, transform .16s ease;
}

.nav-section:last-child .nav-section-menu {
    right: 0;
    left: auto;
}

.nav-section:hover .nav-section-menu,
.nav-section:focus-within .nav-section-menu,
.nav-section[data-open="true"] .nav-section-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-section-menu::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 100%;
    left: 0;
    height: 8px;
}

.bottom-nav a,
.primary-nav a {
    position: relative;
    display: inline-flex;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
    min-height: 42px;
    padding: 0 12px;
    border-radius: var(--radius);
    outline-offset: 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    transition: background-color .18s ease, box-shadow .18s ease, color .18s ease;
    white-space: nowrap;
}

.bottom-nav a:hover,
.primary-nav a:hover {
    background: rgba(15, 118, 110, .08);
    color: var(--primary-strong);
}

.bottom-nav a:focus-visible,
.primary-nav a:focus-visible {
    outline: 2px solid var(--primary);
}

.bottom-nav a.active,
.primary-nav a.active {
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, .14), 0 8px 20px rgba(15, 118, 110, .14);
    background: var(--surface-soft);
    color: var(--primary-strong);
}

.bottom-nav a.active::before,
.primary-nav a.active::before {
    content: "";
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 999px;
    background: currentColor;
}

.nav-label {
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-badge {
    position: static;
    display: grid;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    place-items: center;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-size: 10px;
    line-height: 18px;
}

.page-head {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
}

.page-title {
    margin: 0;
    font-size: 26px;
    line-height: 1.1;
}

.page-kicker {
    margin: 5px 0 0;
    color: var(--muted);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.grid {
    display: grid;
    gap: 12px;
}

.dashboard-section {
    margin-top: 14px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px;
}

.metric-value {
    display: block;
    font-size: 24px;
    font-weight: 900;
}

.metric-label,
.muted {
    color: var(--muted);
}

.dashboard-progress {
    overflow: hidden;
    height: 12px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: #e2e8f0;
}

.dashboard-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--primary);
}

.report-chart-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.report-chart {
    display: grid;
    gap: 12px;
}

.chart-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.chart-bars {
    display: grid;
    gap: 12px;
}

.chart-row {
    display: grid;
    gap: 6px;
}

.chart-row-main {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.chart-label {
    overflow: hidden;
    color: #334155;
    font-size: 13px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chart-value {
    flex: 0 0 auto;
    color: var(--text);
    font-size: 13px;
    white-space: nowrap;
}

.chart-track {
    overflow: hidden;
    height: 12px;
    border-radius: 999px;
    background: #e2e8f0;
}

.chart-track span {
    display: block;
    min-width: 3px;
    height: 100%;
    border-radius: inherit;
    background: var(--primary);
}

.section-title {
    margin: 0 0 10px;
    font-size: 17px;
}

.list {
    display: grid;
    gap: 10px;
}

.list-item {
    display: grid;
    gap: 6px;
    padding: 12px 12px 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.notification-unread {
    border-color: rgba(15, 118, 110, .45);
    background: #f0fdfa;
}

.list-title {
    margin: 0;
    font-weight: 900;
}

.list-meta {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.list-item input {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #f8fafc;
    color: var(--text);
}

.badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 26px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-size: 12px;
    font-weight: 900;
}

.badge.success { background: #dcfce7; color: var(--green); }
.badge.info { background: #dbeafe; color: var(--blue); }
.badge.warning { background: #fef3c7; color: var(--amber); }
.badge.danger { background: #fee2e2; color: var(--red); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    font-weight: 900;
    text-align: center;
    white-space: nowrap;
}

.btn.secondary {
    background: #fff;
    border-color: var(--line);
    color: var(--text);
}

.form-grid {
    display: grid;
    gap: 12px;
}

.field {
    display: grid;
    gap: 6px;
}

.field label {
    color: #334155;
    font-size: 13px;
    font-weight: 900;
}

.field small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 44px;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
}

.native-datetime-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.datetime-picker-display {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.datetime-picker-display:focus-visible {
    border-color: var(--primary);
    outline: 2px solid rgba(15, 118, 110, .18);
    outline-offset: 2px;
}

.datetime-field {
    position: relative;
}

.datetime-popover {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 2200;
    display: grid;
    gap: 12px;
    width: min(420px, calc(100vw - 32px));
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .20);
    animation: agendaHelpIn .18s ease-out both;
}

.datetime-popover-head,
.datetime-popover-actions,
.datetime-time-fields,
.datetime-quick-times {
    display: flex;
    align-items: center;
    gap: 8px;
}

.datetime-popover-head {
    justify-content: space-between;
}

.datetime-popover-head strong {
    color: var(--text);
    font-size: 14px;
}

.datetime-popover-head button {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: #eef2f7;
    color: var(--muted);
    cursor: pointer;
    font-weight: 900;
}

.datetime-picker-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(140px, .65fr);
    gap: 10px;
}

.datetime-time-fields {
    align-items: flex-end;
}

.datetime-time-fields .field {
    flex: 1 1 0;
}

.datetime-quick-times {
    flex-wrap: wrap;
}

.datetime-quick-times button {
    min-height: 30px;
    padding: 4px 8px;
    border: 1px solid rgba(37, 99, 235, .16);
    border-radius: 999px;
    background: #dbeafe;
    color: var(--blue);
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
}

.datetime-popover-actions {
    justify-content: flex-end;
    padding-top: 4px;
    border-top: 1px solid var(--line);
}

.field textarea {
    min-height: 96px;
    resize: vertical;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    color: #334155;
    font-weight: 800;
}

.toggle-grid {
    display: grid;
    gap: 8px;
}

.token-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.token-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    font-weight: 900;
}

.preview-panel {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #f8fafc;
}

.preview-body {
    white-space: pre-wrap;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.segmented {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #f8fafc;
}

.segmented a {
    display: grid;
    place-items: center;
    min-height: 36px;
    border-radius: var(--radius);
    color: var(--muted);
    font-weight: 900;
}

.segmented button {
    display: grid;
    min-height: 36px;
    place-items: center;
    border: 0;
    border-radius: var(--radius);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-weight: 900;
}

.segmented a.active,
.segmented button.active {
    background: #fff;
    color: var(--primary-strong);
    box-shadow: 0 1px 4px rgba(15, 23, 42, .08);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
    isolation: isolate;
}

.calendar-weekday {
    display: grid;
    min-height: 28px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #eef7f5;
    color: var(--primary-strong);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.calendar-day {
    min-height: 86px;
    min-width: 0;
    max-width: 100%;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.calendar-day.muted-day {
    background: #f8fafc;
}

.calendar-date {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}
.calendar-month-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.calendar-pill {
    display: block;
    overflow: hidden;
    width: 100%;
    margin-top: 5px;
    padding: 4px 6px;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-pill.success { background: #dcfce7; color: var(--green); }
.calendar-pill.info { background: #dbeafe; color: var(--blue); }
.calendar-pill.warning { background: #fef3c7; color: var(--amber); }
.calendar-pill.danger { background: #fee2e2; color: var(--red); }
.calendar-pill.neutral { background: #e2e8f0; color: #334155; }

.agenda-day {
    background: #f8fafc;
}

.agenda-head { position: relative; gap: 12px; overflow: visible; }

.agenda-sync-toast {
    position: fixed;
    top: 92px;
    right: 18px;
    z-index: 260;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    width: min(440px, calc(100vw - 36px));
    margin: 0;
    padding: 12px 12px 12px 14px;
    border: 1px solid rgba(15, 118, 110, .22);
    border-radius: 14px;
    background: rgba(240, 253, 250, .96);
    box-shadow: 0 18px 42px rgba(15, 23, 42, .16);
    color: var(--text);
    backdrop-filter: blur(10px);
    animation: agendaToastIn .2s ease-out both;
}

.agenda-sync-toast.payment-update {
    border-color: rgba(21, 128, 61, .28);
    background: linear-gradient(135deg, rgba(240, 253, 244, .98), rgba(255, 251, 235, .96));
    box-shadow: 0 18px 38px rgba(21, 128, 61, .18);
}

.agenda-sync-coins {
    position: relative;
    display: inline-grid;
    width: 34px;
    height: 24px;
    place-items: center;
}

.agenda-sync-coins i {
    position: absolute;
    width: 14px;
    height: 14px;
    border: 2px solid #f59e0b;
    border-radius: 50%;
    background: #fef3c7;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .65), 0 4px 10px rgba(180, 83, 9, .22);
    animation: agendaCoinDrop .72s ease-out both;
}

.agenda-sync-coins i:nth-child(1) {
    left: 1px;
    animation-delay: 0s;
}

.agenda-sync-coins i:nth-child(2) {
    left: 10px;
    animation-delay: .08s;
}

.agenda-sync-coins i:nth-child(3) {
    left: 19px;
    animation-delay: .16s;
}

.agenda-sync-toast strong {
    color: var(--primary-strong);
    font-size: 13px;
}

.agenda-sync-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.agenda-sync-detail {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.agenda-sync-toast button {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 118, 110, .1);
    color: var(--primary-strong);
    cursor: pointer;
    font-weight: 900;
}

.agenda-preview-callout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(37, 99, 235, .18);
    border-radius: var(--radius);
    background: #eff6ff;
    color: var(--text);
    box-shadow: 0 10px 26px rgba(15, 23, 42, .08);
}
.agenda-preview-callout strong {
    color: var(--blue);
    font-size: 13px;
}
.agenda-preview-callout span {
    flex: 1 1 220px;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
}
.agenda-preview-callout button {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 999px;
    background: rgba(37, 99, 235, .1);
    color: var(--blue);
    cursor: pointer;
    font-weight: 900;
}

.agenda-head h1 { font-size: 24px; }
.agenda-head-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
    max-width: 100%;
    overflow: visible;
    padding-bottom: 2px;
}
.agenda-head-controls > * {
    flex: 0 0 auto;
}
.agenda-head-controls .btn,
.agenda-head-controls .segmented,
.agenda-period-nav .btn {
    min-height: 40px;
}
.agenda-head-controls .btn,
.agenda-head-controls .segmented a,
.agenda-head-controls .segmented button {
    border-radius: 10px;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
}
.agenda-head-controls .btn {
    padding: 0 12px;
}
.agenda-head-controls .btn:hover,
.agenda-head-controls .btn:focus-visible,
.preview-help-button:hover,
.preview-help-button:focus-visible {
    border-color: rgba(15, 118, 110, .3);
    background: var(--surface-soft);
    color: var(--primary-strong);
    box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
}
.agenda-head-controls .btn:focus-visible,
.agenda-head-controls .segmented a:focus-visible,
.agenda-head-controls .segmented button:focus-visible,
.preview-help-button:focus-visible {
    outline: 2px solid rgba(15, 118, 110, .28);
    outline-offset: 2px;
}
.agenda-period-nav { display: inline-flex; gap: 6px; }
.agenda-today-btn {
    min-width: 52px;
    padding-inline: 10px;
}
.icon-btn { width: 40px; padding: 0; }
.agenda-view-selector {
    width: 250px;
    flex: 0 1 250px;
    min-height: 40px;
    padding: 3px;
    border-radius: 12px;
}
.agenda-view-selector a,
.agenda-view-selector button {
    min-height: 32px;
}
.agenda-filter-toggle { position: relative; }
.agenda-filter-toggle.has-filters { border-color: rgba(180, 83, 9, .38); background: #fffbeb; }
.agenda-help-toggle,
.preview-help-button {
    flex: 0 0 auto;
    border-color: rgba(37, 99, 235, .18);
    background: #eff6ff;
    color: var(--blue);
}
.agenda-legend-popover {
    position: absolute;
    top: calc(100% + 8px);
    right: 16px;
    z-index: 160;
    width: min(520px, calc(100vw - 32px));
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 22px 56px rgba(15, 23, 42, .18);
}
.agenda-legend-modal {
    display: grid;
    gap: 12px;
    animation: agendaHelpIn .22s ease-out both;
}
.agenda-legend-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}
.agenda-legend-head strong {
    font-size: 15px;
    font-weight: 900;
}
.agenda-legend-head span,
.agenda-legend-grid h2 {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}
.agenda-legend-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.agenda-legend-grid section {
    display: grid;
    gap: 6px;
    min-width: 0;
}
.agenda-legend-grid h2 {
    margin: 0;
}
.agenda-legend-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.agenda-legend-list > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 24px;
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
}
.agenda-legend-line {
    display: inline-block;
    width: 4px;
    height: 22px;
    border-radius: 999px;
}
.agenda-legend-line.agenda-kind-event { background: var(--blue); }
.agenda-legend-line.agenda-kind-task { background: #f59e0b; }
.agenda-legend-line.agenda-kind-reminder { background: #ef4444; }
.agenda-period-surface {
    position: relative;
    transform-origin: center;
    will-change: opacity, transform, filter;
}

.agenda-period-surface.is-next {
    animation: agendaPeriodNext .42s cubic-bezier(.2, .8, .2, 1) both;
}

.agenda-period-surface.is-previous {
    animation: agendaPeriodPrevious .42s cubic-bezier(.2, .8, .2, 1) both;
}

.agenda-period-nav .icon-btn {
    transition:
        background-color .18s ease,
        border-color .18s ease,
        box-shadow .18s ease,
        color .18s ease,
        transform .2s cubic-bezier(.2, .8, .2, 1);
}

.agenda-period-nav .icon-btn svg {
    transition: transform .24s cubic-bezier(.2, .8, .2, 1);
}

.agenda-period-nav .icon-btn:hover,
.agenda-period-nav .icon-btn:focus-visible {
    transform: translateY(-1px);
}

.agenda-period-nav .icon-btn:active {
    transform: scale(.94);
}

.agenda-period-nav .icon-btn:first-child:hover svg,
.agenda-period-nav .icon-btn:first-child:focus-visible svg {
    transform: translateX(-2px);
}

.agenda-period-nav .icon-btn:last-child:hover svg,
.agenda-period-nav .icon-btn:last-child:focus-visible svg {
    transform: translateX(2px);
}

@keyframes agendaPeriodNext {
    0% {
        opacity: .42;
        filter: blur(4px) saturate(.92);
        transform: translateX(28px) scale(.985);
    }
    58% {
        opacity: 1;
        filter: blur(0) saturate(1.04);
        transform: translateX(-3px) scale(1.003);
    }
    100% {
        opacity: 1;
        filter: blur(0) saturate(1);
        transform: translateX(0) scale(1);
    }
}

@keyframes agendaPeriodPrevious {
    0% {
        opacity: .42;
        filter: blur(4px) saturate(.92);
        transform: translateX(-28px) scale(.985);
    }
    58% {
        opacity: 1;
        filter: blur(0) saturate(1.04);
        transform: translateX(3px) scale(1.003);
    }
    100% {
        opacity: 1;
        filter: blur(0) saturate(1);
        transform: translateX(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .agenda-period-surface.is-next,
    .agenda-period-surface.is-previous {
        animation: none;
    }

    .agenda-period-nav .icon-btn,
    .agenda-period-nav .icon-btn svg {
        transition: none;
    }
}
@keyframes agendaHelpIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.agenda-filter-shell {
    display: grid;
    grid-template-rows: 0fr;
    margin-block: -14px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    visibility: hidden;
    transition:
        grid-template-rows .24s ease,
        margin .24s ease,
        opacity .18s ease,
        transform .24s ease,
        visibility 0s linear .24s;
}
.agenda-filter-shell.open {
    grid-template-rows: 1fr;
    margin: 0 0 12px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
    transition-delay: 0s;
}
.agenda-filter-shell > * {
    min-height: 0;
    overflow: hidden;
}
.agenda-filter-panel { padding: 12px; }
.agenda-type-chip {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 24px;
    gap: 5px;
    padding: 3px 8px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
}
.agenda-type-chip.agenda-kind-event {
    border-color: rgba(37, 99, 235, .18);
    background: #dbeafe;
    color: var(--blue);
}
.agenda-type-chip.agenda-kind-task {
    border-color: rgba(180, 83, 9, .22);
    background: #fef3c7;
    color: var(--amber);
}
.agenda-type-chip.agenda-kind-reminder {
    border-color: rgba(185, 28, 28, .18);
    background: #fee2e2;
    color: var(--red);
}
.agenda-month-day {
    display: grid;
    align-content: start;
    gap: 10px;
    min-height: 96px;
    min-width: 0;
    max-width: 100%;
    contain: layout;
    cursor: pointer;
    overflow: visible;
    position: relative;
    text-align: left;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, width .22s ease;
}
.agenda-month-day.agenda-today {
    border-color: var(--blue);
    border-width: 2px;
    background: linear-gradient(180deg, #dbeafe, #eff6ff 48%, #fff);
    box-shadow: inset 0 0 0 2px rgba(37, 99, 235, .18), 0 16px 38px rgba(37, 99, 235, .20);
}
.agenda-month-day.agenda-today .calendar-date {
    color: var(--blue);
    font-size: 15px;
}
.agenda-month-day.agenda-today::before {
    content: "Hoy";
    position: absolute;
    top: -9px;
    left: 10px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.2;
    box-shadow: 0 8px 16px rgba(37, 99, 235, .24);
}
.agenda-today-chip {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 2px 7px;
    border: 1px solid rgba(37, 99, 235, .32);
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}
.agenda-month-day:hover,
.agenda-month-day:focus-visible {
    border-color: rgba(15, 118, 110, .34);
    box-shadow: 0 16px 34px rgba(15, 23, 42, .10);
    outline: 0;
    transform: translateY(-1px);
    z-index: 10;
}
.agenda-month-day:has(.agenda-card:hover),
.agenda-month-day:has(.agenda-card:focus-visible) {
    z-index: 100;
}
.agenda-day-open {
    float: right;
    color: var(--primary-strong);
    font-size: 11px;
    font-weight: 900;
    opacity: 0;
    transition: opacity .16s ease;
}
.agenda-month-day:hover .agenda-day-open,
.agenda-month-day:focus-visible .agenda-day-open { opacity: 1; }
.agenda-workspace {
    display: grid;
    grid-template-columns: repeat(7, minmax(240px, 1fr));
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.agenda-workspace.planning-board { align-items: stretch; }
.agenda-workspace.centered-workweek {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow-x: visible;
}
.agenda-workspace.day-focus {
    grid-template-columns: minmax(0, 1fr);
    overflow-x: visible;
}
.agenda-lane {
    position: relative;
    display: grid;
    align-content: start;
    gap: 10px;
    min-width: 240px;
    max-width: 100%;
    contain: layout;
    overflow: visible;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .78);
    box-shadow: var(--shadow);
}
.agenda-lane:has(.agenda-card:hover),
.agenda-lane:has(.agenda-card:focus-visible) {
    z-index: 120;
}
.planning-day-card { min-height: 430px; }
.centered-workweek .planning-day-card {
    min-width: 0;
}
.mission-control-card {
    min-height: 560px;
    padding: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(248, 250, 252, .92));
}
.agenda-workspace.day-focus .agenda-lane { min-width: 0; }
.agenda-lane-head {
    display: grid;
    gap: 4px;
    justify-items: stretch;
    padding: 4px 2px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}
.agenda-lane-kicker {
    display: grid;
    align-items: center;
    justify-items: center;
    width: 100%;
    min-height: 26px;
    padding: 4px 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #eef7f5;
}
.agenda-lane-kicker span {
    display: block;
    width: 100%;
    color: var(--primary-strong);
    font-size: 12px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}
.agenda-lane-kicker.week-mode {
    width: 100%;
}
.agenda-lane-kicker.day-mode {
    grid-template-columns: auto auto;
    justify-content: start;
    gap: 8px;
    width: fit-content;
}
.agenda-lane-kicker.day-mode span {
    width: auto;
}
.agenda-lane-head strong,
.agenda-lane-date {
    display: inline-flex;
    align-items: baseline;
    width: fit-content;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font: inherit;
    font-size: 17px;
    font-weight: 900;
}
.agenda-lane-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}
.agenda-day-actions {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 5px;
}
.agenda-month-actions {
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease;
}
.agenda-week-actions {
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease;
}
.agenda-month-day:hover .agenda-month-actions,
.agenda-month-day:focus-within .agenda-month-actions,
.planning-day-card:hover .agenda-week-actions,
.planning-day-card:focus-within .agenda-week-actions {
    opacity: 1;
    pointer-events: auto;
}
.agenda-day-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 26px;
    min-height: 24px;
    padding: 2px 7px;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
}
.agenda-day-add.agenda-kind-event {
    border-color: rgba(37, 99, 235, .18);
    background: #dbeafe;
    color: var(--blue);
}
.agenda-day-add.agenda-kind-task {
    border-color: rgba(180, 83, 9, .22);
    background: #fef3c7;
    color: var(--amber);
}
.agenda-day-add.agenda-kind-reminder {
    border-color: rgba(185, 28, 28, .18);
    background: #fee2e2;
    color: var(--red);
}
.agenda-day-add:hover,
.agenda-day-add:focus-visible {
    box-shadow: 0 8px 18px rgba(15, 23, 42, .12);
    outline: 0;
}
.agenda-lane-date:hover,
.agenda-lane-date:focus-visible {
    color: var(--primary-strong);
    outline: 0;
    text-decoration: underline;
}
.agenda-lane-head small { color: var(--muted); font-weight: 800; }
.agenda-lane-counts {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}
.agenda-count-pill {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    min-height: 22px;
    padding: 2px 7px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}
.agenda-count-pill.agenda-kind-event {
    border-color: rgba(37, 99, 235, .18);
    background: #dbeafe;
    color: var(--blue);
}
.agenda-count-pill.agenda-kind-task {
    border-color: rgba(180, 83, 9, .22);
    background: #fef3c7;
    color: var(--amber);
}
.agenda-count-pill.agenda-kind-reminder {
    border-color: rgba(185, 28, 28, .18);
    background: #fee2e2;
    color: var(--red);
}
.agenda-card-stack {
    display: grid;
    gap: 12px;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
}
.agenda-day-schedule {
    display: grid;
    gap: 12px;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
}
.agenda-day-time-group {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    min-width: 0;
    overflow: visible;
}
.agenda-day-time-label {
    position: relative;
    display: flex;
    justify-content: flex-end;
    min-height: 40px;
    padding: 10px 10px 0 0;
    border-right: 2px solid rgba(15, 118, 110, .18);
    color: var(--primary-strong);
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}
.agenda-day-time-label::after {
    content: "";
    position: absolute;
    top: 14px;
    right: -5px;
    width: 8px;
    height: 8px;
    border: 2px solid var(--surface);
    border-radius: 999px;
    background: var(--primary);
    box-shadow: 0 0 0 2px rgba(15, 118, 110, .18);
}
.agenda-day-time-cards {
    display: grid;
    gap: 10px;
    min-width: 0;
    overflow: visible;
}
.agenda-card-shell {
    position: relative;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
}
.agenda-card-shell:hover,
.agenda-card-shell:focus-within {
    z-index: 60;
}
.agenda-card {
    position: relative;
    left: 0;
    display: grid;
    justify-self: start;
    gap: 10px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    padding: 12px 12px 18px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .07);
    color: var(--text);
    cursor: pointer;
    text-align: left;
    z-index: 0;
    transform-origin: left top;
    transition: width .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.agenda-card-placeholder {
    pointer-events: none;
    visibility: hidden;
}
.agenda-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
}
.calendar-day .agenda-card {
    gap: 6px;
    margin-top: 5px;
    padding: 8px 8px 12px;
    border-left-width: 3px;
    box-shadow: none;
}
.agenda-card.compact h3 { font-size: 13px; }
.agenda-card.compact p,
.agenda-card.compact .react-eyebrow { font-size: 11px; }
.agenda-card.compact .agenda-card-time { white-space: nowrap; }
.agenda-card.compact .agenda-card-main { display: grid; gap: 5px; }
.agenda-card.compact .agenda-card-type-row .agenda-type-chip {
    min-height: 20px;
    padding: 2px 6px;
    font-size: 10px;
}
.agenda-card.compact .agenda-card-meta span {
    min-height: 20px;
    padding: 2px 6px;
    font-size: 10px;
}
.agenda-event-card.detailed { gap: 12px; padding: 16px; }
.agenda-event-card.detailed h3 { font-size: 19px; }
.agenda-card:hover,
.agenda-card:focus-visible {
    border-color: rgba(15, 118, 110, .36);
    box-shadow: 0 18px 36px rgba(15, 23, 42, .12);
    outline: 0;
    z-index: 30;
    transform: translateY(-1px);
}

.agenda-card.agenda-card-updated {
    z-index: 70;
    border-color: rgba(37, 99, 235, .88);
    outline: 3px solid rgba(37, 99, 235, .36);
    outline-offset: 3px;
    background:
        linear-gradient(0deg, rgba(239, 246, 255, .98), rgba(255, 255, 255, .98));
    animation: agendaCardUpdated 9s ease-out both;
}

.agenda-card.agenda-card-removing {
    position: relative;
    cursor: default;
    filter: grayscale(.18);
    pointer-events: none;
    animation: agendaCardRemoving 5.2s ease-in both;
}

.agenda-card.agenda-card-removing::after {
    content: "Eliminado";
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(100, 116, 139, .14);
    color: #475569;
    font-size: 11px;
    font-weight: 900;
}
.agenda-card-overlay[data-expandable="true"]:hover,
.agenda-card-overlay[data-expandable="true"]:focus {
    width: var(--agenda-card-hover-width);
    max-width: calc(100vw - 48px);
}
.agenda-event-card.info { border-left-color: var(--blue); }
.agenda-event-card.warning { border-left-color: var(--blue); }
.agenda-event-card.success { border-left-color: var(--green); }
.agenda-event-card.danger { border-left-color: var(--red); }
.agenda-card.agenda-progress-complete { border-left-color: var(--green); }
.agenda-card.agenda-progress-active { border-left-color: #f97316; }
.agenda-card.agenda-progress-empty { border-left-color: var(--red); }
.agenda-event-card.agenda-kind-event { border-left-color: var(--blue); }
.agenda-card.agenda-kind-task { border-left-color: #f59e0b; }
.agenda-card.agenda-kind-reminder { border-left-color: #ef4444; }
.agenda-card-type-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-width: 0;
}
.agenda-card-type-row .react-badge {
    flex: 0 0 auto;
    min-height: 22px;
    padding: 2px 7px;
    font-size: 11px;
}
.agenda-card-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}
.agenda-card-main > div { min-width: 0; }
.agenda-card h3 {
    margin: 2px 0 3px;
    font-size: 16px;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.agenda-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.agenda-event-card h3,
.agenda-event-card p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow-wrap: normal;
}
.agenda-card-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    gap: 6px;
    width: min(100%, 190px);
    min-width: 0;
}
.agenda-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 24px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}
.agenda-card:hover h3,
.agenda-card:focus-visible h3,
.agenda-card:hover p,
.agenda-card:focus-visible p,
.agenda-card:hover .agenda-card-time,
.agenda-card:focus-visible .agenda-card-time,
.agenda-card:hover .agenda-card-time span,
.agenda-card:focus-visible .agenda-card-time span,
.agenda-card:hover .agenda-card-meta span,
.agenda-card:focus-visible .agenda-card-meta span {
    white-space: nowrap;
}
.agenda-card:hover .agenda-card-meta,
.agenda-card:focus-visible .agenda-card-meta {
    width: min(100%, 190px);
}
.agenda-card-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.agenda-card-time svg {
    flex: 0 0 auto;
}
.agenda-card-time span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.payment-marker.payment-paid {
    background: #dcfce7;
    color: var(--green);
}
.payment-marker.payment-partial {
    background: #ffedd5;
    color: #c2410c;
}
.payment-marker.payment-unpaid {
    background: #fee2e2;
    color: var(--red);
}
.agenda-metric {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 24px;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}
.agenda-metric-services {
    background: #dbeafe;
    color: var(--blue);
}
.agenda-metric-tasks.agenda-task-none {
    background: #fee2e2;
    color: var(--red);
}
.agenda-metric-tasks.agenda-task-some {
    background: #fef3c7;
    color: var(--amber);
}
.agenda-metric-tasks.agenda-task-all {
    background: #dcfce7;
    color: var(--green);
}
.agenda-empty-slot {
    padding: 12px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: #f8fafc;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.alert {
    margin-bottom: 12px;
    padding: 11px 12px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #fff;
    font-weight: 800;
}

.alert.error {
    border-color: #fecaca;
    background: #fef2f2;
    color: var(--red);
}

.alert.success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: var(--green);
}

.auth-login-form {
    gap: 10px;
}

.auth-login-error {
    display: flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 10px;
    border: 1px solid #fecaca;
    border-radius: var(--radius);
    background: #fef2f2;
    color: var(--red);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.25;
    animation: agendaHelpIn .18s ease-out both;
}
.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px 16px;
    background: linear-gradient(160deg, #f8fafc 0%, #e0f2fe 52%, #f0fdfa 100%);
}

.auth-card {
    width: 100%;
    max-width: 430px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
}

.auth-head {
    justify-content: space-between;
    margin-bottom: 16px;
}

.auth-card-mfa {
    max-width: 540px;
}

.auth-card-mfa .auth-head {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
}

.auth-card-mfa .auth-head-actions {
    margin-left: auto;
}

.mfa-setup-card {
    gap: 16px;
}

.mfa-qr-field {
    align-items: center;
    text-align: center;
}

.mfa-qr-panel {
    display: grid;
    width: min(100%, 310px);
    margin-inline: auto;
    padding: 20px;
    place-items: center;
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}

.mfa-qr-image {
    display: block;
    width: min(100%, 270px);
    height: auto;
}

.mfa-disclosure {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(248, 250, 252, .72);
}

.mfa-disclosure summary {
    min-height: 44px;
    padding: 11px 12px;
    color: var(--text);
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
    list-style-position: inside;
}

.mfa-disclosure summary:focus-visible {
    border-radius: var(--radius);
    outline: 2px solid rgba(15, 118, 110, .24);
    outline-offset: 2px;
}

.mfa-disclosure-body {
    display: grid;
    gap: 12px;
    padding: 0 12px 12px;
}

.mfa-copy-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.mfa-copy-button {
    min-height: 44px;
    white-space: nowrap;
}

.landing-shell {
    min-height: 100vh;
    overflow-x: hidden;
    background:
        linear-gradient(180deg, #f7f9fc 0%, #eef6f6 44%, #f7f9fc 100%);
}

.landing-nav {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid rgba(216, 224, 234, .8);
    backdrop-filter: blur(14px);
}

.landing-links {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
}

.landing-links a:not(.btn) {
    position: relative;
    color: #334155;
    padding: 7px 2px;
    transition: color .18s ease, transform .18s ease;
}

.landing-links .btn {
    min-height: 40px;
    padding: 8px 16px;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(15, 118, 110, .18);
}

.landing-links a:not(.btn)::after,
.landing-footer-links a::after,
.landing-footer-bottom a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -4px;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0;
    transform: scaleX(.45);
    transform-origin: center;
    transition: opacity .18s ease, transform .18s ease;
}

.landing-links a:not(.btn):hover,
.landing-links a:not(.btn):focus-visible {
    color: var(--primary-strong);
    transform: translateY(-1px);
}

.landing-links a:not(.btn):hover::after,
.landing-links a:not(.btn):focus-visible::after,
.landing-footer-links a:hover::after,
.landing-footer-links a:focus-visible::after,
.landing-footer-bottom a:hover::after,
.landing-footer-bottom a:focus-visible::after {
    opacity: .65;
    transform: scaleX(1);
}

.landing-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 76vh;
    padding: 88px 18px 38px;
    overflow: hidden;
    background-attachment: fixed;
    background-position: center right;
    background-size: cover;
    color: #fff;
}

.landing-hero::before {
    content: "";
    position: absolute;
    inset: -18%;
    z-index: -1;
    background:
        radial-gradient(circle at 16% 22%, rgba(20, 184, 166, .22), transparent 26%),
        radial-gradient(circle at 78% 18%, rgba(59, 130, 246, .18), transparent 30%),
        linear-gradient(115deg, rgba(15, 23, 42, .24), transparent 46%, rgba(15, 118, 110, .16));
    opacity: .9;
    transform: translate3d(0, 0, 0);
    pointer-events: none;
}

@supports (animation-timeline: scroll()) {
    .landing-hero::before {
        animation: landingHeroDrift linear both;
        animation-timeline: scroll(root);
        animation-range: 0 820px;
    }
}

.conversion-hero {
    min-height: 100vh;
    padding-bottom: 54px;
}

.landing-hero-inner {
    width: min(650px, 100%);
    margin: 0 auto;
}

.landing-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    width: min(1380px, calc(100vw - 32px));
    margin: 0 auto;
    align-items: center;
}

.landing-hero-layout > * {
    min-width: 0;
}

.landing-hero-copy {
    max-width: none;
}

.landing-eyebrow {
    margin: 0 0 8px;
    color: #bae6fd;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.landing-hero h1 {
    margin: 0;
    max-width: 1120px;
    font-size: clamp(42px, 7.2vw, 96px);
    line-height: 1.02;
}

.landing-copy {
    max-width: 640px;
    margin: 14px 0 20px;
    color: #e2e8f0;
    font-size: 18px;
}

.landing-demo-note {
    max-width: 520px;
    margin: 10px 0 0;
    color: #dbeafe;
    font-size: 14px;
    font-weight: 800;
}

.landing-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.landing-ghost {
    background: rgba(255, 255, 255, .92);
}

.landing-proof-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.landing-proof-row span {
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #f8fafc;
    font-size: 13px;
    font-weight: 900;
}

.landing-product-preview {
    position: relative;
    z-index: 0;
    display: grid;
    gap: 12px;
    isolation: isolate;
    overflow: visible;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 12px;
    background: rgba(248, 250, 252, .94);
    color: var(--text);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
    scrollbar-width: thin;
    transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.landing-agenda-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    margin-top: clamp(34px, 5vw, 58px);
}

.landing-calendar-preview {
    align-self: center;
    height: clamp(840px, 88vh, 960px);
    max-width: 100%;
    min-width: 0;
    min-height: 840px;
    overflow: visible;
    padding: 10px;
}
.landing-preview-callout {
    position: absolute;
    bottom: 18px;
    left: 18px;
    z-index: 9;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px 12px;
    width: min(520px, calc(100% - 36px));
    padding: 14px 16px;
    border: 1px solid rgba(250, 204, 21, .58);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255, 251, 235, .98), rgba(236, 253, 245, .96));
    color: var(--text);
    box-shadow: 0 24px 64px rgba(15, 23, 42, .28), 0 0 0 8px rgba(250, 204, 21, .12);
    backdrop-filter: blur(14px);
    transform-origin: 18% 70%;
    transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
    animation: landingCalloutReveal .68s ease-out both, landingCalloutPulse 2.9s ease-in-out .72s infinite;
}

.landing-preview-callout:hover,
.landing-preview-callout:focus-within {
    border-color: rgba(250, 204, 21, .86);
    transform: translateY(-5px) scale(1.018);
    box-shadow: 0 34px 86px rgba(15, 23, 42, .36), 0 0 0 13px rgba(250, 204, 21, .22), 0 0 42px rgba(20, 184, 166, .2);
}

.landing-preview-callout::before {
    content: "PROBAR";
    grid-row: 1 / span 2;
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #facc15, var(--primary));
    color: #0f172a;
    font-size: 9px;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(15, 118, 110, .32);
    transition: transform .22s ease, box-shadow .22s ease;
}

.landing-preview-callout:hover::before,
.landing-preview-callout:focus-within::before {
    transform: rotate(-4deg) scale(1.08);
    box-shadow: 0 16px 36px rgba(15, 118, 110, .4);
}
.landing-preview-callout strong {
    color: #0f766e;
    font-size: 16px;
    font-weight: 900;
}
.landing-preview-callout span {
    color: #334155;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
}
.agenda-demo-visual-notice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 4px 10px;
    padding: 12px 14px;
    border: 1px solid rgba(14, 165, 233, .24);
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(240, 253, 250, .96), rgba(239, 246, 255, .94));
    color: #0f172a;
    box-shadow: 0 16px 38px rgba(15, 23, 42, .1);
}
.agenda-demo-visual-notice::before {
    content: "i";
    grid-row: 1 / span 2;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), #38bdf8);
    color: #fff;
    font-family: ui-serif, Georgia, serif;
    font-size: 16px;
    font-style: italic;
    font-weight: 900;
}
.agenda-demo-visual-notice strong {
    color: var(--primary-strong);
    font-size: 13px;
    font-weight: 900;
}
.agenda-demo-visual-notice span {
    color: #334155;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}
.landing-calendar-preview #react-landing-calendar-preview-root,
.landing-calendar-preview #react-landing-calendar-preview-root > .react-dashboard {
    min-height: 100%;
    min-width: 0;
    width: 100%;
    max-width: 100%;
}
.landing-calendar-preview #react-landing-calendar-preview-root > .react-dashboard {
    align-content: start;
    gap: 4px;
}
.landing-calendar-preview .agenda-workspace.centered-workweek,
.landing-calendar-preview .agenda-workspace.day-focus {
    height: 680px;
    min-height: 680px;
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 2px;
}
.landing-calendar-preview .agenda-workspace.centered-workweek {
    grid-template-columns: repeat(5, minmax(190px, 1fr));
    scrollbar-width: thin;
}
.landing-calendar-preview .agenda-lane {
    height: 100%;
    min-width: 0;
}
.landing-calendar-preview .agenda-card-stack {
    min-height: 590px;
}
.landing-calendar-preview .mission-control-card .agenda-card-stack {
    min-height: 620px;
}
.landing-calendar-preview .agenda-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 0;
    padding: 8px 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.landing-calendar-preview .agenda-head > div:first-child {
    display: grid;
    gap: 2px;
    min-width: 120px;
}
.landing-calendar-preview .agenda-head .react-eyebrow {
    color: var(--text);
    font-size: 21px;
    line-height: 1;
    text-transform: none;
}
.landing-calendar-preview .agenda-head h1 {
    display: none;
}
.landing-calendar-preview .agenda-head > div:first-child p {
    display: none;
}
.landing-calendar-preview .agenda-head-controls {
    gap: 6px;
    justify-content: flex-end;
    margin-left: auto;
}
.landing-calendar-preview .agenda-filter-toggle,
.landing-calendar-preview .agenda-period-nav,
.landing-calendar-preview .agenda-view-selector,
.landing-calendar-preview .agenda-help-toggle {
    width: auto;
}
.landing-calendar-preview .agenda-head .btn {
    min-height: 38px;
    padding: 0 11px;
    font-size: 13px;
}
.landing-calendar-preview .agenda-head .icon-btn {
    width: 38px;
    padding: 0;
}
.landing-calendar-preview .agenda-view-selector {
    width: 218px;
    flex-basis: 218px;
    min-height: 38px;
}
.landing-calendar-preview .agenda-view-selector a,
.landing-calendar-preview .agenda-view-selector button {
    min-height: 32px;
    font-size: 13px;
}
.landing-calendar-preview .agenda-filter-shell:not(.open),
.landing-mobile-device-screen .agenda-filter-shell:not(.open) {
    display: none;
    margin: 0;
}
.landing-calendar-preview .agenda-filter-shell.open,
.landing-mobile-device-screen .agenda-filter-shell.open {
    margin: 0 0 8px;
}

.landing-mobile-agenda-preview {
    display: none;
    min-width: 0;
}

.landing-mobile-agenda-copy {
    display: grid;
    gap: 8px;
    max-width: 680px;
    margin: 0 auto 14px;
    text-align: center;
}

.landing-mobile-agenda-copy .landing-eyebrow {
    margin: 0;
}

    .landing-mobile-agenda-copy h2 {
        overflow-wrap: anywhere;
    }

    @media (max-width: 719px) {
        .landing-mobile-agenda-copy h2 {
            font-size: 22px;
        }
    }

    .landing-mobile-agenda-copy p:last-child {
        overflow-wrap: anywhere;
    }

    .landing-mobile-agenda-copy h2 {
        margin: 0;
        color: #f8fafc;
        font-size: clamp(24px, 4vw, 40px);
    line-height: 1.08;
}

.landing-mobile-agenda-copy p:last-child {
    margin: 0;
    color: #dbeafe;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.5;
}

.landing-mobile-device {
    position: relative;
    width: min(430px, 100%);
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(15, 23, 42, .98), rgba(15, 23, 42, .92));
    box-shadow: 0 24px 70px rgba(15, 23, 42, .32);
}

.landing-mobile-preview-callout {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: calc(100% - 24px);
    margin: 12px auto 2px;
    padding: 10px 12px;
    border-color: rgba(250, 204, 21, .5);
    box-shadow: 0 16px 38px rgba(15, 23, 42, .28), 0 0 0 6px rgba(250, 204, 21, .1);
}

.landing-mobile-preview-callout::before {
    width: 42px;
    height: 42px;
    font-size: 8px;
}

.landing-mobile-preview-callout strong {
    font-size: 13px;
}

.landing-mobile-preview-callout span {
    font-size: 12px;
}

.landing-mobile-device-bar {
    display: flex;
    justify-content: center;
    padding: 12px 0 8px;
}

.landing-mobile-device-bar span {
    width: 76px;
    height: 6px;
    border-radius: 999px;
    background: rgba(226, 232, 240, .28);
}

.landing-mobile-device-screen {
    height: 640px;
    overflow-x: auto;
    overflow-y: auto;
    padding: 10px;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.landing-mobile-device-screen .react-dashboard {
    display: block;
    gap: 0;
    overflow: visible;
}

.landing-mobile-device-screen .agenda-period-surface[data-preview-swipe="true"],
.landing-mobile-device-screen .agenda-period-surface[data-preview-swipe="true"] .agenda-workspace,
.landing-mobile-device-screen .agenda-period-surface[data-preview-swipe="true"] .agenda-lane,
.landing-mobile-device-screen .agenda-period-surface[data-preview-swipe="true"] .agenda-card {
    cursor: grab;
    touch-action: pan-y;
}

.landing-mobile-device-screen .agenda-period-surface[data-preview-swipe="true"]:active {
    cursor: grabbing;
}

.landing-mobile-device-screen .agenda-head {
    gap: 8px;
    padding: 10px;
}

.landing-mobile-device-screen .agenda-head-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    justify-items: center;
    width: 100%;
}

.landing-mobile-device-screen .agenda-filter-toggle,
.landing-mobile-device-screen .agenda-period-nav,
.landing-mobile-device-screen .agenda-view-selector,
.landing-mobile-device-screen .agenda-help-toggle {
    width: min(100%, 252px);
    margin-inline: auto;
}

.landing-mobile-device-screen .agenda-period-nav {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
}

.landing-mobile-device-screen .agenda-view-selector {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    flex-basis: auto;
}

.landing-mobile-device-screen .agenda-head .btn {
    min-height: 36px;
    padding: 0 10px;
    font-size: 12px;
}

.landing-mobile-device-screen .agenda-head .icon-btn {
    width: 36px;
}

.landing-mobile-device-screen .agenda-head > div:first-child p,
.landing-mobile-device-screen .agenda-head h1 {
    display: none;
}

.landing-mobile-device-screen .agenda-workspace.centered-workweek {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(100%, 100%);
    grid-template-columns: none;
    height: auto;
    min-height: 500px;
    margin-top: 8px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.landing-mobile-device-screen .agenda-lane {
    min-width: 100%;
    width: 100%;
    max-width: 100%;
    background: #ffffff;
    scroll-snap-align: start;
}

.landing-mobile-device-screen .agenda-card-stack {
    min-height: 398px;
}

.preview-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.preview-toolbar strong {
    color: var(--text);
}

.preview-toolbar-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.preview-help-button {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--primary-strong);
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.preview-week-board {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    min-width: 0;
}

.preview-week-board article {
    display: grid;
    align-content: start;
    gap: 7px;
    min-height: 330px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #f8fafc;
    min-width: 0;
}

.preview-week-board article.active {
    background: #fff;
    border-color: rgba(37, 99, 235, .38);
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .12);
}

.preview-day-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
}

.preview-day-head strong {
    color: var(--text);
    font-size: 14px;
    font-weight: 900;
}

.preview-day-head span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.preview-counts {
    display: flex;
    gap: 4px;
    align-items: center;
}

.preview-chip {
    display: inline-flex;
    width: fit-content;
    min-width: 24px;
    min-height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.preview-chip.event { background: #dbeafe; color: var(--blue); }
.preview-chip.task { background: #fef3c7; color: var(--amber); }
.preview-chip.reminder { background: #fee2e2; color: var(--red); }

.preview-card {
    display: grid;
    gap: 5px;
    padding: 8px 8px 10px;
    border-left: 4px solid var(--blue);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .08);
    min-width: 0;
}

.preview-card.progress { border-left-color: #f97316; }
.preview-card.pending { border-left-color: var(--red); }
.preview-card.task { border-left-color: #f59e0b; }
.preview-card.reminder { border-left-color: #ef4444; }

.preview-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
}

.preview-type,
.preview-status,
.preview-meta span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 20px;
    padding: 2px 5px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.preview-type.event { background: #dbeafe; color: var(--blue); }
.preview-type.task { background: #fef3c7; color: var(--amber); }
.preview-type.reminder { background: #fee2e2; color: var(--red); }
.preview-status.success { background: #dcfce7; color: var(--green); }
.preview-status.warning { background: #fef3c7; color: var(--amber); }
.preview-status.danger { background: #fee2e2; color: var(--red); }
.preview-status.info { background: #dbeafe; color: var(--blue); }

.preview-card small {
    color: var(--primary-strong);
    font-size: 10px;
    font-weight: 900;
}

.preview-card b {
    color: var(--text);
    font-size: 13px;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-card span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.preview-meta {
    display: grid;
    justify-items: start;
    gap: 4px;
    margin-top: 2px;
}

.preview-meta span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-meta .staff { background: #f1f5f9; color: #334155; }
.preview-meta .pay.partial { background: #ffedd5; color: #c2410c; }
.preview-meta .pay.unpaid { background: #fee2e2; color: var(--red); }
.preview-meta .task { background: #fef3c7; color: var(--amber); }
.preview-meta .service { background: #dbeafe; color: var(--blue); }

.preview-empty-day {
    display: grid;
    gap: 3px;
    padding: 12px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    color: var(--muted);
    font-weight: 900;
}

.preview-empty-day small {
    font-size: 11px;
    font-weight: 800;
}

.landing-band,
.landing-section {
    padding: clamp(64px, 8vw, 116px) 16px;
    scroll-margin-top: 84px;
}

.landing-problem {
    background:
        radial-gradient(circle at 12% 18%, rgba(239, 68, 68, .08), transparent 28%),
        linear-gradient(180deg, #f8fafc 0%, #fff7ed 100%);
}

.product-section {
    background:
        radial-gradient(circle at 82% 22%, rgba(20, 184, 166, .12), transparent 30%),
        linear-gradient(180deg, #ecfeff 0%, #f8fafc 100%);
}

.flow-section {
    background:
        radial-gradient(circle at 18% 18%, rgba(37, 99, 235, .1), transparent 28%),
        linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%);
}

.role-section {
    background:
        radial-gradient(circle at 76% 16%, rgba(245, 158, 11, .1), transparent 30%),
        linear-gradient(180deg, #fff 0%, #fffbeb 100%);
}

.pricing-section {
    background:
        radial-gradient(circle at 16% 24%, rgba(16, 185, 129, .1), transparent 30%),
        linear-gradient(180deg, #f8fafc 0%, #ecfdf5 100%);
}

.landing-grid,
.pricing-grid,
.landing-section-head,
.landing-feature-grid,
.landing-flow,
.landing-final-cta {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.landing-grid,
.pricing-grid {
    display: grid;
    gap: 12px;
}

.problem-grid,
.role-section .landing-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.landing-grid article,
.pricing-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
    animation: landingCardIn .58s ease both;
    transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.landing-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.landing-feature-grid article {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    animation: landingCardIn .58s ease both;
    transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.landing-card-icon {
    display: inline-grid;
    width: 42px;
    height: 42px;
    margin-bottom: 10px;
    place-items: center;
    border: 1px solid rgba(37, 99, 235, .18);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(219, 234, 254, .96), rgba(239, 246, 255, .78));
    color: var(--blue);
    box-shadow: 0 12px 28px rgba(37, 99, 235, .12);
}

.landing-card-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.landing-card-icon.amber,
.pricing-card:nth-child(2) .landing-card-icon {
    border-color: rgba(245, 158, 11, .2);
    background:
        linear-gradient(135deg, rgba(254, 243, 199, .98), rgba(255, 251, 235, .76));
    color: var(--amber);
    box-shadow: 0 12px 28px rgba(245, 158, 11, .12);
}

.landing-card-icon.rose,
.pricing-card:nth-child(3) .landing-card-icon {
    border-color: rgba(239, 68, 68, .18);
    background:
        linear-gradient(135deg, rgba(254, 226, 226, .98), rgba(255, 241, 242, .76));
    color: var(--red);
    box-shadow: 0 12px 28px rgba(239, 68, 68, .1);
}

.landing-card-icon.green,
.pricing-card:nth-child(4) .landing-card-icon {
    border-color: rgba(16, 185, 129, .2);
    background:
        linear-gradient(135deg, rgba(220, 252, 231, .98), rgba(236, 253, 245, .76));
    color: var(--green);
    box-shadow: 0 12px 28px rgba(16, 185, 129, .12);
}

.landing-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px;
    counter-reset: flow;
}

.landing-flow article {
    position: relative;
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    animation: landingCardIn .58s ease both;
    transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.landing-flow span {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 999px;
    background: #dcfce7;
    color: var(--green);
    font-weight: 900;
}

.landing-grid h2,
.landing-grid h3,
.landing-feature-grid h3,
.landing-flow h3,
.pricing-card h3,
.landing-section h2,
.landing-final-cta h2 {
    margin: 0;
}

.landing-grid p,
.landing-feature-grid p,
.landing-flow p,
.landing-section-head p,
.pricing-card li,
.landing-final-cta p {
    color: var(--muted);
}

.landing-stat {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: #dbeafe;
    color: var(--blue);
    font-weight: 900;
}

.landing-stat.amber {
    background: #fef3c7;
    color: var(--amber);
}

.landing-stat.rose {
    background: #fee2e2;
    color: var(--red);
}

.landing-section-head {
    margin-bottom: 18px;
}

.landing-section-head .landing-eyebrow {
    color: var(--primary-strong);
}

.price {
    margin: 8px 0 12px;
    color: var(--primary-strong);
    font-size: 28px;
    font-weight: 900;
}

.price span {
    color: var(--muted);
    font-size: 15px;
    font-weight: 800;
}

.pricing-description {
    min-height: 46px;
    margin: 0;
    color: var(--text);
    font-weight: 800;
    line-height: 1.35;
}

.pricing-badge {
    justify-self: center;
    margin-top: -28px;
    padding: 7px 16px;
    border-radius: 8px;
    background: var(--blue);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    box-shadow: 0 14px 28px rgba(37, 99, 235, .24);
}

.pricing-card ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 18px;
}

.pricing-limits {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.pricing-includes {
    display: grid;
    gap: 8px;
    padding-top: 4px;
}

.pricing-includes strong {
    color: var(--primary-strong);
    font-size: 14px;
    font-weight: 900;
}

.pricing-support {
    margin: auto 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    color: var(--primary-strong);
    font-weight: 900;
}

.pricing-card {
    position: relative;
    display: grid;
    gap: 8px;
    align-content: start;
}

.pricing-card.featured {
    border-color: rgba(15, 118, 110, .32);
}

.landing-final-cta,
.landing-legal-preview article,
.landing-footer-inner {
    animation: landingCardIn .58s ease both;
    transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.landing-grid article:nth-child(2),
.landing-feature-grid article:nth-child(2),
.landing-flow article:nth-child(2),
.pricing-card:nth-child(2),
.landing-legal-preview article:nth-child(2) {
    animation-delay: .06s;
}

.landing-grid article:nth-child(3),
.landing-feature-grid article:nth-child(3),
.landing-flow article:nth-child(3),
.pricing-card:nth-child(3) {
    animation-delay: .12s;
}

@media (hover: hover) and (pointer: fine) {
    .landing-grid article:hover,
    .landing-feature-grid article:hover,
    .landing-flow article:hover,
    .pricing-card:hover,
    .landing-legal-preview article:hover {
        border-color: rgba(20, 184, 166, .34);
        box-shadow: 0 18px 42px rgba(15, 23, 42, .14);
        transform: translateY(-4px);
    }

    .landing-product-preview:hover,
    .landing-final-cta:hover,
    .landing-security-section:hover,
    .landing-footer-inner:hover {
        border-color: rgba(20, 184, 166, .32);
        box-shadow: 0 28px 80px rgba(15, 23, 42, .18);
    }
}

@supports (animation-timeline: view()) {
    .landing-section-head,
    .landing-grid article,
    .landing-feature-grid article,
    .landing-flow article,
    .pricing-card,
    .landing-final-cta,
    .landing-legal-preview article,
    .landing-security-section,
    .landing-footer-inner {
        animation-name: landingScrollRise;
        animation-duration: 1ms;
        animation-fill-mode: both;
        animation-timeline: view();
        animation-range: entry 0% cover 34%;
    }
}

@keyframes landingCardIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes landingScrollRise {
    from {
        opacity: .72;
        transform: translateY(18px) scale(.99);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes landingCalloutReveal {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.96);
    }
    72% {
        opacity: 1;
        transform: translateY(-4px) scale(1.012);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes landingCalloutPulse {
    0%,
    100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 24px 64px rgba(15, 23, 42, .28), 0 0 0 8px rgba(250, 204, 21, .12);
    }
    50% {
        transform: translateY(-3px) scale(1.006);
        box-shadow: 0 30px 76px rgba(15, 23, 42, .34), 0 0 0 12px rgba(250, 204, 21, .18);
    }
}

.pricing-cta {
    margin-top: 6px;
}

.landing-final-cta {
    display: grid;
    gap: 14px;
    margin-bottom: 36px;
    padding: 22px;
    border: 1px solid rgba(15, 118, 110, .24);
    border-radius: 12px;
    background: #ecfdf5;
    box-shadow: var(--shadow);
}

.demo-request-section {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
}

.demo-request-copy {
    display: grid;
    gap: 10px;
}

.demo-safety-list {
    display: grid;
    gap: 7px;
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    font-weight: 800;
}

.demo-request-form {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.demo-form-note {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.landing-final-cta .landing-eyebrow {
    color: var(--primary-strong);
}

.landing-final-cta,
.landing-legal-preview article {
    scroll-margin-top: 84px;
}

.landing-legal-preview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto 28px;
}

.landing-security-section {
    display: grid;
    gap: 18px;
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto 34px;
    padding: 24px;
    border: 1px solid rgba(15, 118, 110, .22);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, .97), rgba(17, 94, 89, .94));
    color: #f8fafc;
    box-shadow: 0 28px 80px rgba(15, 23, 42, .18);
    animation: landingCardIn .58s ease both;
    transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
    scroll-margin-top: 92px;
}

.landing-security-copy {
    display: grid;
    gap: 10px;
    max-width: 860px;
}

.landing-security-copy .landing-eyebrow {
    margin: 0;
}

.landing-security-copy h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.05;
}

.landing-security-copy p {
    margin: 0;
    max-width: 760px;
    color: #dbeafe;
    font-size: 16px;
    line-height: 1.58;
}

.landing-security-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.landing-security-grid article {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid rgba(226, 232, 240, .22);
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
}

.landing-security-grid strong {
    color: #99f6e4;
    font-size: 14px;
    text-transform: uppercase;
}

.landing-security-grid article > span:not(.landing-card-icon) {
    color: #e2e8f0;
    font-weight: 800;
    line-height: 1.45;
}

.landing-legal-preview article {
    display: grid;
    gap: 10px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow);
}

.landing-legal-preview h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.16;
}

.landing-legal-preview p {
    margin: 0;
    color: var(--muted);
}

.landing-legal-preview ul {
    display: grid;
    gap: 7px;
    margin: 0;
    padding-left: 18px;
    color: #334155;
    font-weight: 800;
}

.landing-footer {
    padding: 0 16px 20px;
    background:
        linear-gradient(180deg, #f7f9fc 0%, #eef6f6 100%);
}

.landing-footer-inner {
    display: grid;
    gap: 22px;
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: 28px;
    border: 1px solid rgba(15, 118, 110, .18);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(240, 253, 250, .92));
    box-shadow: 0 24px 70px rgba(15, 23, 42, .1);
}

.landing-footer-about {
    display: grid;
    gap: 9px;
    max-width: 820px;
}

.landing-footer-about .landing-eyebrow {
    margin: 0;
    color: var(--primary-strong);
}

.landing-footer-about h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(25px, 4vw, 42px);
    line-height: 1.05;
}

.landing-footer-about p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.58;
}

.landing-footer-brand {
    display: grid;
    gap: 12px;
    max-width: 560px;
}

.landing-footer-brand p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.landing-footer-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.landing-footer-links div {
    display: grid;
    align-content: start;
    gap: 8px;
}

.landing-footer-links strong {
    color: var(--text);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.landing-footer-links a,
.landing-footer-links span {
    position: relative;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.landing-footer-links a:hover,
.landing-footer-links a:focus-visible,
.landing-footer-bottom a:hover,
.landing-footer-bottom a:focus-visible {
    color: var(--primary-strong);
}

.landing-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid rgba(15, 118, 110, .16);
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.landing-footer-bottom > span:last-child {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 12px;
}

.landing-footer-bottom a {
    position: relative;
    color: var(--muted);
    text-decoration: none;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.invitation-hero {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

th,
td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    text-transform: uppercase;
}

.react-dashboard-ready .blade-dashboard-fallback {
    display: none;
}

.react-events-index-ready .blade-events-index-fallback,
.react-event-detail-ready .blade-event-detail-fallback,
.react-leads-index-ready .blade-leads-index-fallback,
.react-lead-form-ready .blade-lead-form-fallback,
.react-lead-detail-ready .blade-lead-detail-fallback,
.react-calendar-ready .blade-calendar-fallback,
.react-notifications-ready .blade-notifications-fallback,
.react-tasks-index-ready .blade-tasks-index-fallback,
.react-staff-index-ready .blade-staff-index-fallback,
.react-catalog-index-ready .blade-catalog-index-fallback,
.react-services-index-ready .blade-services-index-fallback,
.react-event-form-ready .blade-event-form-fallback,
.react-package-form-ready .blade-package-form-fallback,
.react-service-form-ready .blade-service-form-fallback,
.react-template-index-ready .blade-template-index-fallback,
.react-checklist-template-form-ready .blade-checklist-template-form-fallback,
.react-contract-template-form-ready .blade-contract-template-form-fallback,
.react-communication-template-form-ready .blade-communication-template-form-fallback,
.react-billing-ready .blade-billing-fallback,
.react-payments-ready .blade-payments-fallback,
.react-reports-ready .blade-reports-fallback,
.react-task-form-ready .blade-task-form-fallback,
.react-staff-form-ready .blade-staff-form-fallback,
.react-staff-detail-ready .blade-staff-detail-fallback {
    display: none;
}

.react-dashboard {
    display: grid;
    gap: 14px;
}

.react-page-head {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.react-page-head h1 {
    margin: 3px 0 6px;
    font-size: 26px;
    line-height: 1.1;
}

.react-page-head p {
    margin: 0;
    color: var(--muted);
}

.context-help {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(37, 99, 235, .18);
    border-radius: var(--radius);
    background: #eff6ff;
    color: #1e3a8a;
}

.context-help svg {
    flex: 0 0 auto;
    margin-top: 2px;
}

.context-help p {
    margin: 0;
    color: inherit;
    font-size: 13px;
    line-height: 1.45;
}

.react-eyebrow {
    color: var(--primary-strong);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.react-actions,
.react-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.react-actions form,
.react-row-actions form {
    margin: 0;
}

.react-priority-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(37, 99, 235, .24);
    border-radius: var(--radius);
    background: #eff6ff;
}

.react-priority-card strong {
    display: block;
    margin-top: 3px;
    font-size: 17px;
}

.react-form-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 2px;
}

.react-form-actions .react-pagination-summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.react-form-section {
    display: grid;
    gap: 12px;
    padding-top: 4px;
}

.react-form-section + .react-form-section {
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.react-form-section h2 {
    margin: 0;
    font-size: 16px;
}

.react-form-section h3 {
    margin: 0;
    font-size: 15px;
}

.react-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    align-items: end;
    padding: 14px;
    background: rgba(15, 23, 42, .48);
    backdrop-filter: blur(8px);
}

.react-modal-backdrop[hidden] {
    display: none !important;
}

.react-modal {
    position: fixed;
    right: 14px;
    bottom: 14px;
    left: 14px;
    z-index: 2010;
    display: grid;
    gap: 14px;
    width: auto;
    max-width: min(820px, calc(100vw - 28px));
    max-height: min(88vh, 900px);
    margin: 0 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
    animation: agendaHelpIn .22s ease-out both;
}

.react-modal > *,
.react-modal .form-grid,
.react-modal .grid,
.react-modal .field {
    min-width: 0;
}

.react-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.react-modal-head h2 {
    margin: 3px 0 4px;
    font-size: 22px;
    line-height: 1.15;
}

.react-modal-head p {
    margin: 0;
    color: var(--muted);
}

.calendar-modal-title {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.calendar-modal-title > span:first-child {
    min-width: 0;
}

.calendar-modal-title .agenda-type-chip {
    flex: 0 0 auto;
}

.calendar-modal-code {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f8fafc;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.calendar-modal-title-badges {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}

.calendar-modal-time {
    color: var(--primary-strong);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.calendar-new-event-time-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
}

.react-modal-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.react-modal-summary > span:not(.react-badge) {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f8fafc;
}

.react-dashboard[data-preview="true"] .react-modal {
    max-width: min(980px, calc(100vw - 28px));
    max-height: min(94vh, 780px);
    gap: 10px;
}

.react-dashboard[data-preview="true"] .react-modal-head {
    gap: 10px;
}

.react-dashboard[data-preview="true"] .react-form-section {
    gap: 8px;
    padding-top: 0;
}

.react-dashboard[data-preview="true"] .calendar-event-form {
    gap: 8px;
}

.react-dashboard[data-preview="true"] .calendar-event-form .grid.two {
    gap: 8px 10px;
}

.react-dashboard[data-preview="true"] .calendar-event-form .field {
    gap: 4px;
}

.react-dashboard[data-preview="true"] .calendar-event-form .field input,
.react-dashboard[data-preview="true"] .calendar-event-form .field select,
.react-dashboard[data-preview="true"] .calendar-event-form .datetime-picker-display {
    min-height: 38px;
    padding-block: 7px;
}

.react-dashboard[data-preview="true"] .calendar-event-form .field textarea {
    min-height: 52px;
    max-height: 64px;
    resize: none;
}

.react-modal-preview {
    --bg: #f5f7fb;
    --surface: #fff;
    --text: #17203a;
    --muted: #64748b;
    --line: #d8e2ef;
    max-width: min(980px, calc(100vw - 28px));
    max-height: none;
    overflow-y: visible;
    gap: 10px;
    background: #fff;
    color: #17203a;
}

.react-modal-preview .react-modal-head {
    gap: 10px;
}

.react-modal-preview .react-form-section,
.react-modal-preview .form-grid,
.react-modal-preview .calendar-event-form {
    gap: 8px;
}

.react-modal-preview .grid.two {
    gap: 8px 10px;
}

.react-modal-preview .field {
    gap: 4px;
}

.icon-btn {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    cursor: pointer;
}

.react-error-list {
    margin: 8px 0 0;
    padding-left: 18px;
}

.field-error {
    color: var(--red);
    font-size: 13px;
    font-weight: 800;
}

[aria-invalid="true"] {
    border-color: #fecaca;
}

.react-warning {
    margin-top: 8px;
    color: var(--amber);
    font-weight: 800;
}

.react-metrics-grid,
.react-dashboard-grid {
    display: grid;
    gap: 12px;
}

.react-metrics-grid.compact {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.react-metric {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    min-height: 98px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.react-metric-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: var(--radius);
    background: var(--surface-soft);
    color: var(--primary-strong);
}

.react-metric.blue .react-metric-icon {
    background: #dbeafe;
    color: var(--blue);
}

.react-metric.green .react-metric-icon {
    background: #dcfce7;
    color: var(--green);
}

.react-metric.amber .react-metric-icon {
    background: #fef3c7;
    color: var(--amber);
}

.react-metric-value,
.react-metric-label,
.react-metric-helper {
    display: block;
}

.react-metric-value {
    font-size: 24px;
    font-weight: 900;
    line-height: 1.1;
}

.react-metric-label,
.react-metric-helper,
.react-muted {
    color: var(--muted);
}

.react-metric-label {
    margin-top: 3px;
}

.react-metric-helper {
    margin-top: 2px;
    font-size: 12px;
}

.react-panel {
    display: grid;
    gap: 10px;
    align-content: start;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.react-panel h2 {
    margin: 0;
    font-size: 17px;
}

.catalog-toolbar {
    align-items: end;
}

.catalog-toolbar .search-field {
    flex: 1 1 260px;
}

.catalog-toolbar .compact-field {
    flex: 0 1 180px;
}

.catalog-toolbar .segmented {
    flex: 0 1 260px;
}

.compact-check {
    align-self: center;
    min-height: 42px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.catalog-grid {
    align-items: stretch;
}

.catalog-package-card {
    position: relative;
    overflow: hidden;
}

.catalog-package-card::before {
    content: "";
    position: absolute;
    inset: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--blue), #7c3aed);
}

.catalog-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.catalog-card-head h2 {
    margin-top: 3px;
}

.catalog-price-row {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, #f8fafc 0%, #eef7f5 100%);
}

.catalog-price-row strong {
    font-size: 26px;
    line-height: 1.1;
}

.catalog-price-row span,
.catalog-included-copy {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.catalog-included-copy {
    margin: 0;
}

.catalog-service-list {
    align-content: start;
}

.catalog-form {
    gap: 16px;
}

.catalog-form-section-head {
    display: grid;
    gap: 10px;
}

.catalog-form-section-head p {
    margin: 4px 0 0;
}

.catalog-service-search {
    margin: 0;
}

.catalog-live-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.catalog-live-preview span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 4px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f8fafc;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.catalog-service-picker {
    display: grid;
    gap: 8px;
}

.catalog-service-option {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #f8fafc;
}

.catalog-service-option strong,
.catalog-service-option small {
    display: block;
}

.catalog-service-option small {
    margin-top: 2px;
    color: var(--muted);
    font-weight: 800;
}

.catalog-service-option .compact-field {
    margin: 0;
}

.template-grid {
    align-items: stretch;
}

.template-card {
    overflow: hidden;
}

.template-preview {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.template-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.template-form {
    gap: 16px;
}

.template-item-list {
    display: grid;
    gap: 10px;
}

.template-item-row {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #f8fafc;
}

.template-item-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.template-editor-textarea {
    min-height: 260px;
}

.template-token-grid .token-chip {
    cursor: pointer;
}

.template-preview-form {
    display: grid;
    gap: 10px;
}

.react-form-actions.align-end {
    align-self: end;
    min-height: 42px;
}

.react-preview-panel {
    margin-top: 4px;
}

.react-progress {
    width: min(160px, 100%);
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}

.react-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), var(--green));
}

.payment-list-item {
    color: inherit;
    text-decoration: none;
}

.react-empty-state.compact {
    padding: 10px;
}

.react-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.react-table {
    min-width: 880px;
}

.react-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}

.react-table tbody tr:hover {
    background: #f8fafc;
}

.services-mobile-list {
    display: grid;
}

.services-table-panel {
    display: none;
}

.compact-actions {
    gap: 6px;
}

.event-workspace-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    scrollbar-width: thin;
}

.event-workspace-nav a {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.event-workspace-nav a:hover,
.event-workspace-nav a:focus-visible {
    border-color: rgba(15, 118, 110, .34);
    color: var(--primary-strong);
    outline: 2px solid rgba(15, 118, 110, .14);
    outline-offset: 2px;
}

.event-section-grid {
    display: grid;
    gap: 12px;
    scroll-margin-top: 120px;
}

.event-panel {
    gap: 12px;
}

.event-panel .react-list-item input[readonly] {
    margin-top: 8px;
}

.event-message-schedule-grid,
.event-template-list,
.event-create-task-form {
    margin-top: 10px;
}

.event-message-schedule-grid {
    display: grid;
    gap: 10px;
}

.compact-form {
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #f8fafc;
}

.event-picker-list label {
    cursor: pointer;
}

.react-list {
    display: grid;
    gap: 10px;
}

.react-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.react-list-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.react-list-item.dense {
    padding: 11px;
}

button.react-list-item,
.event-trigger {
    width: 100%;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

button.react-list-item:hover,
.calendar-pill:hover,
button.react-list-item:focus-visible,
.calendar-pill:focus-visible {
    border-color: rgba(15, 118, 110, .34);
    outline: 2px solid rgba(15, 118, 110, .18);
    outline-offset: 2px;
}

.react-list-item strong,
.react-list-item small {
    display: block;
}

.react-list-item strong {
    overflow-wrap: anywhere;
}

.react-list-item small {
    margin-top: 2px;
    color: var(--muted);
}

.task-card,
.staff-card {
    align-content: start;
}

.task-card .react-muted,
.staff-card .react-muted {
    margin: 8px 0 0;
}

.react-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 26px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-size: 12px;
    font-weight: 900;
}

.react-badge.success { background: #dcfce7; color: var(--green); }
.react-badge.info { background: #dbeafe; color: var(--blue); }
.react-badge.warning { background: #fef3c7; color: var(--amber); }
.react-badge.danger { background: #fee2e2; color: var(--red); }

.react-badge-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.react-agenda-day {
    display: grid;
    gap: 8px;
}

.react-notification-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.notification-card {
    gap: 10px;
}

.react-filter-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.btn.active-filter {
    border-color: rgba(15, 118, 110, .34);
    background: var(--surface-soft);
    color: var(--primary-strong);
}

.btn.disabled {
    cursor: not-allowed;
    opacity: .55;
}

.react-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.react-pagination-summary {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.react-empty-state {
    display: grid;
    gap: 4px;
    padding: 16px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: #f8fafc;
    color: var(--muted);
}

.react-empty-state strong {
    color: var(--text);
}

.react-progress {
    overflow: hidden;
    height: 12px;
    border-radius: 999px;
    background: #e2e8f0;
}

.react-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--primary);
}

.react-skeleton-grid {
    display: grid;
    gap: 10px;
}

.react-skeleton-grid span {
    min-height: 58px;
    border-radius: var(--radius);
    background: linear-gradient(90deg, #e2e8f0, #f8fafc, #e2e8f0);
    background-size: 220% 100%;
    animation: react-skeleton 1.4s ease-in-out infinite;
}

@keyframes react-skeleton {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

@keyframes agendaCoinDrop {
    0% {
        opacity: 0;
        transform: translateY(-10px) rotate(-24deg) scale(.72);
    }
    42% {
        opacity: 1;
        transform: translateY(2px) rotate(10deg) scale(1.08);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotate(0) scale(1);
    }
}

@keyframes agendaToastIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes landingHeroDrift {
    from {
        opacity: .82;
        transform: translate3d(-2%, -1%, 0) scale(1);
    }
    to {
        opacity: 1;
        transform: translate3d(3%, 5%, 0) scale(1.08);
    }
}

@keyframes agendaCardUpdated {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, .62), 0 18px 36px rgba(15, 23, 42, .16);
        transform: translateY(0);
    }
    10% {
        border-color: rgba(37, 99, 235, .9);
        box-shadow: 0 0 0 10px rgba(37, 99, 235, .28), 0 22px 46px rgba(15, 23, 42, .2);
        transform: translateY(-2px);
    }
    82% {
        border-color: rgba(37, 99, 235, .86);
        box-shadow: 0 0 0 7px rgba(37, 99, 235, .18), 0 20px 42px rgba(15, 23, 42, .16);
        transform: translateY(-1px);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0), 0 10px 28px rgba(15, 23, 42, .08);
        transform: translateY(0);
    }
}

@keyframes agendaCardRemoving {
    0% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    14% {
        opacity: .78;
        transform: translateX(0) scale(.995);
    }
    76% {
        opacity: .58;
        transform: translateX(0) scale(.99);
    }
    100% {
        opacity: 0;
        transform: translateX(18px) scale(.985);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .react-skeleton-grid span,
    .agenda-sync-coins i,
    .agenda-sync-toast,
    .agenda-card.agenda-card-updated,
    .agenda-card.agenda-card-removing,
    .landing-grid article,
    .landing-feature-grid article,
    .landing-flow article,
    .pricing-card,
    .landing-final-cta,
    .landing-legal-preview article,
    .landing-security-section,
    .landing-preview-callout,
    .landing-footer-inner {
        animation: none;
    }
    .landing-hero::before {
        animation: none;
    }
    .agenda-filter-shell,
    .landing-links a:not(.btn),
    .landing-footer-links a,
    .landing-footer-bottom a,
    .landing-product-preview,
    .landing-grid article,
    .landing-feature-grid article,
    .landing-flow article,
    .pricing-card,
    .landing-final-cta,
    .landing-legal-preview article,
    .landing-security-section,
    .landing-footer-inner {
        transition: none;
    }
}

:root[data-theme="dark"] .topbar,
:root[data-theme="dark"] .landing-nav {
    background: rgba(15, 23, 42, .94);
}

:root[data-theme="dark"] .nav-section-label {
    border-color: rgba(148, 163, 184, .22);
    background: rgba(15, 23, 42, .72);
    color: var(--text);
}

:root[data-theme="dark"] .nav-section:hover .nav-section-label,
:root[data-theme="dark"] .nav-section:focus-within .nav-section-label,
:root[data-theme="dark"] .nav-section[data-open="true"] .nav-section-label,
:root[data-theme="dark"] .nav-section:has(.active) .nav-section-label {
    border-color: rgba(94, 234, 212, .28);
    background: #111c2f;
    color: var(--primary-strong);
    box-shadow: inset 0 0 0 1px rgba(94, 234, 212, .12);
}

:root[data-theme="dark"] .nav-section-menu {
    border-color: rgba(148, 163, 184, .22);
    background: #111c2f;
    box-shadow: 0 22px 54px rgba(0, 0, 0, .42);
}

:root[data-theme="dark"] .nav-section-menu a:hover,
:root[data-theme="dark"] .nav-section-menu a:focus-visible {
    background: rgba(20, 184, 166, .14);
    color: var(--primary-strong);
}

:root[data-theme="dark"] .bottom-nav,
:root[data-theme="dark"] .primary-nav,
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .list-item,
:root[data-theme="dark"] .react-list-item,
:root[data-theme="dark"] .react-modal,
:root[data-theme="dark"] .react-panel,
:root[data-theme="dark"] .react-page-head,
:root[data-theme="dark"] .react-metric,
:root[data-theme="dark"] .react-filter-panel,
:root[data-theme="dark"] .auth-card,
:root[data-theme="dark"] .landing-grid article,
:root[data-theme="dark"] .landing-feature-grid article,
:root[data-theme="dark"] .landing-flow article,
:root[data-theme="dark"] .demo-request-form,
:root[data-theme="dark"] .pricing-card,
:root[data-theme="dark"] .table-wrap,
:root[data-theme="dark"] .react-table-wrap,
:root[data-theme="dark"] .alert {
    background: var(--surface);
}

:root[data-theme="dark"] .pricing-description {
    color: var(--text);
}

:root[data-theme="dark"] .pricing-limits,
:root[data-theme="dark"] .pricing-support {
    border-color: rgba(148, 163, 184, .22);
}

:root[data-theme="dark"] .landing-card-icon {
    border-color: rgba(96, 165, 250, .22);
    background:
        linear-gradient(135deg, rgba(30, 41, 59, .94), rgba(30, 58, 138, .22));
    color: #93c5fd;
    box-shadow: 0 12px 28px rgba(2, 6, 23, .28);
}

:root[data-theme="dark"] .landing-card-icon.amber,
:root[data-theme="dark"] .pricing-card:nth-child(2) .landing-card-icon {
    border-color: rgba(251, 191, 36, .22);
    background:
        linear-gradient(135deg, rgba(30, 41, 59, .94), rgba(120, 53, 15, .24));
    color: #fbbf24;
    box-shadow: 0 12px 28px rgba(2, 6, 23, .28);
}

:root[data-theme="dark"] .landing-card-icon.rose,
:root[data-theme="dark"] .pricing-card:nth-child(3) .landing-card-icon {
    border-color: rgba(248, 113, 113, .22);
    background:
        linear-gradient(135deg, rgba(30, 41, 59, .94), rgba(127, 29, 29, .22));
    color: #fca5a5;
    box-shadow: 0 12px 28px rgba(2, 6, 23, .28);
}

:root[data-theme="dark"] .landing-card-icon.green,
:root[data-theme="dark"] .pricing-card:nth-child(4) .landing-card-icon {
    border-color: rgba(45, 212, 191, .22);
    background:
        linear-gradient(135deg, rgba(30, 41, 59, .94), rgba(19, 78, 74, .28));
    color: #5eead4;
    box-shadow: 0 12px 28px rgba(2, 6, 23, .28);
}

:root[data-theme="dark"] .landing-stat,
:root[data-theme="dark"] .landing-flow span {
    border: 1px solid rgba(147, 197, 253, .38);
    background: linear-gradient(135deg, #172f54, #0f172a);
    color: #dbeafe;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .38);
    box-shadow: 0 10px 24px rgba(2, 6, 23, .26);
}

:root[data-theme="dark"] .landing-stat.amber {
    border-color: rgba(251, 191, 36, .4);
    background: linear-gradient(135deg, #3a2d0a, #111827);
    color: #fde68a;
}

:root[data-theme="dark"] .landing-flow span {
    border-color: rgba(134, 239, 172, .38);
    background: linear-gradient(135deg, #10371f, #111827);
    color: #bbf7d0;
}

:root[data-theme="dark"] .landing-stat.rose {
    border-color: rgba(252, 165, 165, .42);
    background: linear-gradient(135deg, #421818, #111827);
    color: #fecaca;
}
:root[data-theme="dark"] .table-wrap::before,
:root[data-theme="dark"] .react-table-wrap::before {
    background: #0f172a;
    color: var(--muted);
}

:root[data-theme="dark"] .notification-unread {
    border-color: rgba(94, 234, 212, .55);
    background: #102f2d;
}

:root[data-theme="dark"] .btn.secondary {
    background: #0f172a;
    border-color: var(--line);
    color: var(--text);
}

:root[data-theme="dark"] .icon-btn,
:root[data-theme="dark"] .react-modal-summary > span:not(.react-badge) {
    background: #0f172a;
    border-color: var(--line);
    color: var(--text);
}

:root[data-theme="dark"] .context-help {
    border-color: rgba(147, 197, 253, .28);
    background: #111c2f;
    color: #bfdbfe;
}

:root[data-theme="dark"] .agenda-preview-callout {
    border-color: rgba(147, 197, 253, .28);
    background: #111c2f;
}

:root[data-theme="dark"] .landing-preview-callout {
    border-color: rgba(250, 204, 21, .42);
    background:
        linear-gradient(135deg, rgba(30, 41, 59, .97), rgba(15, 118, 110, .74));
}

:root[data-theme="dark"] .landing-preview-callout strong,
:root[data-theme="dark"] .agenda-demo-visual-notice strong {
    color: var(--primary-strong);
}

:root[data-theme="dark"] .agenda-preview-callout span {
    color: var(--text);
}

:root[data-theme="dark"] .agenda-demo-visual-notice {
    border-color: rgba(94, 234, 212, .28);
    background:
        linear-gradient(135deg, rgba(15, 23, 42, .96), rgba(17, 28, 47, .94));
    color: #bfdbfe;
}

:root[data-theme="dark"] .landing-preview-callout span,
:root[data-theme="dark"] .agenda-demo-visual-notice span {
    color: var(--text);
}

:root[data-theme="dark"] .landing-product-preview,
:root[data-theme="dark"] .preview-week-board article,
:root[data-theme="dark"] .preview-card {
    background: #0f172a;
    border-color: var(--line);
    color: var(--text);
}

:root[data-theme="dark"] .landing-calendar-preview,
:root[data-theme="dark"] .landing-mobile-device-screen,
:root[data-theme="dark"] .react-modal.react-modal-preview {
    --bg: #0f172a;
    --surface: #111c2f;
    --text: #f8fafc;
    --muted: #94a3b8;
    --line: rgba(148, 163, 184, .24);
}

:root[data-theme="dark"] .landing-calendar-preview {
    border-color: rgba(148, 163, 184, .28);
    background: rgba(15, 23, 42, .94);
    color: #f8fafc;
}

:root[data-theme="dark"] .landing-calendar-preview .agenda-head,
:root[data-theme="dark"] .landing-calendar-preview .agenda-lane,
:root[data-theme="dark"] .landing-calendar-preview .agenda-card,
:root[data-theme="dark"] .landing-calendar-preview .react-panel,
:root[data-theme="dark"] .landing-calendar-preview .calendar-day,
:root[data-theme="dark"] .landing-calendar-preview .agenda-month-day,
:root[data-theme="dark"] .landing-mobile-device-screen .agenda-head,
:root[data-theme="dark"] .landing-mobile-device-screen .agenda-lane,
:root[data-theme="dark"] .landing-mobile-device-screen .agenda-card,
:root[data-theme="dark"] .landing-mobile-device-screen .react-panel,
:root[data-theme="dark"] .landing-mobile-device-screen .calendar-day,
:root[data-theme="dark"] .landing-mobile-device-screen .agenda-month-day {
    border-color: rgba(148, 163, 184, .24);
    background: #111c2f;
    color: #f8fafc;
}

:root[data-theme="dark"] .landing-calendar-preview .agenda-lane-kicker,
:root[data-theme="dark"] .landing-calendar-preview .calendar-weekday,
:root[data-theme="dark"] .landing-mobile-device-screen .agenda-lane-kicker,
:root[data-theme="dark"] .landing-mobile-device-screen .calendar-weekday {
    border-color: rgba(94, 234, 212, .24);
    background: #102f2d;
    color: #5eead4;
}

:root[data-theme="dark"] .landing-calendar-preview .agenda-card p,
:root[data-theme="dark"] .landing-calendar-preview .agenda-card-time,
:root[data-theme="dark"] .landing-calendar-preview .agenda-lane-head small,
:root[data-theme="dark"] .landing-mobile-device-screen .agenda-card p,
:root[data-theme="dark"] .landing-mobile-device-screen .agenda-card-time,
:root[data-theme="dark"] .landing-mobile-device-screen .agenda-lane-head small,
:root[data-theme="dark"] .react-modal-preview .react-modal-head p,
:root[data-theme="dark"] .react-modal-preview .react-modal-summary,
:root[data-theme="dark"] .react-modal-preview .agenda-card-time {
    color: #94a3b8;
}

:root[data-theme="dark"] .landing-calendar-preview .agenda-empty-slot,
:root[data-theme="dark"] .landing-mobile-device-screen .agenda-empty-slot {
    border-color: rgba(148, 163, 184, .24);
    background: #0f172a;
    color: #94a3b8;
}

:root[data-theme="dark"] .landing-calendar-preview .btn.secondary,
:root[data-theme="dark"] .landing-calendar-preview .icon-btn,
:root[data-theme="dark"] .landing-calendar-preview .agenda-help-toggle,
:root[data-theme="dark"] .landing-mobile-device-screen .btn.secondary,
:root[data-theme="dark"] .landing-mobile-device-screen .icon-btn,
:root[data-theme="dark"] .landing-mobile-device-screen .agenda-help-toggle,
:root[data-theme="dark"] .react-modal-preview .btn.secondary {
    border-color: rgba(148, 163, 184, .24);
    background: #0f172a;
    color: #f8fafc;
}

:root[data-theme="dark"] .landing-calendar-preview .segmented,
:root[data-theme="dark"] .landing-mobile-device-screen .segmented {
    border-color: rgba(148, 163, 184, .24);
    background: #0f172a;
}

:root[data-theme="dark"] .landing-calendar-preview .segmented a,
:root[data-theme="dark"] .landing-calendar-preview .segmented button,
:root[data-theme="dark"] .landing-mobile-device-screen .segmented a,
:root[data-theme="dark"] .landing-mobile-device-screen .segmented button {
    color: #94a3b8;
}

:root[data-theme="dark"] .landing-calendar-preview .segmented .active,
:root[data-theme="dark"] .landing-calendar-preview .segmented a.active,
:root[data-theme="dark"] .landing-calendar-preview .segmented button.active,
:root[data-theme="dark"] .landing-mobile-device-screen .segmented .active,
:root[data-theme="dark"] .landing-mobile-device-screen .segmented a.active,
:root[data-theme="dark"] .landing-mobile-device-screen .segmented button.active {
    background: #f8fafc;
    color: #0f766e;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
}

:root[data-theme="dark"] .landing-mobile-device-screen {
    background: #0f172a;
    color: #f8fafc;
}

:root[data-theme="dark"] .react-modal.react-modal-preview {
    border-color: rgba(148, 163, 184, .24);
    background: #111c2f;
    color: #f8fafc;
}

:root[data-theme="dark"] .react-modal-preview .icon-btn,
:root[data-theme="dark"] .react-modal-preview .react-modal-summary > span:not(.react-badge),
:root[data-theme="dark"] .react-modal-preview .calendar-modal-code,
:root[data-theme="dark"] .react-modal-preview input,
:root[data-theme="dark"] .react-modal-preview select,
:root[data-theme="dark"] .react-modal-preview textarea,
:root[data-theme="dark"] .react-modal-preview .datetime-picker-display {
    border-color: rgba(148, 163, 184, .24);
    background: #0f172a;
    color: #f8fafc;
}

:root[data-theme="dark"] .preview-week-board article.active {
    background: #111c2f;
    border-color: rgba(147, 197, 253, .36);
}

:root[data-theme="dark"] .preview-toolbar strong,
:root[data-theme="dark"] .preview-day-head strong,
:root[data-theme="dark"] .preview-card b {
    color: var(--text);
}

:root[data-theme="dark"] .preview-help-button {
    background: #0f172a;
    border-color: var(--line);
    color: var(--primary-strong);
}

:root[data-theme="dark"] .agenda-help-toggle,
:root[data-theme="dark"] .topbar-help-toggle {
    background: #111c2f;
    border-color: rgba(147, 197, 253, .28);
    color: #bfdbfe;
}

:root[data-theme="dark"] .topbar-help-icon {
    background: rgba(147, 197, 253, .14);
    color: #93c5fd;
}

:root[data-theme="dark"] .agenda-demo-visual-notice::before {
    background: linear-gradient(135deg, #0f766e, #2563eb);
    color: #e0f2fe;
    box-shadow: 0 10px 24px rgba(14, 165, 233, .18);
}

:root[data-theme="dark"] .preview-empty-day {
    border-color: var(--line);
}

:root[data-theme="dark"] .landing-final-cta {
    border-color: rgba(94, 234, 212, .22);
    background: #102f2d;
}

:root[data-theme="dark"] .landing-legal-preview article,
:root[data-theme="dark"] .landing-footer-inner {
    border-color: rgba(94, 234, 212, .22);
    background:
        linear-gradient(135deg, rgba(15, 23, 42, .96), rgba(17, 28, 47, .94));
}

:root[data-theme="dark"] .landing-security-section {
    border-color: rgba(94, 234, 212, .26);
    background:
        linear-gradient(135deg, rgba(15, 23, 42, .98), rgba(15, 118, 110, .68));
}

:root[data-theme="dark"] .landing-legal-preview ul,
:root[data-theme="dark"] .landing-footer-brand p,
:root[data-theme="dark"] .landing-footer-about p:last-child,
:root[data-theme="dark"] .landing-footer-links a,
:root[data-theme="dark"] .landing-footer-links span,
:root[data-theme="dark"] .landing-footer-bottom,
:root[data-theme="dark"] .landing-footer-bottom a {
    color: var(--muted);
}

:root[data-theme="dark"] .landing-footer {
    background: linear-gradient(180deg, #0f172a 0%, #102f2d 100%);
}

:root[data-theme="dark"] .landing-final-cta .landing-eyebrow {
    color: var(--primary-strong);
}

:root[data-theme="dark"] .segmented button.active,
:root[data-theme="dark"] .segmented a.active,
:root[data-theme="dark"] .compact-check,
:root[data-theme="dark"] .catalog-price-row,
:root[data-theme="dark"] .catalog-live-preview span,
:root[data-theme="dark"] .catalog-service-option,
:root[data-theme="dark"] .template-item-row,
:root[data-theme="dark"] .compact-form,
:root[data-theme="dark"] .event-workspace-nav {
    background: #0f172a;
    border-color: var(--line);
    color: var(--text);
}

:root[data-theme="dark"] .react-table tbody tr:hover {
    background: #111c2f;
}

:root[data-theme="dark"] .field label,
:root[data-theme="dark"] th,
:root[data-theme="dark"] .landing-links a:not(.btn) {
    color: var(--text);
}

:root[data-theme="dark"] .field input,
:root[data-theme="dark"] .field select,
:root[data-theme="dark"] .field textarea,
:root[data-theme="dark"] .field option,
:root[data-theme="dark"] .list-item input,
:root[data-theme="dark"] th,
:root[data-theme="dark"] .calendar-day,
:root[data-theme="dark"] .agenda-day {
    background: #0f172a;
    color: var(--text);
}

:root[data-theme="dark"] .field input,
:root[data-theme="dark"] .field select,
:root[data-theme="dark"] .field textarea,
:root[data-theme="dark"] .datetime-picker-display {
    border-color: rgba(148, 163, 184, .24);
}

:root[data-theme="dark"] .datetime-picker-display {
    background: #0f172a;
    color: var(--text);
}

:root[data-theme="dark"] .datetime-field input[type="date"],
:root[data-theme="dark"] .native-datetime-input {
    color-scheme: dark;
}

:root[data-theme="dark"] .datetime-field input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(1.35);
    opacity: .9;
}

:root[data-theme="dark"] .datetime-popover {
    background: var(--surface);
    border-color: var(--line);
}

:root[data-theme="dark"] .datetime-popover-head button {
    background: #0f172a;
    color: var(--text);
}

:root[data-theme="dark"] .calendar-weekday {
    border-color: var(--line);
    background: #102f2d;
    color: var(--primary-strong);
}

:root[data-theme="dark"] .calendar-day.muted-day {
    background: #111827;
}

:root[data-theme="dark"] .agenda-head,
:root[data-theme="dark"] .agenda-lane,
:root[data-theme="dark"] .agenda-card,
:root[data-theme="dark"] .agenda-filter-panel {
    border-color: rgba(148, 163, 184, .24);
    background: #111c2f;
    color: var(--text);
}

:root[data-theme="dark"] .agenda-card:hover,
:root[data-theme="dark"] .agenda-card:focus-visible,
:root[data-theme="dark"] .agenda-lane:hover,
:root[data-theme="dark"] .agenda-month-day:hover,
:root[data-theme="dark"] .agenda-month-day:focus-visible {
    border-color: rgba(94, 234, 212, .34);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .32);
}

:root[data-theme="dark"] .agenda-card.agenda-card-updated {
    border-color: rgba(147, 197, 253, .9);
    outline-color: rgba(147, 197, 253, .34);
    background: linear-gradient(0deg, #172f54, #111c2f);
}

:root[data-theme="dark"] .agenda-lane-kicker,
:root[data-theme="dark"] .agenda-filter-toggle.has-filters {
    border-color: rgba(94, 234, 212, .24);
    background: #102f2d;
    color: var(--primary-strong);
}

:root[data-theme="dark"] .agenda-day-time-label {
    border-color: rgba(94, 234, 212, .22);
    color: var(--primary-strong);
}

:root[data-theme="dark"] .agenda-day-time-label::after {
    border-color: #111c2f;
    box-shadow: 0 0 0 2px rgba(94, 234, 212, .18);
}

:root[data-theme="dark"] .agenda-empty-slot {
    border-color: rgba(148, 163, 184, .24);
    background: #0f172a;
    color: var(--muted);
}

:root[data-theme="dark"] .agenda-sync-toast {
    border-color: rgba(94, 234, 212, .28);
    background: rgba(17, 28, 47, .96);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .38);
}

:root[data-theme="dark"] .agenda-sync-toast.payment-update {
    border-color: rgba(134, 239, 172, .3);
    background: linear-gradient(135deg, rgba(16, 55, 31, .96), rgba(58, 45, 10, .92));
}

:root[data-theme="dark"] .agenda-sync-toast button {
    background: rgba(94, 234, 212, .12);
    color: var(--primary-strong);
}

:root[data-theme="dark"] .agenda-type-chip.agenda-kind-event,
:root[data-theme="dark"] .agenda-count-pill.agenda-kind-event,
:root[data-theme="dark"] .agenda-day-add.agenda-kind-event,
:root[data-theme="dark"] .agenda-metric-services {
    border-color: rgba(147, 197, 253, .28);
    background: #172f54;
    color: var(--blue);
}

:root[data-theme="dark"] .agenda-type-chip.agenda-kind-task,
:root[data-theme="dark"] .agenda-count-pill.agenda-kind-task,
:root[data-theme="dark"] .agenda-day-add.agenda-kind-task,
:root[data-theme="dark"] .agenda-metric-tasks.agenda-task-some {
    border-color: rgba(251, 191, 36, .28);
    background: #3a2d0a;
    color: var(--amber);
}

:root[data-theme="dark"] .agenda-type-chip.agenda-kind-reminder,
:root[data-theme="dark"] .agenda-count-pill.agenda-kind-reminder,
:root[data-theme="dark"] .agenda-day-add.agenda-kind-reminder,
:root[data-theme="dark"] .agenda-metric-tasks.agenda-task-none {
    border-color: rgba(252, 165, 165, .28);
    background: #421818;
    color: var(--red);
}

:root[data-theme="dark"] .agenda-metric-tasks.agenda-task-all {
    border-color: rgba(134, 239, 172, .28);
    background: #10371f;
    color: var(--green);
}

:root[data-theme="dark"] .agenda-month-day.agenda-today {
    border-color: var(--blue);
    background: linear-gradient(180deg, #172f54, #111c2f 54%, #0f172a);
    box-shadow: inset 0 0 0 2px rgba(147, 197, 253, .18), 0 16px 38px rgba(37, 99, 235, .22);
}

:root[data-theme="dark"] .auth-shell {
    background: linear-gradient(160deg, #0f172a 0%, #123044 52%, #0f3f3a 100%);
}

:root[data-theme="dark"] .auth-version {
    border-color: rgba(20, 184, 166, .28);
    background: rgba(20, 184, 166, .12);
    color: var(--primary-strong);
}

:root[data-theme="dark"] .mfa-disclosure {
    border-color: rgba(148, 163, 184, .24);
    background: rgba(15, 23, 42, .46);
}

:root[data-theme="dark"] .mfa-qr-panel {
    border-color: rgba(255, 255, 255, .72);
    background: #fff;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .28);
}

:root[data-theme="dark"] .landing-shell {
    background: var(--bg);
}

:root[data-theme="dark"] .landing-problem {
    background: linear-gradient(180deg, #0f172a 0%, #1f1b14 100%);
}

:root[data-theme="dark"] .product-section {
    background: linear-gradient(180deg, #102f2d 0%, #0f172a 100%);
}

:root[data-theme="dark"] .flow-section {
    background: linear-gradient(180deg, #0f172a 0%, #12233f 100%);
}

:root[data-theme="dark"] .role-section {
    background: linear-gradient(180deg, #111827 0%, #2d2412 100%);
}

:root[data-theme="dark"] .pricing-section {
    background: linear-gradient(180deg, #0f172a 0%, #10371f 100%);
}

:root[data-theme="dark"] .brand-logo,
:root[data-theme="dark"] .brand-preview,
:root[data-theme="dark"] .invitation-hero {
    background: #0f172a;
}

:root[data-theme="dark"] .dashboard-progress,
:root[data-theme="dark"] .chart-track,
:root[data-theme="dark"] .react-progress {
    background: #334155;
}

:root[data-theme="dark"] .react-priority-card {
    border-color: rgba(147, 197, 253, .24);
    background: #12233f;
}

:root[data-theme="dark"] .react-empty-state {
    background: #0f172a;
}

:root[data-theme="dark"] .react-skeleton-grid span {
    background: linear-gradient(90deg, #1e293b, #334155, #1e293b);
    background-size: 220% 100%;
}

:root[data-theme="dark"] .badge,
:root[data-theme="dark"] .react-badge {
    background: #334155;
    color: var(--text);
}

:root[data-theme="dark"] .badge.success,
:root[data-theme="dark"] .react-badge.success,
:root[data-theme="dark"] .calendar-pill.success,
:root[data-theme="dark"] .alert.success {
    background: #10371f;
    color: var(--green);
}

:root[data-theme="dark"] .badge.info,
:root[data-theme="dark"] .react-badge.info,
:root[data-theme="dark"] .calendar-pill.info {
    background: #172f54;
    color: var(--blue);
}

:root[data-theme="dark"] .badge.warning,
:root[data-theme="dark"] .react-badge.warning,
:root[data-theme="dark"] .calendar-pill.warning {
    background: #3a2d0a;
    color: var(--amber);
}

:root[data-theme="dark"] .badge.danger,
:root[data-theme="dark"] .react-badge.danger,
:root[data-theme="dark"] .calendar-pill.danger,
:root[data-theme="dark"] .alert.error {
    background: #421818;
    color: var(--red);
}
:root[data-theme="dark"] .auth-login-error,
:root[data-theme="dark"] .landing-login-modal .field-error {
    border-color: rgba(248, 113, 113, .38);
    background: #421818;
    color: var(--red);
}

:root[data-theme="dark"] .calendar-pill.neutral {
    background: #334155;
    color: var(--text);
}

@media (min-width: 720px) {
    .react-modal-backdrop {
        align-items: center;
        padding: 24px;
    }

    .react-modal {
        top: 6vh;
        bottom: auto;
        right: 0;
        left: 0;
        width: min(820px, calc(100vw - 48px));
    }

    .main {
        padding: 24px;
    }

    .bottom-nav a,
    .primary-nav a {
        min-width: 110px;
        padding: 0 14px;
    }

    .page-head {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
    }

    .react-page-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
    }

    .react-metrics-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .react-dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .landing-final-cta.demo-request-section {
        grid-template-columns: minmax(0, .82fr) minmax(360px, 1fr);
    }

    .event-section-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .event-message-schedule-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .react-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .services-table-panel {
        display: grid;
    }

    .services-mobile-list {
        display: none;
    }

    .react-list-item {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .react-row-actions {
        grid-column: 1 / -1;
    }

    .catalog-form-section-head,
    .catalog-service-option {
        grid-template-columns: minmax(0, 1fr) minmax(150px, 220px);
        align-items: end;
    }

    .grid.two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid.three {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .grid.four {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .report-chart-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .toggle-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .landing-nav {
        padding: 12px 24px;
    }

    .landing-hero {
        min-height: 78vh;
        padding: 96px 24px 46px;
    }

    .landing-hero-inner {
        width: min(1120px, 100%);
    }

    .landing-hero h1 {
        font-size: 64px;
    }

    .landing-band,
    .landing-section {
        padding: 80px 24px;
    }

    .landing-grid,
    .pricing-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 720px) and (max-width: 1039px) {
    .landing-hero-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .landing-hero-copy {
        max-width: 760px;
    }

    .landing-product-preview {
        width: min(820px, 100%);
    }
}

@media (min-width: 1040px) {
    .landing-hero-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .landing-agenda-showcase {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .landing-mobile-agenda-preview {
        display: block;
    }

    .landing-product-preview {
        width: 100%;
    }

    .landing-calendar-preview .agenda-workspace.centered-workweek {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        overflow-x: hidden;
    }
}

@media (max-width: 719px) {
    body {
        font-size: 14px;
    }

    .auth-card {
        padding: 18px;
    }

    .auth-card-mfa .auth-head {
        align-items: stretch;
    }

    .auth-card-mfa .auth-head-actions {
        width: 100%;
        margin-left: 0;
        justify-content: space-between;
    }

    .auth-card-mfa .theme-toggle {
        min-width: 0;
    }

    .mfa-qr-panel {
        width: min(100%, 310px);
        padding: 16px;
    }

    .mfa-copy-row {
        grid-template-columns: 1fr;
    }

    .topbar-inner {
        flex-wrap: wrap;
        gap: 8px;
    }

    .brand {
        flex: 1 1 auto;
        min-width: 0;
    }

    .brand-title,
    .brand-subtitle {
        max-width: 58vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .topbar-actions {
        order: 2;
        gap: 6px;
    }

    .primary-nav {
        order: 3;
        flex: 1 0 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        overflow: visible;
        padding: 4px 0 2px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .primary-nav a {
        min-height: 42px;
    }

    .nav-section-label {
        min-height: 42px;
        padding: 0 12px;
    }

    .nav-section-menu {
        min-width: 210px;
    }

    .nav-section:last-child .nav-section-menu,
    .nav-section:nth-last-child(2) .nav-section-menu {
        right: 0;
        left: auto;
    }

    .main {
        padding: 12px;
    }

    .react-dashboard {
        gap: 12px;
    }

    .react-page-head,
    .agenda-head {
        padding: 12px;
    }

    .agenda-head-controls {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow: visible;
    }

    .agenda-filter-toggle,
    .agenda-period-nav,
    .agenda-view-selector,
    .agenda-help-toggle {
        width: 100%;
    }

    .agenda-filter-toggle {
        grid-column: 1;
        grid-row: 1;
    }

    .agenda-period-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr) 40px;
    }

    .agenda-view-selector {
        grid-column: 1 / -1;
        grid-row: 3;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .agenda-help-toggle {
        grid-column: 2;
        grid-row: 1;
    }

    .react-page-head h1,
    .agenda-head h1 {
        font-size: 22px;
    }

    .context-help {
        padding: 9px 10px;
    }

    .agenda-legend-popover {
        right: 8px;
        left: 8px;
        width: auto;
    }

    .agenda-legend-grid {
        grid-template-columns: 1fr;
    }

    .landing-links a:not(.btn) {
        display: none;
    }

    .landing-links .btn {
        min-height: 36px;
        padding: 7px 10px;
    }

    .landing-nav .landing-links > a.btn {
        display: none;
    }

    .landing-hero h1 {
        max-width: 320px;
        font-size: 28px;
        overflow-wrap: anywhere;
    }

    .landing-hero {
        padding-right: 0;
        padding-left: 0;
        overflow-x: clip;
    }

    .landing-hero-layout {
        width: min(320px, calc(100vw - 48px));
        max-width: 100%;
        margin-right: 16px;
        margin-left: 16px;
    }

    .landing-hero-copy {
        width: 100%;
        max-width: 320px;
        margin-right: 0;
        margin-left: 0;
    }

    .landing-mobile-agenda-copy {
        width: min(330px, calc(100vw - 48px));
        margin-right: auto;
        margin-left: auto;
    }

    .landing-eyebrow,
    .landing-copy,
    .landing-demo-note,
    .landing-mobile-agenda-copy h2,
    .landing-mobile-agenda-copy p:last-child {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .landing-cta-row .btn {
        min-width: 0;
        width: 100%;
        flex: 1 1 100%;
        justify-content: center;
        white-space: normal;
    }

    .landing-mobile-agenda-copy h2 {
        max-width: 310px;
        margin-right: auto;
        margin-left: auto;
        font-size: 22px;
    }

    .landing-mobile-agenda-copy p:last-child {
        max-width: 330px;
        margin-right: auto;
        margin-left: auto;
        font-size: 13px;
    }

    .field input,
    .field select,
    .field textarea,
    .datetime-picker-display {
        font-size: 16px;
    }

    .datetime-popover {
        position: fixed;
        right: 12px;
        bottom: 12px;
        left: 12px;
        top: auto;
        width: auto;
        max-height: calc(100dvh - 24px);
        overflow-y: auto;
    }

    .datetime-picker-grid,
    .datetime-time-fields {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .datetime-popover-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .grid.four {
        grid-template-columns: 1fr;
    }

    .react-priority-card {
        align-items: stretch;
        flex-direction: column;
    }

    .react-actions,
    .react-row-actions,
    .react-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .react-priority-card .btn,
    .react-actions .btn,
    .react-row-actions .btn,
    .react-form-actions .btn {
        width: 100%;
    }

    .react-row-actions form {
        width: 100%;
    }

    .catalog-toolbar .segmented,
    .catalog-toolbar .compact-field,
    .catalog-toolbar .react-pagination-summary {
        width: 100%;
        flex-basis: 100%;
    }

    .calendar-grid {
        grid-template-columns: repeat(7, minmax(38px, 1fr));
        gap: 3px;
        overflow: visible;
    }

    .calendar-weekday {
        min-height: 24px;
        border-radius: 6px;
        font-size: 10px;
    }

    .calendar-day {
        min-height: 68px;
        padding: 5px;
        border-radius: 6px;
    }

    .agenda-month-day {
        gap: 5px;
        min-height: 68px;
        overflow: hidden;
    }

    .agenda-month-actions {
        opacity: 1;
        pointer-events: auto;
    }

    .agenda-month-actions .agenda-day-add {
        min-width: 24px;
        min-height: 24px;
        padding: 2px 6px;
    }

    .agenda-month-day.agenda-today::before {
        top: -7px;
        left: 5px;
        padding: 1px 6px;
        font-size: 9px;
    }

    .calendar-month-head {
        gap: 3px;
    }

    .calendar-date {
        font-size: 11px;
    }

    .agenda-month-day.agenda-today .calendar-date {
        font-size: 13px;
    }

    .agenda-today-chip {
        display: none;
    }

    .agenda-lane-counts {
        gap: 3px;
    }

    .agenda-count-pill {
        min-width: 19px;
        min-height: 18px;
        padding: 1px 4px;
        font-size: 10px;
    }

    .agenda-workspace.centered-workweek {
        grid-template-columns: repeat(5, minmax(82vw, 1fr));
        gap: 8px;
        overflow-x: auto;
        scroll-padding-inline: 9vw;
        scroll-snap-type: x mandatory;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .agenda-workspace.centered-workweek .planning-day-card {
        scroll-snap-align: center;
    }

    .agenda-lane {
        min-width: 0;
        padding: 10px;
    }

    .agenda-day-time-group {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 8px;
    }

    .agenda-day-time-label {
        padding-right: 8px;
        font-size: 12px;
    }

    .agenda-card {
        padding: 12px 12px 16px;
    }

    .agenda-card.compact h3 {
        font-size: 14px;
    }

    .agenda-card-meta span,
    .agenda-metric {
        max-width: 100%;
    }

    .react-modal-backdrop {
        align-items: stretch;
        padding: 0;
    }

    .react-modal {
        inset: 0;
        width: 100%;
        max-width: none;
        max-height: 100dvh;
        border-width: 0;
        border-radius: 0;
        gap: 10px;
        padding: 0 12px 12px;
    }

    .react-modal-head {
        position: sticky;
        top: 0;
        z-index: 2;
        align-items: flex-start;
        margin-inline: -12px;
        padding: 12px;
        background: var(--surface);
        border-bottom: 1px solid var(--line);
    }

    .react-modal-head h2 {
        font-size: 19px;
    }

    .react-modal-summary {
        gap: 6px;
    }

    .form-grid {
        gap: 10px;
    }

    .grid.two,
    .grid.three,
    .grid.four {
        grid-template-columns: 1fr;
    }

    .calendar-new-event-time-row {
        grid-template-columns: 1fr;
    }

    .react-form-actions {
        position: sticky;
        bottom: -12px;
        z-index: 2;
        margin-inline: -12px;
        padding: 10px 12px 12px;
        border-top: 1px solid var(--line);
        background: var(--surface);
    }

    .table-wrap,
    .react-table-wrap {
        margin-inline: -2px;
        border-radius: 6px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .table-wrap::before,
    .react-table-wrap::before {
        display: block;
        padding: 7px 9px;
        border-bottom: 1px solid var(--line);
        background: #f8fafc;
        color: var(--muted);
        content: "Desliza para ver mas";
        font-size: 12px;
        font-weight: 900;
    }

    table,
    .react-table {
        min-width: 640px;
    }

    .landing-nav {
        align-items: flex-start;
        gap: 8px;
    }

    .landing-links {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .landing-product-preview {
        display: grid;
        overflow: visible;
        margin-top: 0;
        padding: 10px;
    }

    .landing-agenda-showcase {
        gap: 18px;
        margin-top: 18px;
        min-width: 0;
        overflow: hidden;
    }

    .landing-mobile-agenda-preview {
        display: block;
    }

    .landing-mobile-device {
        border-radius: 24px;
    }

    .landing-mobile-device-screen {
        height: 620px;
    }

    .landing-calendar-preview {
        height: 700px;
        min-height: 700px;
        overflow: visible;
        max-width: calc(100vw - 24px);
    }

    .landing-calendar-preview #react-landing-calendar-preview-root,
    .landing-calendar-preview #react-landing-calendar-preview-root > .react-dashboard {
        min-width: 0;
    }

    .landing-calendar-preview #react-landing-calendar-preview-root > .react-dashboard {
        display: block;
    }

    .landing-calendar-preview .agenda-head-controls {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        max-width: 100%;
    }

    .landing-calendar-preview .agenda-period-nav {
        display: grid;
        grid-template-columns: 38px minmax(0, 1fr) 38px;
        width: 100%;
    }

    .landing-calendar-preview .agenda-view-selector {
        width: 100%;
        flex-basis: auto;
    }

    .landing-calendar-preview .agenda-workspace.centered-workweek {
        grid-template-columns: repeat(5, minmax(min(304px, calc(100vw - 68px)), 1fr));
        width: 100%;
        max-width: 100%;
        margin-top: 6px;
        overflow-x: auto;
        overflow-y: visible;
        scroll-snap-type: x proximity;
    }

    .landing-calendar-preview .agenda-card-stack {
        min-height: 500px;
    }

    .landing-calendar-preview .agenda-lane {
        scroll-snap-align: start;
    }

    .landing-calendar-preview {
        display: none;
    }

    .landing-mobile-agenda-copy {
        margin-bottom: 12px;
        padding: 0 4px;
        max-width: 100%;
    }

    .landing-mobile-device {
        width: min(300px, 100%);
        border-radius: 26px;
        max-width: 100%;
    }

    .landing-mobile-device-screen {
        box-sizing: border-box;
        height: 680px;
        max-width: 100%;
        min-width: 0;
        overflow-x: auto;
        overflow-y: auto;
        padding: 8px;
    }

    .landing-mobile-device-screen .react-dashboard {
        max-width: 100%;
        min-width: 0;
        overflow: visible;
    }

    .landing-mobile-device-screen .agenda-head {
        padding: 9px;
    }

    .landing-mobile-device-screen .agenda-head .react-eyebrow {
        font-size: 12px;
    }

    .landing-mobile-device-screen .agenda-head-controls {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
    }

    .landing-mobile-device-screen .agenda-help-toggle {
        width: min(100%, 252px);
    }

    .landing-mobile-device-screen .agenda-view-selector {
        min-height: 40px;
    }

    .landing-mobile-device-screen .agenda-workspace.centered-workweek {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(100%, 100%);
        grid-template-columns: none;
        height: auto;
        min-height: 508px;
        max-width: 100%;
        min-width: 0;
        overflow-x: auto;
        overflow-y: visible;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .landing-mobile-device-screen .agenda-lane {
        min-width: 100%;
        width: 100%;
        max-width: 100%;
        display: grid;
        scroll-snap-align: start;
    }

    .landing-mobile-device-screen .agenda-card-stack {
        min-height: 402px;
    }

    .topbar-help-label {
        display: none;
    }

    .preview-toolbar,
    .preview-week-board {
        min-width: 640px;
    }

    .landing-final-cta.demo-request-section {
        padding: 16px;
    }

    .landing-legal-preview {
        grid-template-columns: minmax(0, 1fr);
        width: min(100% - 24px, 1120px);
    }

    .landing-legal-preview article,
    .landing-security-section,
    .landing-footer-inner {
        padding: 16px;
    }

    .landing-security-section {
        width: min(100% - 24px, 1120px);
        margin-bottom: 18px;
    }

    .landing-security-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .landing-legal-preview ul {
        padding-left: 16px;
    }

    .landing-footer {
        padding: 0 12px 16px;
    }

    .landing-footer-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .landing-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .agenda-sync-toast {
        top: 82px;
        right: 10px;
        width: calc(100vw - 20px);
        max-width: none;
    }

    .agenda-sync-detail {
        white-space: normal;
    }
}

@media print {
    @page {
        margin: 14mm;
    }

    html {
        scroll-behavior: auto;
    }

    body,
    .landing-shell {
        min-width: 0;
        background: #fff !important;
        color: #111827 !important;
    }

    .landing-nav,
    .landing-preview-callout,
    .landing-mobile-agenda-preview,
    .theme-toggle,
    .btn {
        display: none !important;
    }

    .landing-hero,
    .conversion-hero {
        display: block;
        min-height: auto;
        padding: 0 0 10mm !important;
        background: #fff !important;
        color: #111827 !important;
        page-break-after: always;
        break-after: page;
    }

    .landing-hero::before {
        display: none;
    }

    .landing-hero-layout,
    .landing-grid,
    .pricing-grid,
    .landing-section-head,
    .landing-feature-grid,
    .landing-flow,
    .landing-final-cta,
    .landing-legal-preview,
    .landing-security-section,
    .landing-footer-inner {
        width: 100% !important;
        max-width: none !important;
    }

    .landing-hero h1 {
        max-width: none;
        color: #111827 !important;
        font-size: 34pt;
    }

    .landing-copy,
    .landing-demo-note,
    .landing-proof-row span,
    .landing-section-head p,
    .landing-grid p,
    .landing-feature-grid p,
    .landing-flow p,
    .pricing-card li,
    .landing-final-cta p,
    .landing-legal-preview p,
    .landing-legal-preview ul,
    .landing-footer-brand p,
    .landing-footer-about p:last-child {
        color: #374151 !important;
    }

    .landing-calendar-preview {
        height: auto;
        min-height: 0;
        margin-top: 8mm;
        overflow: hidden;
        page-break-inside: avoid;
        break-inside: avoid;
        box-shadow: none;
    }

    .landing-calendar-preview .agenda-head,
    .landing-calendar-preview .agenda-workspace.centered-workweek {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .landing-section,
    .landing-final-cta,
    .landing-legal-preview,
    .landing-security-section,
    .landing-footer {
        padding: 0 !important;
        margin: 0 0 10mm !important;
        page-break-before: auto;
        break-before: auto;
    }

    .product-section,
    .pricing-section,
    .landing-final-cta,
    .landing-security-section {
        page-break-before: always;
        break-before: page;
    }

    .landing-grid article,
    .landing-feature-grid article,
    .landing-flow article,
    .pricing-card,
    .landing-final-cta,
    .landing-legal-preview article,
    .landing-security-section,
    .landing-footer-inner {
        page-break-inside: avoid;
        break-inside: avoid;
        animation: none !important;
        transform: none !important;
        box-shadow: none !important;
    }

    .landing-security-section {
        background: #f8fafc !important;
        color: #111827 !important;
    }

    .landing-security-copy p,
    .landing-security-grid strong,
    .landing-security-grid span {
        color: #374151 !important;
    }

    .landing-security-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.landing-inline-form {
    margin: 0;
}

.landing-link-button,
.landing-footer-link-button {
    appearance: none;
    border: 0;
    background: transparent;
    color: #334155;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    padding: 7px 2px;
}

.landing-link-button:hover,
.landing-link-button:focus-visible,
.landing-footer-link-button:hover,
.landing-footer-link-button:focus-visible {
    color: var(--primary-strong);
}

.landing-login-modal {
    max-width: min(460px, calc(100vw - 28px));
}

.landing-login-modal .form-grid {
    gap: 12px;
}

.landing-login-modal .field-error {
    display: block;
    padding: 7px 9px;
    border: 1px solid #fecaca;
    border-radius: var(--radius);
    background: #fef2f2;
    line-height: 1.25;
}

.landing-login-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.landing-login-actions .btn {
    min-width: 132px;
}

.landing-login-secondary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.landing-login-secondary a {
    color: var(--primary-strong);
}

.landing-login-progress {
    display: grid;
    gap: 11px;
    padding: 13px;
    border: 1px solid rgba(20, 184, 166, .22);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(20, 184, 166, .12), rgba(59, 130, 246, .1));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65), 0 18px 40px rgba(15, 23, 42, .08);
    position: relative;
    overflow: hidden;
    transform-origin: top;
    animation: landing-login-progress-in .32s cubic-bezier(.2, .8, .2, 1) both;
}

.landing-login-progress[hidden] {
    display: none;
}

.landing-login-progress::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .32), transparent);
    transform: translateX(-120%);
    animation: landing-login-sheen 2.6s ease-in-out infinite;
}

.landing-login-progress-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--text);
    font-size: 13px;
    position: relative;
}

.landing-login-progress-copy strong {
    color: var(--primary-strong);
    font-size: 13px;
    font-weight: 900;
}

.landing-login-progress-copy span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-align: right;
}

.landing-login-progress-track {
    position: relative;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(15, 118, 110, .12);
}

.landing-login-progress-track span {
    position: absolute;
    inset: 0;
    width: 58%;
    border-radius: inherit;
    background: linear-gradient(90deg, #14b8a6, #2563eb, #8b5cf6);
    box-shadow: 0 0 22px rgba(20, 184, 166, .38);
    animation: landing-login-progress 2.4s cubic-bezier(.4, 0, .2, 1) infinite;
}

.landing-login-progress-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    font-size: 11px;
    font-weight: 900;
    color: var(--muted);
    position: relative;
}

.landing-login-progress-steps span {
    position: relative;
    min-width: 0;
    padding-left: 13px;
    opacity: .56;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    animation: landing-login-step 2.4s ease-in-out infinite;
}

.landing-login-progress-steps span::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: currentColor;
    transform: translateY(-50%);
}

.landing-login-progress-steps span:nth-child(2) {
    animation-delay: .8s;
}

.landing-login-progress-steps span:nth-child(3) {
    animation-delay: 1.6s;
}

[data-login-form][data-submitting="true"] .field,
[data-login-form][data-submitting="true"] .check-row,
[data-login-form][data-submitting="true"] .landing-login-secondary {
    opacity: .72;
}

.landing-login-actions .btn[disabled] {
    cursor: progress;
    opacity: .86;
}

@keyframes landing-login-progress-in {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes landing-login-sheen {
    0% {
        transform: translateX(-120%);
    }
    48%, 100% {
        transform: translateX(120%);
    }
}

@keyframes landing-login-step {
    0%, 100% {
        color: var(--muted);
        opacity: .56;
    }
    18%, 46% {
        color: var(--primary-strong);
        opacity: 1;
    }
}

@keyframes landing-login-progress {
    0% {
        transform: translateX(-90%) scaleX(.65);
    }
    55% {
        transform: translateX(58%) scaleX(1);
    }
    100% {
        transform: translateX(190%) scaleX(.65);
    }
}

@media (prefers-reduced-motion: reduce) {
    .landing-login-progress,
    .landing-login-progress::before,
    .landing-login-progress-track span,
    .landing-login-progress-steps span {
        animation: none;
    }
}

.landing-session-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid rgba(20, 184, 166, .24);
    border-radius: 999px;
    background: rgba(20, 184, 166, .1);
    color: var(--primary-strong);
    font-size: 12px;
    font-weight: 900;
}

:root[data-theme="dark"] .landing-link-button,
:root[data-theme="dark"] .landing-footer-link-button {
    color: var(--text);
}

:root[data-theme="dark"] .landing-login-progress {
    border-color: rgba(94, 234, 212, .24);
    background: linear-gradient(135deg, rgba(20, 184, 166, .16), rgba(37, 99, 235, .14));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 18px 42px rgba(0, 0, 0, .28);
}

:root[data-theme="dark"] .landing-login-progress-track {
    background: rgba(94, 234, 212, .14);
}

:root[data-theme="dark"] .landing-session-pill {
    background: rgba(94, 234, 212, .12);
}

@media (max-width: 719px) {
    .landing-links a[data-login-modal-open] {
        display: inline-flex;
        min-height: 34px;
        align-items: center;
    }
}

:root[data-theme="dark"] .landing-mobile-device-screen {
    background: #020617;
}

:root[data-theme="dark"] .landing-mobile-device-screen .agenda-workspace.centered-workweek,
:root[data-theme="dark"] .landing-mobile-device-screen .agenda-lane,
:root[data-theme="dark"] .landing-mobile-device-screen .agenda-card-stack {
    background: transparent;
}

:root[data-theme="dark"] .landing-mobile-device-screen .agenda-lane {
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
}

/* Landing mobile agenda preview: keep the phone mockup swipeable and avoid neutral gray day panels. */
.landing-mobile-device-screen {
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.landing-mobile-device-screen .react-dashboard[data-preview="true"] {
    max-width: none;
    overflow: visible;
}

.landing-mobile-device-screen .agenda-workspace.centered-workweek {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(100%, 100%);
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: visible;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
}

.landing-mobile-device-screen .agenda-workspace.centered-workweek .agenda-lane {
    min-width: 100%;
    width: 100%;
    max-width: 100%;
    background: #ffffff;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

:root[data-theme="dark"] .landing-mobile-device-screen .agenda-workspace.centered-workweek .agenda-lane {
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
}
