:root {
  color-scheme: light;
  --frame: #111112;
  --surface: #ffffff;
  --rail: #f6f7fa;
  --soft: #eef1f6;
  --text: #272936;
  --muted: #626674;
  --line: #e7e9ef;
  --input-line: #818795;
  --accent: #245bd8;
  --accent-soft: #eaf0ff;
  --chart: #668bc6;
  --good: #117a65;
  --good-soft: #e4f3ee;
  --warning: #8b5b10;
  --warning-soft: #faf1df;
  --danger: #b02e3c;
  --danger-soft: #fbecef;
  --button: #17181c;
  --button-text: #ffffff;
  --focus: #245bd8;
  --gutter: 22px;
  font-family: "Avenir Next", "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  font-synthesis: none;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --surface: #202127;
  --rail: #25262e;
  --soft: #30323c;
  --text: #f0f1f5;
  --muted: #b0b3c1;
  --line: #3a3c49;
  --input-line: #7d8296;
  --accent: #9cbbff;
  --accent-soft: #293754;
  --chart: #9cbbff;
  --good: #77d7b6;
  --good-soft: #213c33;
  --warning: #edc377;
  --warning-soft: #413521;
  --danger: #ffacb7;
  --danger-soft: #452c34;
  --button: #e8eaf2;
  --button-text: #202127;
  --focus: #9cbbff;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--frame); scroll-padding-block: 24px; }
body { margin: 0; color: var(--text); background: var(--frame); }
a { color: var(--accent); text-underline-offset: 4px; }
button, input, select { font: inherit; }
button, summary { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button, a, input, select, summary { transition: background-color .15s, color .15s, border-color .15s; }
button:active, .button:active { opacity: .8; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-size: clamp(2rem, 3.2vw, 3rem); font-weight: 700; letter-spacing: -.05em; line-height: 1.2; }
h2 { margin: 0; font-size: 1.2rem; font-weight: 650; letter-spacing: -.025em; line-height: 1.4; }
h3 { margin: 0; font-size: 1rem; font-weight: 600; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.sidebar :focus-visible { outline-color: #a8c3ff; }
.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; }
.icon { display: block; width: 22px; height: 22px; flex-shrink: 0; }
.muted, .section-description { color: var(--muted); }
.section-description { margin: 6px 0 0; font-size: .86rem; line-height: 1.6; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 30; padding: 12px 18px; border-radius: 8px; background: var(--surface); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }

.app-shell { max-width: 1920px; margin-inline: auto; padding: 0 12px 12px; }
.sidebar { color: #ffffff; padding: 20px 10px; }
.sidebar-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sidebar-profile { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; min-width: 0; align-items: center; }
.profile-avatar { display: grid; place-items: center; grid-row: span 3; width: 44px; height: 44px; border-radius: 12px; background: #313239; color: #f0f1f5; font-size: 1rem; font-weight: 650; }
.profile-role { display: none; color: #b8bac4; font-size: .8rem; }
.sidebar-profile strong { font-size: 1.1rem; font-weight: 650; overflow-wrap: anywhere; }
.sidebar-profile small { color: #b8bac4; font-size: .78rem; overflow-wrap: anywhere; }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 8px 12px; border: 1px solid #747783; border-radius: 8px; background: transparent; color: #ffffff; }
.menu-toggle .icon { width: 18px; height: 18px; }
.sidebar-menu { display: none; padding-top: 24px; }
.sidebar.is-menu-open .sidebar-menu { display: flex; flex-direction: column; }
.nav-list { display: grid; gap: 6px; }
.nav-item { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 48px; padding: 10px 8px; border: 0; border-radius: 8px; color: #a5a7b1; background: transparent; text-decoration: none; text-align: left; font-size: 1.05rem; font-weight: 550; }
.nav-item:hover { color: #ffffff; background: #202126; }
.nav-item.is-active { color: #ffffff; font-weight: 700; }
.nav-item .icon { width: 21px; height: 21px; }
.sidebar-footer { padding-top: 28px; }
.logout-form { margin: 0 0 28px; }
.logout-item { font-size: .88rem; }
.brand { display: flex; align-items: center; gap: 11px; min-height: 44px; color: #ffffff; text-decoration: none; font-size: 1.05rem; font-weight: 650; }
.brand > .icon { width: 27px; height: 27px; }
.brand small { display: block; margin-top: 3px; color: #a5a7b1; font-size: .72rem; font-weight: 400; overflow-wrap: anywhere; }

.main-shell { min-width: 0; min-height: calc(100dvh - 96px); border-radius: 22px; background: var(--surface); }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 30px var(--gutter) 26px; min-width: 0; }
.topbar > div:first-child { min-width: 0; }
.page-description { margin: 0; color: var(--muted); font-size: .93rem; }
.topbar-tools { display: flex; gap: 14px; align-items: center; padding-top: 3px; }
.current-date { display: none; align-items: center; gap: 8px; color: var(--muted); font-size: .8rem; white-space: nowrap; }
.current-date .icon { width: 18px; height: 18px; }
.theme-toggle { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--input-line); border-radius: 50%; background: var(--surface); color: var(--muted); flex-shrink: 0; }
.theme-toggle:hover { background: var(--soft); color: var(--text); }
.theme-toggle .icon { width: 20px; height: 20px; }
.theme-icon-sun { display: none; }
[data-theme="dark"] .theme-icon-sun { display: block; }
[data-theme="dark"] .theme-icon-moon { display: none; }
.content { display: grid; align-content: start; gap: 28px; min-width: 0; padding: 0 var(--gutter) 36px; }
.workspace-aside { display: grid; gap: 36px; align-content: start; padding: 32px var(--gutter); min-width: 0; background: var(--rail); border-radius: 0 0 22px 22px; }
.demo-notice { display: flex; gap: 9px; align-items: flex-start; margin: 0; color: var(--muted); font-size: .8rem; }
.demo-notice .icon { width: 17px; height: 17px; margin-top: 1px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-size: .85rem; font-weight: 550; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-link .icon { width: 15px; height: 15px; }

.dashboard-main { display: grid; gap: 36px; min-width: 0; }
.domain-notice { display: flex; align-items: center; gap: 14px; border-radius: 12px; padding: 16px; background: var(--warning-soft); color: var(--warning); }
.notice-icon { display: none; }
.domain-notice strong { font-size: .92rem; font-weight: 600; }
.domain-notice p { margin: 3px 0 0; font-size: .83rem; }
.domain-notice > a { display: grid; place-items: center; min-width: 44px; height: 44px; margin-left: auto; color: inherit; }
.resource-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.resource-summary a { min-width: 0; text-decoration: none; color: var(--text); }
.resource-summary a:hover strong { color: var(--accent); }
.resource-summary span { display: block; margin-bottom: 6px; color: var(--muted); font-size: .8rem; }
.resource-summary strong { display: block; font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1.15; font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.activity-chart { margin: 0; min-width: 0; }
.activity-chart figcaption { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.chart-total { color: var(--muted); font-size: .8rem; text-align: right; white-space: nowrap; }
.chart-total strong { display: block; color: var(--text); font-size: 1.3rem; font-weight: 600; }
.activity-bars { display: block; width: 100%; height: auto; margin-top: 24px; overflow: visible; }
.activity-bars rect { fill: var(--chart); }
.activity-bars .is-current { fill: var(--accent); }
.chart-baseline { fill: none; stroke: var(--input-line); stroke-width: 1; }
.chart-dates { display: flex; justify-content: space-between; color: var(--muted); font-size: .75rem; margin-top: 8px; }
.chart-empty { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 110px; color: var(--muted); }
.chart-empty p { margin: 0; font-size: .85rem; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.panel-header .text-link { flex-shrink: 0; }
.activity-group + .activity-group { margin-top: 30px; }
.activity-group h3 { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.activity-list { margin: 0; padding: 0; list-style: none; }
.activity-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; padding: 20px 0; align-items: start; }
.activity-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); grid-row: span 2; }
.activity-icon-domain, .activity-icon-security { color: var(--warning); background: var(--warning-soft); }
.activity-icon-alias { color: var(--good); background: var(--good-soft); }
.activity-icon-auth { color: var(--text); background: var(--soft); }
.activity-icon-danger { color: var(--danger); background: var(--danger-soft); }
.activity-icon .icon { width: 21px; height: 21px; }
.activity-body { min-width: 0; }
.activity-body strong { font-size: .98rem; font-weight: 600; }
.activity-body p { margin: 4px 0; font-size: .85rem; color: var(--muted); overflow-wrap: anywhere; }
.activity-meta, .activity-time { color: var(--muted); font-size: .76rem; }
.activity-meta { overflow-wrap: anywhere; }
.activity-time { grid-column: 2; }
.distribution-list { display: grid; gap: 25px; list-style: none; margin: 28px 0 14px; padding: 0; }
.distribution-list li > div { display: flex; align-items: baseline; gap: 12px; justify-content: space-between; font-size: .9rem; margin-bottom: 10px; }
.distribution-list span { overflow-wrap: anywhere; min-width: 0; }
.distribution-list strong { font-variant-numeric: tabular-nums; font-weight: 550; white-space: nowrap; }
.distribution-list small { font-weight: 400; color: var(--muted); }
.distribution-list meter { display: block; width: 100%; height: 7px; border: 0; background: var(--soft); border-radius: 4px; }
.distribution-list meter::-webkit-meter-bar { border: 0; background: var(--soft); box-shadow: none; border-radius: 4px; }
.distribution-list meter::-webkit-meter-optimum-value { background: var(--good); border-radius: 4px; }
.distribution-list meter::-moz-meter-bar { background: var(--good); }
.service-card { padding: 26px; background: var(--soft); border-radius: 20px; }
.service-icon { display: grid; place-items: center; width: 58px; height: 58px; color: var(--accent); background: var(--surface); border-radius: 16px; margin-bottom: 24px; }
.service-icon .icon { width: 30px; height: 30px; }
.service-card h2 { margin-bottom: 12px; }
.service-details { display: grid; gap: 14px; margin: 24px 0; font-size: .82rem; }
.service-details dt { margin-bottom: 2px; color: var(--muted); }
.service-details dd { margin: 0; overflow-wrap: anywhere; }
.service-card > p { margin-bottom: 18px; color: var(--muted); font-size: .8rem; }

.panel { min-width: 0; }
.panel-copy { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 22px; color: var(--muted); font-size: .85rem; }
.panel-copy .icon { width: 18px; height: 18px; margin-top: 1px; }
code { color: var(--text); font-size: .9em; overflow-wrap: anywhere; }
.create-panel { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--rail); }
.create-panel summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 60px; padding: 16px 20px; list-style: none; font-weight: 600; }
.create-panel summary::-webkit-details-marker { display: none; }
.disclosure-mark { width: 19px; height: 19px; }
.create-panel[open] .disclosure-mark { transform: rotate(45deg); }
.create-panel[open] summary { border-bottom: 1px solid var(--line); }
.create-panel-body { padding: 22px 20px; }
.resource-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; }
.resource-form > * { min-width: 0; }
.stack-form { display: grid; gap: 22px; }
label { display: grid; gap: 8px; min-width: 0; font-size: .88rem; font-weight: 550; }
.form-help { color: var(--muted); font-weight: 400; font-size: .78rem; line-height: 1.6; }
input, select { min-width: 0; width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid var(--input-line); border-radius: 7px; background: var(--surface); color: var(--text); }
input::placeholder { color: var(--muted); opacity: 1; }
input:focus, select:focus { border-color: var(--focus); }
.form-action .button { width: 100%; }
button:disabled, input:disabled, select:disabled { opacity: .55; cursor: not-allowed; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 11px 18px; border: 1px solid transparent; border-radius: 7px; font-size: .85rem; font-weight: 600; line-height: 1.5; text-decoration: none; text-align: center; }
.button .icon { width: 17px; height: 17px; }
.button-primary { background: var(--button); color: var(--button-text); border-color: var(--button); }
.button-primary:hover { opacity: .86; }
.button-secondary { border-color: var(--input-line); background: var(--surface); color: var(--text); }
.button-secondary:hover { background: var(--soft); }
.button-danger { color: var(--danger); border-color: var(--danger); background: var(--surface); }
.button-danger:hover { background: var(--danger-soft); }
.button-full { width: 100%; }
.icon-button { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); flex-shrink: 0; }
.icon-button:hover { background: var(--soft); }
.icon-button .icon { width: 18px; height: 18px; }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.table-search-field { position: relative; width: min(320px, 100%); }
.table-search-field > .icon { position: absolute; left: 13px; top: 13px; width: 19px; height: 19px; color: var(--muted); pointer-events: none; }
.table-search { padding-left: 41px; font-size: .85rem; }
.count-pill { color: var(--muted); font-size: .83rem; white-space: nowrap; }
table { width: 100%; border-collapse: collapse; }
table, tbody, tr, td { display: block; }
thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
tbody > tr { padding-block: 22px; border-bottom: 1px solid var(--line); }
tbody > tr:first-child { padding-top: 0; }
td { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 14px; padding: 7px 0; align-items: baseline; min-width: 0; font-size: .88rem; overflow-wrap: anywhere; }
td::before { content: attr(data-label); color: var(--muted); font-size: .8rem; }
.mail-address { font-weight: 550; overflow-wrap: anywhere; }
.actions-cell { display: flex; align-items: center; margin-top: 8px; }
.actions-cell::before { display: none; }
.action-menu-trigger { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--input-line); border-radius: 8px; color: var(--muted); background: var(--surface); }
.action-menu-trigger:hover, .action-menu-trigger[aria-expanded="true"] { background: var(--soft); color: var(--text); }
.action-menu { position: fixed; inset: auto; margin: 0; width: 210px; max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); overflow: auto; padding: 6px; border: 1px solid var(--input-line); border-radius: 12px; background: var(--surface); color: var(--text); box-shadow: 0 12px 36px #0002; }
.action-menu-item { display: block; width: 100%; min-height: 44px; padding: 11px 13px; border: 0; border-radius: 6px; background: transparent; color: var(--text); text-align: left; font-size: .86rem; }
.action-menu-item:hover, .action-menu-item:focus-visible { background: var(--soft); }
.action-menu-danger { color: var(--danger); }
.action-menu-danger:not(:first-child) { margin-top: 4px; border-top: 1px solid var(--line); }
.action-menu-danger:hover, .action-menu-danger:focus-visible { background: var(--danger-soft); }
.status-badge { display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; font-weight: 550; }
.status-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.status-up { color: var(--good); }
.status-warn { color: var(--warning); }
.event-pill { font-size: .82rem; font-weight: 550; }
.event-pill-danger { color: var(--danger); }
.event-pill-warning { color: var(--warning); }
.detail-text { display: block; min-width: 0; max-width: 440px; }
.table-empty-row td { display: block; padding: 26px 0; color: var(--muted); text-align: center; }
.table-empty-row td::before { display: none; }
.table-footer { display: flex; flex-direction: column; gap: 14px; padding-top: 22px; }
.table-range { color: var(--muted); font-size: .8rem; }
.pagination, .pagination-pages { display: flex; align-items: center; gap: 4px; }
.pagination { justify-content: space-between; }
.pagination-pages { min-width: 0; flex-wrap: wrap; justify-content: center; }
.pagination-arrow { flex-shrink: 0; }
.pagination-button { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0; border: 1px solid transparent; border-radius: 7px; color: var(--muted); background: transparent; font-size: .83rem; }
.pagination-button .icon { width: 17px; height: 17px; }
.pagination-button:hover:not(:disabled) { color: var(--text); background: var(--soft); }
.pagination-button.is-active { color: var(--button-text); background: var(--button); }
.empty-state { padding: 36px 12px; text-align: center; color: var(--muted); }
.empty-state > .icon { margin: 0 auto 18px; width: 36px; height: 36px; }
.empty-state h3 { color: var(--text); margin-bottom: 8px; font-size: 1rem; }
.empty-state p { max-width: 380px; margin: 0 auto; font-size: .86rem; }
.storage-bar-wrap { display: grid; gap: 7px; }
.storage-meter { width: 126px; max-width: 100%; height: 7px; background: var(--soft); }
.storage-meter::-webkit-meter-bar { background: var(--soft); border: 0; border-radius: 4px; box-shadow: none; }
.storage-meter::-webkit-meter-optimum-value { background: var(--good); border-radius: 4px; }
.storage-meter::-webkit-meter-suboptimum-value { background: var(--warning); }
.storage-meter::-webkit-meter-even-less-good-value { background: var(--danger); }
.storage-info { display: grid; gap: 2px; }
.storage-text, .storage-label { color: var(--muted); font-size: .76rem; }
.flash-stack { display: grid; gap: 12px; }
.flash { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-size: .87rem; overflow-wrap: anywhere; }
.flash .icon { width: 19px; height: 19px; margin-top: 1px; }
.flash-error { color: var(--danger); background: var(--danger-soft); }
.flash-success { color: var(--good); background: var(--good-soft); }
.flash-warn { color: var(--warning); background: var(--warning-soft); }
.form-status { margin: 0; color: var(--muted); font-size: .85rem; }

.modal { width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); padding: 0; border: 1px solid var(--input-line); border-radius: 18px; background: var(--surface); color: var(--text); white-space: normal; box-shadow: 0 24px 80px #0004; }
.modal::backdrop { background: #11111299; }
.modal .stack-form { padding: 24px; }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.modal h3 { font-size: 1.4rem; font-weight: 650; letter-spacing: -.025em; }
.modal-subject { margin: 7px 0 0; color: var(--muted); font-size: .88rem; overflow-wrap: anywhere; }
.modal-copy { margin: 0; color: var(--muted); font-size: .9rem; }
.modal-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding-top: 8px; }
.modal .button-danger { background: var(--danger); color: var(--surface); }
.login-body { min-height: 100dvh; display: grid; align-items: center; padding: 16px; }
.login-shell { width: min(1040px, 100%); margin: 32px auto; display: grid; background: var(--surface); border-radius: 24px; }
.login-intro { display: grid; align-content: space-between; gap: 32px; padding: 30px; background: #191a1f; border-radius: 24px 24px 0 0; color: #ffffff; }
.login-wordmark { display: inline-flex; align-items: center; gap: 10px; width: fit-content; min-height: 44px; color: #ffffff; font-weight: 600; font-size: 1.1rem; text-decoration: none; }
.login-intro h2 { margin: 0 0 18px; font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1.25; letter-spacing: -.04em; }
.login-intro p { color: #babdc9; font-size: .94rem; margin-bottom: 0; line-height: 1.8; }
.login-intro .login-domain { font-size: .8rem; overflow-wrap: anywhere; }
.login-panel { padding: 30px; min-width: 0; }
.login-brand-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 34px; color: var(--muted); font-size: .85rem; }
.login-title { margin-bottom: 30px; }
.login-title h1 { font-size: clamp(1.9rem, 2.5vw, 2.5rem); line-height: 1.25; }
.login-title p { color: var(--muted); font-size: .9rem; line-height: 1.7; margin: 16px 0 0; }
.login-panel .flash-stack { margin-bottom: 22px; }
.login-form .button { margin-top: 8px; min-height: 48px; }
.login-footnote { display: flex; align-items: flex-start; gap: 8px; margin: 26px 0 0; color: var(--muted); font-size: .78rem; }
.login-footnote .icon { width: 16px; height: 16px; margin-top: 1px; }
.config-warning { margin-bottom: 24px; padding: 16px; border-radius: 8px; background: var(--warning-soft); color: var(--warning); font-size: .85rem; }
.config-warning p { margin-bottom: 8px; }
.config-warning p:last-child { margin: 0; }
.error-shell { width: min(520px, 100%); margin: 32px auto; padding: 32px; border-radius: 22px; background: var(--surface); }
.error-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.error-header > .icon { width: 40px; height: 40px; color: var(--warning); }
.error-shell p { color: var(--muted); overflow-wrap: anywhere; }

@media (min-width: 600px) {
  :root { --gutter: 32px; }
  .current-date { display: flex; }
  .workspace-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .resource-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .form-action { grid-column: 1 / -1; }
  .form-action .button { width: auto; }
  .notice-icon { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; }
  .activity-list li { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 18px; align-items: center; }
  .activity-icon { width: 48px; height: 48px; grid-row: auto; }
  .activity-time { grid-column: auto; text-align: right; max-width: 100px; }
  .table-footer { flex-direction: row; justify-content: space-between; align-items: center; }
  .table-wrap { overflow-x: auto; padding: 4px; margin: -4px; }
  table { display: table; }
  thead { display: table-header-group; position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
  tbody { display: table-row-group; }
  tr { display: table-row; }
  th, td { display: table-cell; width: auto; padding: 16px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; text-align: left; font-size: .84rem; }
  th { font-weight: 550; color: var(--muted); font-size: .77rem; white-space: nowrap; }
  th:first-child, td:first-child { padding-left: 0; }
  th:last-child, td:last-child { padding-right: 0; }
  td::before { display: none; }
  tbody > tr { padding: 0; border: 0; }
  tbody > tr:hover { background: var(--rail); }
  .mail-address { white-space: nowrap; }
  .actions-cell { display: table-cell; margin: 0; }
  .detail-text { min-width: 200px; }
  .table-empty-row td { display: table-cell; }
  .login-shell { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .login-intro { border-radius: 24px 0 0 24px; padding: 40px; }
  .login-panel { padding: 40px; }
}
@media (min-width: 800px) {
  :root { --gutter: 38px; }
  .app-shell { display: grid; grid-template-columns: 215px minmax(0, 1fr); padding: 16px 16px 16px 0; }
  .sidebar { position: sticky; top: 16px; height: calc(100dvh - 32px); padding: 36px 24px 28px 32px; display: flex; flex-direction: column; overflow-y: auto; }
  .sidebar-header { display: block; }
  .sidebar-profile { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
  .profile-avatar { width: 66px; height: 66px; margin-bottom: 24px; font-size: 1.65rem; border-radius: 17px; }
  .profile-role { display: block; margin-bottom: 6px; }
  .sidebar-profile strong { font-size: 1.5rem; letter-spacing: -.03em; }
  .sidebar-profile small { margin-top: 8px; font-size: .86rem; }
  .menu-toggle { display: none; }
  .sidebar-menu, .sidebar.is-menu-open .sidebar-menu { display: flex; flex-direction: column; flex: 1; padding-top: 50px; }
  .nav-list { gap: 12px; }
  .nav-item { font-size: 1.1rem; }
  .sidebar-footer { margin-top: auto; padding-top: 40px; }
  .brand small { max-width: 145px; }
  .main-shell { min-height: calc(100dvh - 32px); border-radius: 30px; }
  .topbar { padding-top: 46px; padding-bottom: 34px; }
  .content { padding-bottom: 46px; gap: 32px; }
  .workspace-aside { border-radius: 0 0 30px 30px; }
  .has-aside .current-date { display: none; }
  .resource-summary { gap: 28px; }
  .dashboard-main { gap: 40px; }
  .resource-summary span { font-size: .88rem; }
  .modal .stack-form { padding: 32px; }
}
@media (min-width: 1100px) {
  :root { --gutter: 48px; }
  .app-shell { grid-template-columns: 245px minmax(0, 1fr); }
  .sidebar { padding: 48px 28px 32px 40px; }
}
@media (min-width: 1360px) {
  .resource-form { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 22px 16px; }
  .span-2 { grid-column: span 2; }
  .span-3 { grid-column: span 3; }
  .span-4 { grid-column: span 4; }
  .span-9 { grid-column: span 9; }
  .resource-form .form-action { grid-column: span 2; padding-top: 29px; }
  .domain-form .form-action { grid-column: span 3; }
  .form-action .button { width: 100%; padding-inline: 10px; }
}
@media (min-width: 1280px) {
  .main-shell.has-aside { display: grid; grid-template-columns: minmax(0, 1fr) 286px; grid-template-rows: auto 1fr; grid-template-areas: "header aside" "content aside"; }
  .has-aside .topbar { grid-area: header; }
  .has-aside .content { grid-area: content; }
  .workspace-aside { grid-area: aside; display: grid; grid-template-columns: minmax(0, 1fr); gap: 50px; border-radius: 0 30px 30px 0; padding: 54px 28px 40px; }
  .topbar { padding-top: 54px; padding-bottom: 36px; }
  .has-aside .activity-chart h2 { font-size: 1.08rem; }
}
@media (min-width: 1600px) {
  :root { --gutter: 66px; }
  .app-shell { grid-template-columns: 290px minmax(0, 1fr); padding: 24px 24px 24px 0; }
  .sidebar { padding: 62px 38px 38px 54px; top: 24px; height: calc(100dvh - 48px); }
  .sidebar-menu, .sidebar.is-menu-open .sidebar-menu { padding-top: 68px; }
  .nav-item { font-size: 1.2rem; }
  .main-shell { min-height: calc(100dvh - 48px); }
  .main-shell.has-aside { grid-template-columns: minmax(0, 1fr) 330px; }
  .workspace-aside { padding: 68px 38px 48px; }
  .topbar { padding-top: 66px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
