:root {
  --bg: #f7fbff;
  --surface: #ffffff;
  --surface-soft: #f3f9ff;
  --ink: #173747;
  --muted: #647d89;
  --line: rgba(66, 156, 244, 0.16);
  --line-strong: rgba(66, 156, 244, 0.28);
  --primary: #429cf4;
  --primary-dark: #2f80d2;
  --primary-soft: #edf7ff;
  --accent: #5b9f13;
  --accent-soft: #f3ffe1;
  --warning: #b37c1e;
  --warning-soft: #fff8e8;
  --success: #5b9f13;
  --success-soft: #f3ffe4;
  --danger: #c7495b;
  --shadow: 0 10px 28px rgba(49, 99, 138, 0.09);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  background: var(--bg);
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family:
    "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC",
    system-ui, sans-serif;
  line-height: 1.55;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.hidden {
  display: none !important;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 13px;
}

.danger-text {
  color: var(--danger);
}

.success-text {
  color: var(--success);
}

.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 118px;
  padding: 20px max(16px, calc((100vw - 1180px) / 2)) 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  background-color: #0b1a22;
  background:
    linear-gradient(
      90deg,
      rgba(8, 18, 26, 0.62) 0%,
      rgba(8, 18, 26, 0.18) 48%,
      rgba(8, 18, 26, 0.56) 100%
    ),
    url("/static/assets/header-desktop.jpg") center / cover no-repeat;
  background-color: #0b1a22;
  background-image:
    linear-gradient(
      90deg,
      rgba(8, 18, 26, 0.62) 0%,
      rgba(8, 18, 26, 0.18) 48%,
      rgba(8, 18, 26, 0.56) 100%
    ),
    image-set(
      url("/static/assets/header-desktop-2880.webp") type("image/webp") 1x,
      url("/static/assets/header-desktop-3840.webp") type("image/webp") 2x,
      url("/static/assets/header-desktop.jpg") type("image/jpeg") 1x
    );
}

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--primary);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.08);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.02;
  text-align: center;
}

.brand-copy {
  min-width: 0;
}

.brand-platform {
  overflow: hidden;
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-slogan {
  overflow: hidden;
  margin-top: 5px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-slogan .em {
  color: var(--primary);
}

.topbar .brand-platform,
.admin-topbar .brand-platform {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.62);
}

.topbar .brand-slogan,
.admin-topbar .brand-slogan {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.58);
}

.topbar .brand-slogan .em,
.admin-topbar .brand-slogan .em {
  color: #a9eb37;
}

.topbar .header-user-name,
.admin-topbar .header-user-name {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.58);
}

.topbar .header-user-panel .btn,
.admin-topbar .header-user-panel .btn {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.58);
}

.topbar .header-user-panel .btn:hover,
.admin-topbar .header-user-panel .btn:hover {
  color: #d8ff9f;
}

.topbar .btn {
  min-height: 38px;
  padding: 7px 12px;
  border-radius: 9px;
  font-size: 12px;
}

.header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
}

.header-action-stack,
.admin-user-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.support-credit {
  overflow: hidden;
  color: #7a8694;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-action-stack .support-credit,
.admin-user-stack .support-credit {
  margin-top: 0;
}

.page-shell {
  flex: 1;
  width: min(100% - 28px, 920px);
  margin: 0 auto;
  padding: 20px 0 44px;
}

.resident-home {
  display: grid;
  gap: 20px;
}

.resident-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.resident-feature-card {
  --feature-accent: #667085;
  --feature-soft: #f4f6f8;
  position: relative;
  display: flex;
  min-width: 0;
  aspect-ratio: 1 / 1;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background:
    linear-gradient(145deg, #ffffff, var(--feature-soft));
  box-shadow: var(--shadow);
  text-align: center;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.resident-feature-card::before {
  position: absolute;
  top: 0;
  right: 18px;
  left: 18px;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: var(--feature-accent);
  content: "";
}

.resident-feature-card.create {
  --feature-accent: var(--primary);
  --feature-soft: #fff1ef;
}

.resident-feature-card.orders {
  --feature-accent: var(--accent);
  --feature-soft: #e9f7f4;
}

.resident-feature-card.reserved {
  --feature-accent: #8a94a3;
  --feature-soft: #f5f7f9;
  cursor: not-allowed;
  opacity: 0.82;
}

.resident-feature-card:not(:disabled):hover,
.resident-feature-card:not(:disabled):focus-visible {
  border-color: var(--feature-accent);
  box-shadow: 0 14px 30px rgba(23, 33, 43, 0.13);
  outline: none;
  transform: translateY(-4px);
}

.resident-feature-card:not(:disabled):active {
  transform: translateY(-1px) scale(0.985);
}

.resident-feature-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--feature-accent) 35%, transparent);
  border-radius: 50%;
  color: #fff;
  background: var(--feature-accent);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--feature-accent) 22%, transparent);
  font-size: 22px;
  font-weight: 800;
}

.resident-feature-card strong {
  font-size: 20px;
  line-height: 1.25;
}

.resident-feature-card small {
  max-width: 100%;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.resident-ad-zone {
  display: grid;
  min-height: 190px;
  place-items: center;
  overflow: hidden;
  border: 1px dashed #b8c2cc;
  border-radius: 8px;
  color: #7a8694;
  background:
    linear-gradient(135deg, rgba(180, 35, 24, 0.035), rgba(15, 118, 110, 0.045)),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.72) 0 12px,
      rgba(244, 246, 248, 0.72) 12px 24px
    );
}

.resident-ad-zone strong {
  padding: 8px 14px;
  border: 1px solid rgba(122, 134, 148, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  font-size: 15px;
}

.resident-ad-zone.resident-ad-blank {
  display: block;
  height: 190px;
  min-height: 190px;
  border: 0;
  background: transparent;
}

@media (max-width: 720px) {
  .resident-ad-zone.resident-ad-blank {
    height: 150px;
    min-height: 150px;
  }
}

.resident-subview-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.resident-subview-head h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
}

.resident-subview-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.resident-back-button {
  min-height: 38px;
  flex: 0 0 auto;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}

.resident-back-button:hover,
.resident-back-button:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}

.page-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.page-intro-copy {
  display: flex;
  min-height: 46px;
  align-items: center;
}

.page-intro h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.3;
}

.page-intro p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.tab {
  min-height: 36px;
  padding: 7px 15px;
  border: 0;
  border-radius: 6px;
  color: #4d6572;
  background: transparent;
}

.tab:hover {
  color: var(--ink);
  background: var(--surface-soft);
}

.tab.active {
  color: #fff;
  background: #2477c2;
}

.panel {
  margin-bottom: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.panel.flat {
  box-shadow: none;
}

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

.panel-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

/* 居民端步骤标题：步骤序号与标题同一行，用原步骤序号的红色、标题的字号 */
.panel-title.step-title {
  margin: 0 0 4px;
  color: var(--primary);
}

.panel-desc {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.section-kicker {
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

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

.form-grid .full {
  grid-column: 1 / -1;
}

.field {
  min-width: 0;
}

.field label,
.field-label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 700;
}

.field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}

.field-head label {
  margin-bottom: 0;
}

.field-label .required {
  color: var(--primary);
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

textarea {
  min-height: 118px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

input[type="checkbox"] {
  width: 17px;
  min-height: 17px;
  padding: 0;
  accent-color: var(--primary);
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.input-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #fff;
  background: #2477c2;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.btn:hover {
  color: #fff;
  background: #1f6fb8;
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.btn-secondary {
  border-color: var(--line-strong);
  color: var(--ink);
  background: #fff;
}

.btn-secondary:hover {
  color: var(--ink);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.btn.recording {
  border-color: var(--danger);
  color: #fff;
  background: var(--danger);
}

.btn-ghost {
  min-height: 36px;
  border-color: transparent;
  color: #1f6fb8;
  background: transparent;
}

.btn-ghost:hover {
  color: #155a97;
  background: #edf5fb;
}

.header-user-panel {
  width: 260px;
  min-width: 240px;
}

.header-user-name {
  overflow: hidden;
  width: 100%;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 账号名称下一行：修改密码 / 退出，与账号右对齐 */
.header-user-links {
  display: flex;
  align-items: center;
  gap: 14px;
  align-self: flex-end;
}

.header-user-panel .btn {
  width: 150px;
  min-height: 34px;
  align-self: flex-end;
  justify-content: flex-end;
  padding: 3px 0;
  border: 0;
  color: var(--primary);
  background: transparent;
  box-shadow: none;
  font-size: 12px;
  text-align: right;
}

.header-user-panel .btn:hover {
  color: var(--primary-dark);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.header-user-links .btn {
  width: auto;
  min-height: 26px;
  padding: 0;
  font-size: 12px;
}

.btn-danger {
  background: #a72f3d;
}

.btn-danger:hover {
  background: #862531;
}

.btn-success {
  background: #246b45;
}

.btn-success:hover {
  background: #1b5436;
}

.btn-outline-danger {
  border-color: #a72f3d;
  color: #a72f3d;
  background: #fff;
}

.btn-outline-danger:hover {
  color: #fff;
  border-color: #862531;
  background: #862531;
}

.transfer-pending-box {
  padding: 10px 12px;
  border: 1px solid #f0b27a;
  border-radius: 6px;
  background: var(--warning-soft);
}

.action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
}

.btn-small {
  min-height: 34px;
  padding: 6px 11px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

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

.category-option {
  min-height: 72px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.category-option:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.category-option.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: inset 0 0 0 1px var(--primary);
}

.category-option strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
}

.category-option span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.upload-box {
  display: grid;
  min-height: 90px;
  place-items: center;
  padding: 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 7px;
  color: var(--muted);
  background: var(--surface-soft);
  text-align: center;
}

.upload-box:hover {
  border-color: #2477c2;
  color: #155a97;
}

.voice-input-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px dashed var(--line-strong);
  border-radius: 7px;
  background: var(--surface-soft);
}

.upload-box input {
  display: none;
}

.file-previews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 10px;
}

.file-preview {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-soft);
}

.file-preview img,
.file-preview video,
.file-preview audio {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.voice-previews .file-preview {
  aspect-ratio: auto;
  min-height: 54px;
}

.voice-previews .file-preview audio {
  height: 54px;
  object-fit: contain;
}

.file-preview button {
  position: absolute;
  top: 5px;
  right: 5px;
  min-height: 26px;
  padding: 2px 7px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  background: rgba(23, 33, 43, 0.78);
  font-size: 12px;
}

.notice-box {
  padding: 11px 13px;
  border-left: 3px solid var(--warning);
  border-radius: 0 6px 6px 0;
  color: #704b12;
  background: var(--warning-soft);
  font-size: 13px;
}

.notice-box.info {
  border-left-color: var(--accent);
  color: #175a54;
  background: var(--accent-soft);
}

.notice-box.danger {
  border-left-color: var(--danger);
  color: #7f1d1d;
  background: var(--primary-soft);
}

.ticket-result {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid #c7e8e2;
  border-radius: var(--radius);
  background: var(--accent-soft);
}

.ticket-number {
  margin: 3px 0 8px;
  font-size: 24px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.ticket-code {
  margin: 4px 0 10px;
  color: var(--muted);
  font-size: 14px;
}

.ticket-code strong {
  color: var(--primary);
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.24em;
}

.save-code-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 2px solid #d92d20;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff1ef 0%, #fff8e6 100%);
  box-shadow: 0 8px 20px rgba(180, 35, 24, 0.16);
}

.save-code-notice-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 6px 12px;
  border-radius: 6px;
  color: #fff;
  background: #d92d20;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.14);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.save-code-notice-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
  color: #7a271a;
}

.save-code-notice-copy strong {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
}

.save-code-notice-copy span {
  color: #9a3412;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.query-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px auto;
  gap: 9px;
}

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

.detail-item {
  min-width: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.detail-item dt {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 12px;
}

.detail-item dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.timeline {
  display: grid;
  gap: 0;
  margin-top: 8px;
}

.timeline-item {
  position: relative;
  padding: 0 0 16px 22px;
  border-left: 1px solid var(--line-strong);
}

.timeline-item::before {
  position: absolute;
  top: 4px;
  left: -5px;
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.timeline-item:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.timeline-time {
  color: var(--muted);
  font-size: 12px;
}

.timeline-title {
  margin: 1px 0 2px;
  font-weight: 700;
}

.timeline-item.current-owner-item {
  margin-top: 10px;
  padding: 10px 12px 10px 20px;
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  background: var(--accent-soft);
}

.timeline-item.current-owner-item::before {
  left: -6px;
  background: var(--accent);
}

.current-owner-item .timeline-time,
.current-owner-item .timeline-title {
  color: #0b5f58;
}

.rating-options {
  display: flex;
  gap: 10px;
}

.rating-option {
  min-width: 100px;
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  font-size: 14px;
  font-weight: 700;
}

.rating-option:hover {
  border-color: #2477c2;
  color: #1f6fb8;
}

.rating-option.active {
  border-color: #2477c2;
  color: #155a97;
  background: #edf5fb;
  box-shadow: inset 0 0 0 1px #2477c2;
}

.status-pill {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  color: #344054;
  background: #eef2f6;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill.resolved,
.status-pill.archived {
  color: #065f46;
  background: #d1fae5;
}

.status-pill.accepted {
  color: #115e59;
  background: #ccfbf1;
}

.status-pill.tl-ontime {
  color: #065f46;
  background: #d1fae5;
}

.status-pill.tl-late,
.status-pill.tl-overdue {
  color: #b42318;
  background: #fee4e2;
}

.status-pill.tl-ongoing {
  color: #475467;
  background: #eef2f6;
}

.status-pill.transfer-pending {
  color: #b54708;
  background: #fff6e8;
}

.status-pill.audit-result.success {
  color: #065f46;
  background: #d1fae5;
}

.status-pill.audit-result.failure {
  color: #b42318;
  background: #fee4e2;
}

.public-footer {
  padding: 0 14px 28px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.public-footer div + div {
  margin-top: 4px;
}

.site-footer {
  margin-top: auto;
  padding: 18px 14px 22px;
  border-top: 1px solid var(--line);
  color: #7a8694;
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

/* Work and admin */
.admin-body {
  min-width: 0;
}

#admin-app {
  min-height: 100vh;
  flex-direction: column;
}

#admin-app:not(.hidden) {
  display: flex;
}

.admin-topbar {
  position: sticky;
  z-index: 40;
  top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  background-color: #0b1a22;
  background:
    linear-gradient(
      90deg,
      rgba(8, 18, 26, 0.62) 0%,
      rgba(8, 18, 26, 0.18) 48%,
      rgba(8, 18, 26, 0.56) 100%
    ),
    url("/static/assets/header-desktop.jpg") center / cover no-repeat;
  background-color: #0b1a22;
  background-image:
    linear-gradient(
      90deg,
      rgba(8, 18, 26, 0.62) 0%,
      rgba(8, 18, 26, 0.18) 48%,
      rgba(8, 18, 26, 0.56) 100%
    ),
    image-set(
      url("/static/assets/header-desktop-2880.webp") type("image/webp") 1x,
      url("/static/assets/header-desktop-3840.webp") type("image/webp") 2x,
      url("/static/assets/header-desktop.jpg") type("image/jpeg") 1x
    );
}

.admin-topbar-inner {
  position: relative;
  display: flex;
  width: min(100% - 28px, 1380px);
  min-height: 118px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
}

.admin-nav-wrap {
  display: flex;
  width: min(100% - 28px, 1380px);
  margin: 0 auto;
  padding: 0 0 6px;
  overflow-x: auto;
  background: transparent;
}

.admin-nav {
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.admin-nav button {
  min-height: 30px;
  padding: 5px 12px;
  border: 0;
  border-radius: 6px;
  color: #4d6572;
  background: transparent;
  font-size: 11px;
}

.admin-nav button.active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 4px rgba(23, 33, 43, 0.1);
}

@media (min-width: 721px) {
  .admin-nav button {
    font-size: 13px;
    font-weight: 700;
  }
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.admin-content {
  flex: 1;
  width: min(100% - 28px, 1380px);
  margin: 0 auto;
  padding: 22px 0 48px;
}

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

.view-head h1 {
  margin: 0;
  font-size: 23px;
}

.view-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.stat-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.stat-card.is-clickable {
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.stat-card.is-clickable:hover,
.stat-card.is-clickable:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(180, 35, 24, 0.11);
  outline: none;
  transform: translateY(-2px);
}

.stat-card.is-active {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: inset 0 0 0 1px var(--primary);
}

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

.stat-value {
  margin-top: 4px;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.2;
}

.stat-note {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) repeat(4, minmax(130px, 0.9fr)) auto;
  gap: 9px;
  margin-bottom: 14px;
}

.audit-tabs {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 12px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.audit-tabs button {
  min-height: 34px;
  padding: 6px 18px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.audit-tabs button.active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 4px rgba(23, 33, 43, 0.1);
}

.audit-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.audit-toolbar > input,
.audit-toolbar > select,
.audit-toolbar > button {
  width: auto;
  min-height: 38px;
}

.audit-toolbar > input,
.audit-toolbar > select {
  flex: 0 1 170px;
}

.audit-toolbar #audit-q {
  min-width: 220px;
  flex: 1 1 230px;
}

.audit-toolbar #audit-start,
.audit-toolbar #audit-end {
  width: 150px;
  flex: 0 0 150px;
}

.audit-toolbar #audit-ip {
  flex-basis: 150px;
}

.audit-summary {
  margin: -3px 0 10px;
  color: var(--muted);
  font-size: 12px;
}

.audit-table {
  min-width: 1180px;
}

.audit-table td {
  overflow-wrap: anywhere;
}

.audit-table .audit-detail {
  max-width: 360px;
  white-space: normal;
}

.audit-table .audit-device {
  max-width: 230px;
  white-space: normal;
}

.audit-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-height: 42px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.data-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

.users-table {
  min-width: 1120px;
}

.data-table th,
.data-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.data-table td {
  font-size: 13px;
}

.wechat-binding-cell {
  min-width: 220px;
  max-width: 280px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.wechat-binding-cell small {
  display: block;
  margin-top: 1px;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.data-table td.nowrap {
  white-space: nowrap;
}

/* 工单总览：收窄问题类型/表现，把余量让给右侧时间、时效、满意度 */
.data-table-complaints {
  min-width: 1180px;
}

.data-table-complaints th.col-category,
.data-table-complaints td.col-category {
  width: 245px;
  min-width: 220px;
  max-width: 275px;
}

.data-table-complaints td.col-category {
  overflow-wrap: anywhere;
}

.data-table-complaints th.col-time,
.data-table-complaints td.col-time {
  width: 104px;
  max-width: 104px;
  white-space: normal;
}

.data-table tbody tr {
  cursor: pointer;
}

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

.ticket-cell {
  min-width: 150px;
}

.ticket-cell strong {
  display: block;
}

.ticket-cell span {
  color: var(--muted);
  font-size: 11px;
}

.empty-state {
  padding: 46px 20px;
  color: var(--muted);
  text-align: center;
}

.drawer-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  background: rgba(23, 33, 43, 0.34);
}

.drawer {
  position: fixed;
  z-index: 90;
  top: 0;
  right: 0;
  display: flex;
  width: min(620px, 100%);
  height: 100vh;
  flex-direction: column;
  border-left: 1px solid var(--line);
  background: #fff;
  box-shadow: -18px 0 48px rgba(23, 33, 43, 0.16);
}

.drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.drawer-head h2 {
  margin: 0;
  font-size: 19px;
}

.drawer-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.drawer-head .btn-ghost {
  border-color: rgba(36, 119, 194, 0.22);
  color: #155a97;
  background: #edf5fb;
}

.drawer-head .btn-ghost:hover {
  border-color: #2477c2;
  color: #0f4f86;
  background: #e1effa;
}

.drawer-body {
  overflow: auto;
  padding: 18px 20px 28px;
}

.drawer-section {
  margin-bottom: 22px;
}

.drawer-section h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

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

.action-grid .full {
  grid-column: 1 / -1;
}

.drawer-tabs {
  display: flex;
  gap: 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.drawer-tab {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: #4d6572;
  font-size: 14px;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.drawer-tab:hover {
  border-color: #2477c2;
  color: #155a97;
}

.drawer-tab.is-active {
  border-color: #2477c2;
  background: #2477c2;
  color: #fff;
  font-weight: 600;
}

.tab-panel {
  padding-top: 16px;
}

.tab-hint {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  background: var(--accent-soft);
  color: #115e59;
  font-size: 13px;
  line-height: 1.6;
}

.action-card {
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.action-card > summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.action-card > summary::-webkit-details-marker {
  display: none;
}

.action-card > summary::after {
  color: #4d6572;
  font-size: 13px;
  content: "展开";
}

.action-card[open] > summary::after {
  content: "收起";
}

.action-card[open] {
  border-color: var(--accent);
}

.action-card.is-primary > summary {
  background: var(--accent-soft);
}

.action-body {
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
}

.copyable {
  color: #1f6fb8;
  cursor: pointer;
  text-decoration: underline dotted;
}

.copyable.is-copied::after {
  color: var(--success);
  font-size: 12px;
  content: " 已复制";
}

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

.bar-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.bar-track {
  overflow: hidden;
  height: 9px;
  border-radius: 999px;
  background: #edf1f4;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.bar-value {
  color: var(--muted);
  text-align: right;
}

.qr-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.qr-frame {
  display: grid;
  place-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.qr-frame img {
  display: block;
  width: min(100%, 250px);
  aspect-ratio: 1;
  image-rendering: pixelated;
}

.qr-instructions {
  display: grid;
  gap: 10px;
}

.login-layer {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 16% 18%, rgba(66, 156, 244, 0.24), transparent 34%),
    radial-gradient(circle at 84% 82%, rgba(131, 228, 1, 0.18), transparent 30%),
    linear-gradient(rgba(66, 156, 244, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(131, 228, 1, 0.045) 1px, transparent 1px),
    #f7fbff;
  background-size: auto, auto, 32px 32px, 32px 32px, auto;
}

.login-card {
  position: relative;
  width: min(100%, 410px);
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(66, 156, 244, 0.22);
  border-radius: 10px;
  background: #fff;
  box-shadow:
    0 20px 52px rgba(49, 99, 138, 0.16),
    0 0 0 4px rgba(255, 255, 255, 0.72);
}

.login-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #429cf4, #83e401);
  content: "";
}

.login-card h1 {
  margin: 0;
  font-size: 22px;
}

.login-card h1.login-title {
  margin: 2px 0 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
}

.login-card p {
  margin: 6px 0 18px;
  color: var(--muted);
  font-size: 13px;
}

#wechat-bind-layer {
  background: rgba(23, 55, 71, 0.26);
}

.wechat-bind-card {
  width: min(100%, 380px);
  padding: 18px 20px;
  border-color: rgba(66, 156, 244, 0.18);
  box-shadow: 0 12px 32px rgba(23, 55, 71, 0.16);
}

.wechat-bind-card::before {
  display: none;
}

.wechat-bind-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.wechat-bind-card .login-title {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 17px;
  text-align: left;
  white-space: normal;
}

.wechat-bind-x {
  padding: 2px 0;
  border: 0;
  color: var(--primary-dark);
  background: transparent;
  font-size: 14px;
}

.wechat-bind-card .wechat-bind-user {
  margin: 9px 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.wechat-bind-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.wechat-bind-code-row span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.wechat-bind-code-row strong {
  display: block;
  margin-top: 1px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 5px;
}

.wechat-bind-code-row small {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.wechat-bind-card .wechat-bind-help {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.wechat-bind-actions {
  justify-content: flex-end;
}

.wechat-bind-card .notice-box {
  font-size: 13px;
}

.wechat-bind-actions .btn-small {
  font-size: 13px;
}

.login-hint {
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.login-hint a.login-resident-link {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin: 0 3px;
  padding: 2px 11px;
  border-radius: 999px;
  color: #fff;
  background: var(--primary);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(66, 156, 244, 0.25);
}

.login-hint a.login-resident-link:hover {
  color: #fff;
  background: var(--primary-dark);
}

.work-shell {
  flex: 1;
  width: min(100% - 24px, 760px);
  margin: 0 auto;
  padding: 14px 0 42px;
}

.wechat-notify-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.wechat-notify-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.wechat-notify-copy strong {
  color: var(--primary-dark);
  font-size: 14px;
}

.wechat-notify-copy span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.wechat-notify-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.wechat-subscribe-tag {
  display: inline-block;
}

.work-task {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
}

.work-task:hover {
  border-color: var(--accent);
}

.work-task-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.work-task-title {
  margin: 0;
  font-size: 15px;
}

.work-task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  color: var(--muted);
  font-size: 12px;
}

.work-task-desc {
  display: -webkit-box;
  overflow: hidden;
  color: #344054;
  font-size: 13px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.notice-list {
  display: grid;
  gap: 8px;
}

.notice-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.notice-item.unread {
  border-left: 3px solid var(--primary);
}

@media (max-width: 980px) {
  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qr-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .topbar {
    min-height: 100px;
    align-items: flex-start;
    padding: 14px 12px 38px;
    background-image:
      linear-gradient(
        90deg,
        rgba(8, 18, 26, 0.62) 0%,
        rgba(8, 18, 26, 0.18) 48%,
        rgba(8, 18, 26, 0.56) 100%
      ),
      url("/static/assets/header-mobile.png");
    background-image:
      linear-gradient(
        90deg,
        rgba(8, 18, 26, 0.62) 0%,
        rgba(8, 18, 26, 0.18) 48%,
        rgba(8, 18, 26, 0.56) 100%
      ),
      image-set(
        url("/static/assets/header-mobile-1280.webp") type("image/webp") 1x,
        url("/static/assets/header-mobile-1440.webp") type("image/webp") 2x,
        url("/static/assets/header-mobile.png") type("image/png") 1x
      );
  }

  .login-card h1.login-title {
    margin: 0 0 22px;
    padding-bottom: 14px;
    font-size: 12px;
  }

  .login-hint a.login-resident-link {
    min-height: 28px;
    padding: 3px 13px;
    font-size: 13px;
  }

  .brand {
    max-width: none;
    gap: 7px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 10px;
  }

  .brand-platform {
    font-size: 12px;
  }

  .brand-slogan {
    margin-top: 2px;
    font-size: 10px;
  }

  .header-user-panel {
    position: absolute;
    right: 12px;
    top: auto;
    bottom: 8px;
    width: auto;
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2ch;
  }

  .header-user-name {
    width: auto;
    font-size: 12px;
    line-height: 1.3;
  }

  .header-user-panel .btn {
    width: auto;
    min-height: auto;
    padding: 0;
    font-size: 12px;
    line-height: 1.3;
  }

  .support-credit {
    max-width: 100%;
    font-size: 10px;
    text-align: right;
  }

  .page-shell {
    width: min(100% - 20px, 920px);
    padding-top: 14px;
  }

  .page-intro {
    display: grid;
    gap: 12px;
  }

  .page-intro h1 {
    font-size: 21px;
  }

  .tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel {
    padding: 16px;
  }

  .form-grid,
  .detail-grid,
  .action-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .file-previews {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .input-action {
    grid-template-columns: 1fr;
  }

  .query-form {
    grid-template-columns: 1fr;
  }

  .save-code-notice {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 13px 14px;
  }

  .save-code-notice-badge {
    justify-self: start;
    min-height: 32px;
    padding: 4px 10px;
    font-size: 13px;
  }

  .save-code-notice-copy strong {
    font-size: 16px;
  }

  .save-code-notice-copy span {
    font-size: 13px;
  }

  .admin-topbar-inner {
    min-height: 100px;
    align-items: flex-start;
    padding: 14px 12px 38px;
  }

  .admin-topbar {
    background-image:
      linear-gradient(
        90deg,
        rgba(8, 18, 26, 0.62) 0%,
        rgba(8, 18, 26, 0.18) 48%,
        rgba(8, 18, 26, 0.56) 100%
      ),
      url("/static/assets/header-mobile.png");
    background-image:
      linear-gradient(
        90deg,
        rgba(8, 18, 26, 0.62) 0%,
        rgba(8, 18, 26, 0.18) 48%,
        rgba(8, 18, 26, 0.56) 100%
      ),
      image-set(
        url("/static/assets/header-mobile-1280.webp") type("image/webp") 1x,
        url("/static/assets/header-mobile-1440.webp") type("image/webp") 2x,
        url("/static/assets/header-mobile.png") type("image/png") 1x
      );
  }

  .admin-user {
    position: static;
    right: 12px;
    bottom: 10px;
    max-width: calc(100% - 24px);
    justify-content: flex-end;
    font-size: 10px;
  }

  .admin-user-stack {
    position: absolute;
    right: 12px;
    top: auto;
    bottom: 8px;
    width: auto;
    max-width: calc(100% - 24px);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2ch;
  }

  .admin-user .btn {
    min-height: 28px;
    padding: 4px 7px;
    font-size: 10px;
  }

  #admin-user-info {
    overflow: hidden;
    max-width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .admin-nav-wrap {
    width: 100%;
    padding: 0 12px 6px;
  }

  .admin-nav {
    overflow-x: auto;
  }

  .admin-nav button {
    min-height: 28px;
    flex: 0 0 auto;
    padding: 4px 9px;
    font-size: 10px;
  }

  .admin-content {
    width: min(100% - 20px, 1380px);
    padding-top: 16px;
  }

  .view-head {
    align-items: stretch;
    flex-direction: column;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toolbar {
    grid-template-columns: 1fr;
  }

  .drawer {
    width: 100%;
  }

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

  .bar-row {
    grid-template-columns: 90px minmax(0, 1fr) 36px;
  }
}

@media (min-width: 2200px) {
  .topbar,
  .admin-topbar {
    background-image:
      linear-gradient(
        90deg,
        rgba(8, 18, 26, 0.62) 0%,
        rgba(8, 18, 26, 0.18) 48%,
        rgba(8, 18, 26, 0.56) 100%
      ),
      image-set(
        url("/static/assets/header-desktop-3840.webp") type("image/webp") 1x,
        url("/static/assets/header-desktop.jpg") type("image/jpeg") 1x
      );
  }
}

#complaint-form {
  display: flex;
  flex-direction: column;
}

#resident-step-description {
  order: 1;
}

#resident-step-category {
  order: 2;
}

#resident-step-location {
  order: 3;
}

#resident-step-contact {
  order: 4;
}

#resident-step-submit {
  order: 5;
}

.scroll-select {
  position: relative;
}

.scroll-select select {
  color: transparent;
}

.scroll-select:focus-within select {
  color: var(--ink);
}

.scroll-select-text {
  position: absolute;
  top: 50%;
  right: 31px;
  left: 11px;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.2;
  pointer-events: none;
  text-overflow: ellipsis;
  transform: translateY(-50%);
  white-space: nowrap;
}

.scroll-select:focus-within .scroll-select-text {
  opacity: 0;
}

.scroll-select-text.is-scrolling {
  text-overflow: clip;
  animation: select-text-scroll 6s linear infinite alternate;
}

.problem-select-shell {
  position: relative;
  width: 100%;
}

.problem-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.problem-select-trigger {
  display: grid;
  width: 100%;
  min-height: 42px;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.problem-select-trigger:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
  outline: none;
}

.problem-select-display {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.45;
  white-space: normal;
}

.problem-select-display.is-placeholder {
  color: var(--muted);
}

.problem-select-arrow {
  width: 8px;
  height: 8px;
  justify-self: center;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
}

.problem-picker-layer {
  position: absolute;
  z-index: 60;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  display: block;
  padding: 0;
  margin: 0;
  background: transparent;
}

.problem-picker-layer.drop-up {
  top: auto;
  bottom: calc(100% + 6px);
}

.problem-picker-layer.hidden {
  display: none;
}

.problem-picker-card {
  display: grid;
  width: 100%;
  max-height: 50vh;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
}

.problem-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.problem-picker-close {
  padding: 5px 8px;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
}

.problem-picker-list {
  display: grid;
  min-height: 0;
  max-height: 40vh;
  gap: 8px;
  overflow: auto;
  padding-right: 2px;
}

.problem-picker-option {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.problem-picker-option:hover,
.problem-picker-option:focus-visible,
.problem-picker-option.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  outline: none;
}

.problem-picker-option-text {
  display: block;
  overflow: hidden;
  padding-bottom: 1px;
  white-space: nowrap;
}

.problem-picker-option-text.is-scrolling {
  animation: problem-picker-text-scroll 7s linear infinite alternate;
}

.community-search-shell {
  position: relative;
}

.community-search-shell input[type="search"] {
  padding-right: 34px;
}

.community-suggestions {
  position: absolute;
  z-index: 70;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  max-height: min(44vh, 340px);
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.2);
}

.community-suggestions.hidden {
  display: none;
}

.community-suggestions.drop-up {
  top: auto;
  bottom: calc(100% + 6px);
}

.community-suggestion {
  display: block;
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-align: left;
}

.community-suggestion:last-child {
  border-bottom: 0;
}

.community-suggestion:hover,
.community-suggestion:focus-visible,
.community-suggestion.is-active {
  color: var(--primary);
  background: var(--accent-soft);
  outline: none;
}

.community-suggestion mark {
  padding: 0;
  color: var(--primary);
  background: transparent;
  font-weight: 800;
}

.community-suggestion-empty {
  padding: 13px 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

@keyframes problem-picker-text-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-1 * var(--scroll-distance, 0px)));
  }
}

@keyframes select-text-scroll {
  from {
    transform: translate(0, -50%);
  }
  to {
    transform: translate(calc(-1 * var(--scroll-distance, 0px)), -50%);
  }
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea,
.field.has-error .scroll-select,
.field.has-error .problem-select-trigger,
#category-grid.has-error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
}

.field.has-error,
#category-grid.has-error {
  animation: field-error-shake 0.38s ease-out;
}

.field.has-error label,
.field.has-error .field-label {
  color: var(--danger);
}

.field-error-message {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 9px 11px;
  border: 1px solid rgba(180, 35, 24, 0.28);
  border-left: 4px solid var(--danger);
  border-radius: 6px;
  color: #8f1d14;
  background: #fff1f0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  animation: field-error-message-in 0.2s ease-out both;
}

.field-error-message::before {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 999px;
  color: #fff;
  background: var(--danger);
  content: "必填";
  font-size: 11px;
  font-weight: 700;
}

@keyframes field-error-shake {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-4px);
  }

  50% {
    transform: translateX(4px);
  }

  75% {
    transform: translateX(-2px);
  }
}

@keyframes field-error-message-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.category-option strong,
.category-option span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-option strong.is-scrolling,
.category-option span.is-scrolling {
  text-overflow: clip;
  animation: category-text-scroll 6s linear infinite alternate;
}

@keyframes category-text-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-1 * var(--scroll-distance, 0px)));
  }
}

.my-ticket-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.my-ticket-card {
  display: grid;
  width: 100%;
  min-height: 64px;
  align-content: center;
  gap: 4px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.my-ticket-card:hover,
.my-ticket-card:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(23, 33, 43, 0.08);
}

.my-ticket-head {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.my-ticket-head strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-ticket-head .status-pill {
  flex: 0 0 auto;
  font-size: 11px;
}

.my-ticket-meta {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.my-ticket-place {
  flex: 1 1 auto;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-ticket-date {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

/* 工作人员端页签：5 个页签一排，统计数字并入页签 */
.work-tabs {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  gap: 4px;
}

.work-tabs .tab {
  display: inline-flex;
  flex: 1 1 92px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  white-space: nowrap;
}

.tab-count {
  display: inline-flex;
  min-width: 20px;
  align-items: center;
  justify-content: center;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: #4d6572;
  font-size: 12px;
  font-weight: 700;
}

.work-tabs .tab.active .tab-count {
  color: #fff;
  background: rgba(255, 255, 255, 0.24);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
}

::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.34);
  background-clip: padding-box;
  box-shadow: 0 0 5px rgba(15, 118, 110, 0.12);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(71, 85, 105, 0.58);
  background-clip: padding-box;
  box-shadow: 0 0 10px rgba(15, 118, 110, 0.26);
}

::-webkit-scrollbar-thumb:active {
  background: rgba(15, 118, 110, 0.82);
  background-clip: padding-box;
  box-shadow: 0 0 15px rgba(15, 118, 110, 0.48);
}

.is-scrolling::-webkit-scrollbar-thumb {
  background: rgba(15, 118, 110, 0.82);
  background-clip: padding-box;
  box-shadow: 0 0 15px rgba(15, 118, 110, 0.48);
}

* {
  scrollbar-color: rgba(100, 116, 139, 0.42) rgba(148, 163, 184, 0.12);
  scrollbar-width: thin;
}

textarea,
.problem-picker-list,
.community-suggestions {
  scrollbar-gutter: stable;
}

@media (max-width: 720px) {
  .resident-home {
    gap: 14px;
  }

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

  .resident-feature-card {
    gap: 8px;
    padding: 12px;
  }

  .resident-feature-card::before {
    right: 12px;
    left: 12px;
  }

  .resident-feature-icon {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .resident-feature-card strong {
    font-size: 17px;
  }

  .resident-feature-card small {
    font-size: 12px;
  }

  .resident-ad-zone {
    min-height: 150px;
  }

  .my-ticket-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
  }

  .my-ticket-card {
    min-height: 60px;
    padding: 8px 9px;
  }

  .resident-subview-head {
    align-items: flex-start;
    gap: 10px;
  }

  .resident-subview-head h1 {
    font-size: 19px;
  }

  .resident-back-button {
    min-height: 34px;
    padding: 6px 9px;
    font-size: 12px;
  }
}

/* Unified mobile style for resident, handler, leader, and admin pages. */
@media (max-width: 720px) {
  :root {
    --bg: #eef5f6;
    --surface: #ffffff;
    --surface-soft: #f5fafb;
    --ink: #173747;
    --muted: #647d89;
    --line: rgba(21, 144, 149, 0.16);
    --line-strong: rgba(21, 144, 149, 0.28);
    --primary: #0f8f8c;
    --primary-dark: #0b716f;
    --primary-soft: #e6f7f6;
    --accent: #2d82c4;
    --accent-soft: #edf5fb;
    --warning: #b37c1e;
    --warning-soft: #fff8e9;
    --success: #278754;
    --success-soft: #edf8f2;
    --danger: #c7495b;
    --shadow: 0 8px 20px rgba(46, 77, 90, 0.1);
  }

  body {
    color: var(--ink);
    background:
      linear-gradient(rgba(15, 143, 140, 0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(15, 143, 140, 0.05) 1px, transparent 1px),
      radial-gradient(circle at 50% 0%, rgba(61, 189, 195, 0.12), transparent 46%),
      var(--bg);
    background-size: 28px 28px, 28px 28px, auto, auto;
  }

  .brand-mark {
    background: var(--primary);
  }

  .panel,
  .resident-feature-card {
    border-color: var(--line);
    background-color: var(--surface);
  }

  .panel {
    box-shadow: 0 5px 14px rgba(46, 77, 90, 0.07);
  }

  .btn {
    background: var(--primary-dark);
  }

  .btn:hover {
    background: #075c5a;
  }

  .btn-ghost {
    color: var(--primary-dark);
    background: transparent;
  }

  .btn-ghost:hover {
    color: #07524f;
    background: var(--primary-soft);
  }

  .btn-secondary {
    border-color: #2477c2;
    color: #155a97;
    background: #edf5fb;
  }

  .btn-secondary:hover {
    border-color: #1f6fb8;
    color: #0f4f86;
    background: #e1effa;
  }

  .btn-danger {
    color: #ffffff;
    background: #a72f3d;
  }

  .btn-success {
    color: #ffffff;
    background: #246b45;
  }

  .btn-outline-danger {
    border-color: #b42318;
    color: #a1281f;
    background: #ffffff;
  }

  .btn-outline-danger:hover {
    border-color: #8f1d14;
    color: #ffffff;
    background: #8f1d14;
  }

  .tab.active,
  .admin-nav button.active,
  .status-chip.active {
    background: var(--primary);
  }

  .resident-ad-zone {
    border-color: var(--line-strong);
    background:
      linear-gradient(135deg, rgba(15, 143, 140, 0.04), rgba(45, 130, 196, 0.05)),
      repeating-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.82) 0 12px,
        rgba(238, 245, 246, 0.8) 12px 24px
      );
  }

  .site-footer {
    border-color: var(--line);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.8);
  }

  .required,
  .field-label .required {
    color: var(--danger) !important;
  }

  .header-user-panel .btn {
    color: #ffffff;
  }
}

/* Mobile secondary drawers and pickers: consistent readable typography. */
@media (max-width: 720px) {
  .drawer {
    width: 100%;
    height: 100dvh;
  }

  .drawer-head {
    padding: 15px 16px 12px;
  }

  .drawer-head h2 {
    font-size: 18px;
    line-height: 1.35;
  }

  .drawer-head p {
    font-size: 12px;
    line-height: 1.5;
  }

  .drawer-body {
    padding: 14px 16px 24px;
    scrollbar-gutter: stable;
  }

  .drawer-section {
    margin-bottom: 18px;
  }

  .drawer-section h3 {
    margin-bottom: 8px;
    font-size: 16px;
  }

  .drawer-tab {
    padding: 7px 11px;
    font-size: 13px;
  }

  .detail-item dt {
    font-size: 11px;
  }

  .detail-item dd {
    font-size: 13px;
    line-height: 1.55;
  }

  .timeline-time {
    font-size: 11px;
  }

  .timeline-title {
    font-size: 13px;
    line-height: 1.5;
  }

  .timeline-item .small.muted {
    font-size: 12px;
    line-height: 1.55;
  }

  .problem-picker-option,
  .community-suggestion {
    font-size: 13px;
    line-height: 1.5;
  }

  .problem-picker-list,
  .community-suggestions,
  .table-wrap,
  .drawer-body {
    scrollbar-gutter: stable;
  }
}

/* China Mobile mobile palette: blue, green, white. */
@media (max-width: 720px) {
  :root {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-soft: #f5faff;
    --ink: #173747;
    --muted: #647d89;
    --line: rgba(66, 156, 244, 0.2);
    --line-strong: rgba(66, 156, 244, 0.34);
    --primary: #429cf4;
    --primary-dark: #2f80d2;
    --primary-soft: #edf7ff;
    --accent: #83e401;
    --accent-soft: #f3ffe1;
    --warning: #b37c1e;
    --warning-soft: #fff8e8;
    --success: #5b9f13;
    --success-soft: #f3ffe4;
    --danger: #c7495b;
    --shadow: 0 8px 20px rgba(49, 99, 138, 0.1);
  }

  body {
    background:
      linear-gradient(rgba(66, 156, 244, 0.055) 1px, transparent 1px),
      linear-gradient(90deg, rgba(131, 228, 1, 0.045) 1px, transparent 1px),
      radial-gradient(circle at 50% 0%, rgba(66, 156, 244, 0.13), transparent 46%),
      #ffffff;
    background-size: 28px 28px, 28px 28px, auto, auto;
  }

  body.resident-home-view {
    background: #f7fbff;
  }

  .brand-mark {
    background: var(--primary);
  }

  .btn {
    background: #2477c2;
  }

  .btn:hover {
    background: #1f6fb8;
  }

  .btn-ghost {
    color: #1f6fb8;
    background: transparent;
  }

  .btn-ghost:hover {
    color: #155a97;
    background: #edf5fb;
  }

  .btn-secondary {
    border-color: #2477c2;
    color: #155a97;
    background: #edf5fb;
  }

  .btn-secondary:hover {
    border-color: #1f6fb8;
    color: #0f4f86;
    background: #e1effa;
  }

  .resident-ad-zone {
    border-color: var(--line-strong);
    background:
      linear-gradient(135deg, rgba(66, 156, 244, 0.045), rgba(131, 228, 1, 0.055)),
      repeating-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.9) 0 12px,
        rgba(245, 250, 255, 0.82) 12px 24px
      );
  }

  .site-footer {
    border-color: var(--line);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.9);
  }

  ::-webkit-scrollbar-thumb {
    background: rgba(66, 156, 244, 0.3);
    background-clip: padding-box;
    box-shadow: 0 0 5px rgba(66, 156, 244, 0.2);
  }

  ::-webkit-scrollbar-thumb:hover {
    background: rgba(66, 156, 244, 0.56);
    background-clip: padding-box;
    box-shadow: 0 0 10px rgba(66, 156, 244, 0.34);
  }

  ::-webkit-scrollbar-thumb:active,
  .is-scrolling::-webkit-scrollbar-thumb {
    background: rgba(131, 228, 1, 0.86);
    background-clip: padding-box;
    box-shadow: 0 0 15px rgba(94, 177, 0, 0.46);
  }
}

/* Readability pass: desktop business pages. */
@media (min-width: 721px) {
  .page-shell,
  .work-shell,
  #admin-app {
    font-size: 13px;
  }

  .panel-desc,
  .category-option span,
  .community-suggestion,
  .problem-picker-option,
  .my-ticket-place,
  .work-task-desc,
  .detail-item dd {
    font-size: 13px;
  }

  .section-kicker,
  .my-ticket-date,
  .work-task-meta,
  .detail-item dt,
  .timeline-time,
  .data-table th,
  .audit-summary,
  .status-pill,
  .my-ticket-head .status-pill,
  .status-pill.transfer-pending {
    font-size: 12px;
  }

  .data-table td,
  .timeline-title,
  .timeline-item .small.muted {
    font-size: 13px;
  }
}

/* Readability pass: mobile business pages. */
@media (max-width: 720px) {
  .page-shell,
  .work-shell,
  #admin-app {
    font-size: 14px;
  }

  .wechat-notify-panel {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .wechat-notify-actions {
    justify-content: stretch;
  }

  .wechat-notify-actions .btn,
  .wechat-subscribe-tag {
    width: 100%;
  }

  .login-card h1.login-title {
    font-size: 15px;
  }

  .wechat-bind-card .login-title {
    font-size: 18px;
  }

  .wechat-bind-code-row strong {
    font-size: 30px;
  }

  .wechat-bind-actions {
    display: flex;
  }

  .wechat-bind-card .wechat-bind-user,
  .wechat-bind-code-row span,
  .wechat-bind-code-row small,
  .wechat-bind-card .wechat-bind-help,
  .wechat-bind-card .notice-box,
  .wechat-bind-actions .btn-small,
  .wechat-bind-x {
    font-size: 14px;
  }

  .login-hint {
    font-size: 13px;
    line-height: 1.6;
  }

  .field label,
  .field-label {
    font-size: 14px;
  }

  .panel-desc,
  .category-option span,
  .community-suggestion,
  .problem-picker-option,
  .timeline-item .small.muted,
  .work-task-desc {
    font-size: 13px;
    line-height: 1.6;
  }

  .category-option strong,
  .problem-picker-option strong {
    font-size: 15px;
  }

  .resident-feature-card small {
    font-size: 13px;
    line-height: 1.5;
  }

  .my-ticket-head strong,
  .timeline-title {
    font-size: 14px;
  }

  .my-ticket-place,
  .work-task-meta {
    font-size: 13px;
  }

  .my-ticket-date,
  .timeline-time,
  .detail-item dt {
    font-size: 12px;
  }

  .detail-item dd {
    font-size: 14px;
    line-height: 1.6;
  }

  .wechat-binding-cell small {
    font-size: 14px;
  }

  .status-pill,
  .my-ticket-head .status-pill,
  .status-pill.transfer-pending {
    font-size: 12px;
  }

  .btn-small {
    font-size: 12px;
  }

  .admin-nav button {
    font-size: 12px;
    font-weight: 600;
  }

  .work-tabs .tab,
  .tabs .tab {
    font-size: 13px;
  }

  .data-table th {
    font-size: 12px;
  }

  .data-table td {
    font-size: 13px;
  }

  .audit-summary,
  .drawer-head p {
    font-size: 12px;
  }
}

/* Mobile layout hardening: prevent clipping, crowding, and hidden navigation. */
@media (max-width: 720px) {
  .login-card h1.login-title {
    overflow-wrap: anywhere;
    line-height: 1.45;
    text-align: center;
    white-space: normal;
  }

  .my-ticket-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    align-items: start;
  }

  .my-ticket-place {
    overflow: visible;
    line-height: 1.5;
    text-overflow: clip;
    white-space: normal;
  }

  .my-ticket-date {
    font-size: 12px;
    text-align: left;
    white-space: normal;
  }

  .category-grid {
    width: 100%;
    min-width: 0;
  }

  .category-option {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .category-option strong,
  .category-option span {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    animation: none !important;
  }

  .voice-input-box {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
  }

  .voice-input-box #voice-button {
    width: 72px;
    min-width: 72px;
    min-height: 48px;
    padding: 6px 8px;
    line-height: 1.4;
    white-space: normal;
  }

  .admin-nav-wrap {
    overflow-x: visible;
  }

  .admin-nav {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
    gap: 4px;
    overflow-x: visible;
  }

  .admin-nav button {
    width: 100%;
    min-width: 0;
    padding: 5px 6px;
    white-space: normal;
  }

  .table-wrap {
    overflow-x: auto;
    scrollbar-color: rgba(66, 156, 244, 0.72) rgba(216, 232, 243, 0.72);
    scrollbar-gutter: stable;
  }

  .table-wrap::-webkit-scrollbar {
    height: 8px;
  }

  .table-wrap::-webkit-scrollbar-track {
    background: rgba(216, 232, 243, 0.72);
  }

  .table-wrap::-webkit-scrollbar-thumb {
    border-radius: 8px;
    background: rgba(66, 156, 244, 0.72);
  }

  .data-table th:first-child,
  .data-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #ffffff;
    box-shadow: 7px 0 9px -9px rgba(23, 55, 71, 0.7);
  }

  .data-table th:first-child {
    z-index: 3;
    background: #edf7ff;
  }
}
