:root {
    --bg: #f4efe7;
    --bg-deep: #12323a;
    --surface: rgba(255, 255, 255, 0.76);
    --surface-strong: #fffaf5;
    --surface-ink: #11262c;
    --line: rgba(18, 50, 58, 0.12);
    --line-strong: rgba(18, 50, 58, 0.22);
    --text: #18333a;
    --muted: #68787c;
    --primary: #0f766e;
    --primary-strong: #0b5952;
    --primary-soft: #d9f3ef;
    --accent: #d08948;
    --accent-soft: #fce8d4;
    --danger: #c2534b;
    --danger-soft: #f7ddd8;
    --success: #1f8a65;
    --success-soft: #d8f0e6;
    --warning: #c98c2f;
    --warning-soft: #f9ebcc;
    --shadow-lg: 0 32px 60px rgba(17, 38, 44, 0.12);
    --shadow-md: 0 18px 40px rgba(17, 38, 44, 0.08);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.18), transparent 28%),
        radial-gradient(circle at right 12% top 10%, rgba(208, 137, 72, 0.18), transparent 26%),
        linear-gradient(180deg, #fbf6ef 0%, #f2ede5 48%, #eee7df 100%);
    position: relative;
}

img,
svg {
    display: block;
    max-width: 100%;
}

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

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

button {
    cursor: pointer;
}

input,
select,
textarea {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text);
    min-height: 52px;
    padding: 0 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

textarea {
    min-height: 120px;
    padding: 14px 16px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(15, 118, 110, 0.55);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.ambient {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 0;
}

.ambient-one {
    background: radial-gradient(circle at 10% 10%, rgba(15, 118, 110, 0.12), transparent 32%);
}

.ambient-two {
    background: radial-gradient(circle at 90% 14%, rgba(208, 137, 72, 0.1), transparent 26%);
}

.ambient-grid {
    opacity: 0.34;
    background-image:
        linear-gradient(rgba(17, 38, 44, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 38, 44, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 70%);
}

.dashboard-shell,
.login-shell {
    position: relative;
    z-index: 1;
}

.eyebrow,
.section-label {
    margin: 0;
    font-size: 0.74rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(24, 51, 58, 0.6);
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 5%;
}

.brand-block h1,
.brand-block h2 {
    margin: 2px 0 0;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
}

.brand-mark {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary) 0%, #1f9b94 100%);
    color: white;
    display: grid;
    place-items: center;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 16px 30px rgba(15, 118, 110, 0.22);
}

.dashboard-shell {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    padding: 28px 22px;
    background: rgba(17, 38, 44, 0.92);
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    gap: 26px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    height: 100vh;
}

.sidebar .section-label,
.sidebar .eyebrow {
    color: rgba(255, 255, 255, 0.52);
}

.nav-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 80%;
    overflow-y : auto;
    overflow-x : hidden;
}

.nav-section::-webkit-scrollbar{
    background : none;
    width: 7px;
}

.nav-section::-webkit-scrollbar-thumb{
    background : #8B8B8B;
    border-radius: 10px;
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    color: rgba(255, 255, 255, 0.74);
    background: transparent;
    transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: white;
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(3px);
}

.nav-icon,
.icon-menu,
.icon-bell,
.icon-search,
.icon-close {
    width: 18px;
    height: 18px;
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
}

.nav-icon::before,
.nav-icon::after,
.icon-menu::before,
.icon-menu::after,
.icon-bell::before,
.icon-bell::after,
.icon-search::before,
.icon-search::after,
.icon-close::before,
.icon-close::after {
    content: "";
    position: absolute;
}

.icon-grid::before {
    inset: 2px;
    border: 2px solid currentColor;
    border-radius: 5px;
    box-shadow:
        8px 0 0 -6px currentColor,
        -8px 0 0 -6px currentColor,
        0 8px 0 -6px currentColor,
        0 -8px 0 -6px currentColor;
}

.icon-calendar::before {
    inset: 2px 1px 1px;
    border: 2px solid currentColor;
    border-radius: 5px;
}

.icon-calendar::after {
    top: 5px;
    left: 3px;
    right: 3px;
    border-top: 2px solid currentColor;
}

.icon-stethoscope::before {
    inset: 3px 6px 5px;
    border: 2px solid currentColor;
    border-top: 0;
    border-radius: 0 0 10px 10px;
}

.icon-stethoscope::after {
    left: 7px;
    right: 1px;
    bottom: 1px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
}

.icon-users::before {
    left: 1px;
    top: 4px;
    width: 7px;
    height: 7px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.icon-users::after {
    right: 1px;
    top: 2px;
    width: 8px;
    height: 12px;
    border: 2px solid currentColor;
    border-radius: 10px 10px 6px 6px;
}

.icon-card::before {
    inset: 3px 1px;
    border: 2px solid currentColor;
    border-radius: 5px;
}

.icon-card::after {
    left: 3px;
    right: 3px;
    top: 7px;
    height: 2px;
    background: currentColor;
}

.icon-pulse::before {
    inset: 8px 1px auto;
    height: 2px;
    background: currentColor;
}

.icon-pulse::after {
    width: 12px;
    height: 12px;
    left: 3px;
    top: 2px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: skewX(-36deg) rotate(-45deg);
}

.icon-mail::before {
    inset: 3px 1px;
    border: 2px solid currentColor;
    border-radius: 4px;
}

.icon-mail::after {
    left: 3px;
    right: 3px;
    top: 6px;
    height: 2px;
    border-top: 2px solid currentColor;
    transform: skewY(-18deg);
}

.icon-settings::before {
    inset: 3px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.icon-settings::after {
    inset: 0;
    border-radius: 50%;
    box-shadow:
        0 -8px 0 -6px currentColor,
        0 8px 0 -6px currentColor,
        8px 0 0 -6px currentColor,
        -8px 0 0 -6px currentColor;
}

.icon-menu::before,
.icon-menu::after,
.icon-menu {
    border-top: 2px solid currentColor;
    border-radius: 999px;
}

.icon-menu::before {
    top: 6px;
    left: 0;
    right: 0;
    border-top: 2px solid currentColor;
}

.icon-menu::after {
    top: 12px;
    left: 0;
    right: 0;
    border-top: 2px solid currentColor;
}

.icon-bell::before {
    left: 3px;
    right: 3px;
    top: 2px;
    bottom: 4px;
    border: 2px solid currentColor;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
}

.icon-bell::after {
    left: 6px;
    right: 6px;
    bottom: 1px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
}

.icon-search::before {
    width: 10px;
    height: 10px;
    border: 2px solid currentColor;
    border-radius: 50%;
    left: 0;
    top: 0;
}

.icon-search::after {
    width: 7px;
    height: 2px;
    background: currentColor;
    right: 0;
    bottom: 2px;
    transform: rotate(45deg);
    transform-origin: right center;
}

.icon-close::before,
.icon-close::after {
    left: 8px;
    top: 1px;
    bottom: 1px;
    width: 2px;
    background: currentColor;
    border-radius: 999px;
}

.icon-close::before {
    transform: rotate(45deg);
}

.icon-close::after {
    transform: rotate(-45deg);
}

.nav-badge,
.pill,
.status-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.nav-badge {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.12);
}

.pill {
    color: var(--primary-strong);
    background: var(--primary-soft);
}

.pill-success {
    color: #136646;
    background: var(--success-soft);
}

.pill-accent {
    color: #8b5a24;
    background: var(--accent-soft);
}

.status-tag {
    color: var(--primary-strong);
    background: rgba(15, 118, 110, 0.1);
}

.status-tag-success {
    color: #136646;
    background: rgba(31, 138, 101, 0.14);
}

.status-tag-muted {
    color: #6a767a;
    background: rgba(18, 50, 58, 0.08);
}

.status-tag-warning {
    color: #8b5a24;
    background: rgba(227, 154, 65, 0.18);
}

.status-tag-danger {
    color: #a13b3f;
    background: rgba(196, 74, 80, 0.16);
}

.sidebar-card,
.card,
.metric-card,
.login-card,
.glass-card,
.banner-card,
.notification-drawer {
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
}

.sidebar-card {
    padding: 20px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.06);
}

.sidebar-card h2 {
    margin: 8px 0 18px;
    font-size: 1.05rem;
}

.capacity-ring {
    min-height: 152px;
    margin-bottom: 18px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    text-align: center;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.08) 44%, transparent 45%),
        conic-gradient(#49c6bc 0 82%, rgba(255, 255, 255, 0.14) 82% 100%);
}

.capacity-ring strong {
    display: block;
    font-size: 2rem;
    color: white;
}

.capacity-ring span {
    display: block;
    margin-top: 4px;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.7);
}

.meta-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.meta-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: rgba(255, 255, 255, 0.72);
}

.meta-list strong {
    color: white;
}

.sidebar-footer {
    /* margin-top: auto; */
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 18%;
}

.profile-mini {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-mini strong {
    display: block;
    font-size: 0.96rem;
}

.profile-mini span {
    display: block;
    margin-top: 4px;
    font-size: 0.86rem;
    color: var(--muted);
}

.sidebar .profile-mini span {
    color: rgba(255, 255, 255, 0.62);
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    color: white;
    font-size: 0.88rem;
    font-weight: 800;
}

.avatar-teal {
    background: linear-gradient(135deg, #14958b, #0c615a);
}

.avatar-coral {
    background: linear-gradient(135deg, #d56f5f, #b44b42);
}

.avatar-gold {
    background: linear-gradient(135deg, #d9a249, #a96a21);
}

.avatar-sage {
    background: linear-gradient(135deg, #7fb697, #466c55);
}

.ghost-link,
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 700;
}

.sidebar .ghost-link {
    color: #7de1d9;
}

.button-link {
    padding: 0;
    color: inherit;
    background: none;
    border: 0;
    font-weight: inherit;
}

.inline-form {
    display: inline-flex;
}

.sidebar-note {
    margin: 0;
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.62);
}

.main-frame {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100vh;
    overflow-y : auto;
}

.main-frame::-webkit-scrollbar{
    background: none;
    width: 7px;
}

.main-frame::-webkit-scrollbar-thumb{
    background: #8B8B8B;
    border-radius: 10px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 26px 30px 18px;
}

.topbar-left,
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar h2 {
    margin: 4px 0 0;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 1.6rem;
}

.search-field {
    min-width: 320px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    border-radius: 18px;
    border: 1px solid rgba(18, 50, 58, 0.1);
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 14px 34px rgba(17, 38, 44, 0.06);
}

.search-field input {
    min-height: 54px;
    border: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    width: 100%;
}

.page-body {
    padding: 0 30px 32px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.banner-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(208, 137, 72, 0.12));
}

.banner-card-success {
    background: linear-gradient(135deg, rgba(31, 138, 101, 0.12), rgba(255, 255, 255, 0.86));
}

.banner-card-danger {
    background: linear-gradient(135deg, rgba(194, 83, 75, 0.12), rgba(255, 255, 255, 0.86));
}

.banner-card strong,
.card h3,
.login-card h3,
.notification-drawer h3 {
    font-family: "Sora", "Segoe UI", sans-serif;
}

.banner-card strong {
    display: block;
    margin: 10px 0 6px;
}

.banner-card p {
    margin: 0;
    color: var(--muted);
}

.banner-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.metric-card {
    padding: 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(16px);
}

.metric-card p,
.metric-card span {
    margin: 0;
}

.metric-card strong {
    display: block;
    margin: 12px 0 8px;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 2rem;
}

.metric-card span {
    color: var(--muted);
}

.tone-success {
    border-color: rgba(31, 138, 101, 0.14);
}

.tone-info {
    border-color: rgba(15, 118, 110, 0.16);
}

.tone-warning {
    border-color: rgba(201, 140, 47, 0.16);
}

.tone-danger {
    border-color: rgba(194, 83, 75, 0.18);
}

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

.card-span-12 {
    grid-column: span 12;
}

.card-span-8 {
    grid-column: span 8;
}

.card-span-4 {
    grid-column: span 4;
}

.card {
    padding: 22px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.74);
    backdrop-filter: blur(18px);
    min-width: 0;
}

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

.card-heading h3,
.login-card h3,
.notification-drawer h3 {
    margin: 6px 0 0;
    font-size: 1.2rem;
}

.hero-panels {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 18px;
}

.hero-panel,
.detail-card {
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(18, 50, 58, 0.08);
    background: rgba(255, 255, 255, 0.72);
}

.feature-panel {
    background:
        linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(255, 255, 255, 0.72)),
        rgba(255, 255, 255, 0.72);
}

.hero-panel h4,
.mini-head h4 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.hero-panel p,
.modal-copy,
.drawer-item p,
.stack-item p,
.glass-card span,
.login-footnote p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.progress-list {
    margin-top: 18px;
}

.progress-list > div:first-child,
.queue-title,
.stack-meta,
.drawer-header,
.drawer-footer,
.inline-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.progress-bar {
    margin-top: 10px;
    height: 11px;
    border-radius: 999px;
    background: rgba(18, 50, 58, 0.08);
    overflow: hidden;
}

.progress-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary) 0%, #4ac8be 100%);
}

.progress-bar.subtle span {
    background: linear-gradient(90deg, var(--accent) 0%, #f0be7f 100%);
}

.chip-row,
.action-grid,
.footer-links,
.modal-footer,
.table-actions,
.form-actions,
.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.queue-list,
.stack-list,
.doctor-list,
.drawer-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.queue-item,
.stack-item,
.drawer-item,
.doctor-row {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(18, 50, 58, 0.08);
}

.stack-item.tone-warning,
.drawer-item.tone-warning {
    background: linear-gradient(135deg, rgba(201, 140, 47, 0.14), rgba(255, 255, 255, 0.78));
}

.stack-item.tone-success,
.drawer-item.tone-success {
    background: linear-gradient(135deg, rgba(31, 138, 101, 0.14), rgba(255, 255, 255, 0.78));
}

.stack-item.tone-danger,
.drawer-item.tone-danger,
.detail-card.tone-danger {
    background: linear-gradient(135deg, rgba(194, 83, 75, 0.16), rgba(255, 255, 255, 0.82));
}

.stack-meta span {
    color: var(--muted);
    font-size: 0.85rem;
}

.table-wrap {
    overflow-x: auto;
}

.table-actions form {
    display: inline-flex;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.data-table th,
.data-table td {
    text-align: left;
    padding: 14px 10px;
    border-bottom: 1px solid rgba(18, 50, 58, 0.08);
}

.data-table thead th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(24, 51, 58, 0.58);
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.page-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    border: 1px solid rgba(18, 50, 58, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.64);
}

.page-footer p {
    margin: 6px 0 0;
    color: var(--muted);
}

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

.filter-actions {
    display: flex;
    align-items: end;
}

.user-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.field-error {
    margin: 0;
    font-size: 0.84rem;
    color: var(--danger);
}

.empty-state {
    padding: 30px 24px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px dashed rgba(18, 50, 58, 0.16);
}

.empty-state strong,
.empty-state p {
    margin: 0;
}

.empty-state p {
    margin-top: 8px;
    color: var(--muted);
}

.list-pagination {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.pagination-meta {
    color: var(--muted);
    font-size: 0.92rem;
}

.primary-button,
.secondary-button,
.danger-button,
.icon-button {
    border: 0;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.primary-button,
.secondary-button,
.danger-button {
    min-height: 48px;
    padding: 0 18px;
    border-radius: 16px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.primary-button {
    color: white;
    background: linear-gradient(135deg, var(--primary) 0%, #169d93 100%);
    box-shadow: 0 16px 28px rgba(15, 118, 110, 0.2);
}

.secondary-button {
    color: var(--surface-ink);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(18, 50, 58, 0.12);
}

.danger-button {
    color: white;
    background: linear-gradient(135deg, #cb5a52 0%, #9f352f 100%);
    box-shadow: 0 14px 24px rgba(194, 83, 75, 0.2);
}

.is-disabled {
    opacity: 0.56;
    pointer-events: none;
}

.icon-button {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    color: var(--surface-ink);
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(18, 50, 58, 0.1);
    display: grid;
    place-items: center;
    position: relative;
}

.primary-button:hover,
.secondary-button:hover,
.danger-button:hover,
.icon-button:hover {
    transform: translateY(-1px);
}

.dot-indicator {
    position: absolute;
    top: 11px;
    right: 11px;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--danger);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.76);
}

.notification-drawer {
    position: fixed;
    top: 24px;
    right: 24px;
    width: min(360px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    padding: 20px;
    border-radius: 28px;
    background: rgba(255, 250, 245, 0.94);
    backdrop-filter: blur(22px);
    transform: translateX(118%);
    transition: transform 0.28s ease;
    display: flex;
    flex-direction: column;
    gap: 18px;
    z-index: 40;
}

.notification-drawer.is-open {
    transform: translateX(0);
}

.drawer-body {
    overflow: auto;
    min-height: 0;
}

.drawer-footer {
    margin-top: auto;
}

.modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
    z-index: 60;
}

.modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 23, 26, 0.48);
    backdrop-filter: blur(8px);
}

.modal-dialog {
    position: relative;
    width: min(720px, 100%);
    border-radius: 28px;
    background: #fffaf5;
    border: 1px solid rgba(18, 50, 58, 0.12);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: translateY(24px) scale(0.98);
    transition: transform 0.24s ease;
}

.modal.is-open .modal-dialog {
    transform: translateY(0) scale(1);
}

.modal-dialog-narrow {
    width: min(520px, 100%);
}

.modal-header,
.modal-body,
.modal-footer {
    padding: 22px 24px;
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid rgba(18, 50, 58, 0.08);
}

.modal-header h3 {
    margin: 6px 0 0;
    font-size: 1.24rem;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-span-2 {
    grid-column: 1 / -1;
}

.multi-select {
    min-height: 180px;
    padding: 12px 16px;
}

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

.choice-card {
    position: relative;
}

.choice-card input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.choice-card span {
    min-height: 56px;
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.choice-card input:hover + span,
.choice-card input:focus + span {
    border-color: rgba(15, 118, 110, 0.45);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.08);
}

.choice-card input:checked + span {
    border-color: rgba(15, 118, 110, 0.55);
    background: var(--primary-soft);
    color: var(--primary-strong);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1);
    transform: translateY(-1px);
}

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

.field span {
    font-size: 0.88rem;
    font-weight: 700;
}

.detail-card strong,
.glass-card strong {
    display: block;
    margin-top: 8px;
}

.detail-label {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 800;
    color: rgba(24, 51, 58, 0.58);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.toast-stack {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 80;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    min-width: 280px;
    max-width: min(360px, calc(100vw - 32px));
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 250, 245, 0.96);
    border: 1px solid rgba(18, 50, 58, 0.12);
    box-shadow: var(--shadow-md);
    pointer-events: auto;
    animation: toast-in 0.22s ease;
}

.toast strong {
    display: block;
    margin-bottom: 4px;
}

.toast p {
    margin: 0;
    color: var(--muted);
}

.toast[data-tone="success"] {
    border-color: rgba(31, 138, 101, 0.26);
}

.toast[data-tone="warning"] {
    border-color: rgba(201, 140, 47, 0.3);
}

.toast[data-tone="danger"] {
    border-color: rgba(194, 83, 75, 0.3);
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sidebar-backdrop {
    display: none;
}

.mobile-only {
    display: none;
}

.login-shell {
    min-height: 100vh;
    padding: 32px;
    display: grid;
    /* grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr); */
    gap: 28px;
}

.login-showcase,
.login-panel {
    border-radius: 32px;
}

.login-showcase {
    padding: 34px;
    background:
        linear-gradient(135deg, rgba(15, 118, 110, 0.9) 0%, rgba(11, 89, 82, 0.94) 56%, rgba(214, 137, 72, 0.92) 120%);
    color: white;
    display: flex;
    flex-direction: column;
    gap: 28px;
    box-shadow: var(--shadow-lg);
}

.login-showcase .eyebrow,
.login-showcase .section-label {
    color: rgba(255, 255, 255, 0.72);
}

.login-showcase .brand-mark {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.login-showcase .brand-block h1 {
    color: white;
}

.showcase-copy h2 {
    max-width: 12ch;
    margin: 12px 0 12px;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.04;
}

.showcase-copy p:last-child {
    max-width: 60ch;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
}

.showcase-grid {
    margin-top: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.glass-card {
    padding: 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    backdrop-filter: blur(14px);
    border-color: rgba(255, 255, 255, 0.14);
}

.glass-card.wide {
    grid-column: span 2;
}

.glass-card p,
.glass-card strong,
.glass-card span {
    margin: 0;
}

.glass-card strong {
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 1.5rem;
}

.login-panel {
    display: grid;
    place-items: center;
}

.login-card {
    width: min(520px, 100%);
    padding: 28px;
    border-radius: 32px;
    background: rgba(255, 250, 245, 0.88);
    backdrop-filter: blur(20px);
}

.login-form {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-alert {
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(194, 83, 75, 0.12);
    border: 1px solid rgba(194, 83, 75, 0.18);
}

.form-alert strong,
.form-alert p {
    margin: 0;
}

.form-alert p {
    margin-top: 6px;
    color: var(--muted);
}

.check-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
}

.check-row input {
    min-height: auto;
    width: 18px;
    height: 18px;
}

.wide-button {
    width: 100%;
}

.login-footnote {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(18, 50, 58, 0.08);
}

.login-footnote .ghost-link {
    margin-top: 8px;
}

.field-hint {
    color: var(--muted);
    font-size: 0.88rem;
}

body.is-locked {
    overflow: hidden;
}

@media (max-width: 1180px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .card-span-8,
    .card-span-4 {
        grid-column: span 2;
    }

    .hero-panels {
        grid-template-columns: 1fr;
    }

    .login-shell {
        grid-template-columns: 1fr;
    }
}

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

    .sidebar {
        position: fixed;
        inset: 16px auto 16px 16px;
        width: min(320px, calc(100vw - 32px));
        border-radius: 28px;
        z-index: 50;
        transform: translateX(-120%);
        transition: transform 0.24s ease;
        box-shadow: var(--shadow-lg);
    }

    .sidebar.is-open {
        transform: translateX(0);
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        display: block;
        background: rgba(11, 23, 26, 0.34);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.24s ease;
        z-index: 40;
    }

    .sidebar-backdrop.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-only {
        display: grid;
    }
}

@media (max-width: 760px) {
    .topbar,
    .page-body,
    .login-shell {
        padding-left: 18px;
        padding-right: 18px;
    }

    .topbar,
    .banner-card,
    .page-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .topbar-actions,
    .banner-actions {
        justify-content: space-between;
    }

    .search-field {
        min-width: 0;
        width: 100%;
    }

    .stats-grid,
    .content-grid,
    .showcase-grid,
    .field-grid,
    .filter-grid {
        grid-template-columns: 1fr;
    }

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

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

    .card-span-8,
    .card-span-4,
    .glass-card.wide {
        grid-column: span 1;
    }

    .login-shell {
        gap: 18px;
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .login-showcase,
    .login-card {
        padding: 22px;
    }

    .showcase-copy h2 {
        max-width: none;
    }

    .notification-drawer {
        right: 16px;
        left: 16px;
        width: auto;
    }

    .toast-stack {
        right: 16px;
        left: 16px;
        bottom: 16px;
    }

    .toast {
        min-width: 0;
        max-width: none;
    }
}
