:root {
  --font-sans: 'Noto Sans SC', 'Microsoft YaHei UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
  --font-display: 'Noto Sans SC', 'Microsoft YaHei UI', 'Microsoft YaHei', sans-serif;
  --font-numeric: 'Noto Sans SC', 'Segoe UI', 'Microsoft YaHei UI', sans-serif;
  --ink: #1b2924;
  --ink-soft: #43524c;
  --muted: #6d7b74;
  --deep: #0b2a22;
  --deep-2: #133e33;
  --deep-3: #205b4a;
  --gold: #d7aa52;
  --gold-dark: #92671d;
  --gold-soft: #f7ecd3;
  --paper: #f3f2ed;
  --card: #ffffff;
  --line: #dfe5df;
  --line-soft: #edf1ec;
  --green: #24795a;
  --green-soft: #e5f3ec;
  --red: #b54848;
  --red-soft: #fae9e7;
  --blue: #356f8c;
  --blue-soft: #e8f1f6;
  --shadow: 0 20px 54px rgba(19, 43, 34, 0.1);
  --shadow-sm: 0 9px 28px rgba(19, 43, 34, 0.07);
  --radius: 18px;
  --radius-sm: 12px;
  --sidebar: 264px;
}

html {
  color-scheme: light;
  background: #efeee8;
}

body {
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.6;
  letter-spacing: 0.005em;
  background:
    radial-gradient(circle at 100% 0, rgba(215, 170, 82, 0.12), transparent 30rem),
    radial-gradient(circle at 0 100%, rgba(36, 121, 90, 0.075), transparent 34rem),
    linear-gradient(180deg, #f7f6f1 0, #f2f1eb 42%, #efeee8 100%);
}

body::selection {
  color: #fff;
  background: rgba(36, 121, 90, 0.78);
}

button,
input,
select,
textarea {
  font-family: var(--font-sans);
}

h1,
h2,
h3,
h4,
.brand-copy strong,
.metric-value,
.summary-tile strong {
  font-family: var(--font-display);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(36, 121, 90, 0.2);
  outline-offset: 2px;
}

::placeholder {
  color: #9ba69f;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #c7d1ca transparent;
}

*::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

*::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: #c7d1ca;
  background-clip: padding-box;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

.mono,
.data-table .num,
.metric-value .mono,
.summary-tile strong,
.recent-value strong,
.recent-value span,
.distribution-row .amount,
.preview-item strong,
.stock-note strong {
  font-family: var(--font-numeric);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1, 'kern' 1;
}

.boot-screen {
  background:
    radial-gradient(circle at 50% 42%, rgba(215, 170, 82, 0.12), transparent 22rem),
    linear-gradient(145deg, #0b2a22, #071c17);
}

.boot-logo,
.brand-mark {
  border-radius: 14px 5px 14px 5px;
  background: linear-gradient(145deg, #f6d995 0, #d7aa52 45%, #b9872e 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42), 0 8px 24px rgba(0, 0, 0, 0.18);
}

.boot-logo {
  width: 64px;
  height: 64px;
  font-size: 25px;
  border-radius: 20px 6px 20px 6px;
}

.boot-title {
  font-family: var(--font-display);
  font-size: 23px;
  letter-spacing: 0.08em;
}

.boot-text {
  color: rgba(255, 255, 255, 0.66);
  font-size: 13.5px;
}

.auth-screen {
  background: #f3f1ea;
}

.auth-art {
  background:
    radial-gradient(circle at 80% 16%, rgba(215, 170, 82, 0.18), transparent 22rem),
    radial-gradient(circle at 12% 88%, rgba(54, 142, 109, 0.22), transparent 25rem),
    linear-gradient(135deg, #0a2a22 0, #103b30 52%, #174638 100%);
}

.auth-art::before {
  width: 560px;
  height: 560px;
  right: -180px;
  top: -110px;
  border-color: rgba(215, 170, 82, 0.34);
  box-shadow: 0 0 0 96px rgba(215, 170, 82, 0.035), 0 0 0 192px rgba(215, 170, 82, 0.018);
}

.auth-art::after {
  height: 36%;
  opacity: 0.1;
}

.brand-copy strong {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.035em;
}

.brand-copy small {
  margin-top: 5px;
  font-family: var(--font-numeric);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  opacity: 0.62;
}

.auth-hero h1 {
  max-width: 720px;
  margin-bottom: 26px;
  font-size: clamp(40px, 4.25vw, 66px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.eyebrow {
  margin-bottom: 18px;
  color: #e5bd6d;
  font-family: var(--font-numeric);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.19em;
}

.auth-lead {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15.5px;
  line-height: 1.95;
}

.auth-features {
  gap: 24px;
  padding-top: 28px;
}

.auth-features span {
  color: #e5bd6d;
  font-family: var(--font-numeric);
  font-size: 12px;
}

.auth-features strong {
  font-size: 13.5px;
  font-weight: 700;
}

.auth-features small {
  color: rgba(255, 255, 255, 0.54);
  font-size: 11.5px;
}

.auth-panel {
  padding: clamp(32px, 5vw, 78px);
  background:
    radial-gradient(circle at 100% 0, rgba(215, 170, 82, 0.13), transparent 25rem),
    linear-gradient(145deg, #f8f7f2, #f1efe7);
}

.auth-form-wrap {
  width: min(440px, 100%);
  border: 1px solid rgba(220, 224, 216, 0.88);
  border-radius: 26px;
  padding: clamp(30px, 3.6vw, 42px);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 28px 70px rgba(25, 50, 40, 0.12);
  backdrop-filter: blur(12px);
}

.auth-form-wrap h2 {
  margin-bottom: 9px;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.auth-form-wrap > .muted {
  margin-bottom: 26px;
  font-size: 13.5px;
  line-height: 1.7;
}

.auth-form {
  gap: 17px;
}

.auth-form .btn-primary {
  min-height: 46px;
  margin-top: 4px;
  font-size: 14px;
}

.auth-footnote {
  margin-top: 25px;
  color: #89948e;
  font-size: 11.5px;
}

.sidebar {
  width: var(--sidebar);
  padding: 26px 18px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.055);
  background:
    radial-gradient(circle at 100% 0, rgba(215, 170, 82, 0.16), transparent 18rem),
    radial-gradient(circle at 0 100%, rgba(42, 142, 109, 0.16), transparent 20rem),
    linear-gradient(180deg, #0b2a22 0, #0a261f 50%, #071e19 100%);
  box-shadow: 14px 0 44px rgba(8, 30, 23, 0.14);
}

.sidebar-brand {
  margin: 0 8px 32px;
}

.sidebar-brand .brand-mark {
  width: 42px;
  height: 42px;
  font-size: 16px;
}

.main-nav {
  gap: 4px;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.nav-group-label {
  margin: 18px 13px 7px;
  color: rgba(255, 255, 255, 0.39);
  font-family: var(--font-numeric);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.nav-item {
  position: relative;
  gap: 12px;
  min-height: 43px;
  border-radius: 12px;
  padding: 10px 13px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13.5px;
  font-weight: 500;
}

.nav-item svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.65;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  transform: translateX(1px);
}

.nav-item.active {
  color: #fff9e9;
  font-weight: 650;
  background:
    linear-gradient(90deg, rgba(215, 170, 82, 0.2), rgba(215, 170, 82, 0.045)),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 3px 0 0 #e0b45d, 0 8px 22px rgba(0, 0, 0, 0.08);
}

.sidebar-foot {
  border-top-color: rgba(255, 255, 255, 0.1);
  padding-top: 17px;
}

.side-user strong {
  font-size: 13.5px;
  letter-spacing: 0.015em;
}

.side-user span {
  color: rgba(255, 255, 255, 0.51);
  font-size: 11.5px;
}

.text-button {
  font-size: 11.5px;
  font-weight: 500;
}

.text-button.light {
  color: rgba(255, 255, 255, 0.54);
}

.topbar {
  min-height: 86px;
  padding: 15px clamp(22px, 3.5vw, 58px);
  border-bottom-color: rgba(214, 220, 214, 0.8);
  background: rgba(246, 245, 239, 0.86);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px) saturate(130%);
}

.page-kicker {
  margin-bottom: 2px;
  color: #9a6e24;
  font-family: var(--font-numeric);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.topbar h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.028em;
}

.user-chip {
  gap: 10px;
  border-left-color: #dfe4de;
  padding-left: 16px;
}

.avatar {
  width: 37px;
  height: 37px;
  border-color: #dfd2b5;
  font-family: var(--font-display);
  font-size: 12.5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.user-meta strong {
  font-size: 12.5px;
  font-weight: 650;
}

.user-meta span {
  font-size: 10.5px;
}

.page-content {
  width: min(1580px, 100%);
  padding: 30px clamp(20px, 3.5vw, 58px) 64px;
}

.page-intro {
  align-items: flex-end;
  margin-bottom: 22px;
}

.page-intro h3 {
  margin-bottom: 6px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.page-intro p {
  max-width: 890px;
  font-size: 13px;
  line-height: 1.72;
}

.page-intro-actions {
  gap: 9px;
}

.btn {
  gap: 8px;
  min-height: 40px;
  border-color: #d8dfd8;
  border-radius: 10px;
  padding: 9px 15px;
  color: #35453f;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.005em;
  box-shadow: 0 1px 2px rgba(23, 48, 38, 0.03);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.btn:hover {
  border-color: #bdc9c0;
  background: #fff;
  box-shadow: 0 9px 24px rgba(23, 48, 38, 0.09);
  transform: translateY(-1px);
}

.btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.75;
}

.btn-primary {
  border-color: #123b2f;
  color: #fffaf0;
  background: linear-gradient(135deg, #143f33, #0a2a22);
  box-shadow: 0 8px 22px rgba(10, 42, 34, 0.16);
}

.btn-primary:hover {
  border-color: #205b4a;
  background: linear-gradient(135deg, #1a5040, #10392d);
  box-shadow: 0 12px 28px rgba(10, 42, 34, 0.2);
}

.btn-gold {
  border-color: #caa04b;
  color: #322306;
  background: linear-gradient(135deg, #f2d58f, #d7aa52);
  box-shadow: 0 8px 22px rgba(146, 103, 29, 0.13);
}

.btn-gold:hover {
  border-color: #b88428;
  background: linear-gradient(135deg, #f7dfa4, #dfb45d);
}

.btn-ghost {
  color: #65736c;
  background: transparent;
  box-shadow: none;
}

.btn-sm {
  min-height: 33px;
  padding: 6px 10px;
  font-size: 12px;
}

.icon-button {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.82);
}

.panel {
  border-color: rgba(219, 225, 219, 0.92);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
}

.panel-head {
  padding: 21px 24px;
  border-bottom-color: #edf0eb;
}

.panel-head h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.panel-head p {
  margin-top: 4px;
  font-size: 12px;
}

.panel-body {
  padding: 24px;
}

.metric-grid {
  gap: 16px;
  margin-bottom: 20px;
}

.metric-card {
  min-height: 146px;
  border-color: rgba(221, 227, 221, 0.94);
  padding: 20px 22px;
  background: linear-gradient(155deg, #ffffff, #fbfcf9);
  box-shadow: 0 10px 30px rgba(22, 46, 37, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  animation: theme-rise 320ms ease both;
}

.metric-card:hover {
  border-color: #d0d9d1;
  box-shadow: 0 16px 38px rgba(22, 46, 37, 0.09);
  transform: translateY(-2px);
}

.metric-card.dark {
  color: #fff9ea;
  background:
    radial-gradient(circle at 100% 0, rgba(215, 170, 82, 0.3), transparent 13rem),
    radial-gradient(circle at 0 100%, rgba(52, 143, 108, 0.16), transparent 16rem),
    linear-gradient(135deg, #0c2c24, #1b5545);
  box-shadow: 0 16px 40px rgba(10, 42, 34, 0.18);
}

.metric-label {
  color: #718078;
  font-size: 12.5px;
  font-weight: 550;
}

.metric-icon {
  width: 31px;
  height: 31px;
  border-radius: 9px;
}

.metric-icon svg {
  width: 16px;
  height: 16px;
}

.metric-value {
  margin-top: 14px;
  font-weight: 700;
  letter-spacing: -0.022em;
}

.metric-value small {
  font-family: var(--font-sans);
  font-size: 11.5px;
}

.metric-foot {
  margin-top: 10px;
  font-size: 11.5px;
}

.filter-bar {
  gap: 12px;
  border-color: rgba(218, 224, 218, 0.95);
  border-radius: 16px;
  margin-bottom: 16px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 6px 20px rgba(23, 48, 38, 0.045);
  backdrop-filter: blur(10px);
}

.filter-bar .field {
  min-width: 150px;
  gap: 6px;
}

.field {
  gap: 7px;
}

.field label {
  color: #67756e;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.025em;
}

.input,
.select,
.textarea {
  min-height: 42px;
  border-color: #d8dfd8;
  border-radius: 10px;
  padding: 9px 12px;
  color: #1d2c26;
  font-size: 13.5px;
  background: #fcfdfb;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: #c6d0c8;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: #2f8667;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(36, 121, 90, 0.1);
}

.input[readonly],
.input:disabled,
.select:disabled,
.textarea:disabled {
  color: #66736c;
  background: #f1f4f0;
}

.textarea {
  min-height: 84px;
  line-height: 1.65;
}

.field-hint {
  color: #89958e;
  font-size: 10.5px;
}

.checkbox-field {
  min-height: 42px;
  border-color: #d8dfd8;
  border-radius: 10px;
  padding: 8px 12px;
  background: #fcfdfb;
}

.checkbox-field span {
  font-size: 13px;
}

.form-error {
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 12px;
}

.table-wrap {
  border-color: #dfe5df;
  border-radius: 17px;
  box-shadow: 0 10px 30px rgba(22, 46, 37, 0.055);
}

.data-table {
  min-width: 800px;
}

.data-table th,
.data-table td {
  padding: 13px 16px;
}

.data-table th {
  color: #65736c;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.035em;
  background: linear-gradient(180deg, #f8faf7, #f4f7f3);
  box-shadow: inset 0 -1px 0 #e4eae4;
}

.data-table td {
  color: #2a3832;
  font-size: 13px;
}

.data-table tbody tr:hover {
  background: #f7faf6;
}

.data-table .num {
  font-size: 13px;
  font-weight: 600;
}

.data-table .money {
  color: #1c3229;
  font-weight: 700;
}

.data-table .positive {
  color: #1d7655;
}

.data-table .negative {
  color: #b54848;
}

.data-table.full-fields th,
.data-table.full-fields td {
  padding: 10px 12px;
}

.data-table.full-fields td {
  font-size: 12px;
}

.data-table.full-fields .cell-note,
.data-table.full-fields .cell-note span {
  max-width: 280px;
}

.record-main {
  gap: 3px;
}

.record-main strong {
  font-size: 13.5px;
  font-weight: 650;
}

.record-main span {
  font-size: 11.5px;
}

.table-actions {
  gap: 5px;
}

.link-button {
  border-radius: 7px;
  padding: 6px 8px;
  color: #1e7354;
  font-size: 12px;
  font-weight: 650;
  transition: background 140ms ease, color 140ms ease;
}

.link-button:hover {
  background: #e5f3ec;
}

.badge {
  gap: 6px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.015em;
}

.badge::before {
  width: 6px;
  height: 6px;
}

.pagination {
  margin-top: 14px;
  font-size: 12.5px;
}

.empty-state {
  gap: 9px;
}

.empty-icon {
  width: 62px;
  height: 62px;
  border-radius: 19px;
}

.empty-state strong {
  font-size: 15px;
}

.empty-state p {
  font-size: 12.5px;
  line-height: 1.7;
}

.loading-state {
  font-size: 13px;
}

.modal-backdrop {
  background: rgba(8, 27, 21, 0.62);
  backdrop-filter: blur(7px);
}

.modal {
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 23px;
  box-shadow: 0 40px 110px rgba(7, 25, 19, 0.36);
}

.modal-head {
  padding: 24px 28px 20px;
}

.modal-head h3 {
  font-size: 21px;
  font-weight: 700;
}

.modal-head p {
  margin-top: 4px;
  font-size: 12px;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-color: #e0e5df;
  transition: background 140ms ease, transform 140ms ease;
}

.modal-close:hover {
  background: #f5f7f3;
  transform: rotate(3deg);
}

.modal-body {
  padding: 24px 28px;
}

.modal-foot {
  gap: 9px;
  padding: 16px 28px;
}

.toast-root {
  width: min(390px, calc(100vw - 44px));
}

.toast {
  gap: 10px;
  border-radius: 12px;
  padding: 13px 15px;
  font-size: 12.5px;
  line-height: 1.6;
  box-shadow: 0 20px 50px rgba(9, 28, 21, 0.28);
}

.summary-strip {
  gap: 14px;
  margin-bottom: 18px;
}

.summary-tile {
  border-color: #dfe5df;
  border-radius: 16px;
  padding: 18px 20px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.96), rgba(250, 251, 247, 0.94));
  box-shadow: 0 7px 22px rgba(22, 46, 37, 0.045);
}

.summary-tile span {
  color: #718078;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.025em;
}

.summary-tile strong {
  margin-top: 7px;
  color: #1d3129;
  font-size: clamp(21px, 1.75vw, 25px);
  font-weight: 700;
  letter-spacing: -0.018em;
}

.summary-tile small {
  margin-top: 4px;
  font-size: 11px;
}

.summary-tile:last-child {
  border-color: #e5d5b4;
  background:
    radial-gradient(circle at 100% 0, rgba(215, 170, 82, 0.15), transparent 12rem),
    linear-gradient(155deg, #fffdf8, #fbf5e7);
}

.summary-tile:last-child strong {
  color: #6f4b0e;
}

.summary-tile strong.negative {
  color: #b54848;
}

.page-note {
  gap: 9px;
  border-color: #e6ddc9;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 12px;
  line-height: 1.72;
  background: #fffdf6;
}

.dashboard-grid,
.section-grid {
  gap: 18px;
  margin-bottom: 18px;
}

.dashboard-side {
  gap: 18px;
}

.chart-panel {
  min-height: 330px;
}

.chart-shell {
  gap: 9px;
  height: 222px;
  padding: 20px 5px 24px;
}

.chart-grid-line {
  border-top-color: #e5eae4;
}

.trend-bar {
  width: min(12px, 40%);
  border-radius: 6px 6px 2px 2px;
}

.trend-label {
  bottom: -21px;
  font-family: var(--font-numeric);
  font-size: 10px;
}

.chart-tooltip {
  border-radius: 9px;
  padding: 8px 10px;
  font-size: 11px;
  line-height: 1.55;
  box-shadow: 0 10px 26px rgba(7, 25, 19, 0.2);
}

.chart-legend {
  gap: 17px;
  font-size: 11.5px;
}

.legend-dot {
  width: 8px;
  height: 8px;
}

.distribution-list,
.recent-list,
.stack-list {
  gap: 13px;
}

.distribution-row {
  gap: 6px 14px;
}

.distribution-row strong {
  font-size: 12.5px;
}

.distribution-row .amount {
  font-size: 12px;
}

.progress {
  height: 6px;
  background: #edf1ec;
}

.recent-item {
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 11px;
  padding: 11px 0;
}

.recent-icon {
  width: 35px;
  height: 35px;
  border-radius: 10px;
  font-size: 11px;
}

.recent-copy strong {
  font-size: 12.5px;
}

.recent-copy span {
  font-size: 11px;
}

.recent-value strong {
  font-size: 12.5px;
}

.recent-value span {
  font-size: 11px;
}

.quick-actions {
  gap: 10px;
}

.quick-action {
  gap: 11px;
  border-color: #e3e8e2;
  border-radius: 12px;
  padding: 14px;
  background: #fbfcf9;
}

.quick-action strong {
  font-size: 12.5px;
}

.quick-action span {
  font-size: 11px;
  line-height: 1.55;
}

.form-section {
  margin-bottom: 20px;
  border-color: #e2e7e1;
  border-radius: 16px;
  padding: 18px 20px;
  background: #fbfcf9;
}

.form-section legend {
  padding: 0 9px;
  color: #283a33;
  font-size: 12.5px;
  font-weight: 700;
}

.form-grid {
  gap: 14px;
}

.preview-panel {
  border-color: #e4d6b9;
  border-radius: 16px;
  padding: 17px 19px;
  background:
    radial-gradient(circle at 100% 0, rgba(215, 170, 82, 0.14), transparent 15rem),
    #fffbf2;
}

.preview-head strong {
  font-size: 12.5px;
}

.preview-head span {
  font-size: 11px;
}

.preview-item span {
  font-size: 11px;
}

.preview-item strong {
  margin-top: 4px;
  font-size: 13px;
}

.stock-note {
  gap: 8px 18px;
  border-radius: 11px;
  padding: 10px 13px;
  font-size: 11.5px;
}

.readonly-note {
  border-left-width: 4px;
  border-radius: 0 9px 9px 0;
  margin-bottom: 18px;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.7;
}

.info-grid {
  gap: 14px;
}

.info-block {
  padding: 11px 3px;
}

.info-block span {
  font-size: 11.5px;
}

.info-block strong {
  margin-top: 4px;
  font-size: 13.5px;
}

.role-pill {
  padding: 4px 9px;
  font-size: 11px;
}

.user-cell .avatar {
  width: 32px;
  height: 32px;
  font-size: 11px;
}

.user-cell strong {
  font-size: 12.5px;
}

.user-cell span {
  font-size: 10.5px;
}

.hint {
  font-size: 11.5px;
  line-height: 1.72;
}

.status-dot {
  gap: 6px;
  font-size: 11.5px;
}

.status-dot::before {
  width: 7px;
  height: 7px;
}

.data-table tfoot td {
  border-top-color: #dce4dc;
  background: #f6f9f5;
}

.import-guide {
  border-radius: 12px;
  padding: 15px 17px;
  font-size: 12.5px;
}

.import-template-row {
  font-size: 12px;
}

.line-clamp {
  max-width: 300px;
}

@keyframes theme-rise {
  from {
    transform: translateY(6px);
  }
}

@media (max-width: 1180px) {
  :root {
    --sidebar: 250px;
  }
  .summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .auth-form-wrap {
    padding: 32px;
  }
}

@media (max-width: 900px) {
  :root {
    --sidebar: 280px;
  }
  .sidebar {
    padding-top: 24px;
  }
  .topbar {
    min-height: 76px;
  }
  .page-content {
    padding-top: 26px;
  }
  .auth-art-inner {
    width: min(700px, 88%);
  }
  .auth-form-wrap {
    width: min(460px, 100%);
  }
}

@media (max-width: 720px) {
  body {
    font-size: 14px;
  }
  .topbar {
    min-height: 68px;
    padding: 11px 15px;
  }
  .topbar h2 {
    font-size: 20px;
  }
  .page-kicker {
    font-size: 9.5px;
  }
  .page-content {
    padding: 19px 14px 48px;
  }
  .page-intro {
    gap: 14px;
    margin-bottom: 18px;
  }
  .page-intro h3 {
    font-size: 20px;
  }
  .page-intro p {
    font-size: 12.5px;
  }
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .metric-card {
    min-height: 122px;
    padding: 16px;
  }
  .metric-label {
    font-size: 11.5px;
  }
  .metric-icon {
    width: 28px;
    height: 28px;
  }
  .metric-value {
    margin-top: 11px;
    font-size: 23px;
  }
  .metric-foot {
    font-size: 10.5px;
  }
  .filter-bar {
    gap: 10px;
    border-radius: 14px;
    padding: 13px;
  }
  .filter-bar .field {
    flex: 1 1 calc(50% - 5px);
    min-width: 0;
  }
  .filter-bar .field.grow {
    flex-basis: 100%;
  }
  .filter-bar .btn {
    flex: 1 1 auto;
    margin-left: 0;
  }
  .input,
  .select,
  .textarea {
    min-height: 40px;
    font-size: 13px;
  }
  .panel-head {
    padding: 17px 18px;
  }
  .panel-body {
    padding: 18px;
  }
  .summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .summary-tile {
    padding: 15px 16px;
  }
  .summary-tile span {
    font-size: 10.5px;
  }
  .summary-tile strong {
    font-size: 20px;
  }
  .data-table th,
  .data-table td {
    padding: 11px 12px;
  }
  .data-table th {
    font-size: 11px;
  }
  .data-table td,
  .data-table .num {
    font-size: 12.5px;
  }
  .data-table td[colspan] {
    padding-right: 0;
    padding-left: 0;
  }
  .data-table td[colspan] .empty-state {
    position: sticky;
    left: 0;
    width: calc(100vw - 30px);
    max-width: calc(100vw - 30px);
    margin: 0;
    padding: 20px;
  }
  .table-wrap:has(td[colspan]) .data-table {
    min-width: 0;
  }
  .modal-head {
    padding: 20px 18px 17px;
  }
  .modal-body {
    padding: 20px 18px;
  }
  .modal-foot {
    padding: 14px 18px;
  }
  .modal-head h3 {
    font-size: 19px;
  }
  .auth-hero h1 {
    margin-bottom: 18px;
    font-size: clamp(32px, 7.8vw, 42px);
  }
  .auth-art {
    padding: 24px 0 26px;
  }
  .auth-hero {
    padding: 34px 0 22px;
  }
  .auth-lead {
    font-size: 13.5px;
    line-height: 1.8;
  }
  .auth-features {
    display: none;
  }
  .auth-panel {
    padding: 30px 20px 56px;
  }
  .auth-form-wrap {
    width: min(460px, 100%);
    padding: 26px 20px;
    border-radius: 22px;
  }
  .auth-form-wrap h2 {
    font-size: 30px;
  }
  .dashboard-grid,
  .section-grid,
  .dashboard-side {
    gap: 13px;
    margin-bottom: 13px;
  }
  .chart-shell {
    gap: 5px;
  }
  .trend-label {
    font-size: 9px;
  }
  .form-section {
    padding: 15px;
  }
}

@media (max-width: 430px) {
  .metric-grid {
    gap: 9px;
  }
  .metric-card {
    min-height: 116px;
    padding: 14px;
  }
  .metric-label {
    gap: 5px;
    font-size: 11px;
  }
  .metric-icon {
    width: 26px;
    height: 26px;
  }
  .metric-value {
    font-size: 21px;
  }
  .metric-value small {
    font-size: 10.5px;
  }
  .summary-tile strong {
    font-size: 18px;
  }
}

@media (max-width: 360px) {
  .metric-grid,
  .summary-strip {
    grid-template-columns: 1fr;
  }
  .filter-bar .field {
    flex-basis: 100%;
  }
}

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

@media print {
  body {
    background: #fff;
    font-size: 9px;
  }
  .panel,
  .table-wrap,
  .metric-card,
  .summary-tile {
    background: #fff !important;
    box-shadow: none !important;
  }
  .data-table th,
  .data-table td {
    padding: 5px 6px;
    font-size: 8px;
  }
}
