@import url('https://fonts.googleapis.com/css2?family=Tenor+Sans&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Questrial&family=Tenor+Sans&display=swap');

:root {
    --headFont: 'Tenor Sans', sans-serif;
    --bodyFont: 'Questrial', sans-serif;
}

body,
button,
input,
select,
textarea {
    font-family: var(--bodyFont);
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-mark {
    font-family: var(--headFont);
}

body:not(.login-shell) {
    background: #f5f5f5;
}

.surface,
.metric-card {
    border: 0;
    background: #f5f5f5;
    box-shadow: 14px 14px 28px rgb(163 163 163 / 42%), -14px -14px 28px rgb(255 255 255 / 95%);
}

.surface {
    border-radius: 1rem;
}

.metric-card:hover {
    box-shadow: 17px 17px 32px rgb(163 163 163 / 48%), -17px -17px 32px rgb(255 255 255 / 98%);
}

.form-input,
.tag-add-input,
select.form-input {
    border: 0;
    border-radius: .7rem;
    background-color: #f5f5f5;
    box-shadow: inset 5px 5px 10px rgb(163 163 163 / 35%), inset -5px -5px 10px rgb(255 255 255 / 92%);
    color: #292524;
    -webkit-appearance: none;
    appearance: none;
}

select.form-input {
    background-image: linear-gradient(45deg, transparent 50%, #78716c 50%), linear-gradient(135deg, #78716c 50%, transparent 50%);
    background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
    background-repeat: no-repeat;
    background-size: 5px 5px, 5px 5px;
    padding-right: 2.5rem;
}

input[type='file'].form-input {
    padding: .45rem .6rem;
}

input[type='file'].form-input::file-selector-button {
    margin-right: .6rem;
    border: 0;
    border-radius: .5rem;
    background: #f5f5f5;
    box-shadow: 4px 4px 8px rgb(163 163 163 / 35%), -4px -4px 8px rgb(255 255 255 / 92%);
    color: #44403c;
    cursor: pointer;
    padding: .45rem .7rem;
}

.form-input:focus,
.tag-add-input:focus,
select.form-input:focus {
    border: 0;
    box-shadow: inset 3px 3px 6px rgb(163 163 163 / 36%), inset -3px -3px 6px rgb(255 255 255 / 92%), 0 0 0 3px rgb(185 28 28 / 20%);
    outline: none;
}

.button-secondary {
    border: 0;
    background: #f5f5f5;
    box-shadow: 7px 7px 14px rgb(163 163 163 / 40%), -7px -7px 14px rgb(255 255 255 / 92%);
}

.button-secondary:hover {
    background: #f5f5f5;
    box-shadow: inset 4px 4px 8px rgb(163 163 163 / 33%), inset -4px -4px 8px rgb(255 255 255 / 90%);
}

.button-secondary:active {
    box-shadow: inset 4px 4px 8px rgb(163 163 163 / 36%), inset -4px -4px 8px rgb(255 255 255 / 92%);
}

.table-row:hover {
    background: rgb(255 255 255 / 55%);
}

thead {
    color: #57534e;
}

th {
    border-color: rgb(163 163 163 / 45%);
}

tbody {
    border-color: rgb(163 163 163 / 32%);
}

.detail-row > td {
    background: rgb(255 255 255 / 48%);
}

body:not(.login-shell) {
    color: #1c1917;
}

body:not(.login-shell) main .text-stone-400 {
    color: #57534e;
}

body:not(.login-shell) main .text-stone-500 {
    color: #44403c;
}

body:not(.login-shell) main .text-stone-600 {
    color: #292524;
}

body:not(.login-shell) main .text-red-700,
.eyebrow {
    color: #991b1b;
}

body:not(.login-shell) main .text-amber-600 {
    color: #92400e;
}

body:not(.login-shell) main .text-green-700 {
    color: #166534;
}

body:not(.login-shell) main .text-stone-300,
body:not(.login-shell) main .text-stone-200 {
    color: #292524;
}

body:not(.login-shell) main input::placeholder,
body:not(.login-shell) main textarea::placeholder {
    color: #57534e;
    opacity: 1;
}

.empty-state {
    color: #44403c;
}

.eyebrow { display: none; }

.file-picker.is-selected { border-color: #1c1917; background: #1c1917; color: #fff; box-shadow: 7px 7px 14px rgb(28 25 23 / 22%), -4px -4px 10px rgb(255 255 255 / 70%); }
.file-picker.is-selected .icon { filter: invert(100%); }
.file-upload-submit.is-ready { border-color: #15803d; background: #15803d; color: #fff; box-shadow: 7px 7px 14px rgb(21 128 61 / 22%), -4px -4px 10px rgb(255 255 255 / 70%); }
.file-upload-submit.is-ready:hover { background: #166534; }

.status-select {
    cursor: pointer;
    border: 0;
    display: inline-block;
    font: inherit;
    line-height: 1.2;
    -webkit-appearance: none;
    appearance: none;
    padding: .3rem 1.75rem .3rem .6rem;
    box-shadow: none;
}

.status-select-wrap { position: relative; display: inline-flex; }
.status-select-icon { position: absolute; top: 50%; right: .45rem; pointer-events: none; transform: translateY(-50%); opacity: .65; }

.status-select.status-green { background-color: #dcfce7; color: #166534; }
.status-select.status-blue { background-color: #dbeafe; color: #1d4ed8; }
.status-select.status-amber { background-color: #fef3c7; color: #92400e; }
.status-select.status-gray { background-color: #f5f5f4; color: #57534e; }
.status-select.status-red { background-color: #fee2e2; color: #991b1b; }

.status-select:focus {
    box-shadow: 0 0 0 3px rgb(185 28 28 / 20%);
}

.dashboard-page { margin-top: 1.5rem; }
.dashboard-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3rem; border-bottom: 1px solid rgb(163 163 163 / 32%); }
.dashboard-tabs { display: flex; align-items: center; align-self: stretch; gap: .25rem; }
.dashboard-tab { position: relative; display: inline-flex; align-items: center; border: 0; background: transparent; color: #78716c; cursor: pointer; padding: .75rem .8rem; font-size: .78rem; font-weight: 600; }
.dashboard-tab.is-active { color: #1c1917; }
.dashboard-tab.is-active::after { content: ''; position: absolute; right: .8rem; bottom: -.0625rem; left: .8rem; height: 2px; background: #b91c1c; }
.dashboard-tab-add { color: #a8a29e; font-size: 1.2rem; padding: .5rem; }
.dashboard-new-contact { border-radius: .45rem; padding: .45rem .75rem; font-size: .75rem; }
.dashboard-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid rgb(163 163 163 / 32%); }
.dashboard-metric { position: relative; min-width: 0; border-right: 1px solid rgb(163 163 163 / 22%); padding: 1.15rem 1.1rem 1.25rem 0; }
.dashboard-metric:not(:first-child) { padding-left: 1.1rem; }
.dashboard-metric:last-child { border-right: 0; padding-right: 0; }
.dashboard-metric-label { display: block; color: #44403c; font-size: .7rem; font-weight: 600; }
.metric-arrow { color: #15803d; font-size: .8rem; }
.dashboard-metric strong { display: block; margin-top: .4rem; color: #1c1917; font-family: var(--headFont); font-size: 1.45rem; font-weight: 400; }
.dashboard-metric-note { display: block; overflow: hidden; color: #a8a29e; font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.sparkline { display: flex; align-items: end; gap: 3px; height: 2.1rem; margin-top: .75rem; }
.sparkline i { display: block; width: 4px; border-radius: 3px 3px 0 0; background: #d6d3d1; }
.sparkline-red i { background: #b91c1c; }
.sparkline-green i { background: #15803d; }
.sparkline-amber i { background: #d97706; }
.health-meter { display: block; height: .35rem; margin-top: 1.55rem; overflow: hidden; border-radius: 999px; background: #e7e5e4; }
.health-meter span { display: block; height: 100%; border-radius: inherit; background: #15803d; }
.dashboard-directory { margin-top: 1.5rem; border: 1px solid #e7e5e4; border-radius: .65rem; background: rgb(255 255 255 / 45%); }
.dashboard-table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3rem; border-bottom: 1px solid #e7e5e4; padding: .35rem .85rem; }
.dashboard-filter-wrap, .dashboard-search, .dashboard-filter summary { display: flex; align-items: center; }
.dashboard-filter-wrap { gap: .75rem; }
.dashboard-filter-icon, .dashboard-search span { color: #78716c; font-size: .9rem; }
.dashboard-filter { position: relative; }
.dashboard-filter summary { cursor: pointer; list-style: none; color: #57534e; font-size: .75rem; font-weight: 600; }
.dashboard-filter summary::-webkit-details-marker { display: none; }
.dashboard-filter-menu { position: absolute; top: calc(100% + .6rem); left: 0; z-index: 20; width: 13rem; border: 1px solid #e7e5e4; border-radius: .55rem; background: #fff; padding: .8rem; box-shadow: 0 10px 25px rgb(28 25 23 / 12%); }
.dashboard-filter-menu label { display: block; color: #57534e; font-size: .7rem; font-weight: 600; }
.dashboard-filter-menu .form-input { margin-top: .35rem; padding: .5rem .6rem; font-size: .75rem; }
.dashboard-search { gap: .35rem; }
.dashboard-search input { width: 9rem; border: 0; background: transparent; color: #292524; font-size: .75rem; outline: none; }
.dashboard-customize, .dashboard-section-heading a { color: #57534e; font-size: .7rem; font-weight: 600; }
.dashboard-customize span, .dashboard-section-heading a span { color: #15803d; }
.dashboard-table-scroll { overflow-x: auto; }
.dashboard-table { width: 100%; min-width: 44rem; border-collapse: collapse; text-align: left; font-size: .75rem; }
.dashboard-table th { border-bottom: 1px solid #e7e5e4; color: #a8a29e; font-size: .58rem; font-weight: 600; letter-spacing: .08em; padding: .7rem .85rem; text-transform: uppercase; }
.dashboard-table td { border-bottom: 1px solid #f5f5f4; padding: .7rem .85rem; vertical-align: middle; }
.dashboard-table tbody tr:last-child td { border-bottom: 0; }
.dashboard-table tbody tr:hover { background: rgb(250 250 249 / 80%); }
.dashboard-table tbody tr[hidden] { display: none; }
.dashboard-contact { display: inline-flex; align-items: center; gap: .65rem; }
.dashboard-contact strong, .dashboard-contact small { display: block; }
.dashboard-contact strong { color: #292524; font-size: .75rem; font-weight: 600; }
.dashboard-contact small { margin-top: .2rem; color: #a8a29e; font-size: .65rem; }
.dashboard-muted { color: #78716c; }
.dashboard-open { color: #15803d; font-size: 1rem; }
.dashboard-activity-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2rem; margin-top: 1.75rem; padding-bottom: 1.5rem; }
.dashboard-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 1px solid rgb(163 163 163 / 32%); padding-bottom: .7rem; }
.dashboard-section-heading h3 { color: #292524; font-size: .9rem; font-weight: 600; }
.dashboard-activity-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; border-bottom: 1px solid #f5f5f4; padding: .75rem 0; }
.dashboard-activity-row strong, .dashboard-activity-row small { display: block; }
.dashboard-activity-row strong { overflow: hidden; color: #44403c; font-size: .75rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-activity-row small, .dashboard-activity-row time { margin-top: .2rem; color: #a8a29e; font-size: .65rem; }
.dashboard-email { display: flex; min-width: 0; align-items: center; gap: .55rem; }
.dashboard-empty { padding: 1rem 0; color: #a8a29e; font-size: .75rem; }
@media (max-width: 900px) { .dashboard-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); } .dashboard-metric:nth-child(3) { border-right: 0; } .dashboard-metric:nth-child(n + 4) { border-top: 1px solid rgb(163 163 163 / 22%); } .dashboard-activity-grid { grid-template-columns: 1fr; gap: 1.5rem; } }
@media (max-width: 640px) { .dashboard-toolbar { align-items: flex-start; flex-direction: column; padding-bottom: .75rem; } .dashboard-tabs { min-height: 2.5rem; } .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dashboard-metric:nth-child(3) { border-right: 1px solid rgb(163 163 163 / 22%); } .dashboard-metric:nth-child(even) { border-right: 0; padding-right: 0; } .dashboard-metric:nth-child(n + 3) { border-top: 1px solid rgb(163 163 163 / 22%); } .dashboard-metric:not(:first-child) { padding-left: .85rem; } .dashboard-metric { padding-right: .85rem; } .dashboard-table-toolbar { align-items: flex-start; flex-direction: column; padding: .7rem .85rem; } .dashboard-customize { align-self: flex-end; } .dashboard-search input { width: 7rem; } }

.billing-catalog {
    border-bottom: 1px solid rgb(163 163 163 / 32%);
    padding-bottom: 1.5rem;
}

.billing-catalog-nav {
    height: 65vh;
    min-height: 34rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    margin-top: .75rem;
    margin-bottom: 0;
    padding: 0 0 0;
}
.billing-catalog-nav-heading { margin-bottom: .4rem; padding: 0; }
.billing-catalog-nav.pt-8 { padding-top: 2rem; }
.billing-catalog-nav-heading .billing-primary-title,
.billing-customers .section-heading .billing-primary-title { color: #1c1917; font-size: 2rem; font-weight: 500; }
.billing-catalog-nav .billing-catalog-layout { display: flex; min-height: 0; flex: 1; flex-direction: column; gap: .55rem; }
.billing-catalog-nav .billing-item-form { display: grid; grid-template-columns: minmax(9rem, 1.15fr) minmax(10rem, 1.35fr) minmax(7.5rem, .95fr) minmax(4.5rem, .55fr) minmax(7rem, .75fr) minmax(7rem, .8fr) minmax(4rem, .4fr) auto; align-items: end; gap: .65rem; border: 0; padding: 0; }
.billing-catalog-nav .billing-item-form [data-item-interval] { display: contents; }
.billing-catalog-nav .billing-item-form [data-item-interval][hidden] { display: none; }
.billing-catalog-nav .billing-item-form label { min-width: 0; font-size: .68rem; }
.billing-catalog-nav .billing-item-form .form-input { margin-top: .3rem; min-height: 2.2rem; border-color: #d6d3d1; background: #fff; color: #292524; padding: .42rem .85rem; font-size: .74rem; font-weight: 500; box-shadow: inset 2px 2px 5px rgb(28 25 23 / 8%), inset -2px -2px 5px rgb(255 255 255 / 90%); }
.billing-catalog-nav .billing-item-form input[name="amount"] { min-width: 7.5rem; font-size: .95rem; font-weight: 600; }
.billing-catalog-nav .billing-item-form .form-input::placeholder { color: #57534e; opacity: 1; }
.billing-catalog-nav .billing-item-form select.form-input { color: #292524; }
.billing-catalog-nav .billing-item-form .stripe-create-button { white-space: nowrap; }
.billing-catalog-nav .billing-items-list { display: flex; min-height: 0; flex: 1; flex-direction: column; overflow: hidden; }
.billing-catalog-nav .billing-items-table-wrap { min-height: 14rem; flex: 1; overflow-y: auto; }
.billing-catalog-nav .billing-items-table td { padding-top: .5rem; padding-bottom: .5rem; }

.billing-main > .mx-auto { padding-top: 0; padding-bottom: 0; }
.billing-page > .billing-catalog { order: 1; margin-top: .75rem; margin-bottom: 0; padding-bottom: 0; }
.billing-page > .billing-customers { order: 2; margin-top: 0; margin-bottom: 0; padding-top: 0; }
.billing-page > .billing-overview { order: 3; margin-top: .75rem; margin-bottom: .75rem; }
.billing-page > .billing-invoice-ledger { order: 4; margin-top: .75rem; margin-bottom: .75rem; }

.billing-customers {
    height: 50vh;
    min-height: 24rem;
    display: flex;
    flex-direction: column;
    border-top: 0;
    padding-top: 0;
}
.billing-customers .section-heading { flex-shrink: 0; margin-bottom: .4rem; }
.billing-overview.dashboard-metrics { margin-top: 0; }
.billing-overview .dashboard-metric { padding-top: .8rem; padding-bottom: .85rem; }
.billing-overview .dashboard-metric strong { margin-top: .25rem; font-size: 1.15rem; }
.billing-overview .dashboard-metric-note { margin-top: .15rem; }
.billing-delete-dialog { width: min(26rem, calc(100% - 2rem)); border: 0; border-radius: .75rem; background: #f5f5f5; color: #292524; padding: 0; box-shadow: 14px 14px 28px rgb(28 25 23 / 22%), -8px -8px 20px rgb(255 255 255 / 90%); }
.billing-delete-dialog::backdrop { background: rgb(28 25 23 / 45%); }
.billing-delete-dialog > div { padding: 1.4rem; }
.billing-delete-dialog h2 { color: #1c1917; font-size: 1.15rem; font-weight: 600; }
.billing-delete-dialog p { margin-top: .55rem; color: #57534e; font-size: .78rem; line-height: 1.5; }
.billing-delete-dialog p strong { color: #292524; }
.billing-delete-actions { display: flex; justify-content: flex-end; gap: .55rem; margin-top: 1.25rem; }
.billing-delete-cancel, .billing-delete-confirm { min-height: 2.25rem; }
.stripe-create-button { display: inline-flex; width: fit-content; align-items: center; justify-content: center; gap: .45rem; border: 0; border-radius: .45rem; background: #635bff; color: #fff; cursor: pointer; padding: .55rem .9rem; font-size: .78rem; font-weight: 700; }
.stripe-create-button:hover { background: #5149d8; }
.stripe-create-logo { height: .95rem; width: 1.35rem; object-fit: contain; }

.billing-customer-table-wrap { overflow-x: auto; }
.billing-customer-table { width: 100%; min-width: 64rem; border-collapse: collapse; text-align: left; font-size: .75rem; }
.billing-customer-table th { border-bottom: 1px solid rgb(163 163 163 / 32%); color: #a8a29e; font-size: .58rem; font-weight: 600; letter-spacing: .08em; padding: .7rem .85rem; text-transform: uppercase; }
.billing-customer-table td { border-bottom: 1px solid #f5f5f4; padding: .75rem .85rem; vertical-align: middle; }
.billing-customer-table tbody tr:last-child td { border-bottom: 0; }
.billing-customer-table tbody tr:hover { background: rgb(250 250 249 / 80%); }
.billing-customer-table td small { display: block; margin-top: .25rem; color: #a8a29e; font-size: .62rem; }
.billing-stripe-id { max-width: 10rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.billing-due-amount { color: #57534e; font-weight: 600; }
.billing-due-amount.is-outstanding { color: #b45309; }
.billing-customer-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: .5rem; }
.billing-reminder-button { border-radius: .45rem; padding: .4rem .65rem; font-size: .68rem; }
.billing-customer-menu { width: min(24rem, calc(100vw - 3rem)); max-height: 32rem; overflow-y: auto; }
.billing-customer-menu.is-floating { position: fixed; top: auto; right: auto; z-index: 100; }
.billing-menu-heading { border-bottom: 1px solid #f5f5f4; padding: .15rem .25rem .65rem; }
.billing-menu-heading strong, .billing-menu-heading small { display: block; }
.billing-menu-heading strong { color: #292524; font-size: .75rem; }
.billing-menu-heading small { margin-top: .2rem; color: #a8a29e; font-size: .62rem; }
.billing-menu-label { margin: .7rem .25rem .25rem; color: #a8a29e; font-size: .58rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.billing-menu-record { display: flex; align-items: center; justify-content: space-between; gap: .75rem; border-bottom: 1px solid #f5f5f4; padding: .45rem .25rem; color: #57534e; font-size: .68rem; }
.billing-menu-record > span:first-child { min-width: 0; }
.billing-menu-record strong { flex-shrink: 0; color: #292524; font-size: .68rem; }
.billing-menu-record small { display: block; margin-top: .15rem; color: #a8a29e; font-size: .58rem; }
.billing-menu-actions { display: inline-flex; flex-shrink: 0; gap: .25rem; }
.billing-menu-actions button { display: inline-flex; height: 1.7rem; width: 1.7rem; align-items: center; justify-content: center; border: 1px solid #e7e5e4; border-radius: .35rem; background: #fff; }
.billing-menu-actions button:hover { border-color: #b91c1c; }
.billing-menu-actions .billing-menu-cancel:hover { border-color: #b45309; }
.billing-menu-empty { padding: .45rem .25rem; color: #a8a29e; font-size: .65rem; line-height: 1.4; }
.billing-menu-reminder { margin-top: .7rem; border: 1px solid #fecaca; color: #b91c1c !important; font-weight: 600; }
.billing-menu-date-field, .billing-menu-date-form { margin: .55rem .25rem; }
.billing-menu-date-field label, .billing-menu-date-form label { display: block; color: #57534e; font-size: .65rem; font-weight: 600; }
.billing-menu-date-field label span { color: #a8a29e; font-weight: 400; }
.billing-menu-date-field input, .billing-menu-date-form input[type="date"] { display: block; width: 100%; margin-top: .25rem; border: 1px solid #d6d3d1; border-radius: .35rem; background: #fff; color: #44403c; padding: .35rem .45rem; font-size: .7rem; }
.billing-menu-date-field small { display: block; margin-top: .3rem; color: #a8a29e; font-size: .58rem; line-height: 1.35; }
.billing-menu-date-form { border-top: 1px solid #f5f5f4; padding-top: .55rem; }
.billing-menu-date-form button { margin-top: .4rem; background: #f5f5f4; color: #44403c; font-size: .68rem; }

.billing-catalog-layout {
    display: grid;
    grid-template-columns: minmax(16rem, .72fr) minmax(0, 1.5fr);
    gap: 2rem;
}

.billing-item-form {
    display: grid;
    align-content: start;
    gap: 1rem;
    border-right: 1px solid rgb(163 163 163 / 22%);
    padding-right: 2rem;
}

.billing-item-form [data-item-interval][hidden] {
    display: none;
}

.billing-items-list {
    min-width: 0;
}

.billing-items-list-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #57534e;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.billing-items-list-heading span:last-child {
    color: #a8a29e;
    font-weight: 600;
}

.billing-items-table-wrap {
    margin-top: .75rem;
    overflow-x: auto;
}

.billing-items-table {
    width: 100%;
    min-width: 34rem;
    border-collapse: collapse;
    text-align: left;
    font-size: .75rem;
}

.billing-items-table th {
    border-bottom: 1px solid rgb(163 163 163 / 32%);
    color: #a8a29e;
    font-size: .58rem;
    font-weight: 600;
    letter-spacing: .08em;
    padding: .65rem .6rem;
    text-transform: uppercase;
}

.billing-items-table th:first-child,
.billing-items-table td:first-child { padding-left: 0; }

.billing-items-table th:last-child,
.billing-items-table td:last-child { padding-right: 0; }

.billing-items-table td {
    border-bottom: 1px solid #f5f5f4;
    padding: .75rem .6rem;
    vertical-align: middle;
}

.billing-items-table tbody tr:last-child td { border-bottom: 0; }
.billing-items-table td strong,
.billing-items-table td small { display: block; }
.billing-items-table td strong { color: #44403c; font-size: .75rem; font-weight: 600; }
.billing-items-table td small { margin-top: .25rem; color: #a8a29e; font-size: .62rem; }
.billing-items-table td .status-pill { margin-bottom: .1rem; }

@media (max-width: 900px) {
    .billing-catalog-layout { grid-template-columns: 1fr; gap: 1.5rem; }
    .billing-item-form { border-right: 0; border-bottom: 1px solid rgb(163 163 163 / 22%); padding-right: 0; padding-bottom: 1.5rem; }
    .billing-catalog-nav { height: auto; min-height: 34rem; }
    .billing-catalog-nav .billing-item-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .billing-catalog-nav .billing-item-form .stripe-create-button { grid-column: 1 / -1; }
    .billing-catalog-nav .billing-items-table-wrap { max-height: 22rem; min-height: 12rem; }
}

.billing-section {
    min-width: 0;
}

.billing-section .section-heading {
    align-items: center;
}

.billing-section .min-h-0 {
    overflow-x: auto;
}

.billing-action-main {
    border-radius: 999px 0 0 999px;
}

.billing-action-toggle {
    border-left: 1px solid rgb(255 255 255 / 25%);
    border-radius: 0 999px 999px 0;
    padding-right: .6rem;
    padding-left: .6rem;
}

@media (max-width: 640px) {
    .billing-section .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .billing-customers { height: 50vh; min-height: 30rem; }
	.billing-primary-title { font-size: 1.4rem; }
}

.email-queue-surface { border-color: #e7e5e4; background: rgb(255 255 255 / 72%); }
.email-queue-filter-note { display: inline-block; margin-top: .45rem; color: #b91c1c; font-size: .68rem; font-weight: 600; }
.email-queue-heading { margin-bottom: .75rem; }
.email-queue-counts { display: flex; gap: 1.25rem; text-align: right; }
.email-queue-counts div { display: flex; flex-direction: column; }
.email-queue-counts span { color: #a8a29e; font-size: .58rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.email-queue-counts strong { margin-top: .2rem; color: #292524; font-family: var(--headFont); font-size: 1.15rem; font-weight: 400; }
.email-queue-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid #f5f5f4; border-bottom: 1px solid #e7e5e4; padding: .65rem 0; }
.email-queue-filters, .email-queue-actions, .email-row-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.email-queue-filters { flex: 1; }
.email-queue-filters .form-input { max-width: 14rem; padding: .45rem .65rem; font-size: .75rem; }
.email-queue-actions form { display: inline-flex; }
.email-queue-bulk-actions { display: flex; min-width: 15rem; align-items: center; justify-content: space-between; gap: .75rem; }
.email-queue-bulk-actions form { display: inline-flex; }
.email-selection-label { color: #a8a29e; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.email-queue-send { display: inline-flex; align-items: center; gap: .45rem; border: 0; border-radius: .5rem; background: #15803d; color: #fff; cursor: pointer; padding: .65rem 1rem; font-size: .875rem; font-weight: 600; }
.email-queue-send:hover { background: #166534; }
.email-queue-send .icon { filter: brightness(0) invert(1); }
.email-bulk-delete:disabled { cursor: not-allowed; opacity: .45; }
.email-bulk-delete { display: inline-flex; height: 2.5rem; width: 2.5rem; align-items: center; justify-content: center; border: 0; border-radius: .5rem; background: transparent; cursor: pointer; }
.email-bulk-delete:hover:not(:disabled) { background: transparent; }
.email-bulk-delete .icon { filter: invert(18%) sepia(94%) saturate(3711%) hue-rotate(349deg) brightness(88%) contrast(108%); }
.email-queue-table-wrap { max-height: 34rem; overflow: auto; }
.email-queue-table { width: 100%; min-width: 58rem; border-collapse: collapse; text-align: left; font-size: .75rem; }
.email-queue-table th { position: sticky; top: 0; z-index: 1; border-bottom: 1px solid #e7e5e4; background: #fff; color: #a8a29e; font-size: .58rem; font-weight: 600; letter-spacing: .08em; padding: .7rem; text-transform: uppercase; }
.email-queue-table td { border-bottom: 1px solid #f5f5f4; padding: .7rem; vertical-align: middle; }
.email-queue-table tbody tr:last-child td { border-bottom: 0; }
.email-queue-table tbody tr:hover { background: rgb(250 250 249 / 80%); }
.email-queue-table tbody tr[hidden] { display: none; }
.email-select-cell { width: 2.5rem; padding-right: .15rem !important; padding-left: .15rem !important; text-align: center; }
.email-select-cell input { accent-color: #b91c1c; }
.email-status { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }
.email-subject-cell { max-width: 18rem; overflow: hidden; color: #57534e; text-overflow: ellipsis; white-space: nowrap; }
.email-row-button { padding: .35rem .55rem; font-size: .68rem; }
.email-editor { border-left: 3px solid #b91c1c; }
.campaign-composer-stack { display: grid; gap: 2rem; }
.campaign-composer-stack > .surface { width: 100%; }
.campaign-collapsible > .section-heading { margin-bottom: 0; }
.campaign-collapsible.is-open > .section-heading { margin-bottom: 1rem; }
.campaign-collapsible:not(.is-open) > :not(.section-heading) { display: none; }
.campaign-collapse-toggle { flex-shrink: 0; border: 0; background: transparent; color: #78716c; cursor: pointer; padding: .35rem .1rem; font-size: .75rem; font-weight: 600; }
.campaign-collapse-toggle:hover { color: #b91c1c; }
.recurring-controls .space-y-3 > div > div:first-child { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; }
.template-preview-dialog { width: min(42rem, calc(100% - 2rem)); max-width: 42rem; border: 0; border-radius: .75rem; background: #f5f5f5; color: #292524; padding: 0; box-shadow: 14px 14px 28px rgb(28 25 23 / 22%), -8px -8px 20px rgb(255 255 255 / 90%); }
.template-preview-dialog::backdrop { background: rgb(28 25 23 / 45%); }
.template-preview-dialog-inner { padding: 1.5rem; }
.template-preview-dialog .section-heading { align-items: flex-start; margin-bottom: 1.25rem; }
.template-preview-message { border-top: 1px solid #e7e5e4; padding-top: 1.25rem; font-size: .9rem; line-height: 1.6; }
.customer-email-menu { position: relative; display: inline-block; }
.customer-email-menu summary { list-style: none; cursor: pointer; }
.customer-email-menu summary::-webkit-details-marker { display: none; }
.customer-email-menu[open] .pill-menu { display: block; }
.customer-email-menu .pill-menu { min-width: 13rem; }
.customer-email-menu-empty { display: block; padding: .55rem .65rem; color: #a8a29e; font-size: .72rem; }
@media (max-width: 700px) {
    .email-queue-heading { align-items: flex-start; flex-direction: column; }
    .email-queue-counts { width: 100%; justify-content: flex-start; text-align: left; }
    .email-queue-toolbar { align-items: stretch; flex-direction: column; }
    .email-queue-filters .form-input { max-width: none; flex: 1; }
    .email-queue-actions { justify-content: flex-end; }
}

/* Gurkhas dark slate theme */
:root {
    --slate-950: #0b1015;
    --slate-900: #111923;
    --slate-850: #17212c;
    --slate-800: #1f2b38;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --gold: #facc15;
    --gold-bright: #fde047;
    --blue: #2563eb;
    --blue-bright: #3b82f6;
    --line: rgb(148 163 184 / 20%);
}

body:not(.login-shell) {
    background: var(--slate-950);
    color: var(--slate-300);
}
body:not(.login-shell) .bg-stone-50 { background: var(--slate-950) !important; }
body:not(.login-shell) .text-stone-900 { color: #f8fafc !important; }
body:not(.login-shell) .text-stone-700,
body:not(.login-shell) .text-stone-600 { color: var(--slate-300) !important; }
body:not(.login-shell) .text-stone-500 { color: var(--slate-400) !important; }
body:not(.login-shell) .text-stone-400 { color: #7f8ea3 !important; }
body:not(.login-shell) .text-stone-300,
body:not(.login-shell) .text-stone-200 { color: var(--slate-300) !important; }
body:not(.login-shell) .text-red-700,
body:not(.login-shell) .eyebrow { color: var(--gold) !important; }

.sidebar,
body:not(.login-shell) .bg-stone-950 { background: var(--slate-950) !important; }
.brand-logo { height: 2.6rem; width: 2.6rem; }
.sidebar .brand-logo { border-radius: 999px; }
.nav-link { color: var(--slate-400); }
.nav-link:hover,
.nav-link-active { background: var(--gold); color: #111827; }
.nav-link:hover .icon,
.nav-link-active .icon { filter: brightness(0); }
.sidebar .border-stone-800 { border-color: var(--line) !important; }

.surface,
.metric-card,
.dashboard-directory,
.email-queue-surface,
.billing-delete-dialog,
.template-preview-dialog {
    border: 1px solid var(--line);
    background: var(--slate-900);
    box-shadow: 0 16px 35px rgb(0 0 0 / 18%);
    color: var(--slate-300);
}
.surface,
.metric-card { border-radius: .65rem; }
.metric-card:hover { box-shadow: 0 20px 42px rgb(0 0 0 / 28%); }

.form-input,
.tag-add-input,
select.form-input,
.billing-menu-date-field input,
.billing-menu-date-form input[type='date'] {
    border: 1px solid var(--line);
    background-color: var(--slate-850);
    box-shadow: inset 0 1px 2px rgb(0 0 0 / 20%);
    color: #f8fafc;
}
.form-input::placeholder,
.tag-add-input::placeholder { color: #718096 !important; opacity: 1; }
.form-input:focus,
.tag-add-input:focus,
select.form-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgb(250 204 21 / 18%);
}
select.form-input {
    background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
}
input[type='file'].form-input::file-selector-button {
    background: var(--gold);
    box-shadow: none;
    color: #111827;
}

.button-primary,
.file-picker.is-selected,
.file-upload-submit.is-ready {
    border-color: var(--gold);
    background: var(--gold);
    color: #111827;
    box-shadow: none;
}
.button-primary:hover,
.file-picker.is-selected:hover,
.file-upload-submit.is-ready:hover {
    border-color: var(--blue);
    background: var(--blue);
    color: #fff;
}
.button-primary:focus-visible,
.button-secondary:focus-visible,
.button-connect:focus-visible,
.pill-toggle:focus-visible {
    outline: 3px solid rgb(59 130 246 / 45%);
    outline-offset: 2px;
}
.button-secondary {
    border: 1px solid var(--line);
    background: var(--slate-800);
    box-shadow: none;
    color: var(--slate-300);
}
.button-secondary:hover,
.button-secondary:active { background: var(--slate-700); box-shadow: none; }
.button-connect,
.pill-toggle { background: var(--gold); color: #111827; }
.button-connect:hover,
.pill-toggle:hover { background: var(--blue); color: #fff; }
.action-warn { background: rgb(250 204 21 / 16%); color: var(--gold-bright); }
.action-warn:hover { background: rgb(37 99 235 / 22%); color: #bfdbfe; }
.action-slate { background: var(--slate-700); color: #fff; }
.action-slate:hover { background: var(--blue); }
.tag-chip { background: var(--slate-800); color: var(--slate-300); }
.tag-chip button:hover { color: var(--gold); }
.avatar { background: var(--gold); color: #111827; }

.status-green { background: rgb(34 197 94 / 16%); color: #86efac; }
.status-blue { background: rgb(96 165 250 / 16%); color: #93c5fd; }
.status-amber { background: rgb(250 204 21 / 16%); color: var(--gold-bright); }
.status-gray { background: var(--slate-800); color: var(--slate-300); }
.status-red { background: rgb(248 113 113 / 16%); color: #fca5a5; }
.status-select.status-green { background-color: rgb(34 197 94 / 16%); color: #86efac; }
.status-select.status-blue { background-color: rgb(96 165 250 / 16%); color: #93c5fd; }
.status-select.status-amber { background-color: rgb(250 204 21 / 16%); color: var(--gold-bright); }
.status-select.status-gray { background-color: var(--slate-800); color: var(--slate-300); }
.status-select.status-red { background-color: rgb(248 113 113 / 16%); color: #fca5a5; }

.dashboard-toolbar,
.dashboard-metrics,
.dashboard-section-heading,
.dashboard-table-toolbar,
.dashboard-table th,
.dashboard-table td,
.dashboard-activity-row { border-color: var(--line); }
.dashboard-tab { color: var(--slate-400); }
.dashboard-tab.is-active { color: #f8fafc; }
.dashboard-tab.is-active::after { background: var(--gold); }
.dashboard-metric { border-color: var(--line); }
.dashboard-metric-label,
.dashboard-contact strong,
.dashboard-section-heading h3 { color: var(--slate-300); }
.dashboard-metric strong { color: #f8fafc; }
.dashboard-metric-note,
.dashboard-contact small,
.dashboard-muted,
.dashboard-activity-row small,
.dashboard-activity-row time,
.dashboard-empty { color: var(--slate-400); }
.dashboard-directory { background: var(--slate-900); }
.dashboard-table th { color: #7f8ea3; }
.dashboard-table tbody tr:hover { background: rgb(51 65 85 / 28%); }
.dashboard-search input { color: #f8fafc; }
.dashboard-customize,
.dashboard-section-heading a,
.dashboard-open { color: var(--gold); }
.dashboard-filter summary,
.dashboard-filter-icon { color: var(--slate-300); }
.dashboard-filter-menu,
.pill-menu { border-color: var(--line); background: var(--slate-850); box-shadow: 0 16px 35px rgb(0 0 0 / 35%); }
.dashboard-filter-menu label,
.pill-menu button,
.pill-menu a { color: var(--slate-300); }
.pill-menu button:hover,
.pill-menu a:hover { background: var(--slate-800); }
.pill-menu .danger { color: #fca5a5; }

.billing-catalog-nav .billing-item-form .form-input { border-color: var(--line); background: var(--slate-850); color: #f8fafc; box-shadow: none; }
.billing-delete-dialog h2,
.billing-menu-heading strong,
.billing-menu-record strong,
.billing-items-table td strong { color: #f8fafc; }
.billing-delete-dialog p,
.billing-menu-heading small,
.billing-menu-record small,
.billing-menu-empty,
.billing-menu-label { color: var(--slate-400); }
.billing-menu-heading,
.billing-menu-record,
.billing-menu-date-form { border-color: var(--line); }
.billing-menu-actions button { border-color: var(--line); background: var(--slate-800); }
.billing-delete-dialog::backdrop,
.template-preview-dialog::backdrop { background: rgb(0 0 0 / 70%); }
.stripe-create-button { background: var(--blue); }
.stripe-create-button:hover { background: var(--blue-bright); }
.email-queue-send { background: var(--gold); color: #111827; }
.email-queue-send:hover { background: var(--blue); color: #fff; }
.email-editor { border-left-color: var(--gold); }
.campaign-collapse-toggle:hover { color: var(--gold); }

.hero-card { background: linear-gradient(135deg, var(--slate-950), var(--slate-800)); }
.hero-card::after { background: radial-gradient(circle, rgb(250 204 21 / 28%), transparent 70%); }

.login-shell {
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(135deg, #06171d 0%, #0b303a 52%, #06242d 100%);
    color: var(--slate-300);
}
.login-shell::before {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient(rgb(103 232 249 / 5%) 1px, transparent 1px), linear-gradient(90deg, rgb(103 232 249 / 5%) 1px, transparent 1px);
    background-size: 48px 48px;
    content: '';
    mask-image: linear-gradient(to bottom, black, transparent 82%);
}
.login-shell::after {
    position: absolute;
    inset: -25%;
    z-index: -3;
    background: radial-gradient(circle at 18% 20%, rgb(45 212 191 / 25%), transparent 23%), radial-gradient(circle at 80% 75%, rgb(34 211 238 / 18%), transparent 28%);
    content: '';
}
.login-aqua-scene { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.login-aqua-orb { position: absolute; display: block; border: 1px solid rgb(165 243 252 / 25%); border-radius: 999px; background: rgb(45 212 191 / 10%); box-shadow: 0 0 70px rgb(45 212 191 / 20%), inset 0 0 35px rgb(165 243 252 / 9%); transform: translate(var(--drift-x, 0px), var(--drift-y, 0px)); transition: transform 1.2s ease-out; }
.login-aqua-orb-one { top: 8%; left: 9%; height: 17rem; width: 17rem; }
.login-aqua-orb-two { right: 6%; bottom: 9%; height: 22rem; width: 22rem; background: rgb(34 211 238 / 8%); }
.login-aqua-orb-three { top: 42%; right: 24%; height: 7rem; width: 7rem; border-color: rgb(250 204 21 / 25%); background: rgb(250 204 21 / 7%); box-shadow: 0 0 45px rgb(250 204 21 / 13%); }
.login-shell > main {
    border: 1px solid rgb(250 204 21 / 35%);
    background: var(--slate-900) !important;
    box-shadow: 0 24px 60px rgb(0 0 0 / 45%) !important;
}
.login-shell .brand-logo { height: 5rem; width: 5rem; border-radius: 999px; box-shadow: 0 0 0 6px rgb(250 204 21 / 10%); }
.login-shell .text-red-700 { color: var(--gold) !important; }
.login-shell h1 { color: #f8fafc; }
.login-shell .text-stone-500 { color: var(--slate-400) !important; }
.login-shell label { color: var(--slate-300); }
.login-shell .bg-red-50 { background: rgb(248 113 113 / 16%) !important; }
.login-shell .text-red-800 { color: #fca5a5 !important; }
@media (prefers-reduced-motion: reduce) {
    .login-aqua-orb { transition: none; }
}

.table-row:hover,
.dashboard-table tbody tr:hover,
.billing-customer-table tbody tr:hover,
.email-queue-table tbody tr:hover { background: var(--slate-600); }

.table-row > td:first-child { padding-left: 1rem; }

[aria-label='Search customers'] .icon { filter: brightness(0) invert(1); }

h1,
h2,
h3,
h4,
h5,
h6,
thead,
th { color: #f5f5f5 !important; }

.email-queue-surface {
    border-color: var(--line);
    background: var(--slate-900);
}
.email-queue-filter-note { color: var(--gold); }
.email-queue-counts span,
.email-selection-label { color: var(--slate-400); }
.email-queue-counts strong { color: #f5f5f5; }
.email-queue-toolbar { border-color: var(--line); }
.email-queue-table th {
    border-color: var(--line);
    background: var(--slate-800);
    color: #f5f5f5 !important;
}
.email-queue-table td { border-color: var(--line); color: var(--slate-300); }
.email-queue-table tbody tr:hover { background: var(--slate-600); }
.email-status { color: var(--slate-300); }
.email-subject-cell { color: var(--slate-300); }
.email-select-cell input { accent-color: var(--gold); }
.email-row-button { color: var(--slate-300); }
.email-queue-send { background: var(--gold); color: #111827; }
.email-queue-send:hover { background: var(--blue); color: #fff; }
.email-bulk-delete { background: transparent; }
.email-bulk-delete:hover:not(:disabled) { background: var(--slate-800); }

[data-help-menu] > button {
    border-color: var(--line) !important;
    background: var(--slate-800) !important;
    color: var(--slate-300) !important;
}
[data-help-menu] > button:hover {
    border-color: var(--blue) !important;
    color: #bfdbfe !important;
}
[data-help-popover] {
    border-color: var(--line) !important;
    background: var(--slate-850) !important;
    color: var(--slate-300);
    box-shadow: 0 16px 35px rgb(0 0 0 / 35%);
}

.logout-link {
    color: var(--slate-400);
}
.logout-link:hover {
    background: #020617;
    color: #fca5a5;
}
.logout-link:hover .icon { filter: invert(80%); }

.email-bulk-delete {
    height: 2.35rem;
    width: 2.35rem;
    border: 1px solid #991b1b;
    border-radius: .45rem;
    background: linear-gradient(#ef4444, #b91c1c);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 35%), 0 2px 0 #450a0a, 0 4px 9px rgb(0 0 0 / 22%);
    opacity: 1;
}
.email-bulk-delete .icon { filter: brightness(0) invert(1); }
.email-bulk-delete:hover:not(:disabled) {
    background: linear-gradient(#f87171, #dc2626);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 45%), 0 2px 0 #450a0a, 0 5px 12px rgb(220 38 38 / 35%);
    transform: translateY(-1px);
}
.email-bulk-delete:active:not(:disabled) {
    box-shadow: inset 0 2px 3px rgb(127 29 29 / 45%), 0 1px 0 #450a0a;
    transform: translateY(1px);
}
.email-bulk-delete:disabled {
    border-color: #475569;
    background: linear-gradient(#64748b, #334155);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 20%), 0 2px 0 #0f172a;
    cursor: not-allowed;
    opacity: .8;
}