:root {
  color-scheme: light;
  --bone: #f7f3f0;
  --paper: #fcfaf8;
  --paper-strong: #fffdfb;
  --ink: #333333;
  --ink-soft: #68615f;
  --muted: #918885;
  --line: #e3d8d3;
  --rose-gray: #d7beb8;
  --warm-red: #c85f6a;
  --deep-red: #7c3843;
  --red-soft: #f3dedc;
  --gold: #d4af37;
  --gold-soft: #f0e6c5;
  --success: #557c68;
  --error: #a13e49;
  --shadow: 0 18px 50px rgba(65, 44, 40, 0.08);
  --sidebar-width: 244px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--bone);
  color: var(--ink);
}

body {
  font-size: 15px;
  line-height: 1.55;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(200, 95, 106, 0.24);
  outline-offset: 2px;
}

button,
.user-row {
  -webkit-tap-highlight-color: transparent;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[hidden] {
  display: none !important;
}

.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;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--deep-red);
  font-size: 12px;
  font-weight: 700;
}

.brand-mark {
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  color: var(--deep-red);
  font-size: 27px;
  font-weight: 700;
}

.login-view {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(360px, 46%) minmax(480px, 54%);
  overflow: hidden;
}

.login-brand {
  position: relative;
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(48px, 7vw, 104px);
  overflow: hidden;
  background: var(--deep-red);
  color: var(--bone);
}

.login-brand::before {
  position: absolute;
  inset: 7% 11% 9% auto;
  width: min(31vw, 410px);
  border: 1px solid rgba(247, 243, 240, 0.2);
  border-left: 0;
  border-radius: 0 240px 240px 0;
  content: "";
  transform: rotate(-8deg);
}

.login-brand::after {
  position: absolute;
  top: 21%;
  right: 17%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 10px rgba(212, 175, 55, 0.1);
  content: "";
}

.login-brand .brand-mark {
  position: absolute;
  top: clamp(42px, 6vw, 76px);
  left: clamp(48px, 7vw, 104px);
  color: var(--bone);
  font-size: 31px;
}

.brand-rule {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 2px;
  margin-bottom: 28px;
  background: var(--gold);
}

.login-brand p {
  position: relative;
  z-index: 1;
  max-width: 13em;
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(25px, 3vw, 40px);
  line-height: 1.55;
}

.login-panel {
  position: relative;
  align-self: center;
  width: min(440px, calc(100% - 64px));
  margin: auto;
}

.login-seal {
  position: absolute;
  top: -70px;
  right: -24px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rose-gray);
  border-radius: 50%;
}

.login-seal::before,
.login-seal span {
  position: absolute;
  content: "";
}

.login-seal::before {
  top: 50%;
  left: -70px;
  width: 70px;
  border-top: 1px solid var(--rose-gray);
}

.login-seal span {
  inset: 13px;
  border-radius: 50%;
  background: var(--gold);
}

.login-panel h1 {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: 32px;
  line-height: 1.35;
}

.login-intro {
  max-width: 34em;
  margin: 14px 0 32px;
  color: var(--ink-soft);
}

.login-panel label {
  display: block;
  margin: 18px 0 8px;
  font-size: 13px;
  font-weight: 650;
}

.login-panel input,
.search-field input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  color: var(--ink);
  padding: 0 14px;
  transition: border-color 160ms ease-out, box-shadow 160ms ease-out;
}

.login-panel input:hover,
.search-field input:hover {
  border-color: var(--rose-gray);
}

.login-panel input:focus,
.search-field input:focus {
  border-color: var(--warm-red);
  box-shadow: 0 0 0 3px rgba(200, 95, 106, 0.1);
  outline: none;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 54px;
}

.password-field .icon-button {
  position: absolute;
  top: 1px;
  right: 1px;
}

.primary-button,
.secondary-button,
.text-button,
.icon-button,
.nav-item,
.logout-button {
  border: 0;
  cursor: pointer;
  transition: background-color 160ms ease-out, color 160ms ease-out, border-color 160ms ease-out, transform 90ms ease-out;
}

.primary-button:active,
.secondary-button:active,
.text-button:active,
.icon-button:active,
.nav-item:active,
.logout-button:active {
  transform: scale(0.98);
}

.primary-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 8px;
  background: var(--deep-red);
  color: var(--paper-strong);
  font-weight: 700;
}

.primary-button:hover {
  background: #672e37;
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.login-button {
  width: 100%;
  margin-top: 26px;
}

.form-error {
  margin: 12px 0 0;
  color: var(--error);
  font-size: 13px;
}

.login-footnote {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.app-shell {
  min-height: 100dvh;
}

.sidebar {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: #f0e9e5;
  padding: 30px 18px 22px;
}

.sidebar-brand {
  display: flex;
  min-height: 54px;
  align-items: baseline;
  gap: 10px;
  padding: 0 12px;
}

.admin-label {
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: grid;
  gap: 6px;
  margin-top: 34px;
}

.nav-item,
.logout-button {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-soft);
  padding: 0 14px;
  text-align: left;
}

.nav-item:hover,
.logout-button:hover {
  background: rgba(124, 56, 67, 0.06);
  color: var(--deep-red);
}

.nav-item.is-active {
  background: var(--paper-strong);
  color: var(--deep-red);
  box-shadow: 0 5px 18px rgba(65, 44, 40, 0.06);
  font-weight: 700;
}

.nav-item svg,
.logout-button svg {
  width: 19px;
  height: 19px;
}

.privacy-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: auto 6px 12px;
  border-top: 1px solid var(--line);
  padding: 20px 8px 8px;
  color: var(--ink-soft);
}

.privacy-note svg {
  color: var(--gold);
}

.privacy-note strong,
.privacy-note span {
  display: block;
}

.privacy-note strong {
  color: var(--ink);
  font-size: 13px;
}

.privacy-note span {
  font-size: 11px;
}

.logout-button {
  width: 100%;
}

.workspace {
  min-height: 100dvh;
  margin-left: var(--sidebar-width);
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: 98px;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid rgba(227, 216, 211, 0.86);
  background: rgba(247, 243, 240, 0.96);
  padding: 18px clamp(24px, 4vw, 54px);
}

.topbar h1 {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: 25px;
  line-height: 1.2;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.service-indicator {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 12px;
}

.service-indicator i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(212, 175, 55, 0.12);
}

.icon-button {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-soft);
}

.icon-button:hover {
  background: rgba(124, 56, 67, 0.06);
  color: var(--deep-red);
}

.menu-button {
  display: none;
}

.main-content {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 36px clamp(24px, 4vw, 54px) 64px;
}

.view {
  display: none;
}

.view.is-visible {
  display: block;
  animation: view-in 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.loading-state {
  display: grid;
  gap: 14px;
}

.loading-state span {
  display: block;
  height: 82px;
  border-radius: 8px;
  background: #eee6e2;
  animation: loading-fade 1.2s ease-in-out infinite alternate;
}

.loading-state span:nth-child(2) {
  width: 76%;
  animation-delay: 120ms;
}

.loading-state span:nth-child(3) {
  width: 88%;
  animation-delay: 240ms;
}

@keyframes loading-fade {
  to { opacity: 0.48; }
}

.metric-ledger {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(480px, 2.25fr);
  min-height: 168px;
  border-top: 1px solid var(--rose-gray);
  border-bottom: 1px solid var(--rose-gray);
}

.metric-primary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line);
  padding: 26px 30px 26px 4px;
}

.metric-label,
.metric-secondary span {
  color: var(--ink-soft);
  font-size: 13px;
}

.metric-primary strong {
  margin: 2px 0;
  color: var(--deep-red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 54px;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.metric-hint {
  color: var(--muted);
  font-size: 12px;
}

.metric-secondary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
}

.metric-secondary div {
  min-width: 0;
  padding: 28px clamp(20px, 3vw, 42px);
}

.metric-secondary div + div {
  border-left: 1px solid var(--line);
}

.metric-secondary strong,
.service-list dd {
  display: block;
  margin-top: 6px;
  font-size: 25px;
  font-variant-numeric: tabular-nums;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(270px, 0.75fr);
  gap: clamp(24px, 4vw, 50px);
  margin-top: 42px;
}

.chart-section {
  min-width: 0;
}

.section-heading {
  display: flex;
  min-height: 54px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.section-heading h2,
.editorial-note h2,
.service-hero h2,
.boundary-section h2,
.detail-empty h2,
.user-detail h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: 21px;
  line-height: 1.35;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 11px;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chart-legend i {
  display: block;
  width: 18px;
  height: 2px;
}

.legend-user {
  background: var(--warm-red);
}

.legend-record {
  background: var(--gold);
}

.trend-chart {
  min-height: 240px;
  margin-top: 12px;
  border-bottom: 1px solid var(--line);
}

.trend-chart svg {
  display: block;
  width: 100%;
  height: 240px;
  overflow: visible;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-empty {
  display: flex;
  min-height: 240px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-align: center;
}

.chart-empty span {
  position: relative;
  width: 92px;
  height: 42px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--rose-gray);
}

.chart-empty span::after {
  position: absolute;
  right: -4px;
  bottom: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.chart-empty strong,
.chart-empty small {
  display: block;
}

.chart-empty strong {
  color: var(--ink-soft);
  font-size: 13px;
}

.chart-empty small {
  margin-top: 4px;
  font-size: 11px;
}

.editorial-note {
  position: relative;
  border-top: 1px solid var(--warm-red);
  background: var(--red-soft);
  padding: 28px;
}

.gold-node {
  position: absolute;
  top: -6px;
  right: 30px;
  width: 12px;
  height: 12px;
  border: 3px solid var(--red-soft);
  border-radius: 50%;
  background: var(--gold);
  box-sizing: content-box;
}

.loop-list {
  display: grid;
  gap: 19px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.loop-list li {
  display: grid;
  grid-template-columns: 31px 1fr;
  align-items: center;
  gap: 12px;
}

.loop-list > li > span {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid var(--rose-gray);
  border-radius: 50%;
  background: var(--paper);
  color: var(--deep-red);
  font-family: Georgia, serif;
}

.loop-list strong,
.loop-list small {
  display: block;
}

.loop-list strong {
  font-size: 13px;
}

.loop-list small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 11px;
}

.recent-section {
  margin-top: 48px;
}

.text-button {
  min-height: 44px;
  background: transparent;
  color: var(--deep-red);
  padding: 0 4px;
  font-weight: 650;
}

.text-button:hover {
  color: var(--warm-red);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-top: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 15px 14px;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

td strong,
td small {
  display: block;
}

td small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.empty-row {
  height: 110px;
  color: var(--muted);
  text-align: center;
}

.users-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.search-field {
  position: relative;
  width: min(420px, 100%);
}

.search-field svg {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.search-field input {
  padding-left: 44px;
}

.users-toolbar > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.users-layout {
  display: grid;
  grid-template-columns: minmax(560px, 1.45fr) minmax(300px, 0.75fr);
  gap: 26px;
  align-items: start;
}

.user-list-panel,
.user-detail {
  min-width: 0;
}

.user-list-panel {
  border-top: 1px solid var(--rose-gray);
}

.users-table tbody tr {
  cursor: pointer;
  transition: background-color 140ms ease-out;
}

.users-table tbody tr:hover,
.users-table tbody tr.is-selected {
  background: rgba(200, 95, 106, 0.06);
}

.users-table tbody tr:focus-visible {
  outline: 3px solid rgba(200, 95, 106, 0.24);
  outline-offset: -3px;
}

.row-arrow {
  color: var(--rose-gray);
}

.row-arrow svg {
  width: 16px;
  height: 16px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px 0;
}

.pagination span {
  color: var(--muted);
  font-size: 12px;
}

.secondary-button {
  min-height: 44px;
  border: 1px solid var(--rose-gray);
  border-radius: 8px;
  background: transparent;
  padding: 0 17px;
  font-size: 13px;
  font-weight: 650;
}

.secondary-button:hover {
  border-color: var(--deep-red);
  color: var(--deep-red);
}

.user-detail {
  position: sticky;
  top: 124px;
  min-height: 430px;
  border-top: 1px solid var(--warm-red);
  background: var(--paper-strong);
  box-shadow: var(--shadow);
  padding: 28px;
}

.detail-empty {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-align: center;
}

.detail-empty p {
  max-width: 22em;
  margin: 10px 0 0;
  font-size: 13px;
}

.empty-line {
  position: relative;
  width: 88px;
  height: 54px;
  margin-bottom: 24px;
  border: 1px solid var(--rose-gray);
  border-left: 0;
  border-radius: 0 48px 48px 0;
}

.empty-line::after {
  position: absolute;
  top: 20px;
  right: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

.detail-header > div:first-child {
  min-width: 0;
}

.detail-header p,
.detail-section p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.detail-header p {
  overflow-wrap: anywhere;
}

.detail-counts {
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
}

.detail-counts span {
  min-width: 48px;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.detail-counts strong {
  display: block;
  color: var(--deep-red);
  font-size: 20px;
}

.detail-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 20px 0;
}

.detail-meta div {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.detail-meta span,
.detail-section > span {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.detail-meta strong {
  display: block;
  margin-top: 2px;
  font-size: 13px;
}

.detail-section {
  margin-top: 22px;
}

.detail-section h3 {
  margin: 3px 0 12px;
  font-size: 14px;
}

.detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  border-bottom: 1px solid var(--line);
  padding: 0 0 10px;
  font-size: 12px;
}

.detail-list small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.service-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  border-top: 1px solid var(--rose-gray);
  border-bottom: 1px solid var(--rose-gray);
  padding: 28px 4px;
}

.service-hero p:last-child {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.service-pulse {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid var(--rose-gray);
  border-radius: 50%;
}

.service-pulse span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 7px rgba(212, 175, 55, 0.12);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 42px 0 0;
  border-top: 1px solid var(--line);
}

.service-list div {
  min-height: 116px;
  border-bottom: 1px solid var(--line);
  padding: 25px 4px;
}

.service-list div:not(:nth-child(3n + 1)) {
  padding-left: 28px;
}

.service-list div:not(:nth-child(3n)) {
  border-right: 1px solid var(--line);
  padding-right: 28px;
}

.service-list dt {
  color: var(--muted);
  font-size: 11px;
}

.service-list dd {
  margin-left: 0;
  font-size: 19px;
}

.boundary-section {
  display: grid;
  grid-template-columns: minmax(210px, 0.65fr) 1.35fr;
  gap: 38px;
  margin-top: 46px;
  background: var(--red-soft);
  padding: 30px;
}

.boundary-section ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.boundary-section li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
}

.boundary-section svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--deep-red);
}

.toast {
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  max-width: min(380px, calc(100vw - 48px));
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper-strong);
  box-shadow: var(--shadow);
  padding: 14px 18px;
  font-size: 13px;
  animation: toast-in 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.sidebar-scrim {
  position: fixed;
  z-index: 25;
  inset: 0;
  background: rgba(51, 51, 51, 0.32);
}

@media (max-width: 980px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .workspace {
    margin-left: 0;
  }

  .menu-button {
    display: inline-grid;
  }

  .overview-grid,
  .users-layout {
    grid-template-columns: 1fr;
  }

  .user-detail {
    position: static;
  }
}

@media (max-width: 760px) {
  .login-view {
    grid-template-columns: 1fr;
  }

  .login-brand {
    min-height: 220px;
    justify-content: flex-end;
    padding: 32px 28px;
  }

  .login-brand .brand-mark {
    top: 28px;
    left: 28px;
  }

  .login-brand p {
    max-width: 15em;
    font-size: 24px;
  }

  .brand-rule {
    margin-bottom: 14px;
  }

  .login-panel {
    width: calc(100% - 48px);
    padding: 46px 0;
  }

  .login-seal {
    display: none;
  }

  .topbar {
    min-height: 84px;
    padding: 14px 18px;
  }

  .topbar h1 {
    font-size: 21px;
  }

  .service-indicator {
    display: none;
  }

  .main-content {
    padding: 26px 18px 52px;
  }

  .metric-ledger {
    grid-template-columns: 1fr;
  }

  .metric-primary {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-right: 4px;
  }

  .metric-primary strong {
    font-size: 46px;
  }

  .metric-secondary div {
    padding: 20px 14px;
  }

  .metric-secondary div:first-child {
    padding-left: 4px;
  }

  .metric-secondary strong {
    font-size: 20px;
  }

  .chart-legend {
    display: none;
  }

  .editorial-note {
    padding: 24px;
  }

  .users-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .users-layout {
    display: flex;
    flex-direction: column;
  }

  .user-detail {
    display: none;
    order: -1;
    margin: 0 0 28px;
    padding: 22px;
  }

  .user-detail.has-content {
    display: block;
  }

  .table-wrap {
    overflow-x: hidden;
  }

  .recent-section table,
  .users-table {
    table-layout: fixed;
  }

  .recent-section th:nth-child(3),
  .recent-section td:nth-child(3),
  .recent-section th:nth-child(4),
  .recent-section td:nth-child(4),
  .users-table th:nth-child(2),
  .users-table td:nth-child(2),
  .users-table th:nth-child(3),
  .users-table td:nth-child(3) {
    display: none;
  }

  .recent-section th,
  .recent-section td,
  .users-table th,
  .users-table td {
    overflow: hidden;
    padding-right: 8px;
    padding-left: 8px;
    text-overflow: ellipsis;
  }

  .recent-section th:first-child,
  .recent-section td:first-child {
    width: 35%;
    padding-left: 4px;
  }

  .recent-section th:nth-child(2),
  .recent-section td:nth-child(2) {
    width: 31%;
  }

  .recent-section th:last-child,
  .recent-section td:last-child {
    width: 34%;
  }

  .users-table th:first-child,
  .users-table td:first-child {
    width: 48%;
    padding-left: 4px;
  }

  .users-table th:nth-child(4),
  .users-table td:nth-child(4) {
    width: 40%;
  }

  .users-table th:last-child,
  .users-table td:last-child {
    width: 12%;
  }

  .service-hero {
    grid-template-columns: auto 1fr;
  }

  .service-hero .secondary-button {
    grid-column: 1 / -1;
  }

  .service-list {
    grid-template-columns: 1fr 1fr;
  }

  .service-list div:not(:nth-child(3n + 1)),
  .service-list div:not(:nth-child(3n)) {
    border-right: 0;
    padding-right: 16px;
    padding-left: 4px;
  }

  .service-list div:nth-child(2n) {
    border-left: 1px solid var(--line);
    padding-left: 18px;
  }

  .boundary-section {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .boundary-section ul {
    grid-template-columns: 1fr;
  }
}

@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;
  }
}
