@charset "UTF-8";

:root {
    color-scheme: light;
    --navy-950: #04131f;
    --navy-900: #071f32;
    --navy-800: #0d3047;
    --navy-700: #17455c;
    --teal-700: #007f7c;
    --teal-600: #009b97;
    --teal-500: #00a7a2;
    --teal-100: #dff7f4;
    --coral-600: #e82c47;
    --coral-500: #ff3851;
    --coral-100: #ffe5e8;
    --sand-100: #fbf8f3;
    --sand-200: #f3ede3;
    --sand-300: #e7dccb;
    --ink: #102333;
    --muted: #687985;
    --muted-2: #8b99a3;
    --line: #dde5e9;
    --line-soft: #edf1f3;
    --surface: #ffffff;
    --surface-alt: #f6f8f9;
    --success: #147a59;
    --success-bg: #e3f5ed;
    --warning: #9a6412;
    --warning-bg: #fff2d7;
    --danger: #bd3044;
    --danger-bg: #ffe8eb;
    --info: #17678a;
    --info-bg: #e4f3fa;
    --shadow-sm: 0 1px 2px rgba(6, 31, 48, .04), 0 8px 24px rgba(6, 31, 48, .04);
    --shadow-md: 0 18px 55px rgba(6, 31, 48, .11);
    --radius-sm: 10px;
    --radius: 17px;
    --radius-lg: 24px;
    --sidebar: 272px;
    --topbar: 86px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--surface-alt); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body, button, input, select, textarea { font: inherit; }
button, input, select, textarea { color: inherit; }
button, summary { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: not-allowed; }
::selection { background: rgba(0, 167, 162, .23); color: var(--navy-950); }
:focus-visible { outline: 3px solid rgba(0, 167, 162, .3); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 9999; background: var(--navy-900); color: #fff; padding: 11px 16px; border-radius: 8px; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 16px; }
.icon { flex: 0 0 auto; }
.is-hidden { display: none !important; }

/* Shell */
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); z-index: 80; display: flex; flex-direction: column; background: var(--navy-900); color: #eef6f6; overflow: hidden; }
.sidebar::before { content: ""; position: absolute; inset: auto -120px -130px auto; width: 310px; height: 310px; border-radius: 50%; border: 1px solid rgba(0, 167, 162, .16); box-shadow: 0 0 0 46px rgba(0, 167, 162, .035), 0 0 0 94px rgba(255, 56, 81, .025); pointer-events: none; }
.sidebar-brand { position: relative; display: flex; align-items: center; gap: 13px; min-height: var(--topbar); padding: 17px 24px; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; padding: 7px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0) invert(1); }
.sidebar-brand > span:last-child { display: grid; line-height: 1.05; }
.sidebar-brand strong { font-family: Georgia, "Times New Roman", serif; font-size: 23px; font-weight: 500; letter-spacing: -.02em; }
.sidebar-brand small { margin-top: 5px; color: rgba(255,255,255,.55); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; }
.sidebar-nav { position: relative; display: grid; gap: 4px; padding: 25px 15px; overflow-y: auto; }
.nav-label { padding: 0 13px 10px; color: rgba(255,255,255,.38); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 10px 13px; border-radius: 11px; color: rgba(238,246,246,.7); text-decoration: none; transition: background .2s, color .2s, transform .2s; }
.nav-item span:first-child { display: grid; place-items: center; width: 28px; height: 28px; }
.nav-item strong { font-size: 13.5px; font-weight: 650; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.06); transform: translateX(2px); }
.nav-item.is-active { color: #fff; background: linear-gradient(110deg, rgba(0,167,162,.22), rgba(255,255,255,.07)); box-shadow: inset 3px 0 0 var(--teal-500); }
.sidebar-footer { position: relative; z-index: 1; margin-top: auto; padding: 15px; border-top: 1px solid rgba(255,255,255,.08); }
.profile-card { display: flex; align-items: center; gap: 10px; padding: 9px; border-radius: 12px; color: #fff; text-decoration: none; transition: background .2s; }
.profile-card:hover, .profile-card.is-active { background: rgba(255,255,255,.06); }
.profile-copy { min-width: 0; flex: 1; display: grid; }
.profile-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.profile-copy small { color: rgba(255,255,255,.5); font-size: 10.5px; }
.avatar { display: inline-grid; place-items: center; width: 39px; height: 39px; flex: 0 0 auto; border-radius: 50%; background: linear-gradient(145deg, var(--teal-100), #fff); color: var(--teal-700); border: 1px solid rgba(0,167,162,.15); font-size: 11px; font-weight: 850; letter-spacing: .04em; }
.sidebar .avatar { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.1); }
.avatar--small { width: 34px; height: 34px; font-size: 10px; }
.avatar--large { width: 58px; height: 58px; font-size: 16px; }
.avatar--hero { width: 92px; height: 92px; font-size: 25px; }
.sidebar-logout { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 13px; color: rgba(255,255,255,.52); background: transparent; border: 0; border-radius: 11px; font-size: 12.5px; }
.sidebar-logout:hover { color: #fff; background: rgba(255,255,255,.05); }
.main-column { min-height: 100vh; margin-left: var(--sidebar); }
.topbar { position: sticky; top: 0; z-index: 60; height: var(--topbar); display: flex; align-items: center; gap: 20px; padding: 12px clamp(22px, 3vw, 45px); background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line-soft); backdrop-filter: blur(16px); }
.topbar-heading { min-width: 0; flex: 1; }
.topbar-heading p { margin: 0 0 2px; color: var(--teal-700); font-size: 9.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.topbar-heading h1 { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 20px; line-height: 1.2; letter-spacing: -.025em; }
.topbar-meta { display: flex; align-items: center; gap: 9px; padding-right: 7px; }
.topbar-meta > div { display: grid; line-height: 1.15; }
.topbar-meta strong { font-variant-numeric: tabular-nums; font-size: 13px; }
.topbar-meta small { margin-top: 4px; color: var(--muted-2); font-size: 9px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-500); box-shadow: 0 0 0 4px rgba(0,167,162,.11); animation: live 2.4s infinite; }
@keyframes live { 50% { box-shadow: 0 0 0 8px rgba(0,167,162,0); } }
.topbar-avatar { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 50%; background: var(--navy-900); color: #fff; text-decoration: none; font-size: 10px; font-weight: 850; }
.menu-button { display: none !important; }
.page-content { width: min(100%, 1640px); margin: 0 auto; padding: clamp(24px, 3vw, 44px); }
.sidebar-overlay, .mobile-nav { display: none; }

/* Type & layout */
.page-stack { display: grid; gap: 23px; }
.content-narrow { max-width: 760px; margin: 0 auto; }
.content-wide { max-width: 1240px; margin: 0 auto; }
.page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.page-intro > div:first-child { max-width: 760px; }
.page-intro--actions { align-items: center; }
.page-intro h2 { margin: 5px 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(29px, 3.2vw, 44px); font-weight: 500; line-height: 1.05; letter-spacing: -.035em; color: var(--navy-900); }
.page-intro p { margin: 0; max-width: 670px; color: var(--muted); line-height: 1.65; }
.eyebrow { display: inline-block; color: var(--teal-700); font-size: 9.5px; font-weight: 850; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow--light { color: #75ddd7; }
.page-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.section-head, .card-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.card-header { padding: 22px 23px 18px; }
.card-header--border { border-bottom: 1px solid var(--line-soft); }
.card-header h3, .section-head h3 { margin: 4px 0 0; font-size: 20px; letter-spacing: -.025em; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--teal-700); font-size: 12px; font-weight: 750; text-decoration: none; }
.text-link:hover { color: var(--navy-900); }

/* Cards / buttons */
.card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card--flush { overflow: hidden; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 16px; border: 1px solid transparent; border-radius: 11px; font-size: 12.5px; font-weight: 750; line-height: 1; text-decoration: none; transition: transform .18s var(--ease), background .18s, border-color .18s, color .18s, box-shadow .18s; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button--primary { background: var(--navy-900); color: #fff; box-shadow: 0 8px 18px rgba(7,31,50,.14); }
.button--primary:hover:not(:disabled) { background: var(--navy-800); box-shadow: 0 12px 24px rgba(7,31,50,.2); }
.button--teal { color: #fff; background: var(--teal-600); }
.button--soft { color: var(--navy-900); background: var(--surface); border-color: var(--line); }
.button--soft:hover:not(:disabled) { border-color: #b9c9d1; background: #fbfcfc; }
.button--ghost { color: var(--muted); background: transparent; border-color: transparent; }
.button--ghost:hover:not(:disabled) { color: var(--navy-900); background: var(--surface-alt); }
.button--danger { color: #fff; background: var(--danger); }
.button--large { min-height: 49px; padding: 13px 20px; border-radius: 13px; }
.button--tiny { min-height: 32px; padding: 7px 11px; border-radius: 9px; font-size: 11px; }
.button--full { width: 100%; }
.icon-button { display: inline-grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--navy-800); text-decoration: none; transition: background .18s, color .18s, transform .18s, border-color .18s; }
.icon-button:hover { transform: translateY(-1px); background: var(--surface-alt); border-color: #b9c7ce; }
.icon-button--danger { color: var(--danger); }
.icon-button--danger:hover { background: var(--danger-bg); border-color: #f2bbc4; }

/* Forms */
.stack-form { display: grid; gap: 17px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: grid; gap: 7px; min-width: 0; }
.field label { color: var(--navy-800); font-size: 11.5px; font-weight: 750; }
.field > small, .form-hint { margin: 0; color: var(--muted-2); font-size: 10.5px; line-height: 1.45; }
.field input, .field select, .field textarea, .date-navigator input { width: 100%; min-height: 45px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); outline: 0; transition: border-color .18s, box-shadow .18s, background .18s; }
.field textarea { resize: vertical; min-height: 105px; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: #a7b1b8; }
.field input:focus, .field select:focus, .field textarea:focus, .date-navigator input:focus { border-color: var(--teal-500); box-shadow: 0 0 0 4px rgba(0,167,162,.09); }
.field-error { color: var(--danger) !important; font-weight: 650; }
.field--compact { min-width: 140px; gap: 5px; }
.field--compact input, .field--compact select { min-height: 39px; padding: 8px 11px; font-size: 12px; }
.form-card { padding: 25px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 4px; }
.form-lead { margin: 0 0 23px; color: var(--muted); line-height: 1.65; }
.input-wrap { position: relative; }
.input-wrap > svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted-2); pointer-events: none; }
.input-wrap input { padding-left: 40px; }
.input-wrap .password-toggle { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 36px; height: 36px; border: 0; background: transparent; color: var(--muted); }
.input-prefix { display: flex; align-items: stretch; }
.input-prefix > span { display: grid; place-items: center; min-width: 43px; padding: 0 8px; border: 1px solid var(--line); border-right: 0; border-radius: 10px 0 0 10px; background: var(--surface-alt); color: var(--muted); font-size: 11px; font-weight: 750; }
.input-prefix input { border-radius: 0 10px 10px 0; }
.filter-bar { display: flex; align-items: flex-end; gap: 11px; padding: 15px; border: 1px solid var(--line-soft); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.filter-grow { flex: 1; }
.filter-submit { min-height: 39px; }
.switch-field { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--surface-alt); cursor: pointer; }
.switch-field input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }
.switch-control { position: relative; width: 39px; height: 22px; flex: 0 0 auto; margin-top: 1px; border-radius: 999px; background: #c9d2d7; transition: background .2s; }
.switch-control::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.15); transition: transform .2s; }
.switch-field input:checked + .switch-control { background: var(--teal-500); }
.switch-field input:checked + .switch-control::after { transform: translateX(17px); }
.switch-field > span:last-child { display: grid; }
.switch-field strong { font-size: 12px; }
.switch-field small { margin-top: 2px; color: var(--muted); font-size: 10.5px; }
.section-title { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; padding-bottom: 17px; border-bottom: 1px solid var(--line-soft); }
.section-title h3 { margin: 3px 0 0; font-size: 19px; }
.section-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--info-bg); color: var(--info); }
.section-icon--teal { background: var(--teal-100); color: var(--teal-700); }
.section-icon--sand { background: var(--sand-200); color: #85693a; }

/* Alerts */
.toast { position: fixed; top: 101px; right: 24px; z-index: 300; display: flex; align-items: center; gap: 10px; width: min(410px, calc(100vw - 32px)); padding: 13px 14px; border: 1px solid transparent; border-radius: 12px; box-shadow: var(--shadow-md); animation: toastIn .35s var(--ease); }
.toast span { flex: 1; font-size: 12px; font-weight: 650; }
.toast button { display: grid; place-items: center; width: 27px; height: 27px; border: 0; border-radius: 8px; background: transparent; color: inherit; }
.toast--success { background: var(--success-bg); color: var(--success); border-color: #c4eadb; }
.toast--error { background: var(--danger-bg); color: var(--danger); border-color: #f6c7cf; }
.toast--info { background: var(--info-bg); color: var(--info); border-color: #c9e5f1; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
.inline-alert { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 18px; padding: 12px 13px; border-radius: 10px; font-size: 11.5px; }
.inline-alert--success { color: var(--success); background: var(--success-bg); }
.inline-alert--error { color: var(--danger); background: var(--danger-bg); }
.inline-alert--info { color: var(--info); background: var(--info-bg); }

/* Dialogs */
dialog.dialog { width: min(580px, calc(100vw - 28px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 20px; background: #fff; color: var(--ink); box-shadow: 0 30px 90px rgba(1, 20, 33, .3); overflow: auto; }
dialog.dialog[open] { animation: dialogIn .3s var(--ease); }
dialog.dialog::backdrop { background: rgba(4, 19, 31, .62); backdrop-filter: blur(5px); }
.dialog > form, .dialog > div:not(.dialog-head) { padding: 0; }
.dialog form > .dialog-head, .dialog > .dialog-head { padding: 22px 23px 17px; border-bottom: 1px solid var(--line-soft); }
.dialog form > .form-grid, .dialog form > .stack-form, .dialog .credentials-box, .dialog .dialog-lead, .dialog .payment-dialog-summary { margin-left: 23px; margin-right: 23px; }
.dialog form > .form-grid, .dialog form > .stack-form { margin-top: 21px; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.dialog-head h2 { margin: 4px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 28px; font-weight: 500; letter-spacing: -.025em; }
.dialog-lead { margin-top: 18px; color: var(--muted); line-height: 1.6; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 24px; padding: 17px 23px 22px; border-top: 1px solid var(--line-soft); }
@keyframes dialogIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.credentials-dialog { padding-bottom: 23px !important; }
.credentials-box { display: grid; gap: 6px; margin-top: 18px; margin-bottom: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-alt); }
.credentials-box label { margin-top: 5px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.credentials-box > div { display: flex; align-items: center; gap: 8px; }
.credentials-box code { flex: 1; padding: 8px 9px; border-radius: 7px; background: #fff; border: 1px solid var(--line-soft); font-size: 12px; overflow-wrap: anywhere; }
.credentials-box button { border: 0; background: transparent; color: var(--teal-700); font-size: 10px; font-weight: 800; }
.credentials-dialog > .button { width: calc(100% - 46px); margin: 0 23px; }
.payment-dialog-summary { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding: 13px 15px; border-radius: 11px; background: var(--navy-900); color: #fff; }
.payment-dialog-summary span { color: rgba(255,255,255,.6); font-size: 12px; text-transform: capitalize; }
.payment-dialog-summary strong { font-size: 19px; }

/* Login */
.guest-body { min-height: 100vh; background: var(--sand-100); }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(430px, .92fr); }
.login-visual { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(28px, 4vw, 58px); color: #fff; overflow: hidden; background: var(--navy-900); }
.login-visual-bg { position: absolute; inset: 0; background: url("../img/login-canoagem.webp") center / cover no-repeat; transform: scale(1.02); }
.login-visual-shade { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(4,19,31,.93), rgba(7,31,50,.5) 56%, rgba(0,85,90,.22)), linear-gradient(0deg, rgba(4,19,31,.78), transparent 48%); }
.login-visual::after { content: ""; position: absolute; right: -12vw; bottom: -22vw; width: 48vw; height: 48vw; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; box-shadow: 0 0 0 5vw rgba(255,255,255,.025), 0 0 0 10vw rgba(0,167,162,.035); }
.login-brand, .login-story, .login-location { position: relative; z-index: 2; }
.login-brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.login-brand img { width: 47px; height: 47px; filter: brightness(0) invert(1); }
.login-brand span { display: grid; }
.login-brand strong { font-family: Georgia, serif; font-size: 25px; font-weight: 500; line-height: 1; }
.login-brand small { margin-top: 5px; color: rgba(255,255,255,.6); font-size: 9px; letter-spacing: .21em; text-transform: uppercase; }
.login-story { max-width: 670px; margin: auto 0 8vh; }
.login-story h1 { margin: 14px 0 18px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(50px, 6.5vw, 94px); font-weight: 400; line-height: .91; letter-spacing: -.055em; }
.login-story h1 em { color: #8ee5df; font-weight: 400; }
.login-story p { max-width: 490px; margin: 0; color: rgba(255,255,255,.68); font-size: 16px; line-height: 1.65; }
.login-location { display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.68); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; }
.login-panel { display: grid; place-items: center; padding: 36px clamp(30px, 6vw, 92px); background: var(--sand-100); }
.login-form-wrap { width: min(100%, 430px); }
.login-form-wrap h2 { margin: 7px 0 10px; font-family: Georgia, serif; font-size: 43px; font-weight: 500; letter-spacing: -.04em; color: var(--navy-900); }
.login-help { margin: 22px 0 0; color: var(--muted-2); font-size: 10.5px; text-align: center; }
.mobile-login-brand { display: none; }

/* Metrics/dashboard */
.metric-grid { display: grid; gap: 13px; }
.metric-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric-grid--five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.metric-card { min-height: 133px; display: flex; align-items: flex-start; gap: 15px; padding: 20px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); overflow: hidden; }
.metric-card--navy { color: #fff; background: linear-gradient(145deg, var(--navy-900), #123b52); border-color: transparent; }
.metric-icon { display: grid; place-items: center; width: 39px; height: 39px; flex: 0 0 auto; border-radius: 11px; color: var(--info); background: var(--info-bg); }
.metric-icon--teal { color: var(--teal-700); background: var(--teal-100); }
.metric-icon--coral { color: var(--coral-600); background: var(--coral-100); }
.metric-icon--sand { color: #80622e; background: var(--sand-200); }
.metric-card--navy .metric-icon { color: #fff; background: rgba(255,255,255,.1); }
.metric-card > div { min-width: 0; display: grid; }
.metric-card small { color: var(--muted); font-size: 10.5px; }
.metric-card--navy small, .metric-card--navy span, .metric-card--navy a { color: rgba(255,255,255,.6); }
.metric-card strong { margin-top: 4px; font-size: 29px; line-height: 1; letter-spacing: -.04em; }
.metric-card span, .metric-card a { margin-top: 8px; color: var(--muted-2); font-size: 9.5px; text-decoration: none; }
.metric-card a { display: inline-flex; align-items: center; gap: 5px; color: var(--teal-700); font-weight: 750; }
.metric-money { font-size: clamp(18px, 1.8vw, 27px) !important; }
.dashboard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.span-2 { grid-column: span 2; }
.schedule-list { display: grid; }
.schedule-row { display: grid; grid-template-columns: 56px 80px minmax(160px, 1fr) 70px 39px; align-items: center; gap: 13px; padding: 14px 22px; border-top: 1px solid var(--line-soft); }
.schedule-row:first-child { border-top: 0; }
.date-tile { display: grid; place-items: center; width: 48px; height: 52px; border-radius: 11px; background: var(--sand-100); border: 1px solid var(--sand-200); line-height: 1; }
.date-tile strong { font-size: 19px; }
.date-tile span { margin-top: 3px; color: var(--coral-600); font-size: 8px; font-weight: 850; letter-spacing: .08em; }
.schedule-time, .schedule-main, .schedule-checkins { display: grid; min-width: 0; }
.schedule-time strong { font-size: 17px; font-variant-numeric: tabular-nums; }
.schedule-time span, .schedule-main span, .schedule-checkins span { margin-top: 2px; color: var(--muted); font-size: 9.5px; }
.schedule-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.schedule-checkins { text-align: center; }
.schedule-checkins strong { font-size: 17px; }
.finance-summary { padding-bottom: 20px; }
.ring-metric { --progress: 0; width: 132px; height: 132px; display: grid; place-items: center; margin: 6px auto 18px; border-radius: 50%; background: conic-gradient(var(--teal-500) calc(var(--progress) * 1%), var(--line-soft) 0); position: relative; }
.ring-metric::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: #fff; }
.ring-metric > div { position: relative; display: grid; text-align: center; }
.ring-metric strong { font-size: 27px; }
.ring-metric span { color: var(--muted); font-size: 10px; }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 20px 18px; }
.mini-stats > div { display: grid; grid-template-columns: 9px 1fr; column-gap: 7px; padding: 10px; border-radius: 10px; background: var(--surface-alt); }
.mini-stats strong { font-size: 16px; }
.mini-stats small { grid-column: 2; color: var(--muted); font-size: 9px; }
.status-dot { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--muted-2); }
.status-dot--danger { background: var(--coral-500); }
.status-dot--teal { background: var(--teal-500); }
.finance-summary > .button { width: calc(100% - 40px); margin: 0 20px; }
.activity-list { padding: 0 22px 16px; }
.activity-item { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line-soft); }
.activity-item:first-child { border-top: 0; }
.activity-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--success); background: var(--success-bg); }
.activity-item > div:not(.activity-value), .activity-value { display: grid; }
.activity-item strong { font-size: 12px; }
.activity-item span { color: var(--muted); font-size: 9.5px; }
.activity-value { text-align: right; }
.quick-card { padding: 22px; }
.quick-card h3 { margin: 4px 0 16px; font-size: 20px; }
.quick-links { display: grid; }
.quick-links a { display: grid; grid-template-columns: 36px 1fr 16px; align-items: center; gap: 11px; padding: 12px 0; border-top: 1px solid var(--line-soft); text-decoration: none; }
.quick-links a:first-child { border-top: 0; }
.quick-links a > span:first-child { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--surface-alt); color: var(--teal-700); }
.quick-links a div { display: grid; }
.quick-links strong { font-size: 11.5px; }
.quick-links small { color: var(--muted); font-size: 9px; }
.empty-inline { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 150px; padding: 22px; color: var(--muted); }
.empty-inline > div { display: grid; }
.empty-inline strong { color: var(--navy-800); font-size: 12px; }
.empty-inline span { font-size: 10px; }
.empty-inline--vertical { flex-direction: column; text-align: center; }

/* Agenda */
.agenda-days { display: grid; gap: 14px; }
.agenda-day { overflow: hidden; border: 1px solid var(--line-soft); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.agenda-day-head { display: flex; align-items: center; gap: 13px; padding: 15px 18px; background: linear-gradient(90deg, var(--sand-100), #fff); border-bottom: 1px solid var(--line-soft); }
.agenda-day-date { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--navy-900); color: #fff; line-height: 1; }
.agenda-day-date strong { font-size: 19px; }
.agenda-day-date span { margin-top: 3px; color: #8ee5df; font-size: 8px; font-weight: 850; }
.agenda-day-head h3 { margin: 0; font-size: 15px; text-transform: capitalize; }
.agenda-day-head p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.agenda-slots { display: grid; }
.agenda-slot { display: grid; grid-template-columns: 52px 74px minmax(190px, 1fr) minmax(150px, .7fr) 70px auto; align-items: center; gap: 13px; padding: 14px 18px; border-top: 1px solid var(--line-soft); }
.agenda-slot:first-child { border-top: 0; }
.agenda-slot.is-cancelled { opacity: .58; background: #fafafa; }
.slot-type-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--teal-100); color: var(--teal-700); }
.slot-type-icon--private { background: var(--coral-100); color: var(--coral-600); }
.slot-time { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.slot-info { display: grid; min-width: 0; }
.slot-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.slot-info span { margin-top: 3px; color: var(--muted); font-size: 9.5px; }
.slot-checkins { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }
.slot-status { display: flex; justify-content: flex-start; }
.slot-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.inline-form { display: flex; align-items: center; gap: 6px; }
.inline-form select { min-height: 35px; max-width: 150px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 10.5px; }

/* Status/pills */
.pill, .status-badge { display: inline-flex; align-items: center; justify-content: center; width: fit-content; border-radius: 999px; font-size: 8.5px; font-weight: 850; letter-spacing: .055em; text-transform: uppercase; white-space: nowrap; }
.pill { padding: 5px 8px; }
.pill--teal { color: var(--teal-700); background: var(--teal-100); }
.pill--coral { color: var(--coral-600); background: var(--coral-100); }
.status-badge { padding: 5px 8px; }
.status-badge--success, .status-badge--paid { color: var(--success); background: var(--success-bg); }
.status-badge--warning, .status-badge--scheduled { color: var(--warning); background: var(--warning-bg); }
.status-badge--danger, .status-badge--overdue, .status-badge--cancelled { color: var(--danger); background: var(--danger-bg); }
.status-badge--info { color: var(--info); background: var(--info-bg); }
.status-badge--muted { color: var(--muted); background: #edf1f3; }

/* Check-ins */
.date-navigator, .month-navigator { display: flex; align-items: center; gap: 8px; }
.date-navigator input { min-height: 38px; border-radius: 10px; font-size: 11px; }
.month-navigator > div { display: grid; min-width: 165px; text-align: center; }
.month-navigator strong { text-transform: capitalize; font-size: 13px; }
.month-navigator small { color: var(--muted); font-size: 9px; }
.date-banner { display: flex; align-items: center; gap: 16px; padding: 17px 20px; border-radius: var(--radius); color: #fff; background: linear-gradient(120deg, var(--navy-900), var(--navy-700)); }
.date-banner > div { display: flex; align-items: baseline; gap: 8px; }
.date-banner > div strong { font-size: 30px; }
.date-banner > div span { color: #8ee5df; text-transform: capitalize; }
.date-banner p { flex: 1; margin: 0; color: rgba(255,255,255,.65); font-size: 11px; text-transform: capitalize; }
.date-banner .button { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.12); }
.checkin-board { display: grid; gap: 13px; }
.checkin-board-card { overflow: hidden; border: 1px solid var(--line-soft); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.checkin-board-card > header { display: grid; grid-template-columns: 135px minmax(180px, 1fr) 100px; align-items: center; gap: 17px; padding: 17px 20px; }
.board-time { display: flex; align-items: center; gap: 10px; }
.board-time strong { font-size: 23px; font-variant-numeric: tabular-nums; }
.board-title, .board-count { display: grid; }
.board-title strong { font-size: 13px; }
.board-title span, .board-count span { color: var(--muted); font-size: 9.5px; }
.board-count { text-align: right; }
.board-count strong { font-size: 21px; }
.board-students { border-top: 1px solid var(--line-soft); background: var(--surface-alt); }
.board-students article { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 11px; padding: 11px 20px; border-top: 1px solid #e6ecef; }
.board-students article:first-child { border-top: 0; }
.board-students article > div { display: grid; }
.board-students strong { font-size: 11.5px; }
.board-students span { color: var(--muted); font-size: 9px; }
.board-empty { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 78px; padding: 16px; color: var(--muted); border-top: 1px solid var(--line-soft); background: var(--surface-alt); font-size: 10px; }
.cancelled-strip { padding: 10px; color: var(--danger); background: var(--danger-bg); border-top: 1px solid #f5cdd2; text-align: center; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.checkin-list-large { display: grid; gap: 12px; }
.checkin-option { display: grid; grid-template-columns: 73px 105px minmax(180px, 1fr) auto; align-items: center; gap: 17px; padding: 17px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.checkin-option--private { border-left: 4px solid var(--coral-500); }
.option-date { display: grid; place-items: center; min-height: 70px; border-radius: 12px; background: var(--sand-100); line-height: 1; }
.option-date strong { font-size: 24px; }
.option-date span { margin-top: 6px; color: var(--coral-600); font-size: 9px; font-weight: 850; }
.option-date small { margin-top: 5px; color: var(--muted); font-size: 8px; }
.option-time { display: grid; }
.option-time small { color: var(--muted); font-size: 9px; }
.option-time strong { margin-top: 2px; font-size: 26px; font-variant-numeric: tabular-nums; }
.option-info { display: grid; justify-items: start; }
.option-info strong { margin-top: 7px; font-size: 13px; }
.option-info > span:last-child { color: var(--muted); font-size: 10px; }
.checkin-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.checkin-card { display: grid; grid-template-columns: 61px 1fr; gap: 13px; padding: 17px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.checkin-card--private { border-top: 3px solid var(--coral-500); }
.checkin-card form { grid-column: 1 / -1; }
.checkin-date { display: grid; place-items: center; padding: 9px 6px; border-radius: 11px; background: var(--sand-100); line-height: 1; }
.checkin-date span, .checkin-date small { color: var(--muted); font-size: 8px; }
.checkin-date strong { margin: 5px 0; font-size: 22px; }
.checkin-info { display: grid; justify-items: start; align-content: center; }
.checkin-info strong { margin-top: 7px; font-size: 25px; }
.checkin-info small { color: var(--muted); font-size: 9px; }

/* Student dashboard */
.student-welcome { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 205px; padding: clamp(25px, 4vw, 43px); border-radius: var(--radius-lg); color: #fff; background: linear-gradient(120deg, var(--navy-900), #0d465b 68%, #007f7c); overflow: hidden; }
.student-welcome::before { content: ""; position: absolute; inset: 0; background: url("../img/wave-lines.svg") right center / auto 100% no-repeat; opacity: .2; }
.student-welcome > * { position: relative; }
.student-welcome h2 { max-width: 760px; margin: 7px 0 10px; font-family: Georgia, serif; font-size: clamp(31px, 4.5vw, 57px); font-weight: 400; line-height: 1; letter-spacing: -.04em; }
.student-welcome p { margin: 0; color: rgba(255,255,255,.68); }
.student-wave { display: grid; place-items: center; width: 112px; height: 112px; flex: 0 0 auto; border-radius: 50%; color: #8ee5df; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.checkin-spotlight { padding: 22px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.checkin-spotlight .section-head { margin-bottom: 17px; }
.student-summary-grid { display: grid; grid-template-columns: 1.6fr .7fr .7fr; gap: 15px; }
.student-summary-grid > .card { padding-bottom: 18px; }
.timeline-list { padding: 0 22px; }
.timeline-item { position: relative; display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: 10px; min-height: 52px; border-top: 1px solid var(--line-soft); }
.timeline-item:first-child { border-top: 0; }
.timeline-dot { width: 10px; height: 10px; border-radius: 50%; background: #d1d9dd; box-shadow: 0 0 0 4px #f1f4f5; }
.timeline-dot.is-done { background: var(--teal-500); box-shadow: 0 0 0 4px var(--teal-100); }
.timeline-item > div { display: grid; }
.timeline-item strong { font-size: 11.5px; }
.timeline-item span:not(.status-badge):not(.timeline-dot) { color: var(--muted); font-size: 9px; }
.big-status { display: flex; align-items: center; gap: 12px; margin: 2px 20px 0; padding: 17px; border-radius: 13px; background: var(--surface-alt); }
.big-status > span { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 12px; color: var(--warning); background: var(--warning-bg); }
.big-status > div { display: grid; }
.big-status strong { font-size: 17px; }
.big-status small { color: var(--muted); font-size: 9.5px; }
.big-status--paid > span, .big-status--teal > span { color: var(--teal-700); background: var(--teal-100); }
.big-status--overdue > span { color: var(--danger); background: var(--danger-bg); }

/* Tables / people */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 850px; }
.data-table th { padding: 12px 16px; color: var(--muted); background: var(--surface-alt); border-bottom: 1px solid var(--line-soft); font-size: 9px; font-weight: 850; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fcfdfd; }
.person-cell { display: flex; align-items: center; gap: 10px; min-width: 205px; }
.person-cell > div { min-width: 0; display: grid; }
.person-cell strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; }
.person-cell span:not(.avatar) { color: var(--muted); font-size: 9px; }
.table-primary, .table-secondary { display: block; }
.table-primary { font-size: 11px; }
.table-secondary { margin-top: 2px; color: var(--muted); font-size: 9px; }
.table-note { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-actions { width: 50px; text-align: right; }
.people-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.person-card { display: grid; padding: 20px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.person-card.is-inactive { opacity: .7; }
.person-card-head { display: flex; align-items: flex-start; justify-content: space-between; }
.person-card-copy { margin-top: 15px; }
.person-card-copy h3 { margin: 0; font-size: 17px; }
.person-card-copy p { margin: 3px 0 0; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.person-card-metric { display: flex; align-items: center; gap: 10px; margin-top: 17px; padding: 12px; border-radius: 11px; background: var(--surface-alt); }
.person-card-metric > span { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 9px; color: var(--teal-700); background: var(--teal-100); }
.person-card-metric > div { display: grid; }
.person-card-metric strong { font-size: 15px; }
.person-card-metric small { color: var(--muted); font-size: 9px; }
.person-card-footer { display: flex; gap: 7px; margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--line-soft); }
.person-card-footer > * { flex: 1; }
.person-card-footer .button { width: 100%; }
.student-form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.sticky-card { position: sticky; top: calc(var(--topbar) + 20px); padding: 21px; }
.sticky-card h3 { margin: 5px 0 8px; font-size: 19px; }
.sticky-card p { margin: 0 0 18px; color: var(--muted); font-size: 10.5px; line-height: 1.55; }
.sticky-card .button + .button { margin-top: 6px; }
.account-card { padding: 20px; }
.account-line { display: flex; align-items: center; gap: 10px; margin: 13px 0 15px; }
.account-line > div { min-width: 0; display: grid; }
.account-line strong { overflow: hidden; text-overflow: ellipsis; font-size: 10.5px; }
.account-line small { color: var(--muted); font-size: 8.5px; }

/* Payment */
.action-menu { position: relative; display: inline-block; }
.action-menu summary { list-style: none; }
.action-menu summary::-webkit-details-marker { display: none; }
.action-menu-panel { position: absolute; right: 0; top: 45px; z-index: 20; min-width: 190px; padding: 6px; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: var(--shadow-md); }
.action-menu-panel button { width: 100%; display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font-size: 10.5px; text-align: left; }
.action-menu-panel button:hover { background: var(--surface-alt); }
.payment-history-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.payment-history-card { padding: 19px; border-top: 3px solid var(--line); }
.payment-history-card--paid { border-top-color: var(--teal-500); }
.payment-history-card--overdue { border-top-color: var(--coral-500); }
.payment-history-card--exempt { border-top-color: var(--info); }
.payment-history-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.payment-history-top > span:first-child { color: var(--muted); font-size: 10px; text-transform: capitalize; }
.payment-history-card > strong { display: block; margin: 18px 0 14px; font-size: 25px; letter-spacing: -.03em; }
.payment-history-card dl { display: grid; gap: 7px; margin: 0; }
.payment-history-card dl div { display: flex; justify-content: space-between; gap: 12px; }
.payment-history-card dt { color: var(--muted); font-size: 9px; }
.payment-history-card dd { margin: 0; font-size: 9.5px; font-weight: 700; }
.payment-history-card p { margin: 13px 0 0; padding-top: 12px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 9.5px; }

/* Guarderia */
.space-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.space-card { display: grid; grid-template-columns: 82px 1fr; min-height: 250px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); overflow: hidden; }
.space-code { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 14px; color: #fff; background: var(--navy-900); }
.space-code small { color: rgba(255,255,255,.55); font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.space-code strong { margin-top: 8px; font-size: 19px; writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: .08em; }
.space-card--available .space-code { background: var(--teal-700); }
.space-card--inactive .space-code { background: #667680; }
.space-card-body { display: flex; flex-direction: column; padding: 17px; }
.space-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.space-card-body h3 { margin: 12px 0 13px; font-size: 13px; }
.rental-person { display: flex; align-items: center; gap: 9px; padding: 10px; border-radius: 10px; background: var(--surface-alt); }
.rental-person > div { min-width: 0; display: grid; }
.rental-person strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10.5px; }
.rental-person span:not(.avatar) { color: var(--muted); font-size: 8.5px; }
.space-details { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 12px 0; }
.space-details div { display: grid; }
.space-details dt { color: var(--muted); font-size: 8px; }
.space-details dd { margin: 2px 0 0; font-size: 10px; font-weight: 700; }
.end-rental-form { margin-top: auto; }
.space-empty { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 105px; color: var(--muted); border: 1px dashed var(--line); border-radius: 11px; font-size: 10px; }
.rental-history { display: grid; gap: 13px; }
.rental-history-card { display: grid; grid-template-columns: 180px 1fr; overflow: hidden; }
.rental-history-card.is-current { border-color: rgba(0,167,162,.3); }
.rental-space { display: flex; flex-direction: column; justify-content: center; padding: 25px; color: #fff; background: var(--navy-900); }
.rental-history-card.is-current .rental-space { background: linear-gradient(145deg, var(--teal-700), var(--navy-800)); }
.rental-space small { color: rgba(255,255,255,.6); font-size: 9px; text-transform: uppercase; }
.rental-space strong { margin: 7px 0; font-size: 28px; }
.rental-space span { color: rgba(255,255,255,.65); font-size: 10px; }
.rental-copy { padding: 23px; }
.rental-copy h3 { margin: 11px 0 15px; font-size: 20px; }
.rental-copy dl { display: flex; gap: 25px; margin: 0; flex-wrap: wrap; }
.rental-copy dl div { display: grid; }
.rental-copy dt { color: var(--muted); font-size: 8.5px; text-transform: uppercase; }
.rental-copy dd { margin: 3px 0 0; font-size: 11px; font-weight: 700; }
.rental-copy p { margin: 15px 0 0; padding-top: 14px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 10px; }

/* Audit/profile/empty */
.audit-list { display: grid; }
.audit-item { display: grid; grid-template-columns: 38px minmax(180px, 1fr) minmax(220px, .9fr); align-items: start; gap: 13px; padding: 15px 20px; border-top: 1px solid var(--line-soft); }
.audit-item:first-child { border-top: 0; }
.audit-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--info); background: var(--info-bg); }
.audit-main { min-width: 0; display: grid; }
.audit-main > div { display: grid; }
.audit-main strong { font-size: 11.5px; text-transform: capitalize; }
.audit-main span, .audit-main small { color: var(--muted); font-size: 8.5px; }
.audit-details summary { color: var(--teal-700); cursor: pointer; font-size: 10px; font-weight: 750; }
.audit-json-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 7px; }
.audit-json-grid strong { font-size: 8px; text-transform: uppercase; }
.audit-json-grid pre { max-height: 170px; margin: 3px 0 0; padding: 8px; border-radius: 8px; background: var(--navy-950); color: #c7f5ec; overflow: auto; font: 9px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace; }
.profile-layout { display: grid; grid-template-columns: 295px minmax(0, 1fr); gap: 18px; align-items: start; }
.profile-summary { display: grid; justify-items: center; padding: 27px 21px 21px; text-align: center; }
.profile-summary h3 { margin: 13px 0 0; font-size: 20px; }
.profile-summary > p { margin: 3px 0 19px; color: var(--muted); font-size: 10px; }
.profile-summary dl { width: 100%; display: grid; margin: 0 0 18px; border-top: 1px solid var(--line-soft); }
.profile-summary dl div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.profile-summary dt { color: var(--muted); font-size: 9px; }
.profile-summary dd { margin: 0; font-size: 10px; font-weight: 700; }
.empty-state { min-height: 250px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 34px; text-align: center; }
.empty-state--large { min-height: 360px; }
.empty-state--page { min-height: calc(100vh - var(--topbar) - 90px); }
.empty-icon { display: grid; place-items: center; min-width: 58px; height: 58px; padding: 0 12px; border-radius: 17px; color: var(--teal-700); background: var(--teal-100); font-size: 20px; font-weight: 850; }
.empty-state h2, .empty-state h3 { margin: 17px 0 7px; }
.empty-state h2 { max-width: 600px; font-family: Georgia, serif; font-size: 35px; font-weight: 500; }
.empty-state h3 { font-size: 17px; }
.empty-state p { max-width: 500px; margin: 0 0 17px; color: var(--muted); font-size: 11px; line-height: 1.6; }

/* responsive */
@media (max-width: 1320px) {
    .metric-grid--five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .metric-grid--five .metric-card:nth-child(4), .metric-grid--five .metric-card:nth-child(5) { grid-column: span 1; }
    .student-summary-grid { grid-template-columns: 1.4fr 1fr; }
    .student-summary-grid > :first-child { grid-row: span 2; }
    .space-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1120px) {
    :root { --sidebar: 238px; }
    .metric-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .checkin-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .agenda-slot { grid-template-columns: 42px 68px minmax(150px, 1fr) 135px auto; }
    .slot-checkins { display: none; }
    .schedule-row { grid-template-columns: 53px 72px minmax(130px, 1fr) 37px; }
    .schedule-checkins { display: none; }
}

@media (max-width: 900px) {
    :root { --topbar: 73px; }
    .sidebar { width: 275px; transform: translateX(-105%); transition: transform .28s var(--ease); box-shadow: var(--shadow-md); }
    body.sidebar-open .sidebar { transform: translateX(0); }
    .sidebar-overlay { position: fixed; inset: 0; z-index: 70; display: block; background: rgba(4,19,31,.56); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
    body.sidebar-open .sidebar-overlay { opacity: 1; visibility: visible; }
    .main-column { margin-left: 0; }
    .menu-button { display: inline-grid !important; }
    .topbar { padding: 10px 18px; }
    .topbar-meta { display: none; }
    .page-content { padding: 25px 18px 95px; }
    .mobile-nav { position: fixed; z-index: 65; left: 12px; right: 12px; bottom: max(10px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px; border: 1px solid rgba(221,229,233,.9); border-radius: 17px; background: rgba(255,255,255,.94); box-shadow: 0 15px 45px rgba(4,19,31,.18); backdrop-filter: blur(18px); }
    .mobile-nav a { display: grid; justify-items: center; gap: 3px; padding: 7px 3px; border-radius: 11px; color: var(--muted); text-decoration: none; }
    .mobile-nav a span { max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 7.5px; font-weight: 700; }
    .mobile-nav a.is-active { color: var(--navy-900); background: var(--teal-100); }
    .dashboard-grid { grid-template-columns: 1fr 1fr; }
    .dashboard-grid .span-2 { grid-column: span 2; }
    .student-form-grid { grid-template-columns: 1fr; }
    .form-aside { grid-row: 1; }
    .sticky-card { position: static; }
    .profile-layout { grid-template-columns: 1fr; }
    .profile-summary { grid-template-columns: auto 1fr; justify-items: start; text-align: left; column-gap: 15px; }
    .profile-summary .avatar { grid-row: span 2; }
    .profile-summary > p { margin: 0; }
    .profile-summary dl, .profile-summary .button { grid-column: 1 / -1; }
    .login-shell { grid-template-columns: 1fr; }
    .login-visual { display: none; }
    .login-panel { min-height: 100vh; padding: 35px 22px; }
    .mobile-login-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 46px; color: var(--navy-900); }
    .mobile-login-brand img { width: 39px; height: 39px; }
    .mobile-login-brand strong { font-family: Georgia, serif; font-size: 20px; font-weight: 500; }
    .payment-history-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    .page-intro, .page-intro--actions { align-items: flex-start; flex-direction: column; }
    .page-intro h2 { font-size: 32px; }
    .page-intro > .button, .page-intro > .page-actions { width: 100%; }
    .page-actions .button { flex: 1; }
    .filter-bar { align-items: stretch; flex-direction: column; }
    .filter-bar .field, .filter-bar .button { width: 100%; }
    .form-grid { grid-template-columns: 1fr; }
    .form-grid .full { grid-column: auto; }
    .metric-grid--three, .metric-grid--four, .metric-grid--five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .metric-card { min-height: 118px; padding: 16px; }
    .metric-card strong { font-size: 25px; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .dashboard-grid .span-2 { grid-column: auto; }
    .people-grid, .space-grid, .checkin-card-grid, .payment-history-grid { grid-template-columns: 1fr; }
    .student-summary-grid { grid-template-columns: 1fr; }
    .student-summary-grid > :first-child { grid-row: auto; }
    .student-welcome { min-height: 230px; align-items: flex-start; }
    .student-wave { position: absolute; right: 20px; bottom: -25px; opacity: .5; }
    .schedule-row { grid-template-columns: 50px 65px 1fr 36px; padding: 12px 15px; gap: 9px; }
    .agenda-slot { grid-template-columns: 39px 59px 1fr auto; padding: 12px; gap: 8px; }
    .agenda-slot .slot-status { display: none; }
    .slot-actions { grid-column: 3 / -1; justify-content: flex-start; padding-top: 7px; border-top: 1px solid var(--line-soft); }
    .inline-form { flex: 1; }
    .inline-form select { flex: 1; max-width: none; }
    .checkin-board-card > header { grid-template-columns: 100px 1fr 60px; padding: 14px; gap: 8px; }
    .board-time { flex-direction: column; align-items: flex-start; gap: 4px; }
    .board-time strong { font-size: 20px; }
    .checkin-option { grid-template-columns: 62px 84px 1fr; padding: 13px; gap: 10px; }
    .checkin-option form { grid-column: 1 / -1; }
    .checkin-option .button { width: 100%; }
    .option-time strong { font-size: 21px; }
    .date-banner { align-items: flex-start; flex-wrap: wrap; }
    .date-banner p { flex-basis: calc(100% - 110px); }
    .date-banner .button { width: 100%; }
    .rental-history-card { grid-template-columns: 1fr; }
    .rental-space { padding: 20px; }
    .rental-space strong { font-size: 24px; }
    .audit-item { grid-template-columns: 36px 1fr; }
    .audit-details { grid-column: 2; }
    .audit-json-grid { grid-template-columns: 1fr; }
    .data-table { min-width: 0; }
    .data-table thead { display: none; }
    .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
    .data-table tr { padding: 14px 15px; border-bottom: 1px solid var(--line-soft); }
    .data-table td { display: grid; grid-template-columns: 92px 1fr; gap: 9px; padding: 7px 0; border: 0; }
    .data-table td::before { content: attr(data-label); color: var(--muted); font-size: 8px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
    .data-table td.table-actions { display: flex; justify-content: flex-end; width: 100%; padding-top: 11px; }
    .data-table td.table-actions::before { display: none; }
    .person-cell { min-width: 0; }
    .action-menu-panel { right: 0; bottom: 44px; top: auto; }
    .month-navigator { width: 100%; justify-content: space-between; }
    .month-navigator > div { flex: 1; }
}

@media (max-width: 460px) {
    .topbar { gap: 11px; padding: 9px 12px; }
    .topbar-heading p { display: none; }
    .topbar-heading h1 { font-size: 16px; }
    .page-content { padding-left: 12px; padding-right: 12px; }
    .page-intro h2 { font-size: 29px; }
    .metric-grid--three, .metric-grid--four, .metric-grid--five { grid-template-columns: 1fr 1fr; gap: 8px; }
    .metric-card { min-height: 112px; display: grid; gap: 9px; padding: 13px; }
    .metric-icon { width: 33px; height: 33px; }
    .metric-card strong { font-size: 22px; }
    .metric-card span, .metric-card a { margin-top: 5px; }
    .card-header { padding: 18px 16px 14px; }
    .schedule-row { grid-template-columns: 47px 58px 1fr 34px; padding: 11px 12px; }
    .date-tile { width: 43px; height: 47px; }
    .schedule-main strong { font-size: 11px; }
    .student-welcome { padding: 24px 20px; }
    .student-welcome h2 { font-size: 36px; }
    .checkin-spotlight { padding: 16px; }
    .checkin-option { grid-template-columns: 57px 71px 1fr; }
    .option-date { min-height: 62px; }
    .option-date strong { font-size: 20px; }
    .option-info strong { font-size: 11px; }
    .checkin-board-card > header { grid-template-columns: 86px 1fr 48px; }
    .board-title strong { font-size: 11px; }
    .board-count strong { font-size: 17px; }
    .board-students article { padding: 10px 12px; }
    .space-card { grid-template-columns: 68px 1fr; }
    .form-card { padding: 19px 16px; }
    dialog.dialog { width: calc(100vw - 16px); border-radius: 16px; }
    .dialog form > .dialog-head, .dialog > .dialog-head { padding: 18px 17px 14px; }
    .dialog form > .form-grid, .dialog form > .stack-form, .dialog .credentials-box, .dialog .dialog-lead, .dialog .payment-dialog-summary { margin-left: 17px; margin-right: 17px; }
    .dialog-actions { padding: 14px 17px 18px; }
    .dialog-actions .button { flex: 1; }
    .login-form-wrap h2 { font-size: 37px; }
    .profile-summary { grid-template-columns: 72px 1fr; }
    .profile-summary .avatar--hero { width: 72px; height: 72px; }
}

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