:root {
    color-scheme: light;
    --graphite: #2b2430;
    --graphite-2: #3a3041;
    --milk: #f7f0e7;
    --paper: #fffaf3;
    --paper-strong: #ffffff;
    --line: rgba(55, 42, 61, 0.14);
    --muted: #7b6f7d;
    --text: #2a2430;
    --violet: #80609a;
    --violet-strong: #68467f;
    --gold: #d6ab59;
    --gold-soft: #f4dfad;
    --rose: #c76d87;
    --green: #4d8a6b;
    --red: #b75f61;
    --shadow: 0 24px 70px rgba(43, 36, 48, 0.16);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --sidebar-width: 304px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 8%, rgba(214, 171, 89, 0.22), transparent 32%),
        radial-gradient(circle at 92% 18%, rgba(128, 96, 154, 0.18), transparent 28%),
        var(--milk);
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

code {
    padding: 2px 6px;
    border-radius: 8px;
    color: var(--graphite);
    background: rgba(128, 96, 154, 0.12);
}

[hidden] {
    display: none !important;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    color: #f9f4ec;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 44%),
        linear-gradient(135deg, var(--graphite), var(--graphite-2));
}

.brand,
.login-card__brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand {
    margin-bottom: 36px;
}

.brand__logo,
.login-card__logo {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
}

.brand__name {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand__caption {
    margin-top: 2px;
    color: rgba(249, 244, 236, 0.68);
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

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

.nav__item {
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    display: grid;
    grid-template-columns: 28px 1fr auto;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    color: rgba(249, 244, 236, 0.78);
    text-align: left;
    background: rgba(255, 255, 255, 0.04);
}

.nav__item--active {
    color: #fff;
    background:
        linear-gradient(90deg, rgba(214, 171, 89, 0.28), rgba(128, 96, 154, 0.24)),
        rgba(255, 255, 255, 0.08);
    border-color: rgba(214, 171, 89, 0.42);
}

.nav__item--disabled {
    opacity: 0.52;
    cursor: not-allowed;
}

.nav__icon {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
}

.nav__badge {
    min-width: 30px;
    padding: 4px 8px;
    border-radius: 999px;
    color: var(--graphite);
    text-align: center;
    font-weight: 800;
    background: var(--gold);
}

.sidebar-note {
    margin-top: auto;
    padding: 14px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    border-radius: 18px;
    color: rgba(249, 244, 236, 0.78);
    background: rgba(255, 255, 255, 0.06);
    font-size: 14px;
    line-height: 1.45;
}

.sidebar-note__dot {
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    margin-top: 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, #d6ab59, #c76d87, #80609a);
}

.main {
    min-width: 0;
    padding: 32px;
}

.page-section {
    display: grid;
    gap: 0;
}

.page-section[hidden] {
    display: none !important;
}

.topbar {
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 0;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1;
    letter-spacing: -0.04em;
}

h2 {
    margin-bottom: 12px;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.user-card {
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 250, 243, 0.74);
}

.user-card__name {
    padding-left: 10px;
    font-weight: 800;
}

.hero,
.toolbar,
.queue-panel,
.login-card {
    border: 1px solid var(--line);
    background: rgba(255, 250, 243, 0.86);
    box-shadow: var(--shadow);
}

.hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 18px;
    padding: 28px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    border-radius: var(--radius-xl);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, #d6ab59, #c76d87, #80609a, #9fbf87);
    opacity: 0.9;
}

.hero__text {
    max-width: 780px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.55;
}

.hero__counter {
    width: 190px;
    height: 150px;
    display: grid;
    place-items: center;
    padding: 20px;
    border-radius: 28px;
    color: var(--graphite);
    text-align: center;
    background: linear-gradient(145deg, rgba(214, 171, 89, 0.96), rgba(244, 223, 173, 0.82));
}

.hero__counter strong {
    display: block;
    font-size: 56px;
    line-height: 0.9;
}

.hero__counter span {
    color: rgba(43, 36, 48, 0.72);
    font-weight: 800;
}

.toolbar {
    margin-bottom: 18px;
    padding: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: end;
    border-radius: var(--radius-lg);
}

.field {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.field--small {
    max-width: 180px;
}

.input {
    width: 100%;
    min-height: 48px;
    padding: 0 15px;
    border: 1px solid rgba(55, 42, 61, 0.18);
    border-radius: 14px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.78);
    outline: none;
}

.input:focus {
    border-color: var(--violet);
    box-shadow: 0 0 0 4px rgba(128, 96, 154, 0.12);
}

.toggle {
    min-height: 48px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(55, 42, 61, 0.14);
    border-radius: 14px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.56);
    font-weight: 800;
}

.button {
    min-height: 48px;
    padding: 0 18px;
    border: 0;
    border-radius: 14px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--violet), var(--violet-strong));
    box-shadow: 0 14px 30px rgba(104, 70, 127, 0.22);
}

.button:hover {
    transform: translateY(-1px);
}

.button:disabled {
    opacity: 0.56;
    cursor: wait;
    transform: none;
}

.button--ghost {
    min-height: 40px;
    color: var(--violet-strong);
    background: rgba(128, 96, 154, 0.1);
    box-shadow: none;
}

.button--wide {
    width: 100%;
}

.button--soft {
    color: var(--graphite);
    background: var(--gold-soft);
    box-shadow: none;
}

.button--danger {
    color: #fff;
    background: linear-gradient(135deg, #b75f61, #985057);
    box-shadow: none;
}

.stats-grid {
    margin-bottom: 18px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.stat-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.56);
}

.stat-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-weight: 800;
}

.stat-card strong {
    color: var(--violet-strong);
    font-size: 34px;
}

.stat-card--warm {
    background: linear-gradient(145deg, rgba(214, 171, 89, 0.2), rgba(255, 255, 255, 0.7));
}

.queue-panel {
    overflow: hidden;
    border-radius: var(--radius-xl);
}

.tabs {
    padding: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px solid var(--line);
}

.tab {
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 900;
    background: transparent;
}

.tab span {
    min-width: 28px;
    margin-left: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    color: var(--graphite);
    background: rgba(214, 171, 89, 0.32);
}

.tab--active {
    color: #fff;
    background: var(--graphite);
}

.queue-list {
    padding: 16px;
    display: grid;
    gap: 12px;
}

.mode-switch {
    margin: 0 0 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.schedule-summary {
    margin-bottom: 18px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.schedule-panel {
    overflow: hidden;
}

.room-admin-panel {
    margin-bottom: 18px;
}

.room-admin-list {
    display: grid;
    gap: 12px;
}

.room-admin-floor {
    padding: 14px;
    border: 1px solid rgba(55, 42, 61, 0.12);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.56);
}

.room-admin-floor__head {
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.room-admin-floor__title {
    margin: 0;
    font-size: 20px;
}

.room-admin-rooms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.room-admin-room {
    padding: 10px 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(55, 42, 61, 0.12);
    border-radius: 999px;
    background: rgba(255, 250, 243, 0.72);
}

.room-admin-room strong {
    color: var(--graphite);
}

.room-admin-room span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.schedule-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.time-slot {
    min-height: 132px;
    padding: 16px;
    border: 1px solid rgba(55, 42, 61, 0.12);
    border-radius: 20px;
    color: var(--text);
    text-align: left;
    background: rgba(255, 255, 255, 0.62);
}

.time-slot--busy {
    border-color: rgba(128, 96, 154, 0.34);
    background:
        linear-gradient(145deg, rgba(128, 96, 154, 0.11), rgba(214, 171, 89, 0.12)),
        rgba(255, 255, 255, 0.68);
}

.time-slot__time {
    display: block;
    margin-bottom: 12px;
    color: var(--muted);
    font-weight: 900;
}

.time-slot__count {
    display: block;
    margin-bottom: 10px;
    color: var(--violet-strong);
    font-size: 26px;
    font-weight: 950;
}

.time-slot__meta {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.35;
}

.schedule-rooms {
    overflow: auto;
}

.floor-board {
    margin-bottom: 20px;
    min-width: 820px;
}

.floor-board__title {
    margin: 0 0 10px;
    color: var(--graphite);
    font-size: 22px;
}

.room-grid {
    display: grid;
    grid-template-columns: 96px repeat(var(--room-count, 1), minmax(190px, 1fr));
    border: 1px solid rgba(55, 42, 61, 0.12);
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.54);
}

.room-grid__head,
.room-grid__time,
.room-grid__cell {
    min-height: 64px;
    padding: 10px;
    border-right: 1px solid rgba(55, 42, 61, 0.09);
    border-bottom: 1px solid rgba(55, 42, 61, 0.09);
}

.room-grid__head {
    color: var(--graphite);
    font-weight: 950;
    background: rgba(214, 171, 89, 0.18);
}

.room-grid__time {
    color: var(--muted);
    font-weight: 950;
    background: rgba(128, 96, 154, 0.08);
}

.lesson-chip {
    width: 100%;
    padding: 10px;
    display: grid;
    gap: 5px;
    border: 0;
    border-radius: 14px;
    color: var(--graphite);
    text-align: left;
    background: rgba(128, 96, 154, 0.14);
    font-size: 13px;
    line-height: 1.35;
}

.lesson-chip strong {
    color: var(--violet-strong);
}

.analytics-layout {
    margin-bottom: 18px;
    display: grid;
    grid-template-columns: minmax(420px, 1.2fr) minmax(320px, 0.8fr);
    gap: 18px;
}

.analytics-loss {
    min-width: 118px;
    padding: 10px 12px;
    border-radius: 18px;
    color: var(--muted);
    text-align: right;
    background: rgba(214, 171, 89, 0.16);
    font-weight: 800;
}

.analytics-loss span {
    display: block;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.analytics-loss strong {
    display: block;
    color: var(--violet-strong);
    font-size: 30px;
    line-height: 1;
}

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

.funnel-item {
    padding: 14px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    border: 1px solid rgba(55, 42, 61, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.62);
}

.funnel-item--danger {
    border-color: rgba(183, 95, 97, 0.22);
    background: rgba(183, 95, 97, 0.08);
}

.funnel-item__step {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--violet), var(--violet-strong));
    font-weight: 950;
}

.funnel-item strong {
    display: block;
    color: var(--graphite);
}

.funnel-item span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.35;
}

.funnel-item b,
.analytics-attention-value {
    color: var(--violet-strong);
    font-size: 28px;
}

.drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    justify-content: flex-end;
    background: rgba(31, 25, 35, 0.36);
    backdrop-filter: blur(7px);
}

.drawer {
    width: min(620px, 100%);
    height: 100%;
    overflow: auto;
    padding: 24px;
    background: var(--paper);
    box-shadow: -24px 0 70px rgba(31, 25, 35, 0.22);
}

.drawer__head {
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: start;
}

.drawer__title {
    margin: 0;
    font-size: 34px;
}

.drawer__stats {
    margin-bottom: 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.drawer__free {
    margin-bottom: 16px;
    padding: 14px;
    border-radius: 18px;
    color: var(--muted);
    background: rgba(214, 171, 89, 0.13);
    line-height: 1.5;
}

.floor-group {
    margin-top: 14px;
}

.floor-group__title {
    margin: 0 0 8px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 950;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.room-group {
    margin-bottom: 10px;
    padding: 12px;
    border: 1px solid rgba(55, 42, 61, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.58);
}

.room-group__title {
    margin-bottom: 10px;
    color: var(--graphite);
    font-weight: 950;
}

.money-layout {
    margin-bottom: 18px;
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.4fr);
    gap: 18px;
}

.panel {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: rgba(255, 250, 243, 0.86);
    box-shadow: var(--shadow);
}

.panel__head,
.subhead {
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

.panel__head h2,
.subhead h3 {
    margin-bottom: 0;
}

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

.list-item {
    width: 100%;
    padding: 14px;
    border: 1px solid rgba(55, 42, 61, 0.12);
    border-radius: 18px;
    color: var(--text);
    text-align: left;
    background: rgba(255, 255, 255, 0.62);
}

.list-item--button {
    cursor: pointer;
}

.list-item--button:hover,
.list-item--selected {
    border-color: rgba(128, 96, 154, 0.45);
    background: rgba(128, 96, 154, 0.1);
}

.list-item__head {
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
}

.list-item__title {
    font-size: 17px;
    font-weight: 900;
}

.list-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.balance-grid {
    margin-bottom: 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.balance-card {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.64);
    border: 1px solid rgba(55, 42, 61, 0.1);
}

.balance-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-weight: 800;
}

.balance-card strong {
    color: var(--violet-strong);
    font-size: 25px;
}

.inline-form {
    margin-bottom: 18px;
    padding: 14px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    align-items: end;
    border: 1px solid rgba(55, 42, 61, 0.1);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.5);
}

.open-charge-list {
    margin-bottom: 14px;
}

.open-charge-item {
    border-left: 4px solid rgba(153, 94, 164, 0.52);
}

.open-charge-item__amount {
    color: var(--violet-strong);
}

.payment-actions,
.lesson-actions {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lesson-actions {
    align-items: center;
}

.reserve-summary {
    margin-bottom: 14px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
}

.reserve-chip {
    padding: 12px 14px;
    border: 1px solid rgba(55, 42, 61, 0.1);
    border-radius: 16px;
    background: rgba(244, 223, 173, 0.32);
}

.reserve-chip span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.reserve-chip strong {
    display: block;
    margin-top: 4px;
    color: var(--violet-strong);
    font-size: 22px;
}

.recalculation-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
    gap: 16px;
    align-items: start;
}

.recalculation-metrics {
    margin-bottom: 14px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.recalculation-metric {
    padding: 12px 14px;
    border: 1px solid rgba(55, 42, 61, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.52);
}

.recalculation-metric span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.recalculation-metric strong {
    display: block;
    margin-top: 4px;
    color: var(--violet-strong);
    font-size: 20px;
}

.status-text {
    font-weight: 900;
}

.status-text--ok {
    color: var(--green);
}

.status-text--warn {
    color: var(--gold);
}

.status-text--danger {
    color: var(--red);
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(31, 25, 35, 0.58);
    backdrop-filter: blur(10px);
}

.modal {
    width: min(620px, 100%);
    max-height: min(760px, calc(100vh - 48px));
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.46);
    border-radius: 30px;
    background: var(--paper);
    box-shadow: 0 34px 90px rgba(31, 25, 35, 0.34);
}

.modal--danger {
    border-color: rgba(183, 95, 97, 0.32);
}

.modal__head {
    position: relative;
    padding: 24px 24px 16px;
    border-bottom: 1px solid var(--line);
}

.modal__head::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, #d6ab59, #c76d87, #80609a);
}

.modal__title {
    margin: 0;
    font-size: 30px;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.modal__subtitle {
    margin: 9px 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.modal__form {
    padding: 20px 24px 24px;
    display: grid;
    gap: 14px;
}

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

.modal__grid--single {
    grid-template-columns: 1fr;
}

.modal__textarea {
    min-height: 106px;
    padding-top: 12px;
    resize: vertical;
}

.modal__warning {
    padding: 13px 14px;
    border-radius: 16px;
    color: #6f3437;
    background: rgba(183, 95, 97, 0.11);
    border: 1px solid rgba(183, 95, 97, 0.18);
    line-height: 1.45;
    font-weight: 700;
}

.modal__actions {
    margin-top: 6px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal__actions .button {
    min-width: 128px;
}

.reminder-card {
    padding: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    border: 1px solid rgba(55, 42, 61, 0.12);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.68);
}

.reminder-card--sent {
    opacity: 0.72;
}

.reminder-card__head {
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.reminder-card h3 {
    margin: 0;
    font-size: 21px;
}

.pill {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--graphite);
    background: rgba(214, 171, 89, 0.24);
    font-size: 12px;
    font-weight: 900;
}

.pill--ready {
    color: #fff;
    background: var(--violet);
}

.pill--sent {
    color: #fff;
    background: var(--green);
}

.pill--excluded {
    color: #fff;
    background: var(--red);
}

.reminder-card__text {
    max-width: 820px;
    margin-bottom: 12px;
    color: #5d5261;
    line-height: 1.55;
}

.reminder-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.reminder-card__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 180px;
}

.empty-state {
    min-height: 220px;
    display: grid;
    place-items: center;
    padding: 34px;
    color: var(--muted);
    text-align: center;
}

.empty-state strong {
    display: block;
    margin-bottom: 8px;
    color: var(--graphite);
    font-size: 24px;
}

.login-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-card {
    width: min(520px, 100%);
    position: relative;
    overflow: hidden;
    padding: 28px;
    border-radius: 32px;
}

.login-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 6px;
    background: linear-gradient(90deg, #d6ab59, #c76d87, #80609a, #9fbf87);
}

.login-card__brand {
    margin-bottom: 24px;
}

.login-card h1 {
    font-size: 40px;
}

.login-form {
    display: grid;
    gap: 14px;
}

.login-card__hint {
    margin: 18px 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 100;
    max-width: min(420px, calc(100vw - 44px));
    padding: 14px 16px;
    border-radius: 18px;
    color: #fff;
    background: var(--graphite);
    box-shadow: var(--shadow);
    font-weight: 800;
}

.toast--error {
    background: #8f454d;
}

@media (max-width: 1080px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        height: auto;
        padding: 18px;
    }

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

    .sidebar-note {
        display: none;
    }

    .main {
        padding: 18px;
    }

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

    .money-layout,
    .analytics-layout,
    .inline-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .topbar,
    .hero,
    .reminder-card {
        grid-template-columns: 1fr;
    }

    .topbar {
        align-items: flex-start;
    }

    .user-card {
        width: 100%;
        justify-content: space-between;
    }

    .hero__counter {
        width: 100%;
    }

    .stats-grid,
    .schedule-summary,
    .drawer__stats,
    .nav,
    .balance-grid {
        grid-template-columns: 1fr;
    }

    .funnel-item {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .funnel-item b {
        grid-column: 2;
    }

    .reminder-card__actions {
        min-width: 0;
    }

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

    .modal__actions {
        flex-direction: column-reverse;
    }

    .modal__actions .button {
        width: 100%;
    }
}
