@font-face {
  font-family: "Ya Modern Pro";
  src: url("/fonts/YaModernPro-Bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --brand-950: #102f43;
  --brand-900: #153d55;
  --brand-800: #1c5872;
  --brand-700: #147b91;
  --brand-600: #1599a8;
  --brand-100: #dff4f5;
  --brand-50: #eef9fa;
  --ink: #162d3d;
  --text: #344c5d;
  --muted: #708493;
  --line: #dfe8ee;
  --line-strong: #ccd9e2;
  --paper: #ffffff;
  --canvas: #f3f7fa;
  --gold: #a86612;
  --gold-bg: #fff5e6;
  --red: #b64747;
  --red-bg: #fff0ef;
  --green: #19805d;
  --green-bg: #eaf7f0;
  --blue: #326caa;
  --blue-bg: #edf5ff;
  --shadow-sm: 0 2px 8px rgba(16, 47, 67, .045);
  --shadow-md: 0 12px 34px rgba(16, 47, 67, .09);
  --radius-sm: 9px;
  --radius-md: 14px;
  --radius-lg: 20px;
  font-family: Tahoma, Arial, sans-serif;
  color: var(--ink);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; min-height: 100vh; background: var(--canvas); font-size: 14px; line-height: 1.6; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid #77d5dc; outline-offset: 2px; }
[hidden] { display: none !important; }

h1, h2, h3, th, strong, b,
.button, .nav-label, .nav-item.active, .metric-value,
.cell-primary, .status, .segment-tab.active {
  font-family: "Ya Modern Pro", Tahoma, Arial, sans-serif;
  font-weight: 700;
}

.app-shell { min-height: 100vh; display: flex; }
.sidebar {
  width: 270px;
  flex: 0 0 270px;
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 30;
  display: flex;
  flex-direction: column;
  padding: 22px 16px 16px;
  background: var(--brand-950);
  color: #e7f2f6;
  border-left: 1px solid rgba(255,255,255,.08);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 2px 5px 22px; }
.brand-mark {
  width: 44px; height: 44px; flex: 0 0 44px;
  display: grid; place-items: center;
  color: #fff; background: linear-gradient(145deg, #19a6b5, #13728d);
  border: 1px solid rgba(255,255,255,.2); border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,.18); font-size: 23px;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.4; }
.brand-copy strong { color: #fff; font-size: 18px; letter-spacing: -.25px; }
.brand-copy b { color: #71d4dc; }
.brand-copy small { margin-top: 2px; color: #a9c1cd; font-size: 11px; }
.workspace-switch {
  display: flex; align-items: center; gap: 10px;
  padding: 11px; margin-bottom: 24px;
  border: 1px solid rgba(212,235,243,.15); border-radius: 13px;
  background: rgba(255,255,255,.055);
}
.workspace-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: rgba(72,195,207,.16); color: #86e0e5; font-size: 16px; font-weight: 700; }
.workspace-switch > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; }
.workspace-switch small { color: #a8c2ce; font-size: 10px; }
.workspace-switch strong { margin-top: 2px; color: #fff; font-size: 12px; }
.nav-label { padding: 0 10px 8px; color: #8faab7; font-size: 10px; letter-spacing: .4px; }
.nav-list { display: grid; gap: 5px; }
.nav-item {
  width: 100%; min-height: 44px; display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border: 1px solid transparent; border-radius: 11px;
  background: transparent; color: #bed0d8; text-align: right; font-size: 13px;
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}
.nav-item:hover { background: rgba(255,255,255,.075); color: #fff; }
.nav-item:active { transform: translateY(1px); }
.nav-item.active { color: #fff; background: linear-gradient(100deg, #14869a, #12728a); border-color: rgba(133,229,232,.22); box-shadow: 0 7px 18px rgba(4,31,44,.24); }
.nav-icon { width: 23px; text-align: center; font-size: 17px; line-height: 1; }
.sidebar-bottom { margin-top: auto; }
.help-card { display: flex; flex-direction: column; padding: 13px; border: 1px solid rgba(237,190,104,.26); border-radius: 13px; background: rgba(191,128,39,.12); }
.help-card strong { color: #ffe2ae; font-size: 12px; }
.help-card small { margin-top: 5px; color: #d4c2a5; font-size: 10px; line-height: 1.8; }
.profile { display: flex; align-items: center; gap: 10px; padding: 14px 2px 0; margin-top: 14px; border-top: 1px solid rgba(255,255,255,.1); }
.avatar, .top-avatar { display: grid; place-items: center; border-radius: 50%; font-weight: 700; }
.avatar { width: 36px; height: 36px; color: #d9fbfc; background: #17677b; border: 1px solid rgba(255,255,255,.15); font-size: 12px; }
.profile-meta { display: flex; flex: 1; flex-direction: column; }
.profile-meta strong { color: #fff; font-size: 12px; }
.profile-meta small { margin-top: 2px; color: #a8c2ce; font-size: 10px; }
.public-access-pill { padding: 4px 8px; border: 1px solid rgba(124,223,226,.3); border-radius: 999px; background: rgba(50,174,184,.15); color: #9ce7e8; font-size: 9px; font-weight: 700; }

.main-area { width: calc(100% - 270px); min-height: 100vh; margin-right: 270px; display: flex; flex-direction: column; }
.topbar {
  height: 72px; flex: 0 0 72px; position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 0 34px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.breadcrumbs { display: flex; align-items: center; gap: 10px; color: #8a9aa5; font-size: 12px; white-space: nowrap; }
.breadcrumbs strong { color: var(--ink); font-size: 13px; }
.crumb-sep { color: #c4d0d8; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.search-box { width: min(300px, 32vw); height: 40px; display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; background: #f8fbfc; color: var(--muted); transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.search-box:focus-within { border-color: #54b6c2; background: #fff; box-shadow: 0 0 0 3px rgba(21,153,168,.1); }
.search-toggle { flex: 0 0 auto; padding: 0; border: 0; background: transparent; color: var(--brand-700); font-size: 22px; line-height: 1; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.search-box input::placeholder { color: #92a2ad; }
.top-avatar { width: 38px; height: 38px; border: 1px solid #cfe8eb; background: var(--brand-50); color: var(--brand-800); font-size: 12px; }
.mobile-menu { display: none; }
.system-strip {
  display: flex; align-items: center; gap: 9px; margin: 18px 34px 0; padding: 11px 14px;
  border: 1px solid #cbe7eb; border-radius: 12px; background: #f1fbfc; color: #476875; font-size: 12px;
}
.system-strip strong { color: var(--brand-800); font-size: 12px; white-space: nowrap; }
.system-strip .demo-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--brand-600); box-shadow: 0 0 0 4px rgba(21,153,168,.1); }
.system-strip.public { border-color: #f0d7b0; background: #fff8ec; color: #775c34; }
.system-strip.public strong { color: #996018; }
.system-strip.public .demo-dot { background: #d99739; box-shadow: 0 0 0 4px rgba(217,151,57,.12); }

.page-content { width: 100%; max-width: 1680px; flex: 1; margin: 0 auto; padding: 30px 34px 28px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.eyebrow { margin-bottom: 6px; color: var(--brand-700); font-size: 11px; font-weight: 700; }
.page-heading h1 { margin: 0; color: var(--brand-950); font-size: clamp(23px, 2vw, 30px); line-height: 1.35; letter-spacing: -.4px; }
.page-heading p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.heading-actions { display: flex; align-items: center; gap: 10px; }
.button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 15px; border: 1px solid transparent; border-radius: 10px; font-size: 12px; font-weight: 700; transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease; }
.button:active { transform: translateY(1px); }
.button-primary { color: #fff; background: linear-gradient(120deg, var(--brand-700), var(--brand-600)); box-shadow: 0 5px 13px rgba(20,123,145,.2); }
.button-primary:hover { background: linear-gradient(120deg, var(--brand-800), var(--brand-700)); box-shadow: 0 8px 18px rgba(20,123,145,.25); }
.button-quiet { color: var(--text); background: #fff; border-color: var(--line-strong); }
.button-quiet:hover { color: var(--brand-800); border-color: #9dcbd1; background: var(--brand-50); }
.button-icon { font-size: 17px; line-height: 1; }

.metrics-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-bottom: 18px; }
.metric-card {
  width: 100%; min-height: 132px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; padding: 18px;
  border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper);
  box-shadow: var(--shadow-sm); color: var(--ink); text-align: right;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.metric-card::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(180deg, var(--brand-600), #7ad7dc); opacity: .85; }
.metric-card:hover { transform: translateY(-2px); border-color: #b5dce0; box-shadow: var(--shadow-md); }
.metric-name { color: var(--muted); font-size: 12px; }
.metric-value { margin-top: 9px; color: var(--brand-950); font-size: clamp(23px, 2.4vw, 31px); direction: rtl; line-height: 1.2; letter-spacing: -.3px; }
.metric-foot { margin-top: 6px; color: #8193a0; font-size: 11px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(310px, .9fr); gap: 16px; align-items: start; }
.stack { display: grid; gap: 16px; align-content: start; }
.panel { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper); box-shadow: var(--shadow-sm); }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.panel-head h2 { margin: 0; color: var(--brand-950); font-size: 15px; }
.panel-head p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.text-link { padding: 4px 0; border: 0; background: transparent; color: var(--brand-700); font-size: 12px; font-weight: 700; white-space: nowrap; }
.text-link:hover { color: var(--brand-950); text-decoration: underline; text-underline-offset: 3px; }
.property-list { display: grid; }
.property-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #edf2f5; }
.property-row:first-child { padding-top: 0; }
.property-row:last-child { padding-bottom: 0; border-bottom: 0; }
.property-thumb { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border: 1px solid #cfeaec; border-radius: 12px; background: linear-gradient(145deg, #effafb, #e2f3f5); color: var(--brand-700); font-size: 19px; }
.property-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.property-copy strong { overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.property-copy small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.attention-list { display: grid; gap: 13px; }
.attention-item { display: flex; align-items: flex-start; gap: 10px; }
.attention-icon { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border-radius: 10px; background: var(--gold-bg); color: var(--gold); font-size: 14px; }
.attention-icon.red { background: var(--red-bg); color: var(--red); }
.attention-copy { min-width: 0; flex: 1; display: grid; gap: 3px; }
.attention-copy strong { overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.attention-copy small { color: var(--muted); font-size: 10px; }

.portfolio-tabs { margin: -5px 0 14px; }
.segment-tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: #eaf1f5; }
.segment-tab { min-height: 36px; padding: 7px 14px; border: 0; border-radius: 8px; background: transparent; color: #647b8b; font-size: 12px; }
.segment-tab:hover { color: var(--brand-800); }
.segment-tab.active { background: #fff; color: var(--brand-800); box-shadow: 0 2px 6px rgba(16,47,67,.1); }
.page-panel { margin-top: 10px; }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.filter-group { display: flex; align-items: center; gap: 9px; }
.filter-select, .table-search, .date-select { min-height: 40px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--text); font-size: 12px; }
.table-search { width: min(320px, 38vw); }
.filter-select:focus, .table-search:focus, .date-select:focus { border-color: #5ab8c4; outline: 0; box-shadow: 0 0 0 3px rgba(21,153,168,.1); }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; }
th { position: sticky; top: 0; z-index: 1; padding: 13px 15px; border-bottom: 1px solid var(--line); background: #f4f8fa; color: #587081; text-align: right; font-size: 11px; white-space: nowrap; }
td { padding: 13px 15px; border-bottom: 1px solid #edf2f5; color: var(--text); font-size: 12px; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f7fbfc; }
.cell-primary { color: var(--ink); font-size: 12px; }
.cell-sub { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid transparent; border-radius: 999px; background: var(--green-bg); color: var(--green); font-size: 10px; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: currentColor; }
.status.warning { background: var(--gold-bg); color: var(--gold); border-color: #f5dfbd; }
.status.danger { background: var(--red-bg); color: var(--red); border-color: #f4d5d3; }
.status.neutral { background: #f0f4f6; color: #697d8a; border-color: #e4ebef; }
.status.blue { background: var(--blue-bg); color: var(--blue); border-color: #d8e7f8; }
.row-action-group { display: flex; align-items: center; gap: 6px; }
.row-actions { padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--brand-800); font-size: 11px; }
.row-actions:hover { border-color: #b4d9de; background: var(--brand-50); }
.row-actions.danger-text { color: var(--red); }
.row-actions.danger-text:hover { border-color: #efc7c4; background: var(--red-bg); }
.empty-state { padding: 38px 18px; color: var(--muted); text-align: center; }
.empty-state::before { content: "▦"; width: 46px; height: 46px; display: grid; place-items: center; margin: 0 auto 12px; border: 1px solid #d8e9ed; border-radius: 14px; background: var(--brand-50); color: var(--brand-700); font-size: 20px; }
.empty-state strong { display: block; margin-bottom: 5px; color: var(--brand-950); font-size: 14px; }
.empty-state span { font-size: 12px; }
.loading-panel { padding: 54px 24px; color: var(--muted); text-align: center; }

.settings-form { display: grid; grid-template-columns: repeat(2, minmax(200px, 1fr)); align-items: end; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { color: #40596b; font-size: 12px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; outline: none; background: #fff; color: var(--ink); font-size: 13px; transition: border-color .18s ease, box-shadow .18s ease; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #50b4c0; box-shadow: 0 0 0 3px rgba(21,153,168,.1); }
.field textarea { min-height: 90px; resize: vertical; }
.settings-form .button { justify-self: start; }
.settings-note { padding: 16px 18px; border: 1px dashed var(--line-strong); border-radius: 12px; background: #f7fafb; color: #576e7e; font-size: 12px; line-height: 1.9; }
.settings-note.public-warning { border-color: #edcf9e; background: #fff7e8; color: #765721; }
.settings-warning { margin-top: 18px; }
.settings-note.public-warning strong { color: #8c571b; }
.form-error { margin: 12px 0 0; padding: 10px 12px; border: 1px solid #f1d0cc; border-radius: 9px; background: var(--red-bg); color: var(--red); font-size: 12px; line-height: 1.7; }

.footer { display: flex; justify-content: space-between; gap: 12px; padding: 15px 34px; border-top: 1px solid var(--line); background: #fff; color: #82939e; font-size: 10px; }
.footer-dot { margin: 0 4px; color: var(--brand-600); }
.toast-region { position: fixed; left: 20px; bottom: 20px; z-index: 80; display: grid; gap: 8px; max-width: min(420px, calc(100vw - 40px)); }
.toast { padding: 12px 16px; border: 1px solid rgba(255,255,255,.12); border-radius: 11px; background: var(--brand-950); box-shadow: var(--shadow-md); color: #fff; font-size: 12px; animation: toast-in .2s ease-out; }
.toast.warning { background: #875313; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.modal-backdrop { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; background: rgba(13,34,48,.58); backdrop-filter: blur(4px); }
.modal-backdrop[hidden] { display: none; }
.modal { width: min(100%, 560px); max-height: min(90vh, 820px); overflow: auto; padding: 24px; border: 1px solid rgba(255,255,255,.5); border-radius: var(--radius-lg); background: #fff; box-shadow: 0 24px 70px rgba(6,25,38,.3); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.modal-kicker { color: var(--brand-700); font-size: 11px; }
.modal h2 { margin: 4px 0 0; color: var(--brand-950); font-size: 20px; }
.close-modal { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: #f7fafb; color: #536a79; font-size: 22px; }
.close-modal:hover { background: var(--brand-50); color: var(--brand-800); }
.modal-note { margin: 10px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.form-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-fields .field:has(textarea) { grid-column: 1 / -1; }
.modal-actions { display: flex; justify-content: flex-start; gap: 9px; margin-top: 20px; }

.boot-screen { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 11px; padding: 24px; background: radial-gradient(ellipse at top, #e7f7f8, #f4f8fa 62%); color: var(--brand-900); text-align: center; }
.boot-screen .brand-mark { width: 56px; height: 56px; border-radius: 17px; font-size: 27px; }
.boot-screen p { margin: 0; color: var(--muted); font-size: 13px; }

@media (max-width: 1180px) {
  .sidebar { width: 244px; flex-basis: 244px; }
  .main-area { width: calc(100% - 244px); margin-right: 244px; }
  .page-content { padding-inline: 24px; }
  .topbar { padding-inline: 24px; }
  .system-strip { margin-inline: 24px; }
  .footer { padding-inline: 24px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1.25fr) minmax(270px, .9fr); }
}
@media (max-width: 900px) {
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .stack { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@media (max-width: 760px) {
  .sidebar { width: min(300px, 86vw); transform: translateX(105%); transition: transform .22s ease; box-shadow: -12px 0 34px rgba(16,47,67,.2); }
  .sidebar.open { transform: translateX(0); }
  .main-area { width: 100%; margin-right: 0; }
  .topbar { height: 62px; flex-basis: 62px; gap: 10px; padding: 0 16px; }
  .mobile-menu { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--brand-800); font-size: 18px; }
  .breadcrumbs { margin-left: auto; font-size: 10px; gap: 6px; }
  .breadcrumbs strong { font-size: 11px; }
  .topbar-actions { gap: 7px; }
  .search-box { width: min(34vw, 210px); height: 36px; padding-inline: 9px; }
  .search-box input { font-size: 10px; }
  .top-avatar { width: 34px; height: 34px; }
  .system-strip { margin: 12px 16px 0; flex-wrap: wrap; font-size: 11px; }
  .page-content { padding: 22px 16px 24px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 18px; }
  .page-heading h1 { font-size: 23px; }
  .heading-actions { width: 100%; justify-content: flex-start; }
  .stack { grid-template-columns: 1fr; }
  .panel { padding: 16px; }
  .footer { flex-wrap: wrap; padding: 13px 16px; }
}
@media (max-width: 520px) {
  body { font-size: 13px; }
  .topbar { gap: 7px; padding-inline: 10px; }
  .breadcrumbs { overflow: hidden; max-width: 42vw; text-overflow: ellipsis; white-space: nowrap; }
  .search-box { width: 38px; justify-content: center; padding: 0; border-color: transparent; background: transparent; }
  .search-box input { position: absolute; top: 62px; right: 10px; left: 10px; z-index: 22; display: none; width: calc(100% - 20px); height: 40px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; box-shadow: var(--shadow-md); }
  .search-box:focus-within input { display: block; }
  .search-toggle { min-width: 36px; min-height: 36px; font-size: 21px; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .metric-card { min-height: 115px; padding: 13px; }
  .metric-name { font-size: 10px; }
  .metric-value { font-size: 22px; }
  .metric-foot { font-size: 9px; }
  .page-content { padding: 19px 12px 20px; }
  .page-heading h1 { font-size: 21px; }
  .page-heading p { font-size: 11px; }
  .button { min-height: 38px; padding: 8px 11px; font-size: 11px; }
  .panel { padding: 14px 12px; border-radius: 12px; }
  .panel-head h2 { font-size: 13px; }
  .panel-head p { font-size: 10px; }
  .table-toolbar { align-items: stretch; flex-direction: column; }
  .table-search { width: 100%; }
  .filter-group { width: 100%; flex-wrap: wrap; }
  .filter-select { flex: 1; }
  .footer { font-size: 9px; }
  .settings-form, .form-fields { grid-template-columns: 1fr; }
  .form-fields .field:has(textarea) { grid-column: auto; }
  .settings-form .button { justify-self: stretch; }
  .modal { padding: 19px 16px; border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
