:root {
  --blue-900: #123c7c;
  --blue-800: #1765bd;
  --blue-700: #1686e8;
  --blue-600: #21a5f7;
  --blue-100: #e8f3ff;
  --line: #d7e2ee;
  --text: #203247;
  --muted: #6f8197;
  --bg: #f2f6fb;
  --panel: #ffffff;
  --green: #22b36b;
  --amber: #d99a1e;
  --red: #dc3b3b;
  --teal: #13b7b2;
  --shadow: 0 4px 14px rgba(24, 66, 120, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 1180px;
  color: var(--text);
  background: var(--bg);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  letter-spacing: 0;
}

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

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(13, 131, 233, 0.38);
  outline-offset: 2px;
}

.app-shell {
  display: grid;
  grid-template-columns: 188px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
  box-shadow: 2px 0 12px rgba(36, 76, 120, 0.08);
  z-index: 2;
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 64px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  color: #fff;
  background: linear-gradient(135deg, #1b76da, #12b7d8);
  font-size: 13px;
  font-weight: 700;
}

.brand strong {
  display: block;
  line-height: 1.35;
  font-size: 13px;
}

.brand span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  padding: 10px 0;
}

.nav-item,
.subnav button {
  width: 100%;
  border: 0;
  color: #34495e;
  background: transparent;
  text-align: left;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 18px;
  font-weight: 600;
  transition: color .18s ease, background-color .18s ease;
}

.nav-item:hover,
.nav-item.active,
.nav-item.group-active,
.subnav button:hover,
.subnav button.active {
  color: #0a7bdc;
  background: #edf6ff;
}

.nav-item.open {
  color: #0b67bd;
}

.nav-item.active::before,
.nav-item.group-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 3px;
  height: 26px;
  border-radius: 0 3px 3px 0;
  background: #0a8bf1;
}

.nav-icon-svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: inherit;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .76;
  transition: opacity .18s ease, transform .18s ease, filter .18s ease;
}

.nav-icon-svg * {
  vector-effect: non-scaling-stroke;
}

.nav-item:hover .nav-icon-svg,
.nav-item.active .nav-icon-svg,
.nav-item.group-active .nav-icon-svg,
.nav-item.open .nav-icon-svg {
  opacity: 1;
  transform: translateX(1px) scale(1.05);
}

.nav-item.active .nav-icon-svg,
.nav-item.group-active .nav-icon-svg {
  filter: drop-shadow(0 2px 5px rgba(10, 123, 220, .16));
}

.subnav {
  margin: 0 10px 8px 46px;
  padding: 8px 0;
  border-left: 2px solid #e4eef8;
}

.subnav button {
  display: block;
  height: 34px;
  padding: 0 12px;
  border-radius: 4px;
  font-size: 13px;
}

.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  padding: 0 22px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(11, 111, 211, 0.95), rgba(38, 164, 245, 0.94)),
    repeating-linear-gradient(120deg, rgba(255,255,255,0.08), rgba(255,255,255,0.08) 1px, transparent 1px, transparent 16px);
}

.top-title strong {
  display: block;
  font-size: 18px;
}

.top-title span {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

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

.role-switch-label {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.role-switch {
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 4px;
}

.role-switch button {
  height: 30px;
  min-width: 50px;
  padding: 0 12px;
  border: 0;
  color: #e9f7ff;
  background: rgba(255, 255, 255, 0.1);
}

.role-switch button.active {
  color: #0a6fc8;
  background: #fff;
  font-weight: 700;
}

.screen-btn,
.user-btn,
.icon-btn {
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.screen-btn,
.user-btn {
  height: 30px;
  padding: 0 14px;
  border-radius: 4px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  font-size: 20px;
}

.refresh-icon {
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-left-color: transparent;
  border-radius: 50%;
}

.module-tabs {
  display: flex;
  align-items: end;
  height: 46px;
  padding: 0 22px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.module-tabs button {
  height: 45px;
  padding: 0 18px;
  border: 0;
  border-bottom: 3px solid transparent;
  color: #586b82;
  background: transparent;
  font-weight: 600;
}

.module-tabs button.active {
  color: #0a7bdc;
  border-bottom-color: #0a8bf1;
}

.content {
  flex: 1;
  min-height: 0;
  padding: 14px 18px 18px;
  overflow: auto;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  margin-bottom: 12px;
}

.toolbar .spacer {
  flex: 1;
}

.toolbar-title {
  color: #203247;
  font-weight: 700;
}

.field,
.select,
.search {
  height: 32px;
  border: 1px solid #cad8e8;
  border-radius: 4px;
  color: #2e4053;
  background: #fff;
}

.select {
  min-width: 132px;
  padding: 0 28px 0 10px;
}

.search {
  min-width: 230px;
  padding: 0 10px;
}

.primary,
.ghost,
.danger,
.success {
  height: 32px;
  padding: 0 12px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-weight: 600;
}

.primary {
  color: #fff;
  background: #0d83e9;
}

.ghost {
  color: #1a6fb8;
  background: #eef7ff;
  border-color: #c9e5ff;
}

.danger {
  color: #fff;
  background: var(--red);
}

.success {
  color: #fff;
  background: var(--green);
}

.segmented {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid #c9d8e7;
  border-radius: 4px;
}

.segmented button {
  height: 30px;
  min-width: 70px;
  border: 0;
  border-right: 1px solid #c9d8e7;
  color: #4f647a;
  background: #fff;
}

.segmented button:last-child {
  border-right: 0;
}

.segmented button.active {
  color: #fff;
  background: #0d83e9;
}

.segmented.wide {
  flex-wrap: wrap;
  max-width: 720px;
}

.segmented.wide button {
  min-width: 82px;
}

.task-stage-board {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.flow-note {
  margin: -4px 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.stage-card {
  min-height: 58px;
  border: 1px solid #d8e7f6;
  border-radius: 6px;
  background: #fff;
  text-align: left;
  padding: 10px;
}

.stage-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.stage-card strong {
  display: block;
  margin-top: 4px;
  color: #0e66bd;
  font-size: 22px;
}

.stage-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stage-card.good {
  border-color: rgba(34, 179, 107, 0.34);
}

.stage-card.warn {
  border-color: rgba(217, 154, 30, 0.34);
}

.stage-card.bad {
  border-color: rgba(220, 59, 59, 0.34);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) minmax(460px, 2.2fr) minmax(300px, 1.3fr);
  gap: 14px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}

.panel-header strong {
  font-size: 15px;
}

.panel-body {
  padding: 14px;
}

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

.kpi {
  min-height: 76px;
  padding: 12px;
  border: 1px solid #d9e8f7;
  border-radius: 6px;
  background: #f9fcff;
}

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

.kpi strong {
  display: block;
  margin-top: 8px;
  color: #0e66bd;
  font-size: 24px;
}

.kpi small {
  color: #7c8da1;
}

.risk-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.risk-card {
  width: 100%;
  min-height: 68px;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  text-align: left;
}

.risk-card.good {
  border-color: rgba(34, 179, 107, 0.38);
}

.risk-card.warn {
  border-color: rgba(217, 154, 30, 0.44);
}

.risk-card.bad {
  border-color: rgba(220, 59, 59, 0.4);
}

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

.risk-card strong {
  display: block;
  margin-top: 6px;
  font-size: 20px;
}

.good strong,
.status.good {
  color: var(--green);
}

.status.good {
  background: rgba(34, 179, 107, 0.12);
}

.warn strong,
.status.warn {
  color: var(--amber);
}

.status.warn {
  background: rgba(217, 154, 30, 0.13);
}

.bad strong,
.status.bad {
  color: var(--red);
}

.status.bad {
  background: rgba(220, 59, 59, 0.12);
}

.map-panel {
  min-height: 610px;
}

.map-canvas {
  position: relative;
  min-height: 442px;
  overflow: hidden;
  border: 1px solid #d7e6f3;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(230, 240, 249, 0.65), rgba(193, 225, 242, 0.55)),
    radial-gradient(circle at 78% 46%, rgba(24, 163, 202, 0.22), transparent 28%);
}

.zj-map {
  width: 100%;
  height: 442px;
}

.region-shape {
  fill: rgba(194, 225, 248, 0.84);
  stroke: #24b7c4;
  stroke-width: 2;
  transition: fill 0.15s ease, stroke 0.15s ease;
}

.region-shape:hover,
.region-shape.active {
  fill: rgba(72, 159, 241, 0.36);
  stroke: #0e75ce;
}

.region-label {
  pointer-events: none;
  fill: #1e5c98;
  font-size: 13px;
  font-weight: 700;
}

.region-count {
  pointer-events: none;
  fill: #fff;
  font-size: 12px;
  font-weight: 700;
}

.map-badge {
  pointer-events: none;
  fill: rgba(43, 139, 224, 0.88);
  stroke: rgba(255, 255, 255, 0.86);
  stroke-width: 1;
}

.region-popover {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 230px;
  padding: 12px;
  border: 1px solid #bed8ef;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.region-popover strong {
  display: block;
  margin-bottom: 8px;
}

.popover-row {
  display: flex;
  justify-content: space-between;
  height: 24px;
  font-size: 13px;
}

.bars {
  display: grid;
  gap: 9px;
}

.bar-row {
  display: grid;
  grid-template-columns: 64px 1fr 48px;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.bar-button {
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

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

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1aa4f6, #22b36b);
}

.module-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.demo-flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.demo-step {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  min-height: 54px;
  padding: 8px 10px;
  border: 1px solid #d8e7f6;
  border-radius: 6px;
  background: #fff;
  text-align: left;
}

.demo-step span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #fff;
  background: #0d83e9;
  font-size: 12px;
  font-weight: 700;
}

.demo-step strong,
.demo-step em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-step strong {
  color: #29445f;
  font-size: 13px;
}

.demo-step em {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.module-cell {
  width: 100%;
  padding: 10px;
  border: 1px solid #d8e7f6;
  border-radius: 6px;
  background: #f9fcff;
  text-align: left;
}

.module-cell strong {
  display: block;
  font-size: 13px;
}

.module-cell span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.table-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  height: 40px;
  padding: 0 10px;
  border-bottom: 1px solid #e7eef6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  font-size: 13px;
}

th {
  color: #526a82;
  background: #f3f8fd;
  font-weight: 700;
}

tr:hover td {
  background: #f8fbff;
}

.status {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef4f8;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.status.blue {
  color: #0d83e9;
  background: #eaf5ff;
}

.status.gray {
  color: #6b7c8f;
}

.actions {
  display: inline-flex;
  gap: 6px;
  min-width: 108px;
  white-space: nowrap;
}

.link-btn {
  padding: 0;
  border: 0;
  color: #0a78d6;
  background: transparent;
  font-weight: 700;
}

.table-empty {
  height: 76px;
  color: var(--muted);
  text-align: center;
  white-space: normal;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
  gap: 14px;
}

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

.template-list {
  display: grid;
  align-content: start;
  gap: 10px;
}

.template-card {
  width: 100%;
  min-height: 96px;
  padding: 12px;
  border: 1px solid #d8e7f6;
  border-radius: 6px;
  background: #fff;
  text-align: left;
  box-shadow: var(--shadow);
}

.template-card.active {
  border-color: #0d83e9;
  background: #f0f8ff;
}

.template-card strong,
.template-card span,
.template-card small {
  display: block;
}

.template-card span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.template-card small {
  margin-top: 8px;
  color: #0d83e9;
  font-weight: 700;
}

.template-meta {
  display: grid;
  grid-template-columns: 1fr 1fr 1.6fr;
  gap: 10px;
  margin-bottom: 12px;
}

.template-meta div {
  min-height: 58px;
  padding: 10px;
  border: 1px solid #dce8f4;
  border-radius: 6px;
  background: #f9fcff;
}

.template-meta span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.template-meta strong {
  display: block;
  margin-top: 6px;
  line-height: 1.45;
}

.checklist-groups {
  display: grid;
  gap: 12px;
}

.checklist-group {
  padding: 12px;
  border: 1px solid #dce8f4;
  border-radius: 6px;
  background: #fff;
}

.checklist-group h4 {
  display: flex;
  justify-content: space-between;
  margin: 0 0 8px;
  font-size: 14px;
}

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

.check-row {
  display: grid;
  grid-template-columns: auto 1fr 96px;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  border-top: 1px solid #edf3f8;
  font-size: 13px;
}

.check-row:first-of-type {
  border-top: 0;
}

.check-row em {
  color: var(--muted);
  font-style: normal;
  text-align: right;
  font-size: 12px;
}

.check-state {
  display: inline-flex;
  align-items: center;
  height: 20px;
  margin-right: 6px;
  padding: 0 6px;
  border-radius: 999px;
  color: #0d83e9;
  background: #eaf5ff;
  font-size: 12px;
}

.mobile-layout {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 16px;
}

.phone-shell {
  height: 690px;
  padding: 12px;
  border: 1px solid #bfd6ec;
  border-radius: 28px;
  background: #112b46;
  box-shadow: 0 18px 40px rgba(18, 46, 80, 0.22);
}

.phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  padding: 0 12px;
  color: #dff2ff;
  font-size: 12px;
}

.phone-body {
  height: 570px;
  overflow: auto;
  border-radius: 18px 18px 8px 8px;
  background: #f3f7fb;
}

.phone-tabbar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  height: 54px;
  padding-top: 10px;
}

.phone-tabbar button {
  border: 0;
  border-radius: 12px;
  color: #dff2ff;
  background: rgba(255,255,255,0.1);
}

.phone-tabbar button.active {
  color: #0d83e9;
  background: #fff;
  font-weight: 700;
}

.mobile-page {
  padding: 14px;
}

.mobile-page h3 {
  margin: 0 0 12px;
  font-size: 17px;
}

.quick-grid {
  display: grid;
  gap: 10px;
}

.quick-grid button,
.mobile-card,
.location-card,
.item-row,
.mine-card,
.mobile-todo {
  width: 100%;
  border: 1px solid #dce8f4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(24, 66, 120, 0.08);
}

.quick-grid button {
  min-height: 72px;
  padding: 12px;
  text-align: left;
}

.quick-grid strong,
.quick-grid span,
.mobile-card header,
.mobile-card p,
.mobile-card div,
.mobile-card button,
.mobile-todo button,
.mine-card strong,
.mine-card span {
  display: block;
}

.quick-grid span,
.mobile-card p,
.mobile-card div,
.mobile-todo em,
.mine-card span {
  color: var(--muted);
  font-size: 12px;
}

.mobile-todo {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
}

.mobile-todo button {
  padding: 8px;
  border: 1px solid #edf3f8;
  border-radius: 6px;
  background: #f9fcff;
  text-align: left;
}

.mobile-search {
  height: 36px;
  margin-bottom: 10px;
  padding: 9px 12px;
  border-radius: 18px;
  color: #8ca0b4;
  background: #fff;
  font-size: 13px;
}

.mobile-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 10px;
}

.mobile-tabs button {
  flex: 0 0 auto;
  height: 30px;
  border: 0;
  border-radius: 15px;
  color: #60758b;
  background: #e8f0f8;
  padding: 0 10px;
  font-size: 12px;
}

.mobile-tabs button.active {
  color: #fff;
  background: #0d83e9;
}

.mobile-card {
  margin-bottom: 10px;
  padding: 12px;
}

.mobile-card header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.mobile-card header span {
  flex: 0 0 auto;
  color: #0d83e9;
  font-size: 12px;
  font-weight: 700;
}

.mobile-status {
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-status.good {
  color: var(--green);
}

.mobile-status.warn {
  color: var(--amber);
}

.mobile-status.bad {
  color: var(--red);
}

.mobile-card p {
  margin: 7px 0 0;
}

.mobile-card div {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}

.mobile-card button,
.location-card button,
.item-row button,
.mobile-primary,
.evidence-row button {
  height: 30px;
  border: 0;
  border-radius: 5px;
  color: #fff;
  background: #0d83e9;
  padding: 0 10px;
  font-weight: 700;
}

.mobile-card button {
  margin-top: 10px;
  margin-right: 6px;
}

.location-card,
.item-row,
.mine-card {
  margin-bottom: 10px;
  padding: 12px;
}

.location-card label,
.mobile-form-section label {
  display: grid;
  gap: 5px;
  margin-top: 8px;
  color: #526a82;
  font-size: 12px;
  font-weight: 700;
}

.location-card input,
.mobile-form-section select,
.mobile-form-section textarea {
  width: 100%;
  min-height: 32px;
  border: 1px solid #cbd9e8;
  border-radius: 5px;
  padding: 0 8px;
  background: #fff;
}

.location-card div,
.item-row div,
.evidence-row,
.choice-line {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.location-card button:first-child {
  color: #1a6fb8;
  background: #eef7ff;
}

.item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-form-section {
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid #dce8f4;
  border-radius: 8px;
  background: #fff;
}

.mobile-form-section h4 {
  margin: 0 0 8px;
}

.mobile-form-section p {
  margin: 0;
  line-height: 1.5;
  font-size: 13px;
}

.choice-line button {
  height: 28px;
  border: 1px solid #cbd9e8;
  border-radius: 14px;
  color: #60758b;
  background: #fff;
  padding: 0 10px;
}

.choice-line button.active {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.mobile-form-section textarea {
  padding: 8px;
  min-height: 54px;
}

.evidence-row button:nth-child(2) {
  background: var(--teal);
}

.mobile-primary {
  width: 100%;
  margin-top: 8px;
}

.mobile-empty {
  color: var(--muted);
  text-align: center;
}

.mobile-stat {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.mobile-stat div {
  min-height: 68px;
  padding: 10px;
  border: 1px solid #dce8f4;
  border-radius: 6px;
  background: #f9fcff;
}

.mobile-stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.mobile-stat strong {
  display: block;
  margin-top: 6px;
  color: #0d83e9;
  font-size: 22px;
}

.info-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.info-item {
  min-height: 58px;
  padding: 10px;
  border: 1px solid #dce8f4;
  border-radius: 6px;
  background: #fff;
}

.info-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.info-item strong {
  display: block;
  margin-top: 6px;
  font-size: 14px;
}

.flow {
  display: grid;
  gap: 12px;
}

.flow-step {
  position: relative;
  min-height: 58px;
  padding: 10px 10px 10px 38px;
  border: 1px solid #dae7f4;
  border-radius: 6px;
  background: #fff;
}

.flow-button {
  width: 100%;
  color: inherit;
  text-align: left;
}

.flow-step::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 15px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #0d83e9;
}

.flow-step.done::before {
  background: var(--green);
}

.flow-step.current {
  border-color: #90caff;
  background: #f2f9ff;
}

.flow-step.current::before {
  box-shadow: 0 0 0 4px rgba(13, 131, 233, 0.14);
}

.flow-step::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 31px;
  width: 2px;
  height: calc(100% - 14px);
  background: #cfe2f3;
}

.flow-step:last-child::after {
  display: none;
}

.flow-step strong {
  display: block;
  font-size: 13px;
}

.flow-step span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 36, 56, 0.18);
  z-index: 20;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 460px;
  height: 100vh;
  background: #fff;
  box-shadow: -10px 0 30px rgba(30, 56, 90, 0.2);
  transform: translateX(110%);
  transition: transform 0.22s ease;
  z-index: 21;
}

.drawer.open {
  transform: translateX(0);
}

.drawer header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  padding: 0 16px;
  color: #fff;
  background: #0d83e9;
}

.drawer header span {
  display: block;
  margin-top: 3px;
  color: rgba(255,255,255,0.78);
  font-size: 12px;
}

.drawer-body {
  height: calc(100vh - 64px);
  padding: 16px;
  overflow: auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.field-block {
  min-height: 56px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f9fcff;
}

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

.field-block strong {
  display: block;
  margin-top: 6px;
}

.drawer-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

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

.drawer-form label,
.modal-form label,
.textarea-label {
  display: grid;
  gap: 6px;
  color: #526a82;
  font-size: 12px;
  font-weight: 700;
}

.drawer-form input,
.drawer-form select,
.modal-form input,
.modal-form select,
.textarea-label textarea {
  width: 100%;
  min-height: 34px;
  border: 1px solid #cbd9e8;
  border-radius: 4px;
  padding: 0 9px;
  color: var(--text);
  background: #fff;
  font-weight: 400;
}

.textarea-label {
  margin-top: 12px;
}

.textarea-label textarea {
  min-height: 78px;
  padding: 8px 9px;
  resize: vertical;
}

.mini-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.mini-list button,
.notice-item {
  width: 100%;
  padding: 10px;
  border: 1px solid #dce8f4;
  border-radius: 6px;
  background: #f9fcff;
  text-align: left;
}

.mini-list strong,
.notice-item strong {
  display: block;
  font-size: 13px;
}

.mini-list span,
.notice-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

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

.notice-item p {
  margin: 8px 0 0;
  line-height: 1.5;
  font-size: 13px;
}

.empty {
  margin: 8px 0;
  color: var(--muted);
  font-size: 13px;
}

.video-preview {
  display: grid;
  place-items: center;
  min-height: 150px;
  margin-bottom: 14px;
  border: 1px solid #d8e7f6;
  border-radius: 6px;
  background: linear-gradient(135deg, #eef7ff, #f8fbff);
  color: #29445f;
}

.video-preview strong {
  font-size: 18px;
}

.video-preview span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(16, 36, 56, 0.24);
  z-index: 40;
}

.modal {
  width: min(680px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(18, 46, 80, 0.24);
}

.modal header,
.modal footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}

.modal header strong {
  font-size: 16px;
}

.modal footer {
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.modal-body {
  padding: 16px;
}

.modal-close {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 4px;
  color: #64788e;
  background: #eef4fa;
  font-size: 20px;
}

.big-screen .sidebar,
.big-screen .module-tabs {
  display: none;
}

.big-screen .toolbar .ghost,
.big-screen .toolbar .primary {
  display: none;
}

.big-screen .app-shell {
  grid-template-columns: 1fr;
}

.big-screen .topbar {
  height: 64px;
}

.big-screen .content {
  background: #e9f2fb;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  min-width: 220px;
  max-width: 420px;
  padding: 12px 14px;
  border-radius: 6px;
  color: #fff;
  background: rgba(20, 45, 70, 0.92);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 30;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  body {
    min-width: 0;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .topbar {
    height: auto;
    min-height: 88px;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }

  .top-actions,
  .module-tabs,
  .toolbar {
    flex-wrap: wrap;
  }

  .dashboard-grid,
  .grid-2,
  .template-layout,
  .mobile-layout {
    grid-template-columns: 1fr;
  }

  .task-stage-board,
  .demo-flow,
  .template-meta,
  .mobile-stat {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content {
    padding: 10px;
  }

  .module-tabs {
    height: auto;
    padding: 8px;
  }

  .module-tabs button {
    height: 36px;
  }

  .drawer {
    width: 100%;
  }

  .phone-shell {
    height: auto;
    border-radius: 18px;
  }

  .phone-body {
    height: 560px;
  }
}
