:root {
  color-scheme: light;
  --navy: #192439;
  --indigo: #425bdc;
  --indigo-dark: #334aba;
  --ink: #1e293f;
  --muted: #56657d;
  --line: #dfe5ee;
  --canvas: #f4f6fa;
  --surface: #fff;
  --shadow: 0 2px 6px #19305408;
  --gutter: clamp(22px, 3vw, 48px);
  font: 14px/1.55 "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--canvas); color: var(--ink); }
body:has(dialog[open]) { overflow: hidden; }
h1, h2, h3, p, dl, dd { margin: 0; }
button, input, select { color: inherit; font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .57; }
:focus-visible { outline: 3px solid #6279ed; outline-offset: 3px; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.icon {
  display: inline-block;
  flex: none;
  width: 1.25em;
  height: 1.25em;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link { position: fixed; inset: 12px auto auto 12px; z-index: 5; padding: 8px 14px; border-radius: 8px; background: var(--surface); color: var(--indigo-dark); }

.button, .icon-button, .text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 9px;
  font-weight: 620;
  transition: background-color .16s, color .16s, border-color .16s;
}
.button { min-height: 40px; padding: 7px 14px; border: 1px solid #cdd6e5; background: var(--surface); white-space: nowrap; }
.button:hover:not(:disabled) { background: #f3f5ff; border-color: #bac6eb; }
.button.primary { color: #fff; background: var(--indigo); border-color: var(--indigo); box-shadow: 0 2px 5px #425bdc2b; }
.button.primary:hover:not(:disabled) { background: var(--indigo-dark); border-color: var(--indigo-dark); }
.button[aria-disabled="true"] { cursor: progress; }
.button.danger { color: #fff; background: #ac333b; border-color: #ac333b; }
.button.danger:hover:not(:disabled) { background: #92282e; border-color: #92282e; }
.button.quiet { background: transparent; border-color: transparent; color: var(--muted); }
.button.small { min-height: 34px; padding: 4px 10px; font-size: .88rem; }
.icon-button { width: 36px; height: 36px; padding: 0; border: 0; background: transparent; color: var(--muted); flex: none; }
.icon-button:hover:not(:disabled) { color: var(--indigo-dark); background: #edf0ff; }
.text-button { min-height: 34px; border: 0; padding: 4px 6px; background: transparent; color: var(--indigo-dark); font-size: .88rem; }
.text-button:hover:not(:disabled) { background: #edf0ff; }

.wordmark { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; flex: none; width: 42px; height: 42px; place-items: center; border-radius: 13px; background: #5269e8; color: #fff; box-shadow: inset 0 0 0 1px #f3f5ff30, 0 6px 18px #131c4340; }
.brand-mark .icon { width: 25px; height: 25px; }
.wordmark strong { display: block; color: #fff; font-size: 20px; line-height: 1.15; letter-spacing: -.45px; }
.wordmark small { display: block; margin-top: 3px; color: #c0cce3; font-size: 11px; letter-spacing: .11em; }
.boot-screen { display: grid; min-height: 100vh; min-height: 100dvh; place-items: center; padding: 20px; background: radial-gradient(ellipse at 35% 0%, #e8edff, transparent 60%), var(--canvas); }
.boot-card { display: grid; width: min(100%, 360px); justify-items: center; gap: 10px; padding: 34px 20px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.boot-card strong { font-size: 19px; }
.boot-card p { color: var(--muted); }
.boot-card p:empty { display: none; }

/* Sign-in shares the console's indigo, navy, and stacked-layer motif. */
.login-screen { display: grid; min-height: 100vh; min-height: 100dvh; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); }
.welcome {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  padding: clamp(30px, 5.5vw, 80px);
  background: radial-gradient(ellipse at 88% 65%, #354785, transparent 68%), linear-gradient(149deg, #18243b 10%, #222f4f 90%);
  color: #fff;
}
.welcome::before, .hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(#b8c6ff12 1px, transparent 1px), linear-gradient(90deg, #b8c6ff12 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(130deg, transparent 10%, #000 95%);
  pointer-events: none;
  content: "";
}
.welcome-content { margin-top: clamp(44px, 9vh, 104px); }
.welcome-tag { display: inline-flex; align-items: center; gap: 9px; padding: 4px 11px; border: 1px solid #b2c1ff4f; border-radius: 999px; background: #aab9ff15; color: #dce4ff; font-size: .85rem; font-weight: 650; letter-spacing: .06em; }
.welcome-tag span { width: 6px; height: 6px; border-radius: 50%; background: #9faeff; }
.welcome-title { margin-top: 17px; font-size: clamp(31px, 4.4vw, 66px); font-weight: 750; line-height: 1.2; letter-spacing: -.045em; }
.welcome-description { max-width: 25em; margin-top: 14px; color: #d0dbf4; line-height: 1.8; }
.welcome-art { display: block; width: min(100%, 500px); height: auto; margin: 18px 0 16px; align-self: center; }
.welcome-footer { margin-top: auto; color: #c0cce8; font-size: .74rem; font-weight: 650; letter-spacing: .16em; }
.welcome-footer span { margin-inline: 4px; color: #93a4f8; }
.login-side { display: grid; place-items: center; padding: 36px clamp(20px, 5vw, 72px); background: radial-gradient(ellipse at 70% 5%, #e8edff, transparent 62%), var(--canvas); }
.login-card { width: min(100%, 460px); padding: clamp(24px, 3.6vw, 52px); border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: 0 20px 68px #1e315310, 0 2px 5px #1e315307; }
.login-kicker { display: inline-flex; align-items: center; gap: 7px; color: var(--indigo-dark); font-size: .88rem; font-weight: 700; }
.login-kicker .icon { width: 18px; height: 18px; }
.login-card h1 { margin-top: 8px; font-size: clamp(27px, 3vw, 38px); line-height: 1.25; letter-spacing: -.035em; }
.login-description { margin-top: 9px; color: var(--muted); }
#login-form { display: grid; gap: 16px; margin-top: 25px; }
.login-submit { justify-content: space-between; min-height: 47px; }
.login-note { display: flex; align-items: flex-start; gap: 7px; padding-top: 16px; margin-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.login-note .icon { margin-top: 2px; }

/* Workspace shell and overview. */
.admin-shell { display: grid; grid-template-columns: 226px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; align-self: start; height: 100vh; height: 100dvh; padding: 27px 16px 18px; background: linear-gradient(168deg, #1d2a42, var(--navy) 60%); color: #c9d4e9; }
.sidebar .wordmark { padding-inline: 7px; }
.nav-heading { margin: 40px 12px 10px; color: #adbdd7; font-size: .8rem; font-weight: 650; letter-spacing: .13em; }
.nav-tabs { display: grid; gap: 6px; }
.nav-tab { position: relative; display: flex; align-items: center; gap: 11px; min-height: 46px; padding: 8px 13px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: #d0d9ec; text-align: left; font-weight: 620; }
.nav-tab .icon { width: 19px; height: 19px; }
.nav-tab:hover { background: #293852; color: #fff; }
.nav-tab[aria-selected="true"] { border-color: #8299ff31; background: #354776; color: #fff; }
.nav-tab[aria-selected="true"]::before { position: absolute; inset: 10px auto 10px 0; width: 3px; border-radius: 0 4px 4px 0; background: #a5b4ff; content: ""; }
.sidebar :focus-visible, .hero :focus-visible { outline-color: #acbaff; }
.sidebar-footer { display: flex; gap: 10px; align-items: center; padding: 16px 6px 0; margin-top: auto; border-top: 1px solid #41506b; }
.sidebar-footer-icon { display: grid; flex: none; width: 34px; height: 34px; place-items: center; border-radius: 9px; background: #2c3a54; color: #dce5fb; }
.sidebar-footer strong, .sidebar-footer small { display: block; }
.sidebar-footer strong { font-size: .9rem; color: #e8edf8; }
.sidebar-footer small { margin-top: 1px; color: #b3c1da; font-size: .78rem; }
.workbench { min-width: 0; }
.topbar { display: flex; min-height: 62px; justify-content: space-between; align-items: center; gap: 14px; padding: 8px var(--gutter); border-bottom: 1px solid var(--line); background: var(--surface); }
.breadcrumb, .account-controls, .account-identity { display: flex; align-items: center; gap: 8px; }
.breadcrumb { color: var(--muted); white-space: nowrap; font-size: .9rem; }
.breadcrumb strong { color: var(--ink); font-weight: 650; }
.breadcrumb .breadcrumb-separator { width: 12px; color: #74829b; }
.account-controls { min-width: 0; gap: 10px; }
.account-identity { max-width: 224px; min-width: 0; }
.avatar { display: inline-grid; flex: none; width: 36px; height: 36px; place-items: center; border-radius: 10px; background: #e9eeff; color: #3c51ae; font-weight: 720; line-height: 1; }
.account-text { min-width: 0; line-height: 1.3; }
.account-text strong, .account-text small { display: block; }
.account-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.account-text small { margin-top: 2px; color: var(--muted); font-size: .77rem; }
.logout-button { margin-left: 2px; font-size: .88rem; }
.workspace { padding: 26px var(--gutter) 22px; outline-offset: -4px; }
.dashboard { max-width: 1440px; margin-inline: auto; }
.hero { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 148px; padding: 23px clamp(20px, 3vw, 36px); overflow: hidden; border: 1px solid #384e91; border-radius: 17px; background: linear-gradient(105deg, #233353 10%, #324981 73%, #3c5097); color: #fff; }
.hero-text { max-width: 38em; }
.hero-kicker { display: flex; align-items: center; gap: 8px; color: #d6dfff; font-size: .8rem; font-weight: 650; letter-spacing: .12em; }
.hero-kicker span { padding: 1px 6px; border: 1px solid #bbcaff61; border-radius: 5px; background: #92a6ff22; }
.hero h1 { margin: 5px 0 5px; font-size: clamp(27px, 3.4vw, 37px); line-height: 1.25; letter-spacing: -.025em; }
.hero p:not(.hero-kicker) { color: #e0e7fb; }
.hero-art { position: absolute; z-index: -1; inset: auto 7% -34px auto; width: min(39%, 414px); pointer-events: none; }
.hero .hero-button { flex: none; border-color: #bbcaff6e; background: #263860e8; color: #fff; }
.hero .hero-button:hover:not(:disabled) { border-color: #bdcbff; background: #2d3e74; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-block: 14px 22px; }
.stat { position: relative; min-width: 0; min-height: 87px; padding: 12px 14px 12px 69px; display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow); }
.stat-icon { position: absolute; top: 50%; left: 13px; transform: translateY(-50%); display: grid; width: 43px; height: 43px; place-items: center; border-radius: 12px; }
.stat-icon .icon { width: 22px; height: 22px; }
.stat-icon.indigo { color: #3c54cb; background: #edf0ff; }
.stat-icon.mint { color: #197354; background: #e7f5ee; }
.stat-icon.amber { color: #855821; background: #faf1e2; }
.stat-icon.violet { color: #7145a4; background: #f1ecfa; }
.stat dt { color: var(--muted); font-size: .86rem; font-weight: 600; }
.stat dd { display: flex; align-items: baseline; gap: 6px; color: var(--muted); font-size: .8rem; }
.stat dd strong { color: var(--ink); font-size: 26px; font-weight: 720; line-height: 1.16; font-variant-numeric: tabular-nums; }

/* List panels, filters, and records. */
.notice { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; padding: 8px 12px; border: 1px solid #cce7db; border-radius: 10px; background: #edf8f3; color: #215c47; }
.notice p { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.notice.error-notice { border-color: #edcdca; background: #fff3f1; color: #962d32; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 15px; }
.panel-header h2 { font-size: 20px; font-weight: 700; letter-spacing: -.025em; }
.panel-header p { margin-top: 3px; color: var(--muted); font-size: .9rem; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-inline: 20px; }
.search-field { display: flex; flex: 1 1 225px; min-width: 0; min-height: 40px; align-items: center; gap: 8px; padding-inline: 11px; border: 1px solid #cdd6e5; border-radius: 9px; background: #fafbfe; color: var(--muted); }
.search-field input { flex: 1; width: 100%; min-width: 0; padding: 7px 0; border: 0; background: transparent; color: var(--ink); }
.search-field:focus-within { outline: 2px solid #6279ed; outline-offset: 1px; }
.search-field input:focus, .input-frame input:focus { outline: none; }
.filter-selects { display: grid; flex: 1 1 355px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; min-width: 0; }
.filters select { width: 100%; min-height: 40px; padding: 6px 8px; border: 1px solid #cdd6e5; border-radius: 9px; background: #fafbfe; color: var(--ink); font-size: .91rem; text-overflow: ellipsis; }
.list-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 0 20px; color: var(--muted); font-size: .87rem; }
.list-meta.team-meta { min-height: 34px; padding-bottom: 8px; }
.table-wrap { overflow: auto; }
.records { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; font-size: .91rem; }
.records th, .records td { padding: 11px 8px; }
.records th:first-child, .records td:first-child { padding-left: 20px; }
.records th:last-child, .records td:last-child { padding-right: 20px; text-align: right; }
.records th { background: #f6f8fc; color: var(--muted); font-size: .85rem; font-weight: 650; }
.records td { height: 65px; border-top: 1px solid #e8edf4; overflow-wrap: anywhere; }
.records tbody tr:hover { background: #fafbff; }
.users-table th:nth-child(2) { width: 93px; }
.users-table th:nth-child(4) { width: 80px; }
.users-table th:nth-child(5) { width: 74px; }
.users-table th:nth-child(6), .teams-table th:nth-child(4) { width: 99px; }
.users-table th:last-child { width: 137px; }
.teams-table th:nth-child(2), .teams-table th:nth-child(3) { width: 17%; }
.teams-table th:last-child { width: 170px; }
.records .identity { display: flex; align-items: center; gap: 9px; min-width: 0; }
.identity .avatar { width: 34px; height: 34px; }
.identity-text { min-width: 0; }
.identity-name { display: block; min-width: 0; color: var(--ink); font-weight: 670; }
.identity-sub { display: block; margin-top: 2px; color: var(--muted); font-size: .83rem; }
.records time, .number-cell { font-variant-numeric: tabular-nums; }
.records time { white-space: nowrap; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px; border-radius: 6px; color: #41526d; background: #edf1f7; font-size: .8rem; font-weight: 650; white-space: nowrap; }
.pill.admin { background: #e9eeff; color: #354dae; }
.pill.leader { background: #f0ecfa; color: #67469b; }
.pill.state { border-radius: 999px; }
.pill.state::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ""; }
.pill.state.on { background: #e8f6ee; color: #226a4e; }
.row-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 2px; }
.row-actions .caution { color: #9c3238; }
.row-actions .caution:hover:not(:disabled) { background: #fff1f0; }
.self-mark { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.cell-label { display: none; }
.empty-state { display: grid; gap: 7px; justify-items: center; min-height: 192px; align-content: center; padding: 22px 14px 26px; border-top: 1px solid var(--line); text-align: center; }
.empty-state h3 { font-size: 1.06rem; }
.empty-state p { max-width: 34em; color: var(--muted); font-size: .88rem; }
.empty-state .button { margin-top: 5px; }
.empty-icon { display: grid; width: 50px; height: 50px; margin-bottom: 2px; place-items: center; border-radius: 14px; background: #edf0ff; color: #4a60c2; }
.empty-icon .icon { width: 25px; height: 25px; }
.panel-footer { display: flex; align-items: flex-start; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); border-radius: 0 0 15px 15px; background: #fafbfe; color: var(--muted); font-size: .86rem; }
.panel-footer .icon { margin-top: 2px; }
.workspace-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 3px 12px; padding: 18px 1px 0; color: var(--muted); font-size: .8rem; }

/* Shared form and modal controls. */
.field { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 5px; }
.field label { font-weight: 660; }
.field small { color: var(--muted); font-size: .86rem; line-height: 1.5; }
.field > input, .field > select, .input-frame { width: 100%; min-height: 43px; border: 1px solid #cbd5e5; border-radius: 9px; background: var(--surface); }
.field > input, .field > select { padding: 7px 10px; }
.field :is(input, select):disabled, .field :is(input, select)[readonly] { color: var(--muted); background: #f3f5f9; }
.input-frame { display: flex; align-items: center; gap: 5px; padding: 0 4px 0 10px; }
.input-with-icon > .icon { color: var(--muted); }
.input-frame input { width: 100%; min-width: 0; min-height: 41px; padding: 6px 0; border: 0; background: transparent; }
.input-with-icon input { padding-left: 3px; }
.input-frame:focus-within { outline: 2px solid #6279ed; outline-offset: 1px; }
.input-frame:has([aria-invalid="true"]), .field > [aria-invalid="true"] { border-color: #bf4a50; }
.form-error, .form-success { border-radius: 8px; overflow-wrap: anywhere; font-size: .9rem; }
.form-error:not(:empty) { padding: 8px 10px; border: 1px solid #f0d2cf; background: #fff3f1; color: #952d32; }
.form-success:not(:empty) { padding: 8px 10px; margin-top: 12px; border: 1px solid #cce7db; background: #edf8f3; color: #215c47; }
.form-error:empty, .form-success:empty { position: absolute; }
.dialog { width: min(590px, calc(100% - 24px)); max-height: calc(100% - 28px); padding: 0; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 78px #111a3b3d; overflow: auto; overscroll-behavior: contain; }
.dialog::backdrop { background: #121d36a1; }
.compact-dialog { width: min(440px, calc(100% - 24px)); }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 17px 20px 14px; border-bottom: 1px solid var(--line); }
.dialog-header h2 { font-size: 20px; font-weight: 700; }
.dialog-header p { margin-top: 3px; color: var(--muted); overflow-wrap: anywhere; font-size: .9rem; }
.dialog-body { display: grid; gap: 13px; padding: 16px 20px; }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-wide { grid-column: 1 / -1; }
.dialog-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); background: #f9fafe; }
.confirm-header { justify-content: flex-start; padding-block: 20px 16px; border-bottom: 0; }
.confirm-icon { display: grid; width: 42px; height: 42px; flex: none; place-items: center; border-radius: 12px; background: #fff0ef; color: #a9353c; }
.confirm-icon.neutral { background: #edf0ff; color: #3a51bc; }
.confirm-icon .icon { width: 23px; height: 23px; }
.confirm-error { padding-inline: 20px; }
.confirm-error p:not(:empty) { margin-bottom: 12px; }

@media (max-width: 1100px) {
  .admin-shell { grid-template-columns: 202px minmax(0, 1fr); }
  .stat { padding-left: 58px; }
  .stat-icon { left: 10px; width: 38px; height: 38px; }
}
@media (max-width: 960px) {
  .admin-shell { display: block; }
  .sidebar { position: static; height: auto; gap: 12px; padding: 13px var(--gutter) 10px; }
  .sidebar .wordmark { padding-inline: 0; }
  .sidebar .brand-mark { width: 37px; height: 37px; }
  .sidebar .brand-mark .icon { width: 22px; height: 22px; }
  .nav-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-tab { justify-content: center; min-height: 42px; }
  .nav-tab[aria-selected="true"]::before { inset: auto 26% 0; width: auto; height: 2px; border-radius: 4px 4px 0 0; }
  .nav-heading, .sidebar-footer { display: none; }
}
@media (max-width: 800px) {
  .welcome { padding: 25px; }
  .login-card { padding: 24px; }
  .records, .records :is(thead, tbody, tr, td) { display: block; }
  .records thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .records tbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 13px 13px; }
  .records tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; }
  .records td, .records td:first-child, .records td:last-child { height: auto; padding: 0; border: 0; text-align: left; }
  .records td:first-child, .records td:last-child { grid-column: 1 / -1; }
  .records td:first-child { padding-bottom: 8px; border-bottom: 1px solid #e8edf4; }
  .records td:last-child { padding-top: 3px; }
  .cell-label { display: block; margin-bottom: 1px; color: var(--muted); font-size: .8rem; }
  .row-actions { justify-content: flex-start; }
  .row-actions .text-button { min-height: 38px; padding-inline: 9px; }
}
@media (max-width: 650px) {
  :root { --gutter: 13px; }
  .login-screen { display: flex; flex-direction: column; }
  .welcome { padding: 19px 23px 21px; }
  .welcome-content { margin-top: 19px; }
  .welcome-title { margin-top: 9px; font-size: 27px; }
  .welcome-title br { display: none; }
  .welcome-description { max-width: 23em; margin-top: 5px; }
  .welcome-art, .welcome-footer { display: none; }
  .login-side { flex: 1; align-items: start; padding: 17px 13px 25px; }
  #login-form { margin-top: 17px; }
  .login-note { margin-top: 17px; padding-top: 11px; }
  .workspace { padding-block: 14px 18px; }
  .topbar { min-height: 54px; }
  .account-controls { gap: 3px; }
  .account-identity { max-width: 150px; }
  .account-identity .avatar { width: 30px; height: 30px; }
  .logout-button { padding-inline: 6px; }
  .hero { flex-wrap: wrap; align-items: flex-start; gap: 11px; min-height: 0; padding: 16px; }
  .hero-art { inset: auto -7% -28px auto; width: min(53%, 260px); opacity: .58; }
  .hero .hero-button { min-height: 36px; padding: 5px 10px; font-size: .9rem; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-block: 10px 14px; }
  .stat { min-height: 67px; padding-block: 8px; }
  .stat dd strong { font-size: 22px; }
  .panel-header { align-items: flex-start; padding: 13px 12px; }
  .filters { margin-inline: 12px; }
  .list-meta { padding-inline: 12px; }
  .records tbody { grid-template-columns: minmax(0, 1fr); }
  .panel-footer { padding-inline: 12px; }
}
@media (max-width: 430px) {
  .breadcrumb-root, .breadcrumb .breadcrumb-separator { display: none; }
  .dialog-header, .dialog-body, .dialog-footer, .confirm-error { padding-inline: 14px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
