:root {
    --primary: #6c3454;
    --primary-dark: #542740;
    --primary-soft: #f4eaf0;
    --background: #f8f6f7;
    --surface: #ffffff;
    --text: #211e20;
    --muted: #6f676b;
    --border: #e5dfe2;
    --success: #26845b;
    --success-soft: #e9f6ef;
    --warning: #c47a25;
    --warning-soft: #fff4e5;
    --danger: #b84545;
    --danger-soft: #fdecec;
    --info: #3974a8;
    --info-soft: #eaf3fb;
    --sidebar: #321927;
    --sidebar-border: #583347;
    --shadow-sm: 0 1px 2px rgba(48, 24, 38, .04);
    --shadow-md: 0 14px 35px rgba(48, 24, 38, .10);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --sidebar-width: 242px;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--background); font: 14px/1.5 Inter, system-ui, sans-serif; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { display: block; flex: 0 0 auto; }
[hidden] { display: none !important; }

h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3 { font-family: Manrope, Inter, sans-serif; letter-spacing: -.035em; }
h1 { font-size: clamp(28px, 2.5vw, 38px); line-height: 1.12; margin-bottom: 8px; }
h2 { font-size: 20px; line-height: 1.25; margin-bottom: 6px; }
h3 { font-size: 15px; line-height: 1.3; margin-bottom: 4px; }
p { color: var(--muted); margin-bottom: 0; }

.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; z-index: 200; left: 12px; top: -60px; padding: 10px 14px; color: white; background: var(--primary); border-radius: var(--radius-sm); transition: top .2s; }
.skip-link:focus { top: 12px; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 40; inset: 0 auto 0 0; width: var(--sidebar-width); display: flex; flex-direction: column; color: #f7f0f4; background: var(--sidebar); border-right: 1px solid var(--sidebar-border); }
.sidebar__head { min-height: 106px; display: flex; align-items: center; padding: 20px 18px; }
.brand { display: flex; align-items: center; gap: 13px; min-width: 0; }
.brand > span:last-child { display: grid; line-height: 1.05; }
.brand strong { color: #fff; font: 800 14px/1 Manrope, sans-serif; letter-spacing: .12em; }
.brand b { margin-top: 5px; color: #f59ac1; font: 700 11px/1 Manrope, sans-serif; letter-spacing: .3em; }
.brand small { margin-top: 10px; color: #cdbbc5; font-size: 10px; white-space: nowrap; }
.brand-mark { position: relative; width: 32px; height: 34px; flex: 0 0 32px; }
.brand-mark i { position: absolute; left: 2px; width: 27px; height: 13px; transform: rotate(0deg) skewY(-27deg) scaleY(.72); border-radius: 3px; background: #f178ad; }
.brand-mark i:nth-child(1) { top: 1px; }
.brand-mark i:nth-child(2) { top: 10px; opacity: .86; }
.brand-mark i:nth-child(3) { top: 19px; opacity: .64; }
.sidebar__close { display: none; margin-left: auto; border: 0; color: white; background: transparent; }
.sidebar__nav { display: grid; gap: 4px; padding: 8px 10px; overflow-y: auto; }
.sidebar__link { min-height: 47px; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 12px; padding: 0 14px; color: #dfd1d9; border-radius: 9px; font-weight: 500; transition: background .18s, color .18s, transform .18s; }
.sidebar__link:hover { color: white; background: rgba(255,255,255,.07); transform: translateX(2px); }
.sidebar__link.is-active { color: white; background: #66364f; box-shadow: inset 3px 0 #f178ad; }
.sidebar__link em { min-width: 22px; height: 22px; display: grid; place-items: center; padding: 0 6px; border-radius: 999px; background: #f15f94; color: white; font-size: 11px; font-style: normal; font-weight: 700; }
.sidebar__foot { margin-top: auto; display: grid; padding: 18px; border-top: 1px solid var(--sidebar-border); color: #bda9b4; font-size: 11px; }
.sidebar__foot a { min-height: 40px; display: flex; align-items: center; gap: 9px; margin: 14px -8px -6px; padding: 0 8px; border-radius: 8px; color: #eadfe5; font-size: 13px; }
.sidebar__foot a:hover { background: rgba(255,255,255,.07); }
.sidebar-backdrop { display: none; }

.workspace { min-height: 100vh; margin-left: var(--sidebar-width); }
.topbar { position: sticky; z-index: 30; top: 0; height: 70px; display: flex; align-items: center; gap: 18px; padding: 0 28px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--border); backdrop-filter: blur(10px); }
.mobile-menu { display: none !important; }
.global-search { width: min(100%, 610px); height: 42px; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 9px; padding: 0 13px; color: var(--muted); background: #fbfafb; border: 1px solid var(--border); border-radius: 9px; }
.global-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108,52,84,.1); }
.global-search input { min-width: 0; border: 0; outline: 0; background: transparent; }
.global-search kbd { padding: 1px 7px; border: 1px solid var(--border); border-radius: 5px; background: white; color: var(--muted); font: 11px Inter, sans-serif; }
.topbar__actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 9px; background: transparent; cursor: pointer; }
.icon-btn:hover { background: var(--background); border-color: var(--border); }
.notification-btn { position: relative; }
.notification-btn > span { position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; display: grid; place-items: center; padding: 0 4px; border: 2px solid white; border-radius: 999px; background: #bf4674; color: white; font-size: 9px; font-weight: 700; }
.admin-menu { display: flex; align-items: center; gap: 10px; padding-left: 14px; border-left: 1px solid var(--border); }
.admin-menu > span:last-child { display: grid; line-height: 1.3; }
.admin-menu small { color: var(--muted); font-size: 11px; }
.avatar { width: 37px; height: 37px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; color: white; background: var(--primary); font-weight: 700; }
.notification-popover { position: fixed; z-index: 70; top: 62px; right: 24px; width: min(360px, calc(100vw - 24px)); padding: 8px; background: white; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-md); }
.notification-popover header { display: flex; justify-content: space-between; padding: 10px 10px 12px; border-bottom: 1px solid var(--border); }
.notification-popover header span { color: var(--muted); font-size: 11px; }
.notification-popover a { display: flex; gap: 10px; padding: 12px 10px; border-radius: 8px; }
.notification-popover a:hover { background: var(--background); }
.notification-popover a > span { display: grid; }
.notification-popover small { color: var(--muted); }

.main { width: min(100%, 1500px); margin: 0 auto; padding: 30px 28px 54px; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 22px; }
.page-heading p { font-size: 15px; }
.page-heading__actions { display: flex; flex-wrap: wrap; gap: 8px; }

.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.metric { min-height: 104px; display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 14px; padding: 17px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.metric__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: var(--info); background: var(--info-soft); }
.metric--success .metric__icon { color: var(--success); background: var(--success-soft); }
.metric--warning .metric__icon { color: var(--warning); background: var(--warning-soft); }
.metric--danger .metric__icon { color: var(--danger); background: var(--danger-soft); }
.metric--primary .metric__icon { color: var(--primary); background: var(--primary-soft); }
.metric__copy { min-width: 0; display: grid; gap: 2px; }
.metric__copy span { color: var(--muted); font-size: 12px; }
.metric__copy strong { font: 800 23px/1.2 Manrope, sans-serif; letter-spacing: -.04em; }

.panel { margin-bottom: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.panel__header { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.panel__title { display: flex; align-items: center; gap: 10px; }
.panel__title h2 { margin: 0; }
.panel__header > span, .count { padding: 5px 10px; color: var(--muted); background: var(--background); border-radius: 999px; font-size: 11px; }
.panel__body { padding: 18px; }
.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 16px 18px; }

.btn { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 15px; border: 1px solid transparent; border-radius: 8px; font-size: 13px; font-weight: 600; line-height: 1.2; cursor: pointer; transition: transform .16s, background .16s, border-color .16s, box-shadow .16s; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, .icon-btn:focus-visible, .sidebar__link:focus-visible { outline: 3px solid rgba(57,116,168,.28); outline-offset: 2px; }
.btn--primary { color: white; background: var(--primary); border-color: var(--primary); }
.btn--primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn--success { color: white; background: var(--success); border-color: var(--success); }
.btn--secondary { color: var(--primary-dark); background: white; border-color: #bfaeb8; }
.btn--secondary:hover { border-color: var(--primary); }
.btn--ghost { color: var(--muted); background: transparent; border-color: var(--border); }
.btn--danger { color: white; background: var(--danger); border-color: var(--danger); }
.btn--sm { min-height: 34px; padding: 7px 11px; font-size: 11px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .48; cursor: not-allowed; transform: none; }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 11px 14px; color: var(--muted); background: #fbfafb; border-bottom: 1px solid var(--border); text-align: left; font-size: 11px; font-weight: 600; white-space: nowrap; }
.data-table td { padding: 13px 14px; border-bottom: 1px solid #eee9ec; vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fcfbfc; }
.data-table strong { font-size: 13px; }
.cell-main { display: flex; align-items: center; gap: 10px; min-width: 155px; }
.cell-main .avatar { width: 34px; height: 34px; color: var(--primary); background: var(--primary-soft); font-size: 11px; }
.cell-main span { display: grid; }
.cell-main small, .data-table small { color: var(--muted); }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; min-width: max-content; }
.badge { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 4px 9px; border-radius: 999px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.badge::before { width: 6px; height: 6px; content: ''; border-radius: 50%; background: currentColor; }
.badge--success { color: var(--success); background: var(--success-soft); }
.badge--warning { color: #a45b0c; background: var(--warning-soft); }
.badge--danger { color: var(--danger); background: var(--danger-soft); }
.badge--info { color: var(--info); background: var(--info-soft); }
.badge--muted { color: var(--muted); background: #f0edef; }

.empty-state { min-height: 170px; display: grid; place-items: center; align-content: center; gap: 8px; padding: 30px; text-align: center; color: var(--muted); }
.empty-state__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: var(--primary); background: var(--primary-soft); }
.empty-state h3 { color: var(--text); margin: 0; }

.filter-bar { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; padding: 16px 18px; }
.filter-bar .field { flex: 1 1 190px; }
.filter-bar .field--search { flex: 3 1 320px; }
.field { display: grid; gap: 6px; color: var(--text); font-size: 12px; font-weight: 600; }
.field > span small { color: var(--muted); font-weight: 400; }
.input, .select, .textarea { width: 100%; min-height: 42px; padding: 9px 11px; background: white; border: 1px solid #d9d1d5; border-radius: 8px; outline: 0; font-size: 13px; }
.textarea { resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108,52,84,.10); }
.form-stack { display: grid; gap: 15px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.field--full { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 8px; }

.alert { min-height: 44px; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 10px 13px; border: 1px solid; border-radius: 9px; }
.alert button { margin-left: auto; padding: 4px; border: 0; background: transparent; cursor: pointer; }
.alert--success { color: var(--success); background: var(--success-soft); border-color: #bfe4d0; }
.alert--danger { color: var(--danger); background: var(--danger-soft); border-color: #f1c8c8; }
.alert--warning { color: #97530e; background: var(--warning-soft); border-color: #f3d7b5; }
.alert--info { color: var(--info); background: var(--info-soft); border-color: #c8dff1; }

.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.summary-block { padding: 16px; background: #fbfafb; border: 1px solid var(--border); border-radius: 9px; }
.summary-block small { display: block; margin-bottom: 5px; color: var(--muted); }
.summary-block strong { font: 700 15px Manrope, sans-serif; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(290px, .8fr); gap: 20px; align-items: start; }
.detail-hero { display: flex; gap: 16px; align-items: center; }
.detail-hero .avatar { width: 62px; height: 62px; color: var(--primary); background: var(--primary-soft); font-size: 19px; }
.detail-hero h1 { margin: 0 0 4px; font-size: 27px; }
.detail-hero p { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.usage-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.usage-grid > div { display: grid; gap: 4px; padding: 16px; border-right: 1px solid var(--border); }
.usage-grid > div:last-child { border-right: 0; }
.usage-grid small { color: var(--muted); }
.usage-grid strong { font: 800 22px Manrope, sans-serif; }
.timeline { display: grid; gap: 0; }
.timeline article { position: relative; display: grid; grid-template-columns: 16px 1fr; gap: 12px; padding-bottom: 20px; }
.timeline article::before { position: absolute; left: 7px; top: 16px; bottom: 0; width: 1px; content: ''; background: var(--border); }
.timeline article:last-child::before { display: none; }
.timeline i { position: relative; z-index: 1; width: 15px; height: 15px; margin-top: 3px; border: 4px solid var(--primary-soft); border-radius: 50%; background: var(--primary); }
.timeline time { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.note { padding: 13px 0; border-bottom: 1px solid var(--border); }
.note:last-child { border-bottom: 0; }
.note footer { margin-top: 6px; color: var(--muted); font-size: 11px; }

.chart { min-height: 290px; display: flex; align-items: end; gap: 10px; padding: 24px 10px 5px; border-bottom: 1px solid var(--border); }
.chart__bar { flex: 1; min-width: 24px; display: grid; align-content: end; justify-items: center; gap: 8px; height: 240px; }
.chart__bar i { width: min(38px, 80%); min-height: 3px; border-radius: 6px 6px 2px 2px; background: var(--primary); }
.chart__bar strong { font-size: 10px; }
.chart__bar small { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.formula-note { display: flex; gap: 10px; margin-top: 14px; padding: 13px; background: var(--info-soft); border-radius: 9px; color: var(--info); }

.pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--border); }
.pagination span { color: var(--muted); font-size: 12px; }
.pagination div { display: flex; gap: 6px; }

.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tabs a { min-height: 36px; display: inline-flex; align-items: center; padding: 7px 12px; border: 1px solid var(--border); border-radius: 8px; background: white; color: var(--muted); font-size: 12px; font-weight: 600; }
.tabs a.is-active { color: white; background: var(--primary); border-color: var(--primary); }

.modal { width: min(540px, calc(100vw - 28px)); max-height: calc(100vh - 28px); padding: 0; overflow: auto; border: 0; border-radius: var(--radius); background: white; box-shadow: 0 30px 80px rgba(33, 20, 28, .28); }
.modal::backdrop { background: rgba(28, 23, 26, .62); backdrop-filter: blur(2px); }
.modal__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 22px 24px 18px; }
.modal__header h2 { margin-bottom: 7px; font-size: 23px; }
.modal__header button { padding: 5px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
.modal__body { padding: 0 24px 22px; }
.modal__footer { display: flex; justify-content: flex-end; gap: 9px; padding: 16px 24px; background: #fbfafb; border-top: 1px solid var(--border); }
.confirm-data { display: grid; gap: 0; margin: 0; padding: 10px 16px; background: #fbfafb; border: 1px solid var(--border); border-radius: 9px; }
.confirm-data div { display: grid; grid-template-columns: 1fr 1.15fr; gap: 15px; padding: 7px 0; }
.confirm-data dt { color: var(--muted); }
.confirm-data dd { margin: 0; font-weight: 700; }
.security-note { display: flex; gap: 11px; margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--border); color: var(--primary); }
.security-note span { color: var(--muted); }

.login-body { min-height: 100vh; background: white; }
.login-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, .9fr) 1.25fr; }
.login-brand { min-height: 100vh; display: flex; flex-direction: column; justify-content: space-between; padding: 52px; color: white; background: var(--sidebar); }
.brand--large strong { font-size: 19px; }
.brand--large b { font-size: 12px; }
.brand--large .brand-mark { transform: scale(1.2); margin-right: 4px; }
.login-brand h1 { max-width: 500px; color: white; font-size: clamp(34px, 4vw, 56px); }
.login-brand p { max-width: 480px; color: #d3c3cc; font-size: 16px; }
.login-brand > small { color: #ac94a2; }
.login-content { display: grid; place-items: center; padding: 30px; background: var(--background); }
.login-card { width: min(430px, 100%); padding: 34px; background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.login-card header { margin-bottom: 24px; }
.login-card h2 { font-size: 27px; }
.password-field { position: relative; display: block; }
.password-field .input { padding-right: 46px; }
.password-field button { position: absolute; top: 1px; right: 1px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.login-help { margin-top: 18px; text-align: center; font-size: 11px; }

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

@media (max-width: 900px) {
    .sidebar { width: min(290px, 86vw); transform: translateX(-102%); box-shadow: var(--shadow-md); transition: transform .22s ease; }
    .sidebar.is-open { transform: translateX(0); }
    .sidebar__close { display: grid; place-items: center; }
    .sidebar-backdrop { position: fixed; z-index: 35; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(30,20,26,.46); opacity: 0; pointer-events: none; transition: opacity .2s; }
    body.sidebar-open .sidebar-backdrop { display: block; opacity: 1; pointer-events: auto; }
    .workspace { margin-left: 0; }
    .mobile-menu { display: grid !important; }
    .topbar { padding: 0 18px; }
    .main { padding: 25px 18px 45px; }
    .login-layout { grid-template-columns: 1fr; }
    .login-brand { display: none; }
    .usage-grid { grid-template-columns: repeat(3, 1fr); }
    .usage-grid > div { border-bottom: 1px solid var(--border); }
}

@media (max-width: 680px) {
    .topbar { height: 62px; gap: 8px; padding: 0 12px; }
    .global-search { height: 40px; width: 42px; display: grid; place-items: center; padding: 0; border-color: transparent; background: transparent; }
    .global-search input, .global-search kbd { display: none; }
    .admin-menu > span:last-child { display: none; }
    .admin-menu { padding-left: 8px; }
    .topbar__actions { gap: 2px; }
    .main { padding: 24px 12px 40px; }
    h1 { font-size: 29px; }
    .page-heading { align-items: stretch; }
    .page-heading, .page-heading__actions { flex-direction: column; }
    .page-heading__actions .btn { width: 100%; }
    .metrics-grid { gap: 10px; }
    .metric { min-height: 113px; grid-template-columns: 40px 1fr; gap: 10px; padding: 13px; }
    .metric__icon { width: 40px; height: 40px; border-radius: 10px; }
    .metric__copy span { font-size: 11px; line-height: 1.25; }
    .metric__copy strong { font-size: 21px; }
    .panel__header { min-height: 58px; padding: 13px; }
    .panel__header .btn { padding-inline: 10px; }
    .quick-actions { grid-template-columns: 1fr; padding: 13px; }
    .filter-bar { padding: 13px; }
    .filter-bar .field { flex-basis: 100%; }
    .form-grid { grid-template-columns: 1fr; }
    .field--full { grid-column: auto; }
    .summary-grid { grid-template-columns: 1fr; }
    .usage-grid { grid-template-columns: repeat(2, 1fr); }
    .table-wrap { overflow: visible; }
    .data-table, .data-table tbody { display: block; }
    .data-table thead { display: none; }
    .data-table tr { display: grid; gap: 10px; margin: 12px; padding: 15px; background: white; border: 1px solid var(--border); border-radius: 10px; }
    .data-table td { display: grid; grid-template-columns: minmax(90px, .7fr) 1.3fr; gap: 10px; padding: 0; border: 0; text-align: right; }
    .data-table td::before { content: attr(data-label); color: var(--muted); text-align: left; font-size: 11px; font-weight: 500; }
    .data-table td[data-primary] { display: block; padding-bottom: 11px; border-bottom: 1px solid var(--border); text-align: left; }
    .data-table td[data-primary]::before { display: none; }
    .data-table td[data-actions] { display: block; padding-top: 5px; }
    .data-table td[data-actions]::before { display: none; }
    .row-actions { display: grid; grid-template-columns: repeat(2, 1fr); min-width: 0; }
    .row-actions .btn:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .cell-main { min-width: 0; }
    .pagination { flex-direction: column; }
    .chart { gap: 5px; padding-inline: 0; overflow: hidden; }
    .chart__bar strong { display: none; }
    .chart__bar small { writing-mode: vertical-rl; transform: rotate(180deg); }
    .modal__header { padding: 20px 18px 16px; }
    .modal__body { padding: 0 18px 18px; }
    .modal__footer { padding: 14px 18px; }
    .modal__footer .btn { flex: 1; }
    .login-content { padding: 18px; }
    .login-card { padding: 25px 20px; }
}

@media (max-width: 350px) {
    .metrics-grid { grid-template-columns: 1fr; }
    .metric { min-height: 82px; }
    .row-actions { grid-template-columns: 1fr; }
    .row-actions .btn { grid-column: auto !important; }
}

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