* {
  box-sizing: border-box;
}

:root {
  --bg: #edf1f2;
  --bg-deep: #d8dfe3;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-soft: rgba(246, 248, 247, 0.92);
  --line: rgba(65, 82, 97, 0.12);
  --line-strong: rgba(65, 82, 97, 0.24);
  --text: #18232d;
  --muted: #66727f;
  --primary: #42596c;
  --primary-light: #60798e;
  --accent: #8c7b66;
  --danger: #a75d5d;
  --warning: #9d7b49;
  --success: #456a5a;
  --sidebar: #121a21;
  --sidebar-line: rgba(255, 255, 255, 0.08);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(96, 121, 142, 0.16), transparent 30%),
    radial-gradient(circle at right center, rgba(140, 123, 102, 0.12), transparent 26%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

.hidden {
  display: none !important;
}

.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card,
.table-card,
.modal-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(24, 36, 46, 0.1);
  backdrop-filter: blur(20px);
}

.login-card {
  width: min(420px, 100%);
  padding: 34px;
}

.brand-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(66, 89, 108, 0.1);
  color: var(--primary);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-title {
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand-subtitle,
.muted-text,
.section-header p,
.helper-text {
  color: var(--muted);
}

.text-input {
  width: 100%;
  margin-top: 14px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(247, 248, 247, 0.96);
  font-size: 15px;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.text-input:focus,
.status-select:focus,
.followup-input:focus,
.pager-select:focus {
  outline: none;
  border-color: rgba(66, 89, 108, 0.42);
  box-shadow: 0 0 0 4px rgba(96, 121, 142, 0.12);
  background: #fff;
}

.compact {
  margin-top: 0;
}

.primary-button,
.ghost-button,
.nav-button,
.link-button {
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.primary-button:hover,
.ghost-button:hover,
.nav-button:hover,
.link-button:hover {
  transform: translateY(-1px);
}

.primary-button[disabled],
.ghost-button[disabled],
.nav-button[disabled],
.link-button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.primary-button {
  margin-top: 16px;
  padding: 13px 18px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  box-shadow: 0 16px 28px rgba(66, 89, 108, 0.2);
}

.compact-button {
  margin-top: 0;
}

.ghost-button,
.link-button {
  padding: 10px 14px;
  background: rgba(66, 89, 108, 0.08);
  color: var(--primary);
  border: 1px solid rgba(66, 89, 108, 0.08);
}

.danger-outline {
  background: rgba(167, 93, 93, 0.08);
  color: var(--danger);
  border-color: rgba(167, 93, 93, 0.18);
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
}

.sidebar {
  padding: 28px 22px 24px;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at top, rgba(96, 121, 142, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    var(--sidebar);
  color: #eef2f4;
  border-right: 1px solid var(--sidebar-line);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04);
}

.sidebar-brand {
  padding: 16px 14px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-kicker {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sidebar-title {
  margin-top: 14px;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  font-size: 24px;
  font-weight: 700;
}

.sidebar-subtitle {
  margin-top: 8px;
  color: rgba(244, 246, 241, 0.74);
}

.sidebar-user {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(244, 246, 241, 0.92);
  font-weight: 600;
}

.sidebar-divider {
  height: 1px;
  margin: 18px 4px 16px;
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-group-label {
  margin-bottom: 2px;
  padding: 0 8px;
  color: rgba(244, 246, 241, 0.58);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-button {
  width: 100%;
  margin-top: 10px;
  padding: 14px 16px;
  text-align: left;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
}

.nav-button.active {
  background: linear-gradient(135deg, rgba(96, 121, 142, 0.32), rgba(140, 123, 102, 0.22));
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 10px 20px rgba(0, 0, 0, 0.14);
}

.nav-button.active::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.16));
}

.sidebar-footer {
  margin-top: auto;
  padding: 18px 16px 0;
}

.sidebar-footer-label {
  color: rgba(244, 246, 241, 0.58);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sidebar-footer-value {
  margin-top: 10px;
  color: rgba(244, 246, 241, 0.84);
  line-height: 1.7;
}

.content-shell {
  min-width: 0;
}

.content-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 30px 0;
}

.content-kicker,
.section-kicker {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.content-title {
  margin-top: 8px;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  font-size: 28px;
  font-weight: 700;
}

.content-topbar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.content-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.soft-badge,
.header-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
}

.soft-badge {
  background: rgba(66, 89, 108, 0.08);
  color: var(--primary);
  border: 1px solid rgba(66, 89, 108, 0.08);
}

.content {
  padding: 24px 30px 36px;
  max-width: 1560px;
  min-width: 0;
}

.section {
  display: none;
}

.section.active {
  display: block;
}

.section-header {
  margin-bottom: 20px;
  padding: 28px 30px;
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(18, 26, 33, 0.98), rgba(66, 89, 108, 0.94)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 46px rgba(17, 25, 32, 0.18);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.section-header h1 {
  margin: 0;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  font-size: 34px;
  letter-spacing: 0.02em;
  color: #fff;
  position: relative;
  z-index: 1;
}

.section-header p {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.78);
  max-width: 760px;
}

.section-header::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -80px;
  top: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 72%);
}

.section-header-main,
.section-header-badges {
  position: relative;
  z-index: 1;
}

.section-header-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10px;
}

.welcome-panel {
  margin-bottom: 16px;
  padding: 30px 32px;
  border-radius: 26px;
  background:
    radial-gradient(circle at right top, rgba(140, 123, 102, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(245, 247, 247, 0.96));
  border: 1px solid rgba(65, 82, 97, 0.08);
  box-shadow: 0 18px 36px rgba(24, 36, 46, 0.08);
}

.welcome-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.welcome-panel-kicker {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(66, 89, 108, 0.08);
  color: var(--primary);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.welcome-panel-datetime {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  color: var(--muted);
  text-align: right;
}

.welcome-panel-date {
  font-size: 14px;
  line-height: 1.4;
}

.welcome-panel-time {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.welcome-panel-title {
  margin: 16px 0 0;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  font-size: 32px;
  line-height: 1.35;
  color: var(--text);
}

.welcome-panel-text {
  margin: 12px 0 0;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.8;
}

.quick-entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.quick-entry-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-height: 160px;
  padding: 22px 22px 24px;
  border: 1px solid rgba(65, 82, 97, 0.1);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(244, 246, 247, 0.96));
  box-shadow: 0 16px 28px rgba(24, 36, 46, 0.05);
  color: var(--text);
  text-align: left;
  overflow: hidden;
}

.quick-entry-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary-light), rgba(140, 123, 102, 0.72));
}

.quick-entry-card:hover {
  transform: translateY(-2px);
  border-color: rgba(66, 89, 108, 0.18);
  box-shadow: 0 18px 36px rgba(24, 36, 46, 0.08);
}

.quick-entry-card:focus-visible {
  outline: none;
  border-color: rgba(66, 89, 108, 0.26);
  box-shadow: 0 0 0 4px rgba(96, 121, 142, 0.14), 0 18px 36px rgba(24, 36, 46, 0.08);
}

.quick-entry-label {
  color: var(--primary);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quick-entry-card strong {
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  font-size: 22px;
  line-height: 1.4;
  color: var(--text);
}

.quick-entry-desc {
  margin-top: auto;
  color: var(--muted);
  line-height: 1.7;
}

.header-badge {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
}

.metric-card {
  padding: 20px 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 248, 252, 0.96));
  border: 1px solid rgba(82, 95, 127, 0.1);
  border-radius: 22px;
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, rgba(74, 124, 171, 0.7), rgba(123, 138, 183, 0.35));
}

.metric-card-primary::before {
  background: linear-gradient(90deg, rgba(47, 95, 143, 0.9), rgba(74, 124, 171, 0.45));
}

.metric-card-success::before {
  background: linear-gradient(90deg, rgba(47, 125, 100, 0.9), rgba(74, 170, 133, 0.4));
}

.metric-card-warning::before {
  background: linear-gradient(90deg, rgba(182, 134, 58, 0.9), rgba(230, 186, 88, 0.42));
}

.metric-card-danger::before {
  background: linear-gradient(90deg, rgba(186, 91, 91, 0.9), rgba(224, 126, 126, 0.45));
}

.metric-card-accent::before {
  background: linear-gradient(90deg, rgba(123, 138, 183, 0.9), rgba(162, 177, 225, 0.45));
}

.metric-card-muted::before {
  background: linear-gradient(90deg, rgba(102, 117, 143, 0.8), rgba(157, 167, 186, 0.4));
}

.metric-label {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.metric-value {
  margin-top: 12px;
  font-size: 38px;
  font-weight: 700;
  color: var(--text);
}

.metric-hero {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  gap: 18px;
  padding: 24px 26px;
  border-radius: 24px;
  background:
    radial-gradient(circle at right top, rgba(255, 255, 255, 0.14), transparent 24%),
    linear-gradient(135deg, rgba(18, 26, 33, 0.98), rgba(66, 89, 108, 0.94));
  color: #fff;
  box-shadow: 0 26px 50px rgba(17, 25, 32, 0.18);
}

.metric-hero-kicker {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.metric-hero h3 {
  margin: 14px 0 10px;
  font-size: 28px;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
}

.metric-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
}

.metric-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.metric-hero-tags .soft-badge {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.08);
}

.metric-hero-side {
  display: grid;
  gap: 12px;
}

.hero-stat {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stat span {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

.hero-stat strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
}

.table-card {
  padding: 18px 20px 20px;
}

.table-card h3 {
  margin: 0;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.result-panel {
  position: sticky;
  top: 24px;
  align-self: start;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.card-head-rich {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(65, 82, 97, 0.08);
}

.card-caption {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.7;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field-block {
  margin-bottom: 14px;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.check-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.check-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
}

.check-card input {
  margin-top: 3px;
}

.module-config-list {
  display: grid;
  gap: 14px;
}

.module-editor {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(248, 247, 244, 0.94), rgba(243, 241, 236, 0.94));
}

.module-editor-head {
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 700;
}

.module-editor summary {
  cursor: pointer;
  list-style: none;
}

.module-editor summary::-webkit-details-marker {
  display: none;
}

.module-editor-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.module-editor-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.module-editor-body {
  margin-top: 12px;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.check-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  font-size: 14px;
}

.button-row-left {
  display: flex;
  justify-content: flex-start;
}

.toolbar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(65, 82, 97, 0.08);
  box-shadow: 0 16px 30px rgba(24, 36, 46, 0.05);
}

.service-order-toolbar {
  grid-template-columns: 2fr 1fr auto;
}

.table-wrap {
  margin-top: 16px;
  overflow-x: auto;
  max-height: min(62vh, 620px);
  overflow-y: auto;
  border: 1px solid rgba(65, 82, 97, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}

th,
td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 14px;
}

tbody tr:nth-child(even) td {
  background: rgba(247, 249, 250, 0.72);
}

tbody tr:hover td {
  background: rgba(236, 241, 245, 0.9);
}

th {
  color: var(--muted);
  font-weight: 600;
  position: sticky;
  top: 0;
  background: rgba(249, 250, 251, 0.98);
  z-index: 1;
}

.table-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.inline-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.table-footer {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 4px 2px;
  margin-top: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(249, 251, 254, 0.98) 28%);
}

.table-meta {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.table-pager {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pager-button {
  padding: 8px 12px;
}

.pager-button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.pager-text {
  color: var(--muted);
  font-size: 13px;
}

.pager-select {
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
}

.link-text {
  max-width: 360px;
  color: var(--primary);
  word-break: break-all;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status-badge.default {
  color: var(--primary);
  background: rgba(66, 89, 108, 0.1);
}

.status-badge.primary {
  color: var(--primary);
  background: rgba(96, 121, 142, 0.14);
}

.status-badge.success {
  color: var(--success);
  background: rgba(69, 105, 90, 0.14);
}

.status-badge.warning {
  color: var(--warning);
  background: rgba(157, 123, 73, 0.14);
}

.status-badge.danger {
  color: var(--danger);
  background: rgba(167, 93, 93, 0.14);
}

.status-badge.accent {
  color: var(--accent);
  background: rgba(140, 123, 102, 0.14);
}

.status-badge.muted {
  color: var(--muted);
  background: rgba(102, 114, 127, 0.12);
}

.stats-layout,
.archive-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.archive-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.archive-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.archive-form-grid .field-block {
  margin-bottom: 0;
}

.archive-form-grid .field-span-2 {
  grid-column: 1 / -1;
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(28, 41, 49, 0.42);
}

.modal-card {
  width: min(960px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 24px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detail-content {
  margin-top: 16px;
  line-height: 1.8;
}

.detail-empty {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px dashed rgba(65, 82, 97, 0.18);
  color: var(--muted);
  background: rgba(247, 248, 249, 0.78);
}

.detail-block {
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 246, 242, 0.96), rgba(243, 241, 237, 0.96));
}

.detail-block h4 {
  margin: 0 0 10px;
}

.detail-actions {
  margin-top: 16px;
}

#statisticsSection .table-wrap,
#archivesSection .table-wrap {
  max-height: none;
  overflow-y: visible;
}

#statisticsSection table,
#archivesSection table {
  min-width: 100%;
}

#statisticsSection th,
#archivesSection th {
  position: static;
}

#statisticsSection .table-footer,
#archivesSection .table-footer {
  position: static;
  padding: 14px 0 0;
  background: transparent;
}

.status-select,
.followup-input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.92);
}

.followup-input {
  min-height: 70px;
  resize: vertical;
}

.qr-preview-card {
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  display: inline-flex;
}

.qr-image {
  width: 180px;
  height: 180px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
}

.warning-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(153, 128, 106, 0.12);
  color: #7f644b;
  line-height: 1.7;
}

.qr-modal {
  display: grid;
  gap: 14px;
}

#accessAddressPanel {
  margin-top: 18px;
}

.access-panel-title {
  margin: 0;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  font-size: 20px;
}

.access-panel-desc {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.8;
}

.access-list {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.access-item {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(248, 247, 244, 0.94), rgba(243, 241, 236, 0.94));
}

.access-item strong {
  display: block;
  margin-bottom: 8px;
}

.access-item .link-text + .link-text {
  margin-top: 8px;
}

.qr-modal .table-actions {
  justify-content: center;
}

.qr-modal .qr-preview-card {
  justify-content: center;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

#accessAddressPanel {
  grid-column: 1 / -1;
  margin-top: 0;
}

.dashboard-panel {
  min-height: 100%;
}

.panel-list {
  display: grid;
  gap: 12px;
}

.panel-list-item,
.process-step,
.resource-card,
.detail-section {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(65, 82, 97, 0.08);
  background: linear-gradient(180deg, rgba(248, 249, 250, 0.96), rgba(243, 245, 246, 0.96));
}

.panel-list-main,
.process-step-title,
.resource-value,
.cell-main,
.detail-section-title {
  font-weight: 700;
}

.panel-list-sub,
.panel-note,
.cell-sub,
.cell-meta,
.tiny-inline,
.empty-inline {
  color: var(--muted);
}

.panel-list-sub,
.panel-note,
.cell-sub,
.cell-meta {
  margin-top: 6px;
}

.panel-empty {
  padding: 18px 16px;
  border-radius: 18px;
  border: 1px dashed rgba(65, 82, 97, 0.18);
  color: var(--muted);
  background: rgba(247, 248, 249, 0.8);
}

.process-steps {
  display: grid;
  gap: 12px;
}

.process-step-index,
.rank-chip,
.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(66, 89, 108, 0.1);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.process-step-title {
  margin-top: 10px;
}

.process-step-desc {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.7;
}

.compact-steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
}

.compact-steps .process-step {
  text-align: center;
  padding: 12px;
}

.compact-steps .process-step-title {
  margin-top: 0;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.resource-label {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.resource-value {
  display: block;
  margin-top: 12px;
  font-size: 30px;
}

.cell-stack {
  min-width: 0;
}

.cell-main {
  color: var(--text);
  line-height: 1.6;
}

.cell-sub,
.cell-meta {
  line-height: 1.6;
  word-break: break-word;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  border: 1px solid rgba(65, 82, 97, 0.08);
  background: rgba(247, 248, 249, 0.94);
  color: var(--text);
}

.mini-tag.slate {
  background: rgba(66, 89, 108, 0.08);
  color: var(--primary);
}

.mini-tag.accent {
  background: rgba(140, 123, 102, 0.12);
  color: var(--accent);
}

.mini-tag.soft {
  background: rgba(69, 105, 90, 0.12);
  color: var(--success);
}

.mini-tag.warning {
  background: rgba(157, 123, 73, 0.12);
  color: var(--warning);
}

.score-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.score-pill.primary {
  color: var(--primary);
  background: rgba(96, 121, 142, 0.14);
}

.score-pill.success {
  color: var(--success);
  background: rgba(69, 105, 90, 0.14);
}

.score-pill.warning {
  color: var(--warning);
  background: rgba(157, 123, 73, 0.14);
}

.score-pill.danger {
  color: var(--danger);
  background: rgba(167, 93, 93, 0.14);
}

.score-meter strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
}

.score-track {
  width: 140px;
  height: 8px;
  border-radius: 999px;
  background: rgba(65, 82, 97, 0.08);
  overflow: hidden;
}

.score-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(96, 121, 142, 0.9), rgba(140, 123, 102, 0.72));
}

.detail-section + .detail-section {
  margin-top: 14px;
}

.detail-section-title {
  margin-bottom: 12px;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.detail-item {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(65, 82, 97, 0.08);
}

.detail-item.wide {
  grid-column: 1 / -1;
}

.detail-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}

.detail-item strong {
  display: block;
  word-break: break-word;
}

.detail-list {
  display: grid;
  gap: 10px;
}

.detail-list-row {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  word-break: break-word;
}

.modal-form-grid {
  margin-top: 16px;
}

.history-list {
  display: grid;
  gap: 12px;
}

.history-item {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(65, 82, 97, 0.08);
  background: rgba(255, 255, 255, 0.86);
}

.history-item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.history-item-head strong {
  font-size: 15px;
  line-height: 1.5;
}

.history-item-head span,
.history-item-sub,
.history-item-meta {
  color: var(--muted);
}

.history-item-sub,
.history-item-note,
.history-item-meta {
  margin-top: 6px;
  word-break: break-word;
}

.history-item-note {
  color: var(--text);
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
  }

  .sidebar-brand,
  .sidebar-footer,
  .content-topbar,
  .section-header {
    width: 100%;
  }

  .content-topbar,
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .content-topbar-actions {
    justify-content: flex-start;
  }

  .section-header-badges {
    justify-content: flex-start;
  }

  .nav-button {
    width: auto;
    margin-top: 0;
  }

  .split-layout {
    grid-template-columns: 1fr;
  }

  .result-panel {
    position: static;
  }

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

  .dashboard-grid,
  .resource-grid,
  .compact-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .content-topbar {
    padding: 18px 18px 0;
  }

  .content {
    padding: 18px;
  }

  .form-grid,
  .archive-form-grid,
  .toolbar,
  .service-order-toolbar {
    grid-template-columns: 1fr;
  }

  .stats-layout,
  .archive-grid,
  .dashboard-grid,
  .resource-grid,
  .quick-entry-grid,
  .detail-grid,
  .compact-steps {
    grid-template-columns: 1fr;
  }

  .welcome-panel {
    padding: 24px 20px;
  }

  .welcome-panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .welcome-panel-datetime {
    align-items: flex-start;
    text-align: left;
  }

  .welcome-panel-title {
    font-size: 28px;
  }

  .table-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .table-pager {
    justify-content: flex-start;
  }

  .history-item-head {
    flex-direction: column;
  }

  table {
    min-width: 760px;
  }
}
