:root {
  --nav-blue: #0557a8;
  --nav-blue-dark: #014484;
  --nav-blue-soft: #128ee7;
  --cyan: #22c6ef;
  --line: #dfe7f0;
  --line-strong: #cbd8e6;
  --bg: #f2f5f9;
  --panel: #ffffff;
  --text: #162235;
  --muted: #64748b;
  --light-text: #eff8ff;
  --green: #26c778;
  --red: #f2405f;
  --orange: #f59e0b;
  --blue: #1593e9;
  --purple: #5147e8;
  --shadow: 0 8px 24px rgba(24, 55, 92, 0.08);
  --radius: 4px;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-family, "Microsoft YaHei", Arial, sans-serif);
  font-size: 15px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.alarm-app {
  min-height: 100vh;
}

.system-header {
  display: block;
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 224px;
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 2px 10px rgba(0, 34, 80, 0.12);
  transition: box-shadow 160ms ease;
}

.portal-topbar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  height: 34px;
  padding: 0 58px;
  background: #707070;
  color: #ffffff;
  font-size: 14px;
}

.portal-topbar nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.portal-topbar a {
  color: #ffffff;
  text-decoration: none;
}

.portal-topbar a:hover {
  text-decoration: underline;
}

.portal-search {
  display: inline-flex;
  align-items: center;
  width: 120px;
  height: 22px;
  margin: 0 8px 0 16px;
  padding: 0 7px;
  border-radius: 999px;
  background: #f0f2f4;
}

.portal-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
}

.portal-search span {
  color: #8a8f96;
}

.portal-brand {
  min-height: 146px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0 32%, rgba(255, 255, 255, 0.58) 58%, rgba(255, 255, 255, 0.78) 100%),
    url("https://www.njtech.edu.cn/dfiles/14435/public/home/image/headerbg.jpg") center top / cover no-repeat;
  position: relative;
  overflow: hidden;
}

.portal-brand::after {
  display: none;
}

.brand-area {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 120px;
  padding: 0 58px;
  position: relative;
  z-index: 1;
}

.school-logo {
  display: block;
  width: 244px;
  height: 80px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-copy.system-title {
  padding-left: 24px;
  border-left: 1px solid rgba(8, 143, 208, 0.28);
}

.brand-copy strong {
  display: block;
  color: #078fd0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-copy span {
  display: block;
  margin-top: 8px;
  color: #078fd0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.module-nav {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  height: 44px;
  padding: 0 52px;
  background: #0096d6;
}

.module-button {
  display: inline-flex;
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 8px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  transition: background 120ms ease, color 120ms ease;
}

.module-button:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.module-button:hover,
.module-button.active {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.module-button.active {
  background: rgba(0, 80, 140, 0.22);
  box-shadow: inset 0 -3px 0 #ffffff;
}

.module-icon {
  display: inline-grid;
  width: 18px;
  place-items: center;
  flex: 0 0 18px;
  font-size: 18px;
  line-height: 1;
}

.tab-strip {
  display: flex;
  position: sticky;
  top: 224px;
  z-index: 29;
  align-items: center;
  gap: 5px;
  height: 48px;
  padding: 0 14px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line-strong);
  background: #fbfdff;
}

.tab-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  min-width: 112px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: #ffffff;
  color: #344257;
  font-size: 15px;
  white-space: nowrap;
}

.tab-button.active {
  border-color: var(--blue);
  background: linear-gradient(#20a8f5, #0b8de5);
  color: #ffffff;
}

.header-toggle {
  height: 32px;
  margin-left: auto;
  padding: 0 13px;
  border: 1px solid #c7d9ea;
  border-radius: 3px;
  background: #ffffff;
  color: #24506f;
  font-weight: 800;
  white-space: nowrap;
}

.header-toggle:hover {
  border-color: #8eccea;
  background: #eef8fc;
  color: #0766ad;
}

.alarm-app.header-collapsed .system-header {
  min-height: 224px;
  top: -180px;
  box-shadow: 0 2px 12px rgba(0, 34, 80, 0.16);
}

.alarm-app.header-collapsed .tab-strip {
  top: 44px;
  box-shadow: 0 2px 8px rgba(0, 34, 80, 0.08);
}

.tab-button .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.tab-close {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
}

.tab-close:hover {
  background: rgba(255, 255, 255, 0.24);
}

.page-stage {
  min-height: calc(100vh - 268px);
  padding: 12px 14px 20px;
  background: var(--bg);
}

.alarm-app.header-collapsed .page-stage {
  position: relative;
  top: 92px;
  margin-bottom: -92px;
}

.page-stage:focus {
  outline: none;
}

.page-stack {
  display: grid;
  gap: 12px;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 280px minmax(940px, 1fr);
  gap: 14px;
  align-items: start;
}

.alarm-rail {
  min-height: calc(100vh - 148px);
  overflow: hidden;
  border: 1px solid #cfe6f8;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.rail-clock {
  padding: 16px;
  background: linear-gradient(90deg, #22c4ed, #30d3ef);
  color: #ffffff;
  text-align: center;
}

.rail-clock strong {
  display: block;
  font-size: 22px;
  letter-spacing: 0.04em;
}

.rail-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 152, 205, 0.18);
}

.rail-meta span {
  padding: 9px 10px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.35);
}

.campus-tabs,
.queue-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.campus-tabs button,
.queue-tabs button {
  height: 48px;
  border: 0;
  border-right: 1px solid var(--line);
  background: #ffffff;
  color: #1f3d5f;
  font-weight: 700;
}

.campus-tabs button.active,
.queue-tabs button.active {
  color: #0288d1;
  box-shadow: inset 0 -3px 0 #26bce8;
}

.badge-count {
  display: inline-grid;
  min-width: 24px;
  height: 22px;
  margin-left: 6px;
  place-items: center;
  border-radius: 999px;
  background: #ef4c62;
  color: #ffffff;
  font-size: 13px;
}

.incident-feed {
  max-height: none;
  overflow: visible;
}

.incident-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  padding: 15px 14px;
  border-bottom: 1px solid var(--line);
}

.bell {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #f04a61;
  color: #ffffff;
  font-size: 24px;
}

.bell.orange {
  background: #f3a715;
}

.incident-item strong {
  display: block;
  margin-bottom: 4px;
  color: #1f2d40;
  font-size: 16px;
}

.incident-item small {
  display: block;
  color: var(--muted);
  line-height: 1.5;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid #bf3f4f;
  border-radius: 3px;
  color: #bf3f4f;
  font-size: 13px;
  font-weight: 700;
}

.panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.panel-head h1,
.panel-head h2 {
  margin: 0;
  color: #172236;
  font-size: 21px;
  font-weight: 800;
}

.panel-head .title-icon {
  margin-right: 8px;
  color: #1f2d40;
}

.panel-body {
  padding: 16px;
}

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

.summary-card {
  min-height: 96px;
  padding: 16px;
  border: 1px solid #d7e4ee;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(22, 184, 217, 0.07), transparent 48%),
    #ffffff;
}

.summary-card.primary {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 42%),
    linear-gradient(135deg, #075b9e, #1287c9);
  color: #ffffff;
}

.summary-card span,
.summary-card small {
  display: block;
  color: #64748b;
  font-size: 13px;
}

.summary-card.primary span,
.summary-card.primary small {
  color: rgba(255, 255, 255, 0.78);
}

.summary-card strong {
  display: block;
  margin: 9px 0 8px;
  color: #14233d;
  font-size: 28px;
  line-height: 1;
}

.summary-card.primary strong {
  color: #ffffff;
}

.mini-tabs {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  overflow: hidden;
}

.mini-tabs button {
  min-width: 44px;
  height: 32px;
  border: 0;
  border-right: 1px solid var(--line-strong);
  background: #ffffff;
  color: #344257;
}

.mini-tabs button.active {
  background: var(--blue);
  color: #ffffff;
}

.stats-grid {
  display: grid;
  grid-template-columns: minmax(390px, 0.9fr) minmax(520px, 1.1fr);
  gap: 14px;
}

.chart-card {
  min-height: 320px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.chart-card .panel-head {
  min-height: 46px;
}

.html-donut-chart,
.html-bar-chart {
  min-height: 270px;
  padding: 18px;
}

.html-donut-chart {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.75fr);
  gap: 18px;
  align-items: center;
}

.donut-visual {
  position: relative;
  width: min(240px, 82%);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  background: conic-gradient(#ff2f5e 0 50.95%, #00d46a 50.95% 83.53%, #4034e8 83.53% 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5), 0 12px 28px rgba(19, 54, 91, 0.08);
}

.donut-hole {
  position: absolute;
  inset: 23%;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #e6eef5;
}

.donut-hole strong {
  color: #14233d;
  font-size: 34px;
  line-height: 1;
}

.donut-hole span {
  margin-top: 8px;
  color: #64748b;
  font-size: 14px;
}

.chart-legend,
.bar-legend {
  display: grid;
  gap: 10px;
  color: #475569;
  font-size: 13px;
}

.chart-legend i,
.bar-legend i {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border-radius: 3px;
  vertical-align: -1px;
}

.html-bar-chart {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
}

.bar-legend {
  display: flex;
  justify-content: center;
  gap: 22px;
}

.bar-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
  min-height: 220px;
  padding: 8px 8px 0;
  border-bottom: 1px solid #e6eef5;
  background:
    linear-gradient(to top, #edf2f7 1px, transparent 1px) 0 0 / 100% 20%,
    #ffffff;
}

.bar-item {
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 6px;
  min-width: 0;
  text-align: center;
}

.bar-track {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 2px;
  height: 170px;
}

.bar-seg {
  display: block;
  width: 9px;
  min-height: 2px;
  border-radius: 3px 3px 0 0;
}

.bar-seg.red {
  background: #ff2f5e;
}

.bar-seg.green {
  background: #00d46a;
}

.bar-seg.blue {
  background: #4034e8;
}

.bar-item strong {
  color: #14233d;
  font-size: 13px;
}

.bar-item > span {
  overflow: hidden;
  color: #64748b;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.command-screen {
  display: grid;
  gap: 14px;
  min-height: calc(100vh - 292px);
  padding: 18px;
  border: 1px solid #cfe3f3;
  background:
    linear-gradient(135deg, rgba(0, 150, 214, 0.08), transparent 32%),
    linear-gradient(180deg, #f5f9fc, #eaf2f8);
}

.command-hero {
  display: flex;
  min-height: 126px;
  align-items: center;
  justify-content: space-between;
  padding: 22px 30px;
  border: 1px solid #b8dbf0;
  border-left: 6px solid #0096d6;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(236, 248, 255, 0.92)),
    linear-gradient(135deg, transparent 0 48%, rgba(0, 150, 214, 0.08) 48% 52%, transparent 52%);
  color: #0c3158;
  box-shadow: 0 10px 24px rgba(8, 61, 105, 0.08);
}

.command-hero h1 {
  margin: 6px 0 8px;
  color: #073b70;
  font-size: 32px;
  letter-spacing: 0.04em;
}

.command-hero p,
.command-hero .eyebrow {
  margin: 0;
  color: #4a6784;
}

.command-hero .eyebrow {
  display: inline-flex;
  padding: 4px 10px;
  border: 1px solid #b9dcec;
  background: #eef8fc;
  color: #116798;
  font-size: 13px;
  font-weight: 700;
}

.command-clock {
  display: grid;
  gap: 8px;
  min-width: 330px;
  justify-items: end;
}

.command-clock strong {
  color: #083862;
  font-size: 22px;
}

.command-clock span {
  color: #5d7085;
}

.command-screen .dashboard-layout {
  grid-template-columns: minmax(640px, 1fr) 300px 330px;
  gap: 14px;
  align-items: start;
}

.command-panel,
.command-screen .alarm-rail {
  overflow: hidden;
  border: 1px solid #d5e5f0;
  border-radius: 3px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 57, 93, 0.07);
}

.command-screen .alarm-rail {
  min-height: 0;
  max-height: none;
  overflow: hidden;
  background: #ffffff;
}

.command-panel-head {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid #dceaf4;
  background: linear-gradient(90deg, #f8fcff, #eef8fc);
  color: #17314c;
}

.command-panel-head h2 {
  margin: 0;
  color: #10365a;
  font-size: 18px;
  letter-spacing: 0.04em;
}

.command-screen .mini-tabs {
  border-color: #bed7e8;
}

.command-screen .mini-tabs button {
  background: #ffffff;
  color: #36546e;
  border-right-color: #bed7e8;
}

.command-screen .mini-tabs button.active {
  background: #0096d6;
  color: #ffffff;
}

.command-kpis {
  margin-bottom: 0;
}

.command-kpis .summary-card {
  min-height: 108px;
  border-color: #d3e7f3;
  background:
    linear-gradient(135deg, rgba(0, 150, 214, 0.08), transparent 58%),
    #ffffff;
  box-shadow: 0 8px 18px rgba(7, 51, 96, 0.06);
}

.command-kpis .summary-card.primary {
  background: linear-gradient(135deg, #0096d6, #075a9a);
}

.command-kpis .summary-card strong {
  font-size: 34px;
}

.command-screen .rail-clock {
  display: grid;
  gap: 4px;
  padding: 18px;
  background: linear-gradient(135deg, #0096d6, #17b7df);
  text-align: left;
}

.command-screen .rail-clock span,
.command-screen .rail-clock small {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.command-screen .rail-clock strong {
  color: #ffffff;
  font-size: 36px;
  letter-spacing: 0;
  text-align: left;
}

.command-screen .campus-tabs,
.command-screen .queue-tabs {
  border-bottom-color: #d9e8f3;
}

.command-screen .campus-tabs button,
.command-screen .queue-tabs button {
  background: #f8fbfd;
  color: #244765;
  border-right-color: #d9e8f3;
}

.command-screen .campus-tabs button.active,
.command-screen .queue-tabs button.active {
  color: #0078b7;
  box-shadow: inset 0 -3px 0 #0096d6;
}

.command-screen .incident-feed {
  max-height: none;
  overflow: visible;
}

.command-screen .incident-item {
  grid-template-columns: 38px minmax(0, 1fr);
  padding: 14px 16px;
  border-bottom-color: #e5eef5;
}

.command-screen .bell {
  width: 36px;
  height: 36px;
  font-size: 19px;
}

.command-screen .incident-item strong {
  color: #14304c;
}

.command-screen .incident-item small {
  color: #65778c;
}

.command-screen .status-chip {
  border-color: #0096d6;
  color: #0079ad;
}

.campus-status-board {
  display: grid;
  grid-template-columns: minmax(250px, 0.82fr) minmax(320px, 1fr);
  gap: 18px;
  min-height: 404px;
  padding: 22px;
  align-items: center;
}

.campus-orbit {
  position: relative;
  display: grid;
  width: min(300px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, #ffffff 0 28%, transparent 29%),
    repeating-radial-gradient(circle, rgba(20, 133, 200, 0.18) 0 2px, transparent 2px 44px),
    radial-gradient(circle, rgba(21, 147, 233, 0.18), transparent 64%);
  color: #0d477c;
}

.campus-orbit strong {
  color: #073b70;
  font-size: 28px;
}

.campus-orbit small {
  margin-top: 8px;
  color: #59708a;
}

.orbit-dot {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: #17bfe8;
  box-shadow: 0 0 0 7px rgba(23, 191, 232, 0.16);
}

.orbit-dot.dot-a {
  top: 18%;
  left: 24%;
}

.orbit-dot.dot-b {
  top: 42%;
  right: 14%;
  background: #f8b443;
  box-shadow: 0 0 0 7px rgba(248, 180, 67, 0.16);
}

.orbit-dot.dot-c {
  left: 30%;
  bottom: 14%;
  background: #28c879;
  box-shadow: 0 0 0 7px rgba(40, 200, 121, 0.16);
}

.campus-status-list {
  display: grid;
  gap: 14px;
}

.campus-status-card {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 72px;
  gap: 8px 14px;
  padding: 16px;
  border: 1px solid #d9e8f3;
  background: #fbfdff;
}

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

.campus-status-card strong {
  color: #18324d;
  font-size: 17px;
}

.campus-status-card span,
.campus-status-card small {
  color: #64748b;
  font-size: 13px;
}

.campus-status-card b {
  color: #0f79bd;
  font-size: 28px;
  text-align: right;
}

.risk-meter {
  grid-column: 1 / -1;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5eff7;
}

.risk-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #13b9df, #0a6eb2);
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #166b95;
  font-size: 13px;
  font-weight: 700;
}

.live-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #42f09b;
  box-shadow: 0 0 0 5px rgba(66, 240, 155, 0.18);
}

.command-screen .html-donut-chart {
  grid-template-columns: 1fr;
  min-height: 404px;
  padding-top: 28px;
}

.command-screen .html-bar-chart {
  min-height: 268px;
  padding: 18px 22px 24px;
}

.command-screen .bar-grid {
  min-height: 190px;
}

.command-screen .donut-visual {
  width: min(230px, 72%);
}

.command-screen .chart-legend {
  width: 74%;
  margin: 0 auto;
}

.command-table table {
  min-width: 1080px;
}

.campus-duty-screen {
  gap: 12px;
  padding: 14px;
  border-color: #d8e4ef;
  background: #f3f6fa;
}

.campus-duty-screen .command-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: stretch;
  min-height: 96px;
  padding: 16px 20px;
  border: 1px solid #d7e5f0;
  border-left: 4px solid #0b77b7;
  background: #ffffff;
  box-shadow: none;
}

.campus-duty-screen .command-hero > div:first-child {
  display: grid;
  align-content: center;
}

.campus-duty-screen .command-hero h1 {
  margin: 5px 0 6px;
  color: #17324d;
  font-size: 24px;
  letter-spacing: 0;
}

.campus-duty-screen .command-hero p,
.campus-duty-screen .command-hero .eyebrow {
  color: #5f7286;
}

.campus-duty-screen .command-hero .eyebrow {
  padding: 0;
  border: 0;
  background: transparent;
  color: #0b6fa9;
}

.campus-duty-screen .command-clock {
  width: 300px;
  min-width: 300px;
  gap: 4px;
  padding-left: 22px;
  border-left: 1px solid #dbe7f1;
  align-content: center;
  justify-items: end;
  text-align: right;
}

.campus-duty-screen .command-clock strong {
  color: #1e3954;
  font-size: 19px;
  font-variant-numeric: tabular-nums;
}

.campus-duty-screen .command-clock span,
.campus-duty-screen .command-clock small {
  color: #617487;
}

.campus-duty-screen .summary-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 86px;
  padding: 14px 16px;
  border-color: #dbe7f1;
  border-radius: 3px;
  background: #ffffff;
  box-shadow: none;
}

.campus-duty-screen .summary-card.primary {
  border-color: #aacfe7;
  background: #f1f8fd;
  color: #17324d;
}

.campus-duty-screen .summary-card.primary span,
.campus-duty-screen .summary-card.primary small {
  color: #617487;
}

.campus-duty-screen .summary-card strong,
.campus-duty-screen .summary-card.primary strong {
  align-self: center;
  margin: 8px 0 6px;
  color: #17324d;
  font-size: 27px;
  font-variant-numeric: tabular-nums;
}

.campus-duty-screen .dashboard-layout {
  grid-template-columns: minmax(640px, 1fr) 330px;
  gap: 12px;
}

.campus-duty-screen .command-panel,
.campus-duty-screen .alarm-rail {
  border-color: #dbe7f1;
  border-radius: 3px;
  box-shadow: none;
}

.campus-duty-screen .command-panel-head {
  min-height: 46px;
  padding: 0 16px;
  background: #f8fbfe;
}

.campus-duty-screen .command-panel-head h2 {
  color: #213a53;
  font-size: 16px;
  letter-spacing: 0;
}

.campus-duty-screen .rail-clock {
  padding: 14px 16px;
  border-bottom: 1px solid #dbe7f1;
  background: #f8fbfe;
  color: #213a53;
}

.campus-duty-screen .rail-clock span,
.campus-duty-screen .rail-clock small {
  color: #617487;
}

.campus-duty-screen .rail-clock strong {
  color: #0b6fa9;
  font-size: 28px;
}

.campus-duty-screen .campus-tabs button {
  height: 42px;
  background: #ffffff;
  color: #344b62;
  font-size: 13px;
}

.campus-duty-screen .campus-tabs button.active {
  color: #0b6fa9;
  box-shadow: inset 0 -2px 0 #0b77b7;
}

.campus-duty-screen .badge-count {
  min-width: 20px;
  height: 20px;
  background: #d94b4b;
  font-size: 12px;
}

.campus-duty-screen .incident-feed {
  max-height: 270px;
  overflow: auto;
}

.campus-duty-screen .incident-item {
  grid-template-columns: 30px minmax(0, 1fr);
  padding: 12px 14px;
}

.campus-duty-screen .bell {
  width: 28px;
  height: 28px;
  border: 1px solid #c7daeb;
  border-radius: 3px;
  background: #eef5fb;
  color: #0b6fa9;
  font-size: 14px;
  font-weight: 800;
}

.campus-duty-screen .bell.orange {
  border-color: #f0d394;
  background: #fff8e7;
  color: #a16500;
}

.campus-duty-screen .incident-item strong {
  font-size: 14px;
}

.command-chart-grid {
  display: grid;
  grid-template-columns: 300px minmax(360px, 1fr) minmax(420px, 1.2fr);
  gap: 12px;
  align-items: stretch;
}

.command-chart-grid > .command-panel,
.campus-duty-screen .dashboard-layout > .command-panel,
.campus-duty-screen .dashboard-layout > .alarm-rail {
  height: 100%;
}

.campus-status-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  min-height: 0;
  padding: 16px;
  align-items: stretch;
}

.campus-status-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid #dbe7f1;
  background: #fbfdff;
}

.campus-status-summary strong {
  color: #1d3955;
  font-size: 16px;
}

.campus-status-summary span {
  color: #617487;
  font-size: 13px;
}

.campus-status-table {
  display: grid;
  border: 1px solid #dbe7f1;
  border-bottom: 0;
}

.campus-status-row {
  display: grid;
  grid-template-columns: 1.15fr 0.75fr 0.7fr 0.65fr minmax(180px, 1.5fr) 0.65fr;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid #dbe7f1;
  background: #ffffff;
}

.campus-status-row.head {
  min-height: 38px;
  background: #f3f7fb;
  color: #586f85;
  font-size: 13px;
  font-weight: 700;
}

.campus-status-row > * {
  margin: 0;
  padding: 0 12px;
  color: #334a61;
  font-style: normal;
}

.campus-status-row strong {
  color: #17324d;
}

.campus-status-row b {
  color: #0b6fa9;
  font-size: 20px;
}

.campus-status-row small {
  color: #617487;
  font-size: 13px;
}

.campus-status-row em {
  display: inline-flex;
  width: fit-content;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid #b7d8ed;
  border-radius: 2px;
  background: #f2f8fc;
  color: #0b6fa9;
  font-size: 12px;
  font-weight: 700;
}

.campus-status-row em.warn {
  border-color: #efcf8f;
  background: #fff8e7;
  color: #a16500;
}

.html-pie-chart {
  display: grid;
  min-height: 250px;
  padding: 18px 16px;
  gap: 16px;
  align-content: center;
}

.pie-visual {
  position: relative;
  width: min(178px, 72%);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  background: conic-gradient(#1f76b4 0 50.95%, #73a9d4 50.95% 83.53%, #9bb8c9 83.53% 100%);
  border: 1px solid #d6e4ef;
  box-shadow: none;
}

.pie-label {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-flex;
  padding: 5px 8px;
  border: 1px solid rgba(214, 228, 239, 0.85);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.88);
  color: #17324d;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  transform: translate(-50%, -50%);
}

.campus-duty-screen .chart-legend {
  width: 88%;
  margin: 0 auto;
  gap: 8px;
}

.html-line-chart {
  min-height: 250px;
  padding: 16px 18px 10px;
}

.line-plot {
  display: block;
  width: 100%;
  height: 224px;
}

.line-grid line {
  stroke: #e2ebf3;
  stroke-width: 1;
}

.line-path {
  fill: none;
  stroke: #1f76b4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.line-point circle {
  fill: #ffffff;
  stroke: #1f76b4;
  stroke-width: 2;
}

.line-point text {
  fill: #5f7286;
  font-size: 12px;
  text-anchor: middle;
}

.line-point text:first-of-type {
  fill: #17324d;
  font-weight: 800;
}

.campus-duty-screen .html-bar-chart {
  min-height: 250px;
  padding: 14px 18px 18px;
}

.campus-duty-screen .bar-grid {
  min-height: 160px;
  gap: 10px;
}

.campus-duty-screen .bar-track {
  height: 142px;
}

.campus-duty-screen .bar-seg.red {
  background: #1f76b4;
}

.campus-duty-screen .bar-seg.green {
  background: #73a9d4;
}

.campus-duty-screen .bar-seg.blue {
  background: #9bb8c9;
}

.table-wrap {
  overflow-x: auto;
  overflow-y: visible;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

th,
td {
  height: 46px;
  padding: 9px 12px;
  border-bottom: 1px solid #e8eef5;
  border-right: 1px solid #eef3f8;
  text-align: left;
  vertical-align: middle;
}

th {
  background: #fbfdff;
  color: #26364d;
  font-weight: 800;
  white-space: nowrap;
}

td {
  color: #3f4d63;
}

tr:nth-child(even) td {
  background: #fcfdff;
}

.link-button {
  border: 0;
  background: transparent;
  color: #168bd8;
  font-weight: 700;
}

.link-button:hover {
  text-decoration: underline;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 3px;
  background: #eaf7ff;
  color: #168bd8;
  font-weight: 700;
  font-size: 13px;
}

.tag.green {
  background: #e8f9ef;
  color: #23a45a;
}

.tag.orange {
  background: #fff4df;
  color: #b87509;
}

.tag.red {
  background: #ffecef;
  color: #cf344d;
}

.form-panel {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 28px;
  align-items: center;
}

.form-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.form-row.wide {
  grid-column: span 2;
}

.form-row label {
  color: #27374d;
  font-weight: 800;
  text-align: right;
}

.field,
.select-field,
.textarea-field {
  width: 100%;
  min-width: 0;
  border: 1px solid #d8e2ee;
  border-radius: 3px;
  background: #ffffff;
  color: #1d2b42;
}

.field,
.select-field {
  height: 36px;
  padding: 0 12px;
}

.textarea-field {
  min-height: 112px;
  padding: 10px 12px;
  resize: vertical;
}

.button-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 76px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid #d6e2ee;
  border-radius: 3px;
  background: #ffffff;
  color: #334155;
  font-weight: 700;
}

.btn.primary {
  border-color: #9dd8ff;
  background: #e9f7ff;
  color: #1389da;
}

.btn.solid {
  border-color: #1593e9;
  background: #1593e9;
  color: #ffffff;
}

.btn.green {
  border-color: #bfe8ae;
  background: #eefbe8;
  color: #16974e;
}

.btn.red {
  border-color: #f1c6c6;
  background: #fff2f2;
  color: #c0383c;
}

.split-workspace {
  display: grid;
  grid-template-columns: minmax(760px, 1fr) 330px;
  gap: 12px;
  align-items: stretch;
}

.dispatch-card {
  border: 1px solid #cfe2f2;
  background: #ffffff;
}

.dispatch-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 16px;
  background: linear-gradient(90deg, #229ee0, #52b8e9);
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
}

.dispatch-body {
  padding: 16px;
  background: #f7fbff;
}

.dispatch-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 18px;
}

.dispatch-form .form-row {
  grid-template-columns: 72px minmax(0, 1fr);
}

.dispatch-form .wide {
  grid-column: 1 / -1;
}

.person-band {
  margin: 18px 0 10px;
  padding: 10px 12px;
  border-top: 1px solid #d8e8f5;
  border-bottom: 1px solid #d8e8f5;
  background: #eaf6ff;
  font-weight: 800;
}

.flow-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.empty-state {
  display: grid;
  min-height: 220px;
  place-items: center;
  color: #9aa8bb;
  text-align: center;
}

.flow-actions {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
}

.side-detail {
  border-left: 1px solid var(--line);
  background: #ffffff;
}

.detail-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}

.detail-section {
  padding: 18px 16px;
  border-bottom: 1px solid var(--line);
}

.detail-section h3 {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #bdeee8;
  font-size: 20px;
}

.detail-list {
  display: grid;
  gap: 12px;
}

.detail-row {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 8px;
  color: #1f2d40;
}

.detail-row span:first-child {
  color: #334155;
  font-weight: 800;
  text-align: right;
}

.page-dispatch {
  background:
    linear-gradient(135deg, rgba(0, 150, 214, 0.08), transparent 32%),
    linear-gradient(180deg, #f6f9fc, #eaf2f8);
}

.dispatch-workbench {
  display: grid;
  gap: 14px;
}

.dispatch-hero {
  display: flex;
  min-height: 118px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px;
  border: 1px solid #b8dbf0;
  border-left: 6px solid #0096d6;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(236, 248, 255, 0.94)),
    linear-gradient(135deg, transparent 0 48%, rgba(0, 150, 214, 0.08) 48% 52%, transparent 52%);
  box-shadow: 0 10px 24px rgba(8, 61, 105, 0.08);
}

.dispatch-hero .eyebrow {
  display: inline-flex;
  padding: 4px 10px;
  border: 1px solid #b9dcec;
  background: #eef8fc;
  color: #116798;
  font-size: 13px;
  font-weight: 700;
}

.dispatch-hero h1 {
  margin: 8px 0;
  color: #073b70;
  font-size: 31px;
  letter-spacing: 0.04em;
}

.dispatch-hero p {
  margin: 0;
  color: #4a6784;
}

.dispatch-case-summary {
  display: grid;
  gap: 7px;
  min-width: 360px;
  justify-items: end;
  color: #5d7085;
}

.dispatch-case-summary strong {
  color: #073b70;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

.dispatch-case-summary span,
.dispatch-case-summary small {
  color: #5d7085;
  font-weight: 700;
}

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

.dispatch-metrics article {
  min-height: 82px;
  padding: 16px 18px;
  border: 1px solid #d5e5f0;
  border-radius: 3px;
  background:
    linear-gradient(135deg, rgba(0, 150, 214, 0.08), transparent 58%),
    #ffffff;
  box-shadow: 0 8px 18px rgba(15, 57, 93, 0.06);
}

.dispatch-metrics span,
.dispatch-metrics small {
  display: block;
  color: #5d7085;
  font-size: 13px;
}

.dispatch-metrics strong {
  display: block;
  margin: 8px 0 4px;
  color: #073b70;
  font-size: 28px;
  line-height: 1;
}

.page-dispatch .split-workspace {
  grid-template-columns: minmax(880px, 1fr) 360px;
  gap: 14px;
  align-items: start;
}

.page-dispatch .dispatch-card {
  overflow: hidden;
  border-color: #d5e5f0;
  border-radius: 3px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 57, 93, 0.07);
}

.page-dispatch .dispatch-title {
  min-height: 54px;
  justify-content: space-between;
  border-bottom: 1px solid #dceaf4;
  background: linear-gradient(90deg, #f8fcff, #eef8fc);
  color: #10365a;
  letter-spacing: 0;
}

.page-dispatch .dispatch-title span {
  font-size: 18px;
}

.page-dispatch .dispatch-title small {
  color: #6a7b8d;
  font-size: 13px;
  font-weight: 600;
}

.page-dispatch .content-title .btn {
  border-color: #c5daea;
  background: #ffffff;
  color: #176b9c;
}

.page-dispatch .dispatch-body {
  background: linear-gradient(180deg, #fbfdff, #f7fbff);
}

.page-dispatch .dispatch-form {
  gap: 16px 20px;
}

.page-dispatch .form-row > span:first-child {
  color: #334b68;
  font-weight: 800;
}

.page-dispatch .field,
.page-dispatch .select-field,
.page-dispatch .textarea-field {
  border-color: #d7e4ee;
  background: #ffffff;
  color: #14233d;
}

.page-dispatch .field:focus,
.page-dispatch .select-field:focus,
.page-dispatch .textarea-field:focus {
  outline: 2px solid rgba(22, 184, 217, 0.2);
  border-color: #16b8d9;
}

.page-dispatch .person-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-color: #d7e4ee;
  background:
    linear-gradient(90deg, rgba(22, 184, 217, 0.1), rgba(6, 79, 150, 0.04)),
    #f2f8fc;
  color: #17395d;
}

.page-dispatch .person-band strong {
  font-size: 15px;
}

.page-dispatch .person-band span {
  color: #65778c;
  font-size: 13px;
  font-weight: 600;
}

.page-dispatch .flow-panel {
  background: #ffffff;
}

.dispatch-flow-steps {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid #e6eef5;
  background: #fbfdff;
}

.dispatch-flow-steps article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #d9e8f3;
  border-radius: 3px;
  background: #ffffff;
}

.dispatch-flow-steps article.active {
  border-color: #9ed4ef;
  background: #eef9fd;
}

.dispatch-flow-steps b {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #edf6fb;
  color: #0879b3;
  font-size: 13px;
}

.dispatch-flow-steps article.active b {
  background: #0096d6;
  color: #ffffff;
}

.dispatch-flow-steps span {
  color: #18324d;
  font-weight: 800;
}

.page-dispatch .empty-state {
  align-content: center;
  gap: 8px;
  min-height: 170px;
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.9), rgba(255, 255, 255, 0.96)),
    #ffffff;
  color: #7b8ca4;
}

.page-dispatch .empty-state strong {
  color: #18324d;
  font-size: 17px;
}

.page-dispatch .empty-state small {
  color: #7b8ca4;
}

.page-dispatch .flow-actions {
  border-top-color: #e6eef5;
  background: #fbfdff;
}

.page-dispatch .flow-actions .button-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dispatch-submit-row {
  justify-content: flex-end;
  margin-top: 10px;
}

.page-dispatch .btn.primary {
  border-color: #0c73bc;
  background: linear-gradient(180deg, #1387d4, #0766ad);
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(6, 102, 173, 0.18);
}

.page-dispatch .btn.green {
  border-color: #62c995;
  background: #e9f8ef;
  color: #126d44;
}

.page-dispatch .btn.red {
  border-color: #ffc9d4;
  background: #fff0f3;
  color: #c6284b;
}

.pc-command-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.76fr) minmax(560px, 1.42fr) minmax(280px, 0.72fr);
  gap: 14px;
  align-items: start;
}

.pc-queue-panel,
.pc-side-stack,
.pc-disposal-grid,
.pc-maintenance-grid {
  min-width: 0;
}

.pc-campus-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid #e6eef5;
  background: #fbfdff;
}

.pc-campus-strip button,
.pc-list-tabs button {
  min-height: 34px;
  border: 1px solid #d4e5ef;
  border-radius: 3px;
  background: #ffffff;
  color: #315170;
  font-weight: 800;
}

.pc-campus-strip button.active,
.pc-list-tabs button.active {
  border-color: #0096d6;
  background: #e8f7ff;
  color: #075f9a;
}

.pc-queue-list {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.pc-queue-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid #d9e8f3;
  border-radius: 3px;
  background: #ffffff;
}

.pc-queue-item b {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #0096d6;
  color: #ffffff;
  font-size: 12px;
}

.pc-queue-item strong,
.pc-queue-item span {
  display: block;
}

.pc-queue-item strong {
  overflow: hidden;
  color: #17395d;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pc-queue-item span {
  color: #64748b;
  font-size: 13px;
}

.pc-queue-item em {
  color: #c25a00;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.pc-queue-item .tag {
  grid-column: 2 / -1;
  justify-self: start;
}

.pc-queue-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #e6eef5;
  background: #fbfdff;
}

.pc-alert-band {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 16px 0;
}

.pc-side-stack {
  display: grid;
  gap: 14px;
}

.pc-alert-list {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.pc-alert-item {
  display: grid;
  gap: 5px;
  padding: 11px 12px;
  border: 1px solid #d9e8f3;
  border-radius: 3px;
  background: #ffffff;
}

.pc-alert-item strong {
  color: #17395d;
}

.pc-alert-item span {
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

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

.pc-monitor-grid article {
  min-height: 70px;
  padding: 12px;
  border: 1px solid #d9e8f3;
  border-radius: 3px;
  background: #fbfdff;
}

.pc-monitor-grid span,
.pc-monitor-grid strong {
  display: block;
}

.pc-monitor-grid span {
  color: #64748b;
  font-size: 13px;
}

.pc-monitor-grid strong {
  margin-top: 8px;
  color: #073b70;
  font-size: 24px;
  line-height: 1;
}

.pc-map-box {
  position: relative;
  min-height: 168px;
  margin: 12px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid #cfe3ee;
  border-radius: 3px;
  background:
    linear-gradient(90deg, rgba(0, 150, 214, 0.08) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(0deg, rgba(0, 150, 214, 0.08) 1px, transparent 1px) 0 0 / 34px 34px,
    #f9fdff;
}

.pc-map-box strong,
.pc-map-box small {
  position: relative;
  z-index: 1;
  display: block;
}

.pc-map-box strong {
  margin-top: 72px;
  color: #073b70;
  font-size: 18px;
}

.pc-map-box small {
  margin-top: 8px;
  color: #64748b;
  line-height: 1.5;
}

.map-point {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: #f2405f;
  box-shadow: 0 0 0 8px rgba(242, 64, 95, 0.14);
}

.map-point.p1 {
  top: 42px;
  left: 46%;
}

.map-point.p2 {
  top: 78px;
  left: 68%;
  background: #0096d6;
  box-shadow: 0 0 0 8px rgba(0, 150, 214, 0.14);
}

.map-point.p3 {
  top: 104px;
  left: 28%;
  background: #26c778;
  box-shadow: 0 0 0 8px rgba(38, 199, 120, 0.14);
}

.pc-disposal-grid {
  display: grid;
  grid-template-columns: minmax(760px, 1.2fr) minmax(420px, 0.8fr);
  gap: 14px;
  align-items: stretch;
}

.pc-disposal-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border-top: 1px solid #e6eef5;
  background: #fbfdff;
}

.pc-action-card {
  display: grid;
  min-height: 84px;
  align-content: center;
  gap: 6px;
  padding: 12px;
  border: 1px solid #d9e8f3;
  border-radius: 3px;
  background: #ffffff;
  color: #17395d;
  text-align: left;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.pc-action-card:hover {
  border-color: #9ed4ef;
  background: #eef9fd;
}

.pc-action-card:active {
  transform: translateY(1px);
}

.pc-action-card strong,
.pc-action-card span {
  display: block;
}

.pc-action-card span {
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

.pc-timeline {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.pc-timeline article {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid #d9e8f3;
  border-radius: 3px;
  background: #ffffff;
}

.pc-timeline b {
  color: #0879b3;
  font-variant-numeric: tabular-nums;
}

.pc-timeline span {
  color: #334b68;
  line-height: 1.5;
}

.pc-review-actions {
  padding: 0 14px 14px;
}

.pc-list-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid #e6eef5;
  background: #fbfdff;
}

.pc-list-tabs button {
  min-width: 92px;
  padding: 0 14px;
}

.pc-list-panel table {
  min-width: 1120px;
}

.pc-maintenance-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.pc-maintenance-grid .pc-action-card {
  min-height: 92px;
}

/* 警情受理：收敛为高校内网业务工作台风格 */
.page-dispatch {
  background: #f3f6fa;
}

.page-dispatch .dispatch-workbench {
  gap: 12px;
}

.page-dispatch .dispatch-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  min-height: 96px;
  align-items: stretch;
  padding: 16px 20px;
  border: 1px solid #d7e5f0;
  border-left: 4px solid #0b77b7;
  background: #ffffff;
  box-shadow: none;
}

.page-dispatch .dispatch-hero > div:first-child {
  display: grid;
  align-content: center;
}

.page-dispatch .dispatch-hero .eyebrow {
  padding: 0;
  border: 0;
  background: transparent;
  color: #0b6fa9;
  font-size: 13px;
}

.page-dispatch .dispatch-hero h1 {
  margin: 5px 0 6px;
  color: #17324d;
  font-size: 24px;
  letter-spacing: 0;
}

.page-dispatch .dispatch-hero p {
  color: #5f7286;
  line-height: 1.6;
}

.page-dispatch .dispatch-case-summary {
  min-width: 0;
  width: 300px;
  padding-left: 22px;
  align-content: center;
  justify-items: end;
  border-left: 1px solid #dbe7f1;
  text-align: right;
}

.page-dispatch .dispatch-case-summary strong {
  color: #17324d;
  font-size: 18px;
}

.page-dispatch .dispatch-case-summary span,
.page-dispatch .dispatch-case-summary small {
  color: #65778c;
}

.page-dispatch .dispatch-metrics {
  gap: 12px;
}

.page-dispatch .dispatch-metrics article {
  display: grid;
  min-height: 78px;
  align-content: center;
  padding: 13px 16px;
  border-color: #d7e4ee;
  background: #ffffff;
  box-shadow: none;
}

.page-dispatch .dispatch-metrics strong {
  margin: 6px 0 3px;
  color: #12385d;
  font-size: 25px;
  font-variant-numeric: tabular-nums;
}

.page-dispatch .pc-command-grid {
  grid-template-columns: minmax(314px, 0.72fr) minmax(560px, 1fr) minmax(292px, 0.66fr);
  gap: 12px;
}

.page-dispatch .dispatch-card {
  border-color: #dbe7f1;
  background: #ffffff;
  box-shadow: none;
}

.page-dispatch .dispatch-title {
  min-height: 46px;
  padding: 11px 14px;
  border-bottom-color: #e2ecf4;
  background: #f8fbfe;
}

.page-dispatch .dispatch-title span {
  color: #17324d;
  font-size: 16px;
}

.page-dispatch .dispatch-title small {
  color: #6d7f91;
  font-size: 12px;
}

.page-dispatch .dispatch-body {
  background: #ffffff;
}

.page-dispatch .dispatch-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  padding: 14px;
}

.page-dispatch .dispatch-form .wide {
  grid-column: 1 / -1;
}

.page-dispatch .form-row {
  gap: 8px;
}

.page-dispatch .form-row > span:first-child {
  color: #334b68;
  font-size: 13px;
}

.page-dispatch .field,
.page-dispatch .select-field,
.page-dispatch .textarea-field {
  min-height: 34px;
  border-color: #d7e4ee;
  background: #ffffff;
}

.page-dispatch .textarea-field {
  min-height: 104px;
}

.page-dispatch .person-band {
  margin: 0 14px;
  min-height: 38px;
  padding: 9px 12px;
  border-color: #dce8f1;
  background: #f4f8fb;
}

.page-dispatch .pc-campus-strip,
.page-dispatch .pc-queue-actions,
.page-dispatch .pc-list-tabs,
.page-dispatch .flow-actions,
.page-dispatch .pc-disposal-actions {
  background: #f8fbfe;
}

.page-dispatch .pc-campus-strip {
  gap: 7px;
  padding: 10px;
}

.page-dispatch .pc-campus-strip button,
.page-dispatch .pc-list-tabs button {
  min-height: 32px;
  border-color: #d4e1eb;
  background: #ffffff;
  color: #315170;
}

.page-dispatch .pc-campus-strip button.active,
.page-dispatch .pc-list-tabs button.active {
  background: #eaf5fb;
  color: #075f9a;
}

.page-dispatch .pc-queue-list,
.page-dispatch .pc-alert-list,
.page-dispatch .pc-monitor-grid,
.page-dispatch .pc-timeline,
.page-dispatch .pc-maintenance-grid {
  gap: 8px;
  padding: 10px;
}

.page-dispatch .pc-queue-item,
.page-dispatch .pc-alert-item,
.page-dispatch .pc-monitor-grid article,
.page-dispatch .pc-action-card,
.page-dispatch .pc-timeline article {
  border-color: #dce8f1;
  background: #ffffff;
}

.page-dispatch .pc-queue-item {
  min-height: 66px;
  padding: 10px;
}

.page-dispatch .pc-alert-item {
  padding: 10px;
}

.page-dispatch .pc-monitor-grid article {
  min-height: 64px;
  padding: 10px;
}

.page-dispatch .pc-monitor-grid strong {
  color: #12385d;
  font-size: 22px;
}

.page-dispatch .pc-side-stack {
  gap: 12px;
}

.page-dispatch .pc-map-box {
  min-height: 150px;
  margin: 10px;
  padding: 16px;
  border-color: #d5e4ee;
  background:
    linear-gradient(90deg, rgba(11, 119, 183, 0.07) 1px, transparent 1px) 0 0 / 30px 30px,
    linear-gradient(0deg, rgba(11, 119, 183, 0.07) 1px, transparent 1px) 0 0 / 30px 30px,
    #fbfdff;
}

.page-dispatch .pc-map-box strong {
  margin-top: 62px;
  color: #17324d;
  font-size: 16px;
}

.page-dispatch .pc-disposal-grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(330px, 0.82fr);
  gap: 12px;
}

.page-dispatch .dispatch-flow-steps {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  background: #ffffff;
}

.page-dispatch .dispatch-flow-steps article {
  grid-template-columns: 30px minmax(0, 1fr);
  min-height: 42px;
  padding: 8px;
}

.page-dispatch .pc-disposal-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
}

.page-dispatch .pc-action-card {
  min-height: 76px;
  padding: 10px;
  transition: background 120ms ease, border-color 120ms ease;
}

.page-dispatch .pc-action-card:hover {
  border-color: #97c8e2;
  background: #f1f8fc;
}

.page-dispatch .pc-action-card:active {
  transform: none;
}

.page-dispatch .pc-list-panel table {
  min-width: 1080px;
}

.page-dispatch .pc-maintenance-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
}

.page-dispatch .pc-maintenance-grid .pc-action-card {
  min-height: 80px;
}

@media (max-width: 1280px) {
  .page-dispatch .pc-command-grid {
    grid-template-columns: minmax(290px, 0.72fr) minmax(520px, 1fr);
  }

  .page-dispatch .pc-side-stack {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .page-dispatch .dispatch-hero,
  .page-dispatch .pc-command-grid,
  .page-dispatch .pc-disposal-grid,
  .page-dispatch .pc-side-stack {
    grid-template-columns: 1fr;
  }

  .page-dispatch .dispatch-case-summary {
    width: auto;
    padding: 12px 0 0;
    justify-items: start;
    border-left: 0;
    border-top: 1px solid #dbe7f1;
    text-align: left;
  }

  .page-dispatch .dispatch-metrics,
  .page-dispatch .dispatch-flow-steps,
  .page-dispatch .pc-disposal-actions,
  .page-dispatch .pc-maintenance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.page-alarmQuery,
.page-alarmDetail {
  background:
    linear-gradient(135deg, rgba(0, 150, 214, 0.08), transparent 32%),
    linear-gradient(180deg, #f6f9fc, #eaf2f8);
}

.alarm-workbench {
  display: grid;
  gap: 14px;
}

.alarm-hero {
  display: flex;
  min-height: 118px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px;
  border: 1px solid #b8dbf0;
  border-left: 6px solid #0096d6;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(236, 248, 255, 0.94)),
    linear-gradient(135deg, transparent 0 48%, rgba(0, 150, 214, 0.08) 48% 52%, transparent 52%);
  box-shadow: 0 10px 24px rgba(8, 61, 105, 0.08);
}

.alarm-hero .eyebrow {
  display: inline-flex;
  padding: 4px 10px;
  border: 1px solid #b9dcec;
  background: #eef8fc;
  color: #116798;
  font-size: 13px;
  font-weight: 700;
}

.alarm-hero h1 {
  margin: 8px 0;
  color: #073b70;
  font-size: 31px;
  letter-spacing: 0.04em;
}

.alarm-hero p {
  margin: 0;
  color: #4a6784;
}

.alarm-hero-summary {
  display: grid;
  gap: 6px;
  min-width: 230px;
  justify-items: end;
  color: #5d7085;
}

.alarm-hero-summary strong {
  color: #073b70;
  font-size: 34px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.alarm-hero-summary span,
.alarm-hero-summary small {
  color: #5d7085;
  font-weight: 700;
}

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

.alarm-metrics article {
  min-height: 82px;
  padding: 16px 18px;
  border: 1px solid #d5e5f0;
  border-radius: 3px;
  background:
    linear-gradient(135deg, rgba(0, 150, 214, 0.08), transparent 58%),
    #ffffff;
  box-shadow: 0 8px 18px rgba(15, 57, 93, 0.06);
}

.alarm-metrics span,
.alarm-metrics small {
  display: block;
  color: #5d7085;
  font-size: 13px;
}

.alarm-metrics strong {
  display: block;
  margin: 8px 0 4px;
  overflow: hidden;
  color: #073b70;
  font-size: 28px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-alarmQuery .split-workspace,
.page-alarmDetail .split-workspace {
  grid-template-columns: minmax(880px, 1fr) 380px;
  gap: 14px;
  align-items: start;
}

.page-alarmQuery .panel,
.page-alarmDetail .panel,
.page-alarmQuery .side-detail,
.page-alarmDetail .side-detail {
  overflow: hidden;
  border-color: #d5e5f0;
  border-radius: 3px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 57, 93, 0.07);
}

.page-alarmQuery .panel-head,
.page-alarmDetail .panel-head,
.page-alarmQuery .detail-title,
.page-alarmDetail .detail-title {
  border-bottom-color: #e6eef5;
  background: linear-gradient(90deg, #f8fcff, #eef8fc);
}

.page-alarmQuery .panel-head h1,
.page-alarmQuery .panel-head h2,
.page-alarmDetail .panel-head h1,
.page-alarmDetail .panel-head h2,
.page-alarmQuery .detail-title strong,
.page-alarmDetail .detail-title strong {
  color: #14233d;
}

.page-alarmQuery .form-panel,
.page-alarmDetail .form-panel {
  border-bottom-color: #e6eef5;
  background:
    linear-gradient(90deg, rgba(22, 184, 217, 0.07), rgba(6, 79, 150, 0.03)),
    #fbfdff;
}

.page-alarmQuery .form-grid,
.page-alarmDetail .form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.page-alarmQuery .form-grid .button-row,
.page-alarmDetail .form-grid .button-row {
  align-self: end;
}

.page-alarmQuery .form-row > span:first-child,
.page-alarmDetail .form-row > span:first-child {
  color: #334b68;
  font-weight: 800;
}

.page-alarmQuery .field,
.page-alarmQuery .select-field,
.page-alarmDetail .field,
.page-alarmDetail .select-field {
  border-color: #d7e4ee;
  background: #ffffff;
  color: #14233d;
}

.page-alarmQuery .field:focus,
.page-alarmQuery .select-field:focus,
.page-alarmDetail .field:focus,
.page-alarmDetail .select-field:focus {
  outline: 2px solid rgba(22, 184, 217, 0.2);
  border-color: #16b8d9;
}

.page-alarmQuery thead th,
.page-alarmDetail thead th {
  background: #f2f7fb;
  color: #28445f;
  font-weight: 800;
}

.page-alarmQuery tbody tr:hover,
.page-alarmDetail tbody tr:hover {
  background: #f7fbff;
}

.page-alarmQuery .alarm-list-head,
.page-alarmDetail .alarm-list-head {
  min-height: 62px;
}

.page-alarmQuery .alarm-list-head h2,
.page-alarmDetail .alarm-list-head h2 {
  margin-bottom: 4px;
}

.page-alarmQuery .alarm-list-head p,
.page-alarmDetail .alarm-list-head p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.page-alarmQuery .alarm-list-panel table,
.page-alarmDetail .alarm-list-panel table {
  table-layout: fixed;
  min-width: 1080px;
}

.page-alarmQuery .alarm-list-panel td,
.page-alarmDetail .alarm-list-panel td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-alarmQuery .tag.green,
.page-alarmDetail .tag.green {
  background: #e8f8ef;
  color: #138a52;
}

.page-alarmQuery .link-button,
.page-alarmDetail .link-button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 3px;
  background: #eef8fc;
  color: #0766ad;
}

.page-alarmQuery .link-button:hover,
.page-alarmDetail .link-button:hover {
  background: #dff2fb;
  text-decoration: none;
}

.page-alarmQuery .btn.primary,
.page-alarmDetail .btn.primary {
  border-color: #0c73bc;
  background: linear-gradient(180deg, #1387d4, #0766ad);
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(6, 102, 173, 0.18);
}

.page-alarmQuery .pager,
.page-alarmDetail .pager {
  border-top: 1px solid #e6eef5;
  background: #fbfdff;
}

.page-alarmQuery .pager .current,
.page-alarmDetail .pager .current {
  background: #0766ad;
}

.page-alarmQuery .side-detail,
.page-alarmDetail .side-detail {
  border-left: 0;
}

.alarm-detail-panel {
  position: sticky;
  top: 12px;
}

.alarm-detail-status {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-bottom: 1px solid #e6eef5;
  background:
    linear-gradient(135deg, rgba(0, 150, 214, 0.1), transparent 62%),
    #fbfdff;
}

.alarm-detail-status span,
.alarm-detail-status small {
  color: #5d7085;
  font-size: 13px;
  font-weight: 700;
}

.alarm-detail-status strong {
  color: #073b70;
  font-size: 18px;
}

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

.alarm-detail-timeline article {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid #d9e8f3;
  border-radius: 3px;
  background: #fbfdff;
}

.alarm-detail-timeline b {
  color: #0879b3;
  font-variant-numeric: tabular-nums;
}

.alarm-detail-timeline span {
  color: #334b68;
  line-height: 1.5;
}

.alarm-detail-actions {
  gap: 8px;
}

.page-alarmQuery .detail-section,
.page-alarmDetail .detail-section {
  border-bottom-color: #e6eef5;
}

.page-alarmQuery .detail-section h3,
.page-alarmDetail .detail-section h3 {
  border-bottom-color: #bdebf2;
  color: #17395d;
}

.page-alarmQuery .detail-row span:first-child,
.page-alarmDetail .detail-row span:first-child {
  color: #49617c;
}

.page-recordings {
  background:
    linear-gradient(135deg, rgba(0, 150, 214, 0.08), transparent 32%),
    linear-gradient(180deg, #f6f9fc, #eaf2f8);
}

.recording-workbench {
  display: grid;
  gap: 14px;
}

.recording-hero {
  display: flex;
  min-height: 118px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px;
  border: 1px solid #b8dbf0;
  border-left: 6px solid #0096d6;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(236, 248, 255, 0.94)),
    linear-gradient(135deg, transparent 0 48%, rgba(0, 150, 214, 0.08) 48% 52%, transparent 52%);
  box-shadow: 0 10px 24px rgba(8, 61, 105, 0.08);
}

.recording-hero .eyebrow {
  display: inline-flex;
  padding: 4px 10px;
  border: 1px solid #b9dcec;
  background: #eef8fc;
  color: #116798;
  font-size: 13px;
  font-weight: 700;
}

.recording-hero h1 {
  margin: 8px 0;
  color: #073b70;
  font-size: 31px;
  letter-spacing: 0.04em;
}

.recording-hero p {
  margin: 0;
  color: #4a6784;
  line-height: 1.7;
}

.recording-hero-status {
  display: grid;
  gap: 7px;
  min-width: 280px;
  justify-items: end;
  color: #5d7085;
}

.recording-hero-status strong {
  color: #073b70;
  font-size: 24px;
}

.recording-hero-status span,
.recording-hero-status small {
  color: #5d7085;
  font-weight: 700;
}

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

.recording-metrics article {
  min-height: 82px;
  padding: 16px 18px;
  border: 1px solid #d5e5f0;
  border-radius: 3px;
  background:
    linear-gradient(135deg, rgba(0, 150, 214, 0.08), transparent 58%),
    #ffffff;
  box-shadow: 0 8px 18px rgba(15, 57, 93, 0.06);
}

.recording-metrics span,
.recording-metrics small {
  display: block;
  color: #5d7085;
  font-size: 13px;
}

.recording-metrics strong {
  display: block;
  margin: 8px 0 4px;
  color: #073b70;
  font-size: 28px;
  line-height: 1;
}

.recording-audit-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.recording-audit-flow article {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  min-height: 72px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #d5e5f0;
  border-radius: 3px;
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(15, 57, 93, 0.05);
}

.recording-audit-flow article:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -13px;
  top: 50%;
  width: 13px;
  height: 2px;
  background: #9fc9e8;
  transform: translateY(-50%);
}

.recording-audit-flow b {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: #0096d6;
  color: #ffffff;
  font-size: 13px;
}

.recording-audit-flow strong,
.recording-audit-flow span {
  display: block;
}

.recording-audit-flow strong {
  color: #18324d;
  font-size: 15px;
}

.recording-audit-flow span {
  margin-top: 4px;
  overflow: hidden;
  color: #6a7b8d;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recording-upload-panel {
  border-left: 4px solid #0c73bc;
}

.recording-upload-form {
  display: grid;
  grid-template-columns: minmax(260px, 0.36fr) minmax(0, 1fr);
  gap: 18px;
  padding: 16px 18px 12px;
  background:
    linear-gradient(90deg, rgba(22, 184, 217, 0.07), rgba(6, 79, 150, 0.03)),
    #fbfdff;
}

.recording-upload-form input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.recording-upload-source {
  display: grid;
  gap: 12px;
  align-content: start;
}

.recording-file-drop {
  display: grid;
  min-height: 148px;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 18px;
  border: 1px dashed #90bddb;
  border-radius: 4px;
  background: #ffffff;
  color: #49617c;
  text-align: center;
  cursor: pointer;
}

.recording-file-drop:hover {
  border-color: #0c73bc;
  background: #f4fbff;
}

.recording-file-drop.drag-over,
.recording-upload-form input[type="file"]:focus-visible + .recording-file-drop {
  border-color: #0096d6;
  background: #f1faff;
  box-shadow: 0 0 0 3px rgba(0, 150, 214, 0.14);
}

.recording-file-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #eaf8fc;
  color: #0766ad;
  font-weight: 800;
}

.recording-file-drop strong {
  color: #17395d;
}

.recording-file-drop span:last-child {
  max-width: 240px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

.recording-capture-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #c9ddea;
  border-radius: 4px;
  background: #ffffff;
}

.recording-capture-card div {
  display: grid;
  gap: 4px;
}

.recording-capture-card strong {
  color: #17395d;
  font-size: 14px;
}

.recording-capture-card span {
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.recording-capture-button {
  justify-content: center;
  width: 100%;
}

.recording-capture-button.recording {
  border-color: #b42318;
  background: #b42318;
  color: #ffffff;
}

.recording-upload-grid {
  gap: 12px 18px;
}

.recording-upload-grid .wide {
  grid-column: span 3;
}

.recording-upload-actions {
  justify-content: flex-end;
}

.page-recordings .notice {
  margin: 0 18px 16px;
  padding: 10px 12px;
  border: 1px solid #d7e4ee;
  border-radius: 3px;
  background: #f8fcff;
  color: #53687f;
  font-size: 13px;
}

.page-recordings .notice.ok {
  border-color: #b8e0c8;
  background: #f0fbf4;
  color: #166b40;
}

.page-recordings .notice.warn {
  border-color: #ffd59e;
  background: #fff8ed;
  color: #9a5b05;
}

.recording-grid {
  display: grid;
  grid-template-columns: minmax(760px, 1fr) minmax(360px, 0.52fr);
  gap: 14px;
  align-items: start;
}

.recording-query-panel,
.recording-monitor-panel {
  align-self: start;
}

.page-recordings .panel {
  overflow: hidden;
  border-color: #d7e4ee;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(19, 54, 91, 0.07);
}

.page-recordings .panel-head {
  border-bottom-color: #e6eef5;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.page-recordings .panel-head h1,
.page-recordings .panel-head h2 {
  color: #14233d;
}

.page-recordings .panel-head p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.page-recordings .form-panel {
  border-bottom-color: #e6eef5;
  background:
    linear-gradient(90deg, rgba(22, 184, 217, 0.07), rgba(6, 79, 150, 0.03)),
    #fbfdff;
}

.page-recordings .form-row > span:first-child {
  color: #334b68;
  font-weight: 800;
}

.page-recordings .field,
.page-recordings .select-field {
  border-color: #d7e4ee;
  background: #ffffff;
  color: #14233d;
}

.page-recordings .field:focus,
.page-recordings .select-field:focus {
  outline: 2px solid rgba(22, 184, 217, 0.2);
  border-color: #16b8d9;
}

.recording-monitor-list {
  display: grid;
  gap: 8px;
  padding: 12px 14px 10px;
}

.recording-monitor-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  min-height: 52px;
  padding: 8px 12px;
  border: 1px solid #d9e8f3;
  border-radius: 3px;
  background: #ffffff;
}

.recording-monitor-list div {
  display: contents;
}

.recording-monitor-list .tag {
  justify-self: end;
}

.recording-monitor-list strong {
  color: #17395d;
}

.recording-monitor-list span {
  grid-column: 1 / -1;
  color: #64748b;
  font-size: 13px;
}

.recording-playback-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px auto;
  gap: 12px;
  align-items: center;
  margin: 0 14px 14px;
  padding: 12px;
  border: 1px solid #bfe4f7;
  border-radius: 3px;
  background:
    linear-gradient(90deg, rgba(22, 184, 217, 0.08), rgba(6, 102, 173, 0.04)),
    #f8fcff;
}

.recording-playback-strip span,
.recording-playback-strip strong {
  display: block;
}

.recording-playback-strip span {
  color: #64748b;
  font-size: 12px;
}

.recording-playback-strip strong {
  overflow: hidden;
  color: #17395d;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recording-playback-strip em {
  padding: 5px 9px;
  border-radius: 999px;
  background: #e8f8ef;
  color: #138a52;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.recording-wave {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 4px;
  align-items: center;
  height: 34px;
}

.recording-wave i {
  display: block;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(180deg, #15b9df, #0b74b8);
}

.recording-wave i:nth-child(1),
.recording-wave i:nth-child(9) {
  height: 12px;
}

.recording-wave i:nth-child(2),
.recording-wave i:nth-child(8) {
  height: 20px;
}

.recording-wave i:nth-child(3),
.recording-wave i:nth-child(7) {
  height: 28px;
}

.recording-wave i:nth-child(4),
.recording-wave i:nth-child(6) {
  height: 24px;
}

.recording-wave i:nth-child(5) {
  height: 34px;
}

.recording-list-panel table {
  min-width: 1460px;
}

.recording-note-cell {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-recordings thead th {
  background: #f2f7fb;
  color: #28445f;
  font-weight: 800;
}

.page-recordings tbody tr:hover {
  background: #f7fbff;
}

.page-recordings .play-icon {
  border-color: #0c73bc;
  background: #eaf8fc;
  color: #0766ad;
}

.page-recordings .play-icon:hover {
  background: #dff4fb;
  box-shadow: 0 4px 10px rgba(6, 102, 173, 0.15);
}

.page-recordings .play-icon:disabled {
  cursor: wait;
  opacity: 0.75;
}

.page-recordings .play-icon.is-loading {
  min-width: 28px;
  text-decoration: none;
}

.recording-playback-modal {
  display: grid;
  gap: 12px;
}

.recording-playback-modal p {
  margin: 0;
  color: #17395d;
  font-size: 14px;
  font-weight: 800;
  word-break: break-all;
}

.recording-modal-media {
  display: block;
  width: 100%;
  max-height: min(62vh, 520px);
  border: 1px solid #d7e4ee;
  border-radius: 4px;
  background: #0d192b;
}

audio.recording-modal-media {
  max-height: none;
  padding: 10px;
  background: #f7fbff;
}

.page-recordings .btn.primary {
  border-color: #0c73bc;
  background: linear-gradient(180deg, #1387d4, #0766ad);
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(6, 102, 173, 0.18);
}

.page-recordings .pager {
  border-top: 1px solid #e6eef5;
  background: #fbfdff;
}

.page-recordings .pager .current {
  background: #0766ad;
}

.page-contacts {
  background:
    linear-gradient(135deg, rgba(0, 150, 214, 0.08), transparent 32%),
    linear-gradient(180deg, #f6f9fc, #eaf2f8);
}

.dispatch-console {
  display: grid;
  gap: 14px;
}

.dispatch-console-hero {
  display: flex;
  min-height: 118px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px;
  border: 1px solid #b8dbf0;
  border-left: 6px solid #0096d6;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(236, 248, 255, 0.94)),
    linear-gradient(135deg, transparent 0 48%, rgba(0, 150, 214, 0.08) 48% 52%, transparent 52%);
  box-shadow: 0 10px 24px rgba(8, 61, 105, 0.08);
}

.dispatch-console-hero .eyebrow {
  display: inline-flex;
  padding: 4px 10px;
  border: 1px solid #b9dcec;
  background: #eef8fc;
  color: #116798;
  font-size: 13px;
  font-weight: 700;
}

.dispatch-console-hero h1 {
  margin: 8px 0;
  color: #073b70;
  font-size: 31px;
  letter-spacing: 0.04em;
}

.dispatch-console-hero p {
  margin: 0;
  color: #4a6784;
}

.dispatch-console-status {
  display: grid;
  gap: 7px;
  min-width: 260px;
  justify-items: end;
  color: #5d7085;
}

.dispatch-console-status strong {
  color: #073b70;
  font-size: 24px;
}

.dispatch-console-status span,
.dispatch-console-status small {
  color: #5d7085;
  font-weight: 700;
}

.dispatch-console-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.dispatch-console-metrics article {
  min-height: 82px;
  padding: 16px 18px;
  border: 1px solid #d5e5f0;
  border-radius: 3px;
  background:
    linear-gradient(135deg, rgba(0, 150, 214, 0.08), transparent 58%),
    #ffffff;
  box-shadow: 0 8px 18px rgba(15, 57, 93, 0.06);
}

.dispatch-console-metrics span,
.dispatch-console-metrics small {
  display: block;
  color: #5d7085;
  font-size: 13px;
}

.dispatch-console-metrics strong {
  display: block;
  margin: 8px 0 4px;
  overflow: hidden;
  color: #073b70;
  font-size: 28px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dispatch-console-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(460px, 1.15fr) minmax(330px, 0.9fr);
  gap: 14px;
  align-items: stretch;
}

.page-contacts .dispatch-console .panel {
  overflow: hidden;
  border-color: #d5e5f0;
  border-radius: 3px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 57, 93, 0.07);
}

.page-contacts .dispatch-console .panel-head {
  min-height: 62px;
  border-bottom-color: #e6eef5;
  background: linear-gradient(90deg, #f8fcff, #eef8fc);
}

.page-contacts .dispatch-console .panel-head h2 {
  margin-bottom: 4px;
  color: #14233d;
}

.page-contacts .dispatch-console .panel-head p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.call-queue-list {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: #fbfdff;
}

.call-queue-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px 12px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid #d9e8f3;
  border-radius: 3px;
  background: #ffffff;
}

.call-queue-card b {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: #0096d6;
  color: #ffffff;
  font-size: 13px;
}

.call-queue-card strong,
.call-queue-card span {
  display: block;
}

.call-queue-card strong {
  color: #18324d;
}

.call-queue-card span,
.call-queue-card small {
  color: #64748b;
  font-size: 13px;
}

.call-queue-card em {
  color: #c25a00;
  font-style: normal;
  font-weight: 800;
}

.call-queue-card small {
  grid-column: 2 / -1;
}

.dispatch-control-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.dispatch-control {
  display: grid;
  min-height: 82px;
  align-content: center;
  gap: 6px;
  padding: 12px;
  border: 1px solid #d9e8f3;
  border-radius: 3px;
  background: #ffffff;
  color: #18324d;
  text-align: left;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.dispatch-control:hover {
  border-color: #9ed4ef;
  background: #eef9fd;
}

.dispatch-control:active {
  transform: translateY(1px);
}

.dispatch-control strong,
.dispatch-control span {
  display: block;
}

.dispatch-control span {
  color: #64748b;
  font-size: 12px;
}

.resource-list {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.resource-meter {
  display: grid;
  gap: 8px;
}

.resource-meter div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.resource-meter strong {
  color: #18324d;
}

.resource-meter span {
  color: #138a52;
  font-weight: 800;
}

.resource-meter i {
  display: block;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5eff7;
}

.resource-meter b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #13b9df, #0a6eb2);
}

.recording-link-panel table {
  min-width: 980px;
}

.contact-directory-layout {
  gap: 14px;
}

.page-contacts .tree-layout {
  gap: 14px;
}

.page-contacts .org-tree,
.page-contacts .panel {
  overflow: hidden;
  border-color: #d7e4ee;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(19, 54, 91, 0.07);
}

.page-contacts .tree-search {
  border-bottom-color: #e6eef5;
  background:
    linear-gradient(90deg, rgba(22, 184, 217, 0.07), rgba(6, 79, 150, 0.03)),
    #fbfdff;
}

.page-contacts .tree-list {
  color: #254464;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.page-contacts .tree-list > div:not(.indent),
.page-contacts .tree-node.parent {
  font-weight: 800;
  color: #17395d;
}

.page-contacts .tree-list .indent,
.page-contacts .tree-node.indent {
  position: relative;
  color: #5b708a;
}

.page-contacts .tree-list .indent::before,
.page-contacts .tree-node.indent::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: #16b8d9;
  vertical-align: middle;
}

.tree-node {
  display: block;
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  text-align: left;
}

.tree-node:hover {
  background: #edf8ff;
  color: #0766ad;
}

.tree-node.active {
  background: linear-gradient(90deg, #e7f6ff, #f6fbff);
  color: #064f96;
  box-shadow: inset 3px 0 0 #16b8d9;
}

.page-contacts .panel-head {
  border-bottom-color: #e6eef5;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.page-contacts .panel-head h1,
.page-contacts .panel-head h2 {
  color: #14233d;
}

.page-contacts .form-panel {
  border-bottom-color: #e6eef5;
  background:
    linear-gradient(90deg, rgba(22, 184, 217, 0.07), rgba(6, 79, 150, 0.03)),
    #fbfdff;
}

.page-contacts .form-row > span:first-child {
  color: #334b68;
  font-weight: 800;
}

.page-contacts .field,
.page-contacts .select-field {
  border-color: #d7e4ee;
  background: #ffffff;
  color: #14233d;
}

.page-contacts .field:focus,
.page-contacts .select-field:focus {
  outline: 2px solid rgba(22, 184, 217, 0.2);
  border-color: #16b8d9;
}

.page-contacts thead th {
  background: #f2f7fb;
  color: #28445f;
  font-weight: 800;
}

.page-contacts tbody tr:hover {
  background: #f7fbff;
}

.page-contacts .link-button {
  color: #0766ad;
}

.page-contacts .btn.primary {
  border-color: #0c73bc;
  background: linear-gradient(180deg, #1387d4, #0766ad);
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(6, 102, 173, 0.18);
}

.page-contacts .btn.red {
  border-color: #ffc9d4;
  background: #fff0f3;
  color: #c6284b;
}

.page-contacts .pager {
  border-top: 1px solid #e6eef5;
  background: #fbfdff;
}

.page-contacts .pager .current {
  background: #0766ad;
}

.page-transcription {
  min-height: calc(100vh - 272px);
  background:
    linear-gradient(135deg, rgba(0, 150, 214, 0.08), transparent 32%),
    linear-gradient(180deg, #f6f9fc, #eaf2f8);
}

.page-transcription .transcription-workbench {
  display: grid;
  gap: 14px;
}

.page-transcription .transcription-hero {
  display: flex;
  min-height: 118px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px;
  border: 1px solid #b8dbf0;
  border-left: 6px solid #0096d6;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(236, 248, 255, 0.94)),
    linear-gradient(135deg, transparent 0 48%, rgba(0, 150, 214, 0.08) 48% 52%, transparent 52%);
  box-shadow: 0 10px 24px rgba(8, 61, 105, 0.08);
}

.page-transcription .transcription-hero .eyebrow {
  display: inline-flex;
  padding: 4px 10px;
  border: 1px solid #b9dcec;
  background: #eef8fc;
  color: #116798;
  font-size: 13px;
  font-weight: 800;
}

.page-transcription .transcription-hero h1 {
  margin: 8px 0;
  color: #073b70;
  font-size: 31px;
}

.page-transcription .transcription-hero p {
  margin: 0;
  color: #4a6784;
}

.page-transcription .transcription-health {
  display: grid;
  gap: 8px;
  justify-items: end;
  color: #5d7085;
  font-size: 13px;
  font-weight: 700;
}

.page-transcription .server-status {
  min-width: 108px;
  padding: 7px 12px;
  border: 1px solid #d7e4ee;
  border-radius: 4px;
  background: #f2f7fb;
  color: #49617c;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.page-transcription .server-status.online {
  border-color: #bcebd0;
  background: #e8f8ef;
  color: #138a52;
}

.page-transcription .server-status.offline {
  border-color: #ffc9d4;
  background: #ffe8ed;
  color: var(--red);
}

.page-transcription .transcription-overview,
.page-transcription .transcription-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.page-transcription .transcription-overview article {
  min-height: 82px;
  padding: 16px 18px;
  border: 1px solid #d5e5f0;
  border-radius: 3px;
  background:
    linear-gradient(135deg, rgba(0, 150, 214, 0.08), transparent 58%),
    #ffffff;
  box-shadow: 0 8px 18px rgba(15, 57, 93, 0.06);
}

.page-transcription .transcription-overview span {
  display: block;
  color: #5d7085;
  font-size: 13px;
}

.page-transcription .transcription-overview strong {
  display: block;
  margin-top: 8px;
  color: #073b70;
  font-size: 30px;
  line-height: 1;
}

.page-transcription .transcription-flow {
  gap: 12px;
}

.page-transcription .transcription-flow article {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  min-height: 72px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #d5e5f0;
  border-radius: 3px;
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(15, 57, 93, 0.05);
}

.page-transcription .transcription-flow article.active {
  border-color: #9ed4ef;
  background: linear-gradient(135deg, #ffffff, #eef9fd);
  box-shadow: 0 8px 18px rgba(0, 150, 214, 0.10);
}

.page-transcription .transcription-flow article.done {
  border-color: #bcebd0;
  background:
    linear-gradient(135deg, rgba(19, 138, 82, 0.08), transparent 58%),
    #ffffff;
}

.page-transcription .transcription-flow article.failed {
  border-color: #ffc9d4;
  background:
    linear-gradient(135deg, rgba(242, 64, 95, 0.08), transparent 58%),
    #ffffff;
}

.page-transcription .transcription-flow b {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: #0096d6;
  color: #ffffff;
  font-size: 13px;
}

.page-transcription .transcription-flow strong,
.page-transcription .transcription-flow span {
  display: block;
}

.page-transcription .transcription-flow strong {
  color: #18324d;
  font-size: 15px;
}

.page-transcription .transcription-flow span {
  margin-top: 4px;
  overflow: hidden;
  color: #6a7b8d;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-transcription .panel {
  border-color: #d5e5f0;
  border-radius: 3px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 57, 93, 0.07);
  overflow: hidden;
}

.page-transcription .panel-head {
  min-height: 58px;
  border-bottom-color: #e6eef5;
  background: linear-gradient(90deg, #f8fcff, #eef8fc);
}

.page-transcription .panel-head h2 {
  color: #14233d;
}

.page-transcription .panel-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.page-transcription .transcription-layout {
  display: grid;
  grid-template-columns: minmax(340px, 410px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.page-transcription .upload-panel,
.page-transcription .result-panel {
  min-height: 418px;
}

.page-transcription .upload-box {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.page-transcription .upload-box input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.page-transcription .drop-zone {
  display: grid;
  min-height: 156px;
  place-items: center;
  align-content: center;
  border: 2px dashed #9bc3e7;
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(22, 184, 217, 0.08), transparent 45%),
    #f8fbff;
  color: #1f3d5f;
  text-align: center;
  transition: border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.page-transcription .drop-zone:hover {
  border-color: #16b8d9;
  background:
    linear-gradient(135deg, rgba(22, 184, 217, 0.12), transparent 45%),
    #f4fbff;
  box-shadow: inset 0 0 0 1px rgba(22, 184, 217, 0.12);
}

.page-transcription .drop-zone-icon {
  position: relative;
  display: block;
  width: 44px;
  height: 36px;
  margin-bottom: 12px;
  border: 2px solid #6eb5e8;
  border-top: 0;
  border-radius: 3px;
}

.page-transcription .drop-zone-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -17px;
  width: 14px;
  height: 14px;
  border-top: 2px solid #0e82c5;
  border-left: 2px solid #0e82c5;
  transform: translateX(-50%) rotate(45deg);
}

.page-transcription .drop-zone-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -14px;
  width: 2px;
  height: 28px;
  background: #0e82c5;
  transform: translateX(-50%);
}

.page-transcription .drop-zone strong {
  font-size: 18px;
}

.page-transcription .drop-zone span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.page-transcription .transcription-capture-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #c9ddea;
  border-radius: 4px;
  background: #ffffff;
}

.page-transcription .transcription-capture-card div {
  display: grid;
  gap: 4px;
}

.page-transcription .transcription-capture-card strong {
  color: #17395d;
  font-size: 14px;
}

.page-transcription .transcription-capture-card span {
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.page-transcription .transcription-capture-button {
  justify-content: center;
  width: 100%;
}

.page-transcription .transcription-capture-button.recording {
  border-color: #b42318;
  background: #b42318;
  color: #ffffff;
}

.page-transcription .realtime-record-panel {
  display: grid;
  gap: 12px;
  margin: 0 18px 18px;
  padding: 14px;
  border: 1px solid #dceaf4;
  border-radius: 4px;
  background: #fbfdff;
}

.page-transcription .realtime-record-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.page-transcription .realtime-record-head h3 {
  margin: 0;
  color: #14233d;
  font-size: 15px;
}

.page-transcription .realtime-record-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.page-transcription .realtime-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.page-transcription .realtime-text-grid {
  display: grid;
  gap: 8px;
}

.page-transcription .realtime-text-grid article {
  min-height: 74px;
  padding: 10px;
  border: 1px solid #e2edf6;
  border-radius: 4px;
  background: #ffffff;
}

.page-transcription .realtime-text-grid span {
  display: block;
  color: #49617c;
  font-size: 12px;
  font-weight: 700;
}

.page-transcription .realtime-text-grid p {
  margin: 7px 0 0;
  color: #14233d;
  font-size: 13px;
  line-height: 1.6;
  word-break: break-word;
}

.page-transcription .transcription-upload-row {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.page-transcription .notice {
  margin: 0 18px 18px;
  padding: 11px 12px;
  border: 1px solid #cfe6f8;
  border-radius: 6px;
  background: #edf8ff;
  color: #24567f;
}

.page-transcription .notice.ok {
  border-color: #bcebd0;
  background: #e9f8ef;
  color: #138a52;
}

.page-transcription .notice.warn {
  border-color: #f8d6a9;
  background: #fff5e8;
  color: #a35d00;
}

.page-transcription .status-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 18px;
  border-bottom: 1px solid #e6eef5;
  background: #fbfdff;
  color: var(--muted);
}

.page-transcription .status-tag {
  display: inline-flex;
  min-width: 78px;
  justify-content: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.page-transcription .status-tag.muted {
  background: #eef2f7;
  color: #64748b;
}

.page-transcription .status-tag.pending {
  background: #fff7dd;
  color: #8a5a00;
}

.page-transcription .status-tag.processing {
  background: #e5f3ff;
  color: #0b68b5;
}

.page-transcription .status-tag.success {
  background: #e8f8ef;
  color: #138a52;
}

.page-transcription .status-tag.failed {
  background: #ffe8ed;
  color: var(--red);
}

.page-transcription button.status-tag {
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

.page-transcription button.status-tag:disabled {
  cursor: wait;
  opacity: 0.72;
}

.page-transcription button.status-tag:focus-visible {
  outline: 2px solid #0096d6;
  outline-offset: 2px;
}

.page-transcription .result-text {
  min-height: 290px;
  max-height: none;
  margin: 0;
  padding: 20px 22px;
  overflow: visible;
  white-space: pre-wrap;
  word-break: break-word;
  border-top: 1px solid #f0f4f8;
  background:
    linear-gradient(90deg, rgba(0, 150, 214, 0.04) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(248, 251, 255, 0.9), rgba(255, 255, 255, 0.96)),
    #ffffff;
  background-size: 32px 100%, auto, auto;
  color: #1f2937;
  font: 15px/1.8 "Microsoft YaHei", Arial, sans-serif;
}

.page-transcription .result-panel[data-result-state="empty"] .result-text,
.page-transcription .result-panel[data-result-state="selected"] .result-text,
.page-transcription .result-panel[data-result-state="pending"] .result-text,
.page-transcription .result-panel[data-result-state="failed"] .result-text {
  color: #49617c;
  font-weight: 700;
}

.page-transcription .result-panel[data-result-state="empty"] .result-text {
  box-shadow: inset 4px 0 0 #c7d9e7;
}

.page-transcription .result-panel[data-result-state="selected"] .result-text {
  background:
    linear-gradient(135deg, rgba(19, 138, 82, 0.08), transparent 42%),
    #fbfffc;
  box-shadow: inset 4px 0 0 #52b982;
  color: #225a3c;
}

.page-transcription .result-panel[data-result-state="pending"] .result-text {
  background:
    linear-gradient(135deg, rgba(8, 121, 179, 0.08), transparent 42%),
    #f7fbff;
  box-shadow: inset 4px 0 0 #0879b3;
}

.page-transcription .result-panel[data-result-state="failed"] .result-text {
  background:
    linear-gradient(135deg, rgba(200, 51, 79, 0.08), transparent 42%),
    #fff9fb;
  box-shadow: inset 4px 0 0 #c8334f;
  color: #8f2638;
}

.page-transcription .ai-analysis-panel {
  border-top: 1px solid #dce9f3;
  background: #fbfdff;
}

.page-transcription .ai-analysis-head {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #e6eef5;
}

.page-transcription .ai-analysis-head h3 {
  margin: 0;
  color: #17395d;
  font-size: 16px;
}

.page-transcription .ai-analysis-head p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
}

.page-transcription .ai-analysis-content {
  display: grid;
  gap: 12px;
  padding: 14px 16px 16px;
}

.page-transcription .ai-analysis-empty {
  padding: 18px;
  border: 1px dashed #c7d9e7;
  border-radius: 4px;
  background: #ffffff;
  color: #64748b;
  text-align: center;
}

.page-transcription .ai-analysis-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #d7e6f2;
  border-radius: 4px;
  background: #f8fbfe;
  color: #415973;
  font-size: 12px;
  line-height: 1.6;
}

.page-transcription .ai-analysis-meta span {
  overflow-wrap: anywhere;
}

.page-transcription .ai-analysis-summary {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid #cfe2f2;
  border-left: 4px solid #0096d6;
  border-radius: 4px;
  background: #ffffff;
  color: #28445f;
  line-height: 1.7;
}

.page-transcription .ai-analysis-summary span {
  color: #49617c;
  font-size: 12px;
  font-weight: 800;
}

.page-transcription .ai-analysis-summary strong {
  color: #17395d;
  font-size: 15px;
  line-height: 1.65;
}

.page-transcription .ai-analysis-layout {
  display: grid;
  gap: 14px;
}

.page-transcription .ai-analysis-block {
  display: grid;
  gap: 10px;
}

.page-transcription .ai-analysis-block > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5edf5;
}

.page-transcription .ai-analysis-block > header strong {
  color: #17395d;
  font-size: 15px;
}

.page-transcription .ai-analysis-block > header span {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.page-transcription .incident-elements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.page-transcription .incident-element {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 138px;
  padding: 12px;
  border: 1px solid #dbe7f1;
  border-radius: 4px;
  background: #ffffff;
}

.page-transcription .incident-element div {
  display: grid;
  gap: 4px;
  padding-right: 42px;
}

.page-transcription .incident-element span,
.page-transcription .risk-assessment-main span,
.page-transcription .closure-field span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.page-transcription .incident-element strong {
  color: #14233d;
  font-size: 16px;
  line-height: 1.35;
}

.page-transcription .incident-element p {
  margin: 0;
  color: #49617c;
  font-size: 12px;
  line-height: 1.55;
}

.page-transcription .incident-element em {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.page-transcription .confidence-high {
  background: #e8f8ef;
  color: #0f7a48;
}

.page-transcription .confidence-medium {
  background: #fff4d8;
  color: #915f00;
}

.page-transcription .confidence-low {
  background: #eef2f7;
  color: #64748b;
}

.page-transcription .risk-assessment-list,
.page-transcription .follow-up-list {
  display: grid;
  gap: 10px;
}

.page-transcription .risk-assessment-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.45fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid #dbe7f1;
  border-left-width: 4px;
  border-radius: 4px;
  background: #ffffff;
}

.page-transcription .risk-high {
  border-left-color: #b42318;
}

.page-transcription .risk-medium {
  border-left-color: #d97706;
}

.page-transcription .risk-low {
  border-left-color: #138a52;
}

.page-transcription .risk-assessment-main,
.page-transcription .risk-assessment-action {
  display: grid;
  gap: 7px;
}

.page-transcription .risk-assessment-main strong {
  color: #14233d;
  font-size: 15px;
}

.page-transcription .risk-assessment-main p,
.page-transcription .risk-assessment-action p,
.page-transcription .follow-up-item p {
  margin: 0;
  color: #49617c;
  font-size: 12px;
  line-height: 1.6;
}

.page-transcription .risk-assessment-action em {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: #ffe8ed;
  color: #b42318;
  font-style: normal;
  font-weight: 900;
}

.page-transcription .risk-medium .risk-assessment-action em {
  background: #fff4d8;
  color: #915f00;
}

.page-transcription .risk-low .risk-assessment-action em {
  background: #e8f8ef;
  color: #0f7a48;
}

.page-transcription .risk-assessment-action b {
  color: #17395d;
  font-size: 13px;
}

.page-transcription .follow-up-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid #dbe7f1;
  border-radius: 4px;
  background: #ffffff;
}

.page-transcription .follow-up-item > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 4px;
  background: #e8f3fb;
  color: #0e6795;
  font-size: 12px;
  font-weight: 900;
}

.page-transcription .follow-up-item strong {
  color: #14233d;
  font-size: 14px;
  line-height: 1.55;
}

.page-transcription .follow-up-item em {
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef2f7;
  color: #49617c;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.page-transcription .closure-field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.page-transcription .closure-field {
  display: grid;
  gap: 6px;
  min-height: 82px;
  padding: 11px 12px;
  border: 1px solid #dbe7f1;
  border-radius: 4px;
  background: #ffffff;
}

.page-transcription .closure-field strong {
  color: #17395d;
  font-size: 14px;
  line-height: 1.5;
}

.page-transcription .ai-analysis-table-list {
  display: grid;
  gap: 12px;
}

.page-transcription .ai-analysis-table-card {
  overflow: hidden;
  border: 1px solid #d7e4ee;
  border-radius: 4px;
  background: #ffffff;
}

.page-transcription .ai-analysis-table-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #e6eef5;
  background: #f7fbff;
}

.page-transcription .ai-analysis-table-card strong {
  color: #17395d;
}

.page-transcription .ai-analysis-table-card span {
  color: #64748b;
  font-size: 12px;
}

.page-transcription .ai-analysis-table-wrap {
  max-height: 320px;
  overflow: auto;
}

.page-transcription .ai-analysis-table-wrap table {
  min-width: 680px;
}

.page-transcription .ai-analysis-table-wrap td {
  vertical-align: top;
  white-space: normal;
  word-break: break-word;
}

.page-transcription .empty-cell {
  padding: 34px;
  color: var(--muted);
  text-align: center;
}

.page-transcription table {
  color: #14233d;
}

.page-transcription thead th {
  background: #f2f7fb;
  color: #28445f;
  font-weight: 800;
}

.page-transcription tbody tr:hover {
  background: #f7fbff;
}

.page-transcription tbody tr.active-task td {
  background: #f0f9ff;
}

.page-transcription tbody tr.active-task td:first-child {
  box-shadow: inset 4px 0 0 #0096d6;
}

.page-transcription .tasks-panel .table-wrap {
  max-height: none;
  overflow-y: visible;
}

.page-transcription .tasks-panel table {
  table-layout: fixed;
}

.page-transcription .tasks-panel th:first-child,
.page-transcription .tasks-panel td:first-child {
  width: 44%;
}

.page-transcription .tasks-panel td:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-transcription .btn.primary {
  background: linear-gradient(180deg, #0096d6, #0766ad);
  box-shadow: 0 6px 14px rgba(6, 102, 173, 0.18);
}

.page-transcription .btn {
  white-space: nowrap;
}

.page-transcription .btn:not(.primary) {
  border-color: #d7e4ee;
  background: #ffffff;
  color: #28445f;
}

.page-transcription .transcription-workbench {
  gap: 12px;
}

.page-transcription .transcription-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  min-height: 104px;
  padding: 16px 26px;
  align-items: center;
}

.page-transcription .transcription-hero-main {
  min-width: 0;
}

.page-transcription .transcription-hero h1 {
  margin: 7px 0 6px;
  font-size: 29px;
  letter-spacing: 0;
}

.page-transcription .transcription-service-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid #cfe2f2;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.82);
}

.page-transcription .transcription-health {
  display: flex;
  align-items: center;
  justify-content: space-between;
  justify-items: stretch;
}

.page-transcription .transcription-service-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.page-transcription .transcription-service-meta div {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #e1edf7;
  border-radius: 4px;
  background: #f8fbff;
}

.page-transcription .transcription-service-meta dt,
.page-transcription .transcription-service-meta dd {
  margin: 0;
}

.page-transcription .transcription-service-meta dt {
  color: #6b7d91;
  font-size: 12px;
}

.page-transcription .transcription-service-meta dd {
  margin-top: 3px;
  overflow: hidden;
  color: #17395d;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-transcription .transcription-pulse {
  display: grid;
  grid-template-columns: minmax(430px, 0.86fr) minmax(620px, 1.14fr);
  gap: 12px;
  align-items: stretch;
}

.page-transcription .transcription-overview,
.page-transcription .transcription-flow {
  gap: 10px;
}

.page-transcription .transcription-overview article {
  min-height: 74px;
  padding: 12px 14px;
}

.page-transcription .transcription-overview strong {
  margin-top: 7px;
  font-size: 28px;
}

.page-transcription .transcription-flow article {
  min-height: 74px;
  padding: 10px 12px;
  box-shadow: 0 6px 14px rgba(15, 57, 93, 0.04);
}

.page-transcription .transcription-flow article:not(.active) b {
  background: #edf6fb;
  color: #0879b3;
}

.page-transcription .transcription-flow article.done b {
  background: #138a52;
  color: #ffffff;
}

.page-transcription .transcription-flow article.done b::before {
  content: "";
  width: 12px;
  height: 7px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg) translate(1px, -1px);
}

.page-transcription .transcription-flow article.done b {
  font-size: 0;
}

.page-transcription .transcription-flow article.failed b {
  background: #ffe8ed;
  color: #b42318;
}

.page-transcription .transcription-layout {
  grid-template-columns: minmax(360px, 390px) minmax(0, 1fr);
  gap: 12px;
}

.page-transcription .upload-panel,
.page-transcription .result-panel {
  min-height: 392px;
}

.page-transcription .panel-head {
  padding: 10px 16px;
}

.page-transcription .upload-box {
  gap: 12px;
  padding: 16px;
}

.page-transcription .drop-zone {
  min-height: 134px;
}

.page-transcription .drop-zone.drag-over,
.page-transcription .drop-zone.has-file,
.page-transcription .upload-box input[type="file"]:focus-visible + .drop-zone {
  border-color: #0096d6;
  background:
    linear-gradient(135deg, rgba(0, 150, 214, 0.14), transparent 45%),
    #f1faff;
  box-shadow: 0 0 0 3px rgba(0, 150, 214, 0.14);
}

.page-transcription .drop-zone.has-file {
  border-style: solid;
  background:
    linear-gradient(135deg, rgba(19, 138, 82, 0.09), transparent 48%),
    #f7fffa;
}

.page-transcription .drop-zone.has-file .drop-zone-icon {
  border-color: #52b982;
}

.page-transcription .drop-zone.has-file .drop-zone-icon::before {
  border-color: #138a52;
}

.page-transcription .drop-zone.has-file .drop-zone-icon::after {
  background: #138a52;
}

.page-transcription .btn:focus-visible,
.page-transcription .link-button:focus-visible,
.page-transcription .field:focus-visible {
  outline: 3px solid rgba(0, 150, 214, 0.22);
  outline-offset: 2px;
}

.page-transcription .status-line {
  min-height: 52px;
  padding: 13px 16px;
}

.page-transcription .result-text {
  min-height: 260px;
  max-height: 360px;
  overflow: auto;
}

.page-transcription .tasks-panel .table-wrap {
  max-height: 360px;
  overflow: auto;
}

.page-transcription .tasks-panel tbody tr.active-task td:first-child {
  box-shadow: inset 4px 0 0 #008fcb;
}

.page-transcription .task-state-row:hover {
  background: transparent;
}

.page-transcription .task-list-state {
  display: grid;
  gap: 7px;
  justify-items: center;
  padding: 4px 0;
}

.page-transcription .task-list-state strong {
  color: #17395d;
  font-size: 14px;
  font-weight: 800;
}

.page-transcription .task-list-state span {
  max-width: 420px;
  color: #667a90;
  font-size: 13px;
  line-height: 1.55;
}

.page-transcription .task-list-state.loading strong {
  color: #0766ad;
}

.page-transcription .task-list-state.error strong {
  color: #8f2638;
}

.page-transcription .task-list-retry,
.page-transcription .task-result-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 4px;
  color: #076aa0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.page-transcription .task-list-retry {
  margin-top: 2px;
  border: 1px solid #cfe2f2;
  background: #ffffff;
}

.page-transcription .task-result-button:hover,
.page-transcription .task-list-retry:hover {
  background: #e8f3fb;
  text-decoration: none;
}

.page-transcription .task-file-cell {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.page-transcription .task-file-cell span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-transcription .task-current-badge {
  flex: none;
  padding: 2px 7px;
  border: 1px solid #bdebd0;
  border-radius: 999px;
  background: #e8f8ef;
  color: #13764a;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.35;
}

@media (max-width: 1180px) {
  .page-transcription .transcription-pulse {
    grid-template-columns: 1fr;
  }

  .page-transcription .transcription-layout {
    grid-template-columns: minmax(330px, 0.45fr) minmax(0, 1fr);
  }
}

@media (max-width: 1180px) {
  .page-transcription .transcription-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-transcription .tasks-panel .table-wrap {
    max-height: none;
    overflow: visible;
    border-top: 0;
  }

  .page-transcription .tasks-panel table,
  .page-transcription .tasks-panel tbody,
  .page-transcription .tasks-panel tr,
  .page-transcription .tasks-panel td {
    display: block;
    width: 100%;
  }

  .page-transcription .tasks-panel thead {
    display: none;
  }

  .page-transcription .tasks-panel tbody {
    display: grid;
    gap: 10px;
    padding: 10px;
    background: #f5f9fc;
  }

  .page-transcription .tasks-panel tbody tr {
    border: 1px solid #d5e4f0;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 43, 72, 0.045);
    overflow: hidden;
  }

  .page-transcription .tasks-panel tbody tr.active-task {
    border-color: #86cce9;
    box-shadow: inset 4px 0 0 #008fcb, 0 8px 18px rgba(8, 121, 179, 0.10);
  }

  .page-transcription .tasks-panel tbody tr:hover,
  .page-transcription .tasks-panel tbody tr:hover td {
    background: #ffffff;
  }

  .page-transcription .tasks-panel td,
  .page-transcription .tasks-panel td:first-child {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    min-height: 44px;
    height: auto;
    align-items: center;
    padding: 10px 12px;
    border-right: 0;
    white-space: normal;
  }

  .page-transcription .tasks-panel td > * {
    min-width: 0;
  }

  .page-transcription .tasks-panel tbody tr.active-task td,
  .page-transcription .tasks-panel tbody tr.active-task td:first-child {
    background: transparent;
    box-shadow: none;
  }

  .page-transcription .tasks-panel td::before {
    content: attr(data-label);
    color: #5b7087;
    font-size: 12px;
    font-weight: 800;
  }

  .page-transcription .tasks-panel .status-tag {
    width: fit-content;
    min-width: 74px;
    justify-self: start;
  }

  .page-transcription .task-file-cell {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .page-transcription .task-file-cell span {
    white-space: normal;
    word-break: break-word;
  }

  .page-transcription .task-result-button {
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    justify-self: stretch;
    justify-content: flex-start;
    border: 1px solid #cfe2f2;
    background: #f8fbff;
  }

  .page-transcription .task-state-row {
    border: 1px dashed #bfd5e8;
    box-shadow: none;
  }

  .page-transcription .task-state-row td {
    display: block;
  }

  .page-transcription .task-state-row td::before {
    content: none;
  }

  .page-transcription .risk-assessment-item,
  .page-transcription .follow-up-item {
    grid-template-columns: 1fr;
  }

  .page-transcription .follow-up-item > span {
    width: fit-content;
    min-width: 34px;
  }
}

.page-mobile110 {
  background:
    linear-gradient(135deg, rgba(0, 150, 214, 0.08), transparent 34%),
    linear-gradient(180deg, #f6f9fc, #edf4f9);
}

.mobile110-console {
  display: grid;
  gap: 14px;
}

.mobile110-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  min-height: 168px;
  align-items: center;
  padding: 22px 30px;
  border: 1px solid #b8dbf0;
  border-left: 6px solid #0096d6;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(236, 248, 255, 0.92)),
    linear-gradient(135deg, transparent 0 50%, rgba(22, 184, 217, 0.08) 50% 54%, transparent 54%);
  box-shadow: 0 10px 24px rgba(8, 61, 105, 0.08);
}

.mobile110-hero .eyebrow {
  display: inline-flex;
  padding: 4px 10px;
  border: 1px solid #b9dcec;
  background: #eef8fc;
  color: #116798;
  font-size: 13px;
  font-weight: 800;
}

.mobile110-hero h1 {
  margin: 10px 0 8px;
  color: #073b70;
  font-size: 32px;
  letter-spacing: 0.02em;
}

.mobile110-hero p {
  max-width: 780px;
  margin: 0;
  color: #4a6784;
  line-height: 1.75;
}

.mobile-phone-preview {
  position: relative;
  display: grid;
  gap: 10px;
  width: 224px;
  min-height: 244px;
  justify-self: end;
  padding: 24px 18px 18px;
  border: 1px solid #c9deea;
  border-radius: 18px;
  background:
    linear-gradient(180deg, #ffffff, #f3fbff);
  box-shadow: 0 12px 24px rgba(6, 79, 150, 0.12);
}

.mobile-phone-preview .phone-top {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 58px;
  height: 5px;
  border-radius: 999px;
  background: #c7d8e4;
  transform: translateX(-50%);
}

.mobile-phone-preview strong {
  margin-top: 8px;
  color: #073b70;
  font-size: 20px;
}

.mobile-phone-preview button {
  min-height: 42px;
  border: 1px solid #b9dcec;
  border-radius: 4px;
  background: #ffffff;
  color: #075f9a;
  font-weight: 800;
  text-align: left;
}

.mobile-phone-preview button:first-of-type {
  border-color: #0c73bc;
  background: linear-gradient(180deg, #1387d4, #0766ad);
  color: #ffffff;
}

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

.mobile110-metrics article {
  min-height: 82px;
  padding: 16px 18px;
  border: 1px solid #d5e5f0;
  border-radius: 3px;
  background:
    linear-gradient(135deg, rgba(0, 150, 214, 0.08), transparent 58%),
    #ffffff;
  box-shadow: 0 8px 18px rgba(15, 57, 93, 0.06);
}

.mobile110-metrics span,
.mobile110-metrics small {
  display: block;
  color: #5d7085;
  font-size: 13px;
}

.mobile110-metrics strong {
  display: block;
  margin: 8px 0 4px;
  color: #073b70;
  font-size: 28px;
  line-height: 1;
}

.mobile110-grid {
  display: grid;
  grid-template-columns: minmax(480px, 0.95fr) minmax(540px, 1.05fr);
  gap: 14px;
}

.mobile110-grid.bottom {
  grid-template-columns: minmax(520px, 1fr) minmax(460px, 0.9fr);
}

.page-mobile110 .panel {
  overflow: hidden;
  border-color: #d5e5f0;
  border-radius: 3px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 57, 93, 0.07);
}

.page-mobile110 .panel-head {
  min-height: 62px;
  border-bottom-color: #e6eef5;
  background: linear-gradient(90deg, #f8fcff, #eef8fc);
}

.page-mobile110 .panel-head h2 {
  margin-bottom: 4px;
  color: #14233d;
}

.page-mobile110 .panel-head p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.mobile-entry-list {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.mobile-entry-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid #d9e8f3;
  border-radius: 3px;
  background: #ffffff;
}

.mobile-entry-card strong {
  display: block;
  color: #17395d;
  font-size: 17px;
}

.mobile-entry-card p {
  margin: 6px 0 0;
  color: #64748b;
  line-height: 1.6;
}

.mobile-entry-card .btn {
  min-width: 96px;
}

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

.mobile-flow-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  min-height: 88px;
  align-items: center;
  padding: 14px;
  border: 1px solid #d9e8f3;
  border-radius: 3px;
  background: #fbfdff;
}

.mobile-flow-step b {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: #0096d6;
  color: #ffffff;
  font-size: 13px;
}

.mobile-flow-step strong,
.mobile-flow-step span {
  display: block;
}

.mobile-flow-step strong {
  color: #17395d;
}

.mobile-flow-step span {
  margin-top: 4px;
  color: #64748b;
  line-height: 1.5;
}

.mobile-case-panel table {
  min-width: 1120px;
}

.page-mobile110 thead th {
  background: #f2f7fb;
  color: #28445f;
  font-weight: 800;
}

.page-mobile110 tbody tr:hover {
  background: #f7fbff;
}

.mobile-data-cards {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.mobile-data-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #d9e8f3;
  border-radius: 3px;
  background: #ffffff;
}

.mobile-data-card div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.mobile-data-card strong {
  color: #17395d;
}

.mobile-data-card span {
  color: #64748b;
}

.mobile-data-card i {
  display: block;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5eff7;
}

.mobile-data-card b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #16b8d9, #0a6eb2);
}

.mobile-record-list {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.mobile-record-list article {
  display: grid;
  grid-template-columns: minmax(130px, 0.7fr) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 60px;
  padding: 12px 14px;
  border: 1px solid #d9e8f3;
  border-radius: 3px;
  background: #fbfdff;
}

.mobile-record-list strong {
  color: #17395d;
}

.mobile-record-list span {
  color: #64748b;
  line-height: 1.5;
}

.mobile-record-list em {
  padding: 5px 9px;
  border-radius: 3px;
  background: #e8f8ee;
  color: #138a52;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.page-plans {
  background:
    linear-gradient(135deg, rgba(0, 150, 214, 0.08), transparent 32%),
    linear-gradient(180deg, #f6f9fc, #eaf2f8);
}

.plan-workbench {
  display: grid;
  gap: 14px;
}

.plan-hero {
  display: flex;
  min-height: 118px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px;
  border: 1px solid #b8dbf0;
  border-left: 6px solid #0096d6;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(236, 248, 255, 0.94)),
    linear-gradient(135deg, transparent 0 48%, rgba(0, 150, 214, 0.08) 48% 52%, transparent 52%);
  box-shadow: 0 10px 24px rgba(8, 61, 105, 0.08);
}

.plan-hero .eyebrow {
  display: inline-flex;
  padding: 4px 10px;
  border: 1px solid #b9dcec;
  background: #eef8fc;
  color: #116798;
  font-size: 13px;
  font-weight: 700;
}

.plan-hero h1 {
  margin: 8px 0;
  color: #073b70;
  font-size: 31px;
  letter-spacing: 0.04em;
}

.plan-hero p {
  margin: 0;
  color: #4a6784;
  line-height: 1.7;
}

.plan-hero-status {
  display: grid;
  gap: 7px;
  min-width: 330px;
  justify-items: end;
  color: #5d7085;
}

.plan-hero-status strong {
  color: #073b70;
  font-size: 22px;
}

.plan-hero-status span,
.plan-hero-status small {
  color: #5d7085;
  font-weight: 700;
}

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

.plan-metrics article {
  min-height: 82px;
  padding: 16px 18px;
  border: 1px solid #d5e5f0;
  border-radius: 3px;
  background:
    linear-gradient(135deg, rgba(0, 150, 214, 0.08), transparent 58%),
    #ffffff;
  box-shadow: 0 8px 18px rgba(15, 57, 93, 0.06);
}

.plan-metrics span,
.plan-metrics small {
  display: block;
  color: #5d7085;
  font-size: 13px;
}

.plan-metrics strong {
  display: block;
  margin: 8px 0 4px;
  color: #073b70;
  font-size: 28px;
  line-height: 1;
}

.plan-grid {
  display: grid;
  grid-template-columns: minmax(760px, 1fr) minmax(380px, 0.52fr);
  gap: 14px;
  align-items: stretch;
}

.page-plans .panel {
  overflow: hidden;
  border-color: #d7e4ee;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(19, 54, 91, 0.07);
}

.page-plans .panel-head {
  border-bottom-color: #e6eef5;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.page-plans .panel-head h1,
.page-plans .panel-head h2 {
  color: #14233d;
}

.page-plans .panel-head p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.page-plans .form-panel {
  border-bottom-color: #e6eef5;
  background:
    linear-gradient(90deg, rgba(22, 184, 217, 0.07), rgba(6, 79, 150, 0.03)),
    #fbfdff;
}

.page-plans .form-row > span:first-child {
  color: #334b68;
  font-weight: 800;
}

.page-plans .field,
.page-plans .select-field {
  border-color: #d7e4ee;
  background: #ffffff;
  color: #14233d;
}

.page-plans .field:focus,
.page-plans .select-field:focus {
  outline: 2px solid rgba(22, 184, 217, 0.2);
  border-color: #16b8d9;
}

.plan-flow {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.plan-flow article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 12px;
  border: 1px solid #d9e8f3;
  border-radius: 3px;
  background: #ffffff;
}

.plan-flow b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #0096d6;
  color: #ffffff;
  font-size: 12px;
}

.plan-flow strong,
.plan-flow span {
  display: block;
}

.plan-flow strong {
  color: #17395d;
}

.plan-flow span {
  margin-top: 4px;
  color: #64748b;
  line-height: 1.45;
}

.plan-list-panel table {
  min-width: 1060px;
}

.plan-linkage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.plan-linkage-grid article {
  display: grid;
  gap: 8px;
  min-height: 108px;
  padding: 14px;
  border: 1px solid #d9e8f3;
  border-radius: 3px;
  background: #ffffff;
}

.plan-linkage-grid strong {
  color: #17395d;
  font-size: 16px;
}

.plan-linkage-grid span {
  color: #64748b;
  line-height: 1.5;
}

.plan-linkage-grid em {
  justify-self: start;
  padding: 5px 9px;
  border-radius: 3px;
  background: #e8f8ee;
  color: #138a52;
  font-style: normal;
  font-weight: 800;
}

.page-plans thead th {
  background: #f2f7fb;
  color: #28445f;
  font-weight: 800;
}

.page-plans tbody tr:hover {
  background: #f7fbff;
}

.page-plans .link-button {
  color: #0766ad;
}

.page-plans .btn.primary {
  border-color: #0c73bc;
  background: linear-gradient(180deg, #1387d4, #0766ad);
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(6, 102, 173, 0.18);
}

.page-plans .btn.red {
  border-color: #ffc9d4;
  background: #fff0f3;
  color: #c6284b;
}

.page-plans .pager {
  border-top: 1px solid #e6eef5;
  background: #fbfdff;
}

.page-plans .pager .current {
  background: #0766ad;
}

.page-workflow {
  background:
    linear-gradient(135deg, rgba(0, 150, 214, 0.07), transparent 32%),
    linear-gradient(180deg, #f6f9fc, #eaf2f8);
}

.workflow-workbench {
  display: grid;
  gap: 12px;
}

.workflow-relaxed-workbench {
  gap: 14px;
}

.workflow-relaxed-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.46fr);
  gap: 18px;
  align-items: center;
  min-height: 128px;
  padding: 22px 28px;
  border: 1px solid #d2e2ef;
  border-left: 5px solid #0b77b7;
  border-radius: 4px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(247, 252, 255, 0.96)),
    #ffffff;
  box-shadow: 0 8px 20px rgba(19, 54, 91, 0.06);
}

.workflow-relaxed-hero .eyebrow {
  color: #0b6fa9;
  font-size: 13px;
  font-weight: 800;
}

.workflow-relaxed-hero h1 {
  margin: 7px 0;
  color: #17324d;
  font-size: 30px;
  line-height: 1.2;
}

.workflow-relaxed-hero p {
  max-width: 760px;
  margin: 0;
  color: #53687f;
  font-size: 15px;
  line-height: 1.7;
}

.workflow-hero-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.workflow-hero-summary article {
  min-height: 74px;
  padding: 14px 12px;
  border: 1px solid #d8e8f3;
  border-radius: 4px;
  background: #ffffff;
}

.workflow-hero-summary span,
.workflow-hero-summary strong {
  display: block;
}

.workflow-hero-summary span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.workflow-hero-summary strong {
  margin-top: 9px;
  color: #073b70;
  font-size: 17px;
  line-height: 1.25;
}

.workflow-panel {
  overflow: hidden;
  border: 1px solid #d7e4ee;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(19, 54, 91, 0.06);
}

.workflow-section-head {
  padding: 16px 20px;
  border-bottom: 1px solid #e6eef5;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.workflow-section-head h2 {
  margin: 0;
  color: #14233d;
  font-size: 20px;
  line-height: 1.3;
}

.workflow-section-head p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
}

.workflow-primary-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
}

.workflow-primary-step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  min-height: 132px;
  align-items: start;
  padding: 15px;
  border: 1px solid #d5e5f0;
  border-radius: 5px;
  background: #fbfdff;
}

.workflow-primary-step > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: #0b77b7;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.workflow-primary-step h3 {
  margin: 0;
  color: #17324d;
  font-size: 16px;
  line-height: 1.35;
}

.workflow-primary-step p {
  margin: 8px 0 0;
  color: #53687f;
  font-size: 13px;
  line-height: 1.6;
}

.workflow-primary-step.critical {
  border-color: #f2c486;
  background: #fffaf2;
}

.workflow-primary-step.critical > span {
  background: #c76b05;
}

.workflow-support-grid,
.workflow-prevention-grid,
.workflow-feedback-row {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.workflow-support-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workflow-prevention-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.workflow-info-card {
  min-height: 108px;
  padding: 14px 15px;
  border: 1px solid #d9e8f3;
  border-radius: 5px;
  background: #ffffff;
}

.workflow-info-card.strong {
  border-color: #b9dcec;
  background: #f4fbff;
}

.workflow-info-card h3 {
  margin: 0 0 9px;
  color: #17324d;
  font-size: 15px;
  line-height: 1.3;
}

.workflow-info-card ul,
.workflow-risk-relaxed ol {
  margin: 0;
  padding-left: 18px;
  color: #53687f;
  font-size: 13px;
  line-height: 1.7;
}

.workflow-relaxed-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.34fr);
  gap: 14px;
  align-items: stretch;
}

.workflow-risk-relaxed ol {
  padding: 16px 22px 18px 38px;
}

.workflow-risk-relaxed li::marker {
  color: #c6284b;
  font-weight: 900;
}

.workflow-feedback-row {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.workflow-feedback-row article {
  min-height: 84px;
  padding: 14px 12px;
  border: 1px solid #d9e8f3;
  border-radius: 5px;
  background: #fbfdff;
}

.workflow-feedback-row strong,
.workflow-feedback-row span {
  display: block;
}

.workflow-feedback-row strong {
  color: #17324d;
  font-size: 15px;
}

.workflow-feedback-row span {
  margin-top: 7px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 1180px) {
  .workflow-relaxed-hero {
    grid-template-columns: 1fr;
  }

  .workflow-primary-flow,
  .workflow-support-grid,
  .workflow-prevention-grid,
  .workflow-feedback-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-relaxed-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .workflow-relaxed-hero {
    padding: 18px;
  }

  .workflow-hero-summary,
  .workflow-primary-flow,
  .workflow-support-grid,
  .workflow-prevention-grid,
  .workflow-feedback-row {
    grid-template-columns: 1fr;
  }

  .workflow-primary-step {
    min-height: 0;
  }
}

.workflow-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  min-height: 112px;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border: 1px solid #d7e5f0;
  border-left: 4px solid #0b77b7;
  background: #ffffff;
}

.workflow-hero .eyebrow {
  color: #0b6fa9;
  font-size: 13px;
  font-weight: 800;
}

.workflow-hero h1 {
  margin: 6px 0;
  color: #17324d;
  font-size: 25px;
  letter-spacing: 0;
}

.workflow-hero p {
  margin: 0;
  color: #5f7286;
  line-height: 1.65;
}

.workflow-hero-status {
  display: grid;
  gap: 7px;
  justify-items: end;
  padding-left: 20px;
  border-left: 1px solid #dbe7f1;
  text-align: right;
}

.workflow-hero-status span,
.workflow-hero-status small {
  color: #65778c;
  font-weight: 700;
}

.workflow-hero-status strong {
  color: #17324d;
  font-size: 22px;
}

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

.workflow-metrics article {
  display: grid;
  min-height: 78px;
  align-content: center;
  padding: 13px 16px;
  border: 1px solid #d7e4ee;
  border-radius: 3px;
  background: #ffffff;
}

.workflow-metrics span,
.workflow-metrics small {
  display: block;
  color: #5d7085;
  font-size: 13px;
}

.workflow-metrics strong {
  display: block;
  margin: 6px 0 3px;
  color: #12385d;
  font-size: 25px;
  line-height: 1;
}

.workflow-main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 12px;
  align-items: start;
}

.workflow-flow-area {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(118px, 1fr));
  grid-template-rows: auto auto auto;
  gap: 24px 18px;
  min-width: 0;
  padding: 4px 0 0;
}

.workflow-card,
.workflow-side-panel,
.workflow-error-panel {
  border: 1px solid #c8dced;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: none;
}

.workflow-card {
  position: relative;
  display: grid;
  min-height: 178px;
  align-content: start;
  gap: 7px;
  padding: 12px 10px 10px;
}

.workflow-card.compact {
  min-height: 152px;
}

.workflow-card.raised {
  transform: translateY(-44px);
}

.workflow-num {
  position: absolute;
  top: 9px;
  left: 9px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #0b77b7;
  color: #ffffff;
  font-weight: 900;
  font-size: 14px;
}

.workflow-card-title {
  min-height: 34px;
  margin-left: 34px;
  color: #12385d;
  font-weight: 900;
  line-height: 1.3;
}

.workflow-mark {
  justify-self: center;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #9fc7df;
  border-radius: 50%;
  background: #eef7fc;
  color: #075f9a;
  font-size: 21px;
  font-weight: 900;
}

.workflow-card ul {
  margin: 0;
  padding-left: 18px;
  color: #334b68;
  font-size: 13px;
  line-height: 1.55;
}

.workflow-note {
  margin-top: auto;
  padding: 6px 7px;
  border: 1px solid #efcf8a;
  border-radius: 3px;
  background: #fff8e8;
  color: #875c12;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.workflow-card.right::after,
.workflow-card.left::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 18px;
  height: 2px;
  background: #2f68bd;
  transform: translateY(-50%);
  z-index: 1;
}

.workflow-card.right::after {
  right: -18px;
}

.workflow-card.left::after {
  left: -18px;
}

.workflow-card.right::before,
.workflow-card.left::before {
  content: "";
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
}

.workflow-card.right::before {
  right: -25px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid #2f68bd;
}

.workflow-card.left::before {
  left: -25px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 9px solid #2f68bd;
}

.workflow-db-stack,
.workflow-risk-levels {
  display: grid;
  gap: 7px;
}

.workflow-db-stack span,
.workflow-risk-levels span {
  display: block;
  padding: 7px 8px;
  border: 1px solid #bdd2f1;
  border-radius: 3px;
  background: #f5f9ff;
  color: #12385d;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.workflow-risk-levels .r1 {
  border-color: #94d3aa;
  background: #f2fff6;
}

.workflow-risk-levels .r2 {
  border-color: #e2c35c;
  background: #fffbea;
}

.workflow-risk-levels .r3 {
  border-color: #f2a45c;
  background: #fff5ec;
}

.workflow-risk-levels .r4 {
  border-color: #ef8a8a;
  background: #fff0f0;
}

.workflow-decision-wrap,
.workflow-problem-decision-wrap {
  position: relative;
  display: grid;
  min-height: 178px;
  place-items: center;
}

.workflow-decision,
.workflow-problem-decision {
  display: grid;
  place-items: center;
  border: 2px solid #0b77b7;
  background: #f3f8ff;
  transform: rotate(45deg);
}

.workflow-decision {
  width: 118px;
  height: 118px;
}

.workflow-problem-decision {
  width: 104px;
  height: 104px;
}

.workflow-decision span,
.workflow-problem-decision span {
  display: block;
  width: 96px;
  transform: rotate(-45deg);
  color: #12385d;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
}

.workflow-decision-wrap .yes,
.workflow-problem-decision-wrap .yes {
  position: absolute;
  color: #238b45;
  font-size: 16px;
}

.workflow-decision-wrap .no,
.workflow-problem-decision-wrap .no {
  position: absolute;
  color: #d93636;
  font-size: 16px;
}

.workflow-decision-wrap .yes {
  right: 4px;
  top: 66px;
}

.workflow-decision-wrap .no {
  left: 54px;
  bottom: 12px;
}

.workflow-problem-decision-wrap .yes {
  left: 10px;
  bottom: 66px;
}

.workflow-problem-decision-wrap .no {
  right: 12px;
  bottom: 66px;
}

.workflow-observe {
  position: absolute;
  right: -34px;
  bottom: -16px;
  width: 190px;
  padding: 8px 10px;
  border: 1px solid #c8dced;
  border-radius: 4px;
  background: #eaf3ff;
  color: #12385d;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
}

.workflow-observe small {
  color: #5f7286;
  font-weight: 700;
}

.workflow-dashed-path,
.workflow-red-return,
.workflow-green-return {
  position: absolute;
  pointer-events: none;
}

.workflow-dashed-path {
  left: 48px;
  right: 70px;
  bottom: 190px;
  border-top: 2px dashed #2f68bd;
}

.workflow-red-return {
  right: 150px;
  top: 388px;
  width: 72px;
  height: 294px;
  border-right: 2px dashed #d93636;
  border-bottom: 2px dashed #d93636;
}

.workflow-green-return {
  left: 475px;
  bottom: 108px;
  width: 124px;
  height: 34px;
  border-left: 2px solid #238b45;
  border-bottom: 2px solid #238b45;
}

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

.workflow-side h2 {
  margin: 0;
  padding: 11px 12px;
  border-bottom: 1px solid #dbe7f1;
  background: #f8fbfe;
  color: #12385d;
  font-size: 16px;
}

.workflow-error-panel {
  border-color: #f0b7b7;
}

.workflow-error-panel h2 {
  color: #c6284b;
  background: #fff4f4;
}

.workflow-side ul {
  margin: 0;
  padding: 12px 16px 14px 26px;
  color: #334b68;
  font-size: 13px;
  line-height: 1.75;
}

.workflow-feedback-section {
  padding: 12px 14px 14px;
  border: 1px dashed #87b7d4;
  border-radius: 4px;
  background: rgba(234, 243, 255, 0.56);
}

.workflow-feedback-title {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 10px;
  border: 1px solid #c8dced;
  border-radius: 3px;
  background: #ffffff;
  color: #12385d;
  font-weight: 900;
}

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

.workflow-feedback-grid article {
  display: grid;
  gap: 6px;
  min-height: 72px;
  padding: 11px 12px;
  border: 1px dashed #a8c4ef;
  border-radius: 4px;
  background: #ffffff;
  text-align: center;
}

.workflow-feedback-grid strong {
  color: #12385d;
}

.workflow-feedback-grid span {
  color: #5f7286;
  font-size: 13px;
  line-height: 1.45;
}

.workflow-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding: 10px 12px;
  border: 1px solid #c8d9f5;
  border-radius: 4px;
  background: #ffffff;
  color: #263852;
  font-size: 13px;
}

.workflow-legend strong {
  color: #12385d;
}

.workflow-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.legend-node {
  display: inline-block;
  width: 20px;
  height: 14px;
  border: 2px solid #2f68bd;
  border-radius: 3px;
}

.legend-node.round {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.legend-node.diamond {
  width: 15px;
  height: 15px;
  transform: rotate(45deg);
}

.legend-line {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 2px;
  background: #2f68bd;
}

.legend-line::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid currentColor;
}

.legend-line.dashed {
  background: repeating-linear-gradient(90deg, #2f68bd, #2f68bd 7px, transparent 7px, transparent 12px);
}

.legend-line.green {
  color: #238b45;
  background: #238b45;
}

.legend-line.red {
  color: #d93636;
  background: #d93636;
}

@media (max-width: 1360px) {
  .workflow-main-layout {
    grid-template-columns: minmax(0, 1fr);
  }

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

.workflow-alarm-workbench .workflow-hero h1 {
  font-size: 26px;
}

.workflow-replica-workbench {
  gap: 0;
}

.workflow-stage-ribbon {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: -4px;
}

.workflow-stage-ribbon article {
  position: relative;
  display: grid;
  min-height: 64px;
  align-content: center;
  gap: 3px;
  padding: 10px 14px 10px 48px;
  border: 1px solid #c9dcec;
  border-radius: 4px;
  background:
    linear-gradient(90deg, rgba(0, 150, 214, 0.08), rgba(255, 255, 255, 0.96)),
    #ffffff;
  box-shadow: 0 6px 14px rgba(15, 57, 93, 0.05);
}

.workflow-stage-ribbon article::after {
  content: "";
  position: absolute;
  right: -11px;
  top: 50%;
  width: 12px;
  height: 1px;
  background: #86b6d4;
}

.workflow-stage-ribbon article:last-child::after {
  display: none;
}

.workflow-stage-ribbon span {
  position: absolute;
  left: 13px;
  top: 15px;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: #0d4ea6;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.workflow-stage-ribbon strong {
  color: #062b63;
  font-size: 15px;
  font-weight: 900;
}

.workflow-stage-ribbon small {
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

.workflow-alarm-canvas {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #c9dcec;
  border-radius: 4px;
  background:
    linear-gradient(rgba(13, 78, 166, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 78, 166, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, #ffffff 0%, #f6faff 58%, #edf5ff 100%);
  background-size: 24px 24px, 24px 24px, 100% 100%;
}

.workflow-replica-canvas {
  border: 1px solid #188a45;
  border-radius: 6px;
  background:
    linear-gradient(rgba(13, 78, 166, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 78, 166, 0.026) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, #ffffff 0%, #fbfdff 56%, #f6fbff 100%);
  background-size: 24px 24px, 24px 24px, 100% 100%;
}

.workflow-scale-stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 1412px;
  height: 795px;
  transform-origin: 0 0;
}

.workflow-lane {
  position: absolute;
  z-index: 0;
  border: 1px solid rgba(139, 182, 222, 0.55);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.32);
  pointer-events: none;
}

.workflow-lane span {
  position: absolute;
  top: 12px;
  left: 10px;
  writing-mode: vertical-rl;
  padding: 8px 4px;
  border: 1px solid rgba(151, 185, 233, 0.7);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.82);
  color: #34506e;
  font-size: 12px;
  font-weight: 900;
}

.workflow-lane.lane-main {
  top: 28px;
  left: 8px;
  right: 214px;
  height: 236px;
  background:
    linear-gradient(90deg, rgba(0, 150, 214, 0.05), rgba(255, 255, 255, 0.26)),
    rgba(255, 255, 255, 0.22);
}

.workflow-lane.lane-main span {
  top: -22px;
  left: 50%;
  writing-mode: horizontal-tb;
  padding: 4px 10px;
  transform: translateX(-50%);
}

.workflow-lane.lane-disposal {
  top: 390px;
  left: 598px;
  width: 602px;
  height: 214px;
  border-color: rgba(111, 166, 221, 0.5);
  background:
    linear-gradient(180deg, rgba(237, 245, 255, 0.72), rgba(255, 255, 255, 0.18));
}

.workflow-lane.lane-feedback {
  top: 390px;
  left: 18px;
  width: 350px;
  height: 214px;
  border-color: rgba(137, 199, 157, 0.5);
  background:
    linear-gradient(180deg, rgba(237, 249, 241, 0.56), rgba(255, 255, 255, 0.16));
}

.workflow-lane.lane-feedback span {
  border-color: rgba(137, 199, 157, 0.72);
  color: #22633b;
}

.workflow-lane.lane-prevention {
  top: 390px;
  left: 382px;
  width: 190px;
  height: 214px;
  border-color: rgba(24, 138, 69, 0.46);
  background:
    linear-gradient(180deg, rgba(238, 250, 242, 0.42), rgba(255, 255, 255, 0.12));
}

.workflow-lane.lane-prevention span {
  top: 12px;
  left: 50%;
  writing-mode: horizontal-tb;
  padding: 4px 8px;
  border-color: rgba(137, 199, 157, 0.72);
  color: #17633b;
  font-size: 11px;
  transform: translateX(-50%);
}

.workflow-alarm-arrows {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.workflow-arrow-main {
  stroke: #1d5fbf;
  stroke-width: 3.15;
  fill: none;
  marker-end: url("#workflowArrowBlue");
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.workflow-arrow-feedback {
  stroke: #1d5fbf;
  stroke-width: 2.55;
  fill: none;
  marker-end: url("#workflowArrowBlue");
  opacity: 0.95;
  stroke-dasharray: 7 8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.workflow-arrow-red {
  stroke: #d93434;
  stroke-width: 2.55;
  fill: none;
  marker-end: url("#workflowArrowRed");
  opacity: 0.95;
  stroke-dasharray: 7 8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.workflow-arrow-support,
.workflow-arrow-support-bus {
  stroke: #ff7a1a;
  stroke-width: 2.35;
  fill: none;
  marker-end: url("#workflowArrowOrange");
  opacity: 0.94;
  stroke-dasharray: 7 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.workflow-arrow-support-bus {
  marker-end: none;
  stroke-width: 2;
  opacity: 0.76;
}

.workflow-arrow-purple,
.workflow-arrow-purple-bus {
  stroke: #6f3dbd;
  stroke-width: 2.15;
  fill: none;
  marker-end: url("#workflowArrowPurple");
  opacity: 0.9;
  stroke-dasharray: 7 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.workflow-arrow-purple-bus {
  marker-end: none;
  stroke-width: 1.8;
  opacity: 0.68;
}

.workflow-arrow-red.soft {
  stroke-width: 2;
  opacity: 0.72;
}

.workflow-arrow-green {
  stroke: #188a45;
  stroke-width: 2.85;
  fill: none;
  marker-end: url("#workflowArrowGreen");
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.workflow-feedback-bus {
  stroke: #1d5fbf;
  stroke-width: 1.8;
  fill: none;
  opacity: 0.58;
  stroke-dasharray: 4 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.workflow-feedback-stub {
  stroke: #1d5fbf;
  stroke-width: 1.9;
  fill: none;
  marker-end: url("#workflowArrowBlue");
  opacity: 0.72;
  stroke-dasharray: 4 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.workflow-arrow-main,
.workflow-arrow-feedback,
.workflow-arrow-red,
.workflow-arrow-green,
.workflow-arrow-support,
.workflow-arrow-support-bus,
.workflow-arrow-purple,
.workflow-arrow-purple-bus,
.workflow-feedback-bus,
.workflow-feedback-stub {
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.95));
}

.workflow-svg-label {
  fill: #0d4ea6;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 4px;
  font-size: 13px;
  font-weight: 900;
  text-anchor: middle;
}

.workflow-chart-title {
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  pointer-events: none;
}

.workflow-chart-title h1 {
  margin: 0;
  color: #0a3b98;
  font-size: 36px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0;
}

.workflow-title-line {
  position: relative;
  display: inline-block;
  width: 345px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #0b4fc8);
}

.workflow-title-line.right {
  background: linear-gradient(90deg, #0b4fc8, transparent);
}

.workflow-title-line.right::after {
  display: none;
}

.workflow-title-line::after,
.workflow-title-line.right::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #0b4fc8;
  transform: translateY(-50%);
}

.workflow-title-line::after {
  right: -5px;
}

.workflow-title-line.right::before {
  left: -5px;
}

.workflow-main-title {
  position: absolute;
  left: 28px;
  top: 22px;
  z-index: 3;
  padding: 7px 12px;
  border: 1px solid #9fc2eb;
  border-radius: 6px;
  background: #ffffff;
  color: #062b63;
  font-size: 15px;
  font-weight: 900;
}

.workflow-flow-node {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 140px;
  min-height: 242px;
  align-content: start;
  gap: 7px;
  padding: 13px 12px 11px;
  border: 1px solid #a9c9ef;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: #17233c;
  box-shadow: 0 10px 22px rgba(13, 78, 166, 0.09);
}

.workflow-flow-node h2 {
  min-height: 38px;
  margin: 0 0 0 29px;
  color: #062b63;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
}

.workflow-flow-index {
  position: absolute;
  top: 13px;
  left: 12px;
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  background: #0d4ea6;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 2px 7px rgba(13, 78, 166, 0.24);
}

.workflow-flow-mark {
  justify-self: center;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid #9fc7df;
  border-radius: 50%;
  background: #edf5ff;
  color: #0d4ea6;
  font-size: 20px;
  font-weight: 900;
}

.workflow-flow-node ul {
  margin: 0;
  padding-left: 17px;
  color: #101d36;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.58;
}

.workflow-flow-node p {
  margin: 8px 0 0;
  color: #101d36;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.65;
}

.workflow-flow-note {
  margin-top: auto;
  padding: 7px 6px;
  border: 1px solid #ffb3b3;
  border-radius: 6px;
  background: #fff7f7;
  color: #e60012;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
}

.workflow-parallel-panel {
  position: absolute;
  left: 28px;
  top: 334px;
  z-index: 2;
  width: 1148px;
  height: 210px;
  border: 1px solid #f2b15b;
  border-radius: 10px;
  background: rgba(255, 252, 247, 0.60);
}

.workflow-parallel-label {
  position: absolute;
  left: 12px;
  top: 17px;
  z-index: 3;
  writing-mode: vertical-rl;
  letter-spacing: 1px;
  color: #d66b00;
  font-size: 14px;
  font-weight: 900;
}

.workflow-parallel-node {
  position: absolute;
  display: grid;
  width: 128px;
  min-height: 168px;
  align-content: start;
  gap: 5px;
  padding: 10px 9px 8px;
  border: 1px solid #c7dcf6;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: #17233c;
  box-shadow: 0 8px 18px rgba(13, 78, 166, 0.07);
}

.workflow-parallel-index {
  position: absolute;
  top: 11px;
  left: 10px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: #0d4ea6;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
}

.workflow-parallel-node h3 {
  min-height: 30px;
  margin: 0 0 0 30px;
  color: #062b63;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
}

.workflow-parallel-mark {
  justify-self: center;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #a7cceb;
  border-radius: 50%;
  background: #edf5ff;
  color: #0d4ea6;
  font-size: 16px;
  font-weight: 900;
}

.workflow-parallel-node ul {
  margin: 0;
  padding-left: 16px;
  color: #17233c;
  font-size: 10.6px;
  font-weight: 740;
  line-height: 1.36;
}

.workflow-parallel-note {
  margin-top: auto;
  padding: 4px 5px;
  border: 1px solid #ffb3b3;
  border-radius: 5px;
  background: #fff7f7;
  color: #e60012;
  font-size: 10.5px;
  font-weight: 900;
  line-height: 1.3;
  text-align: center;
}

.workflow-parallel-node.positive-note .workflow-parallel-note {
  border-color: #89c99d;
  background: #eefaf2;
  color: #188a45;
}

.workflow-parallel-node.green {
  border-color: #89c99d;
  background:
    linear-gradient(135deg, rgba(24, 138, 69, 0.08), rgba(255, 255, 255, 0.42)),
    rgba(251, 255, 252, 0.96);
  box-shadow: 0 8px 18px rgba(24, 138, 69, 0.08);
}

.workflow-parallel-node.green .workflow-parallel-index {
  background: #188a45;
}

.workflow-parallel-node.green h3,
.workflow-parallel-node.green .workflow-parallel-mark {
  color: #188a45;
}

.workflow-parallel-node.green .workflow-parallel-mark {
  border-color: #89c99d;
  background: #eefaf2;
}

.workflow-prevention-panel {
  position: absolute;
  left: 28px;
  right: 276px;
  top: 560px;
  z-index: 2;
  height: 92px;
  border: 1px solid rgba(111, 61, 189, 0.34);
  border-radius: 8px;
  background: rgba(251, 247, 255, 0.62);
}

.workflow-prevention-label {
  position: absolute;
  left: 12px;
  top: 18px;
  z-index: 3;
  color: #6334a5;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
}

.workflow-prevention-card {
  position: absolute;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  width: 170px;
  min-height: 62px;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid #dacbf3;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.95);
  color: #17233c;
  box-shadow: 0 6px 15px rgba(111, 61, 189, 0.07);
}

.workflow-prevention-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #bda8e7;
  border-radius: 50%;
  background: #f2ecff;
  color: #6f3dbd;
  font-size: 16px;
  font-weight: 900;
}

.workflow-prevention-card h3 {
  margin: 0 0 3px;
  color: #55299a;
  font-size: 12.5px;
  font-weight: 900;
  line-height: 1.22;
}

.workflow-prevention-card ul {
  margin: 0;
  padding-left: 14px;
  color: #253650;
  font-size: 9.8px;
  font-weight: 730;
  line-height: 1.32;
}

.workflow-core-stage {
  position: absolute;
  z-index: 2;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  width: 288px;
  min-height: 230px;
  align-content: start;
  gap: 10px 14px;
  padding: 18px 18px 16px;
  border: 1px solid #8fb9e5;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(0, 150, 214, 0.08), rgba(255, 255, 255, 0.34)),
    rgba(255, 255, 255, 0.96);
  color: #17233c;
  box-shadow: 0 12px 26px rgba(13, 78, 166, 0.10);
}

.workflow-core-stage.dispatch {
  border-color: #7faee2;
  box-shadow:
    0 12px 26px rgba(13, 78, 166, 0.10),
    inset 5px 0 0 rgba(13, 78, 166, 0.18);
}

.workflow-core-stage.archive {
  border-color: #96c7a7;
  background:
    linear-gradient(135deg, rgba(35, 139, 69, 0.08), rgba(255, 255, 255, 0.34)),
    rgba(255, 255, 255, 0.96);
}

.workflow-core-stage.prevent {
  border-color: #89c99d;
  background:
    linear-gradient(135deg, rgba(24, 138, 69, 0.10), rgba(255, 255, 255, 0.36)),
    rgba(251, 255, 252, 0.96);
  box-shadow:
    0 12px 26px rgba(24, 138, 69, 0.10),
    inset 5px 0 0 rgba(24, 138, 69, 0.20);
}

.workflow-core-index {
  position: absolute;
  top: 14px;
  left: 14px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #0d4ea6;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 3px 9px rgba(13, 78, 166, 0.24);
}

.workflow-core-stage.prevent .workflow-core-index,
.workflow-core-stage.archive .workflow-core-index {
  background: #188a45;
}

.workflow-core-mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  align-self: center;
  margin-top: 42px;
  border: 1px solid #9fc7df;
  border-radius: 50%;
  background: #edf5ff;
  color: #0d4ea6;
  font-size: 25px;
  font-weight: 900;
}

.workflow-core-stage.archive .workflow-core-mark,
.workflow-core-stage.prevent .workflow-core-mark {
  border-color: #89c99d;
  background: #eefaf2;
  color: #188a45;
}

.workflow-core-stage h2 {
  margin: 4px 0 5px;
  color: #062b63;
  font-size: 27px;
  font-weight: 900;
  letter-spacing: 0;
}

.workflow-core-stage p {
  margin: 0;
  color: #526980;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.workflow-core-stage ul {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.workflow-core-stage li {
  min-height: 30px;
  padding: 7px 9px;
  border: 1px solid #d3e2f2;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  color: #243752;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.workflow-support-panel {
  position: absolute;
  left: 410px;
  top: 214px;
  z-index: 3;
  width: 310px;
  min-height: 302px;
  padding: 14px 16px 16px;
  border: 1px dashed #97b9e9;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 22px rgba(13, 78, 166, 0.08);
}

.workflow-support-label {
  display: inline-flex;
  padding: 3px 8px;
  border: 1px solid #b8d4eb;
  border-radius: 999px;
  background: #edf5ff;
  color: #0d4ea6;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
}

.workflow-support-panel h2 {
  margin: 8px 0 12px;
  color: #17395d;
  font-size: 18px;
  font-weight: 900;
}

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

.workflow-support-grid article {
  display: grid;
  gap: 5px;
  min-height: 62px;
  padding: 9px;
  border: 1px solid #d5e5f0;
  border-radius: 6px;
  background: #f8fbff;
}

.workflow-support-grid strong {
  color: #0d4ea6;
  font-size: 13px;
  font-weight: 900;
}

.workflow-support-grid span {
  color: #5d7085;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.38;
}

.workflow-node {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 150px;
  min-height: 164px;
  align-content: start;
  gap: 7px;
  padding: 12px 11px 10px;
  border: 1px solid #9fc2eb;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: #17233c;
  box-shadow: 0 8px 18px rgba(13, 78, 166, 0.08);
}

.workflow-node.wide {
  width: 170px;
}

.workflow-node.small {
  min-height: 142px;
}

.workflow-node.warn {
  border-color: #f0b85b;
  background: #fffaf0;
}

.workflow-node.key {
  border-color: #6ea6dd;
  box-shadow:
    0 8px 18px rgba(13, 78, 166, 0.08),
    inset 4px 0 0 rgba(13, 78, 166, 0.18);
}

.workflow-node.key .workflow-node-mark {
  border-color: #65a7d7;
  background: #e8f6ff;
}

.workflow-node.result {
  border-color: #96c7a7;
  background: #fbfffc;
}

.workflow-node.audit {
  border-color: #b4bde8;
  background: #fbfcff;
}

.workflow-node.prevention {
  border-color: #89c99d;
  background: #fbfffc;
  box-shadow:
    0 8px 18px rgba(24, 138, 69, 0.08),
    inset 4px 0 0 rgba(24, 138, 69, 0.20);
}

.workflow-node.prevention .workflow-node-mark {
  border-color: #89c99d;
  background: #eefaf2;
  color: #188a45;
}

.workflow-node.prevention.small {
  min-height: 138px;
  gap: 5px;
}

.workflow-node.prevention .workflow-node-title {
  min-height: 28px;
}

.workflow-node.prevention .workflow-node-mark {
  width: 34px;
  height: 34px;
  font-size: 16px;
}

.workflow-node.prevention ul {
  display: block;
  padding-left: 16px;
  font-size: 12px;
  line-height: 1.28;
}

.workflow-node.prevention li {
  white-space: nowrap;
}

.workflow-node-num {
  position: absolute;
  top: 10px;
  left: 10px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #0d4ea6;
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 2px 7px rgba(13, 78, 166, 0.22);
}

.workflow-node-title {
  min-height: 34px;
  margin-left: 35px;
  color: #062b63;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.25;
}

.workflow-node-mark {
  justify-self: center;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid #9fc7df;
  border-radius: 50%;
  background: #edf5ff;
  color: #0d4ea6;
  font-size: 18px;
  font-weight: 900;
}

.workflow-node ul {
  margin: 0;
  padding-left: 18px;
  color: #243752;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
}

.workflow-node p {
  margin: 2px 0 0;
  color: #2f405a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
}

.workflow-node-note {
  margin-top: auto;
  padding: 6px 7px;
  border: 1px solid #f0b85b;
  border-radius: 4px;
  background: #fff5df;
  color: #7a4700;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
}

.workflow-node-note.red {
  border-color: #ee8a8a;
  background: #fff1f1;
  color: #d93434;
}

.workflow-assist-node {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 150px;
  min-height: 128px;
  align-content: start;
  gap: 6px;
  padding: 10px 10px 9px;
  border: 1px dashed #91b6de;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #243752;
  box-shadow: 0 6px 14px rgba(13, 78, 166, 0.06);
}

.workflow-assist-node.audit {
  border-color: #b4bde8;
  background: rgba(251, 252, 255, 0.94);
}

.workflow-assist-node.paragraph {
  border-color: #9fc7df;
  background: rgba(247, 251, 255, 0.95);
}

.workflow-assist-tag {
  justify-self: start;
  padding: 2px 6px;
  border: 1px solid #b8d4eb;
  border-radius: 999px;
  background: #edf5ff;
  color: #0d4ea6;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
}

.workflow-assist-title {
  color: #17395d;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
}

.workflow-assist-mark {
  position: absolute;
  top: 9px;
  right: 9px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #9fc7df;
  border-radius: 50%;
  background: #f7fbff;
  color: #0d4ea6;
  font-size: 14px;
  font-weight: 900;
}

.workflow-assist-node ul {
  margin: 0;
  padding-left: 17px;
  color: #3b506b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.workflow-assist-node p {
  margin: 0;
  color: #3b506b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}

.workflow-analysis-box,
.workflow-risk-box,
.workflow-alarm-legend {
  position: absolute;
  right: 12px;
  z-index: 3;
  width: 178px;
  border: 1px solid #9fc2eb;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 18px rgba(13, 78, 166, 0.08);
}

.workflow-analysis-box {
  top: 246px;
  min-height: 188px;
  padding: 10px 12px;
}

.workflow-risk-box {
  top: 346px;
  right: 18px;
  width: 162px;
  min-height: 160px;
  padding: 10px 12px;
  border-color: #ef9a9a;
  background: #fffafa;
}

.workflow-alarm-legend {
  right: 18px;
  bottom: 58px;
  width: 220px;
  padding: 10px 11px;
  border-color: #c8d9f5;
}

.workflow-analysis-box h2,
.workflow-risk-box h2,
.workflow-alarm-legend h2 {
  margin: 0 0 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid #dbe8fb;
  color: #062b63;
  font-size: 15px;
  font-weight: 900;
}

.workflow-risk-box h2 {
  border-bottom-color: #f2c6c6;
  color: #d93434;
}

.workflow-analysis-box ul,
.workflow-risk-box ul {
  margin: 0;
  padding-left: 20px;
  color: #263852;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

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

.workflow-field-grid span {
  display: grid;
  min-height: 26px;
  place-items: center;
  border: 1px solid #cfe2f4;
  border-radius: 4px;
  background: #f7fbff;
  color: #17395d;
  font-size: 12px;
  font-weight: 800;
}

.workflow-risk-list {
  margin: 0;
  padding: 0;
  counter-reset: workflow-risk;
  list-style: none;
}

.workflow-risk-list li {
  position: relative;
  min-height: 22px;
  padding-left: 25px;
  color: #263852;
  font-size: 11px;
  font-weight: 760;
  line-height: 1.45;
}

.workflow-risk-list li::before {
  counter-increment: workflow-risk;
  content: counter(workflow-risk, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  color: #d93434;
  font-size: 11px;
  font-weight: 900;
}

.workflow-note-floating {
  position: absolute;
  z-index: 4;
  padding: 7px 10px;
  border: 1px solid #f0b85b;
  border-radius: 6px;
  background: #fff5df;
  color: #794900;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 6px 15px rgba(243, 156, 18, 0.10);
}

.note-transcription {
  top: 10px;
  left: 53.5%;
}

.note-dispatch {
  right: 205px;
  bottom: 74px;
}

.workflow-loop-title {
  position: absolute;
  left: 60px;
  top: 638px;
  z-index: 3;
  padding: 7px 13px;
  border: 1px solid #9fc2eb;
  border-radius: 6px;
  background: #ffffff;
  color: #062b63;
  font-size: 16px;
  font-weight: 900;
}

.workflow-loop-cards {
  position: absolute;
  left: 36px;
  right: 276px;
  top: 672px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 16px 18px 10px;
  border: 1px dashed #0b4fc8;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.38);
}

.workflow-loop-cards article {
  display: grid;
  gap: 3px;
  min-height: 52px;
  padding: 8px 8px;
  border: 1px dashed #97b9e9;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  color: #062b63;
  font-size: 10.7px;
  line-height: 1.3;
  text-align: center;
}

.workflow-loop-cards strong {
  font-weight: 900;
}

.workflow-loop-cards span {
  color: #5f7286;
}

.workflow-footer-note {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 8px;
  z-index: 3;
  min-height: 34px;
  padding: 8px 18px 8px 54px;
  border-radius: 7px;
  background: #edf5ff;
  color: #0b4fc8;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.workflow-footer-note::before {
  content: "!";
  position: absolute;
  left: 25px;
  top: 50%;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 2px solid #0b4fc8;
  border-radius: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  font-weight: 900;
}

.workflow-alarm-legend div {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 7px 0;
  color: #263852;
  font-size: 11.5px;
  font-weight: 760;
}

.sample-line {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 3px;
  background: #1d5fbf;
  flex: none;
}

.sample-line::after {
  content: "";
  position: absolute;
  right: -7px;
  top: 50%;
  transform: translateY(-50%);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
}

.sample-line.dashed {
  background: repeating-linear-gradient(90deg, #1d5fbf, #1d5fbf 8px, transparent 8px, transparent 14px);
}

.sample-line.orange {
  color: #ff7a1a;
  background: #ff7a1a;
}

.sample-line.dashed.orange {
  background: repeating-linear-gradient(90deg, #ff7a1a, #ff7a1a 8px, transparent 8px, transparent 14px);
}

.sample-line.purple {
  color: #6f3dbd;
  background: #6f3dbd;
}

.sample-line.dashed.purple {
  background: repeating-linear-gradient(90deg, #6f3dbd, #6f3dbd 8px, transparent 8px, transparent 14px);
}

.sample-line.red {
  color: #d93434;
  background: #d93434;
}

.sample-line.dashed.red {
  background: repeating-linear-gradient(90deg, #d93434, #d93434 8px, transparent 8px, transparent 14px);
}

.sample-line.green {
  color: #188a45;
  background: #188a45;
}

.sample-node {
  display: inline-block;
  width: 22px;
  height: 16px;
  border: 1px solid #6ea6dd;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: inset 4px 0 0 rgba(13, 78, 166, 0.18);
  flex: none;
}

@media (max-width: 1360px) {
  .workflow-stage-ribbon {
    gap: 8px;
  }

  .workflow-stage-ribbon article {
    padding-right: 10px;
    padding-left: 43px;
  }

  .workflow-stage-ribbon small {
    font-size: 11px;
  }

  .workflow-node {
    width: 138px;
    padding-inline: 9px;
  }

  .workflow-node.wide {
    width: 154px;
  }

  .workflow-assist-node {
    width: 138px;
  }

  .workflow-node-title {
    font-size: 15px;
  }

  .workflow-analysis-box,
  .workflow-risk-box,
  .workflow-alarm-legend {
    width: 168px;
  }

  .note-dispatch {
    right: 190px;
  }
}

.page-missedCalls {
  background:
    linear-gradient(135deg, rgba(0, 150, 214, 0.08), transparent 32%),
    linear-gradient(180deg, #f6f9fc, #eaf2f8);
}

.missed-workbench {
  display: grid;
  gap: 14px;
}

.missed-hero {
  display: flex;
  min-height: 118px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px;
  border: 1px solid #b8dbf0;
  border-left: 6px solid #0096d6;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(236, 248, 255, 0.94)),
    linear-gradient(135deg, transparent 0 48%, rgba(0, 150, 214, 0.08) 48% 52%, transparent 52%);
  box-shadow: 0 10px 24px rgba(8, 61, 105, 0.08);
}

.missed-hero .eyebrow {
  display: inline-flex;
  padding: 4px 10px;
  border: 1px solid #b9dcec;
  background: #eef8fc;
  color: #116798;
  font-size: 13px;
  font-weight: 700;
}

.missed-hero h1 {
  margin: 8px 0;
  color: #073b70;
  font-size: 31px;
  letter-spacing: 0.04em;
}

.missed-hero p {
  margin: 0;
  color: #4a6784;
  line-height: 1.7;
}

.missed-hero-status {
  display: grid;
  gap: 7px;
  min-width: 220px;
  justify-items: end;
  color: #5d7085;
}

.missed-hero-status strong {
  color: #073b70;
  font-size: 34px;
  line-height: 1;
}

.missed-hero-status span,
.missed-hero-status small {
  color: #5d7085;
  font-weight: 700;
}

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

.missed-metrics article {
  min-height: 82px;
  padding: 16px 18px;
  border: 1px solid #d5e5f0;
  border-radius: 3px;
  background:
    linear-gradient(135deg, rgba(0, 150, 214, 0.08), transparent 58%),
    #ffffff;
  box-shadow: 0 8px 18px rgba(15, 57, 93, 0.06);
}

.missed-metrics span,
.missed-metrics small {
  display: block;
  color: #5d7085;
  font-size: 13px;
}

.missed-metrics strong {
  display: block;
  margin: 8px 0 4px;
  color: #073b70;
  font-size: 28px;
  line-height: 1;
}

.missed-grid {
  display: grid;
  grid-template-columns: minmax(760px, 1fr) minmax(360px, 0.52fr);
  gap: 14px;
  align-items: stretch;
}

.page-missedCalls .panel {
  overflow: hidden;
  border-color: #d7e4ee;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(19, 54, 91, 0.07);
}

.page-missedCalls .panel-head {
  border-bottom-color: #e6eef5;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.page-missedCalls .panel-head h1,
.page-missedCalls .panel-head h2 {
  color: #14233d;
}

.page-missedCalls .panel-head p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.page-missedCalls .form-panel {
  border-bottom-color: #e6eef5;
  background:
    linear-gradient(90deg, rgba(22, 184, 217, 0.07), rgba(6, 79, 150, 0.03)),
    #fbfdff;
}

.page-missedCalls .form-row > span:first-child {
  color: #334b68;
  font-weight: 800;
}

.page-missedCalls .field,
.page-missedCalls .select-field {
  border-color: #d7e4ee;
  background: #ffffff;
  color: #14233d;
}

.page-missedCalls .field:focus,
.page-missedCalls .select-field:focus {
  outline: 2px solid rgba(22, 184, 217, 0.2);
  border-color: #16b8d9;
}

.missed-policy-list {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.missed-policy-list article {
  display: grid;
  gap: 7px;
  min-height: 74px;
  padding: 12px;
  border: 1px solid #d9e8f3;
  border-radius: 3px;
  background: #ffffff;
}

.missed-policy-list strong {
  color: #17395d;
}

.missed-policy-list span {
  color: #64748b;
  line-height: 1.5;
}

.missed-list-panel table {
  min-width: 1080px;
}

.page-missedCalls thead th {
  background: #f2f7fb;
  color: #28445f;
  font-weight: 800;
}

.page-missedCalls tbody tr:hover {
  background: #f7fbff;
}

.page-missedCalls .btn.primary {
  border-color: #0c73bc;
  background: linear-gradient(180deg, #1387d4, #0766ad);
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(6, 102, 173, 0.18);
}

.page-missedCalls .pager {
  border-top: 1px solid #e6eef5;
  background: #fbfdff;
}

.page-missedCalls .pager .current {
  background: #0766ad;
}

.page-users,
.page-roles,
.page-menus,
.page-departments,
.page-dictionary,
.page-callLogs,
.page-templates {
  background:
    linear-gradient(135deg, rgba(0, 150, 214, 0.08), transparent 32%),
    linear-gradient(180deg, #f6f9fc, #eaf2f8);
}

.system-workbench {
  display: grid;
  gap: 14px;
}

.system-hero {
  display: flex;
  min-height: 118px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px;
  border: 1px solid #b8dbf0;
  border-left: 6px solid #0096d6;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(236, 248, 255, 0.94)),
    linear-gradient(135deg, transparent 0 48%, rgba(0, 150, 214, 0.08) 48% 52%, transparent 52%);
  box-shadow: 0 10px 24px rgba(8, 61, 105, 0.08);
}

.system-hero .eyebrow {
  display: inline-flex;
  padding: 4px 10px;
  border: 1px solid #b9dcec;
  background: #eef8fc;
  color: #116798;
  font-size: 13px;
  font-weight: 700;
}

.system-hero h1 {
  margin: 8px 0;
  color: #073b70;
  font-size: 31px;
  letter-spacing: 0.04em;
}

.system-hero p {
  margin: 0;
  color: #4a6784;
  line-height: 1.7;
}

.system-hero-status {
  display: grid;
  gap: 7px;
  min-width: 260px;
  justify-items: end;
  color: #5d7085;
}

.system-hero-status strong {
  color: #073b70;
  font-size: 24px;
}

.system-hero-status span,
.system-hero-status small {
  color: #5d7085;
  font-weight: 700;
}

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

.system-metrics article {
  min-height: 82px;
  padding: 16px 18px;
  border: 1px solid #d5e5f0;
  border-radius: 3px;
  background:
    linear-gradient(135deg, rgba(0, 150, 214, 0.08), transparent 58%),
    #ffffff;
  box-shadow: 0 8px 18px rgba(15, 57, 93, 0.06);
}

.system-metrics span,
.system-metrics small {
  display: block;
  color: #5d7085;
  font-size: 13px;
}

.system-metrics strong {
  display: block;
  margin: 8px 0 4px;
  color: #073b70;
  font-size: 28px;
  line-height: 1;
}

.page-users .tree-layout,
.page-roles .tree-layout,
.page-menus .tree-layout,
.page-departments .tree-layout,
.page-dictionary .tree-layout,
.page-callLogs .tree-layout,
.page-templates .tree-layout {
  gap: 14px;
}

.page-users .org-tree,
.page-roles .org-tree,
.page-menus .org-tree,
.page-departments .org-tree,
.page-dictionary .org-tree,
.page-users .panel,
.page-roles .panel,
.page-menus .panel,
.page-departments .panel,
.page-dictionary .panel,
.page-callLogs .panel,
.page-templates .panel {
  overflow: hidden;
  border-color: #d7e4ee;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(19, 54, 91, 0.07);
}

.page-users .org-tree,
.page-roles .org-tree,
.page-menus .org-tree,
.page-departments .org-tree,
.page-dictionary .org-tree,
.page-callLogs .org-tree,
.page-templates .org-tree {
  min-height: calc(100vh - 150px);
}

.page-users .tree-list,
.page-roles .tree-list,
.page-menus .tree-list,
.page-departments .tree-list,
.page-dictionary .tree-list,
.page-callLogs .tree-list,
.page-templates .tree-list {
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.page-users .tree-list .link-button,
.page-roles .tree-list .link-button,
.page-menus .tree-list .link-button,
.page-departments .tree-list .link-button,
.page-dictionary .tree-list .link-button,
.page-callLogs .tree-list .link-button,
.page-templates .tree-list .link-button {
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 4px;
  color: #254464;
  text-align: left;
}

.page-users .tree-list .link-button:hover,
.page-roles .tree-list .link-button:hover,
.page-menus .tree-list .link-button:hover,
.page-departments .tree-list .link-button:hover,
.page-dictionary .tree-list .link-button:hover,
.page-callLogs .tree-list .link-button:hover,
.page-templates .tree-list .link-button:hover {
  background: #edf8ff;
  color: #0766ad;
  text-decoration: none;
}

.page-users .tree-list .link-button.active,
.page-roles .tree-list .link-button.active,
.page-menus .tree-list .link-button.active,
.page-departments .tree-list .link-button.active,
.page-dictionary .tree-list .link-button.active,
.page-callLogs .tree-list .link-button.active,
.page-templates .tree-list .link-button.active {
  background: linear-gradient(90deg, #e7f6ff, #f6fbff);
  color: #064f96;
  box-shadow: inset 3px 0 0 #16b8d9;
}

.page-users .panel-head,
.page-roles .panel-head,
.page-menus .panel-head,
.page-departments .panel-head,
.page-dictionary .panel-head,
.page-callLogs .panel-head,
.page-templates .panel-head {
  border-bottom-color: #e6eef5;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.page-users .panel-head h1,
.page-users .panel-head h2,
.page-roles .panel-head h1,
.page-roles .panel-head h2,
.page-menus .panel-head h1,
.page-menus .panel-head h2,
.page-departments .panel-head h1,
.page-departments .panel-head h2,
.page-dictionary .panel-head h1,
.page-dictionary .panel-head h2,
.page-callLogs .panel-head h1,
.page-callLogs .panel-head h2,
.page-templates .panel-head h1,
.page-templates .panel-head h2 {
  color: #14233d;
}

.page-users .form-panel,
.page-roles .form-panel,
.page-menus .form-panel,
.page-departments .form-panel,
.page-dictionary .form-panel,
.page-callLogs .form-panel,
.page-templates .form-panel {
  border-bottom-color: #e6eef5;
  background:
    linear-gradient(90deg, rgba(22, 184, 217, 0.07), rgba(6, 79, 150, 0.03)),
    #fbfdff;
}

.page-users .form-row > span:first-child,
.page-roles .form-row > span:first-child,
.page-menus .form-row > span:first-child,
.page-departments .form-row > span:first-child,
.page-dictionary .form-row > span:first-child,
.page-callLogs .form-row > span:first-child,
.page-templates .form-row > span:first-child {
  color: #334b68;
  font-weight: 800;
}

.page-users .field,
.page-users .select-field,
.page-roles .field,
.page-roles .select-field,
.page-menus .field,
.page-menus .select-field,
.page-departments .field,
.page-departments .select-field,
.page-dictionary .field,
.page-dictionary .select-field,
.page-callLogs .field,
.page-callLogs .select-field,
.page-templates .field,
.page-templates .select-field {
  border-color: #d7e4ee;
  background: #ffffff;
  color: #14233d;
}

.page-users thead th,
.page-roles thead th,
.page-menus thead th,
.page-departments thead th,
.page-dictionary thead th,
.page-callLogs thead th,
.page-templates thead th {
  background: #f2f7fb;
  color: #28445f;
  font-weight: 800;
}

.page-users tbody tr:hover,
.page-roles tbody tr:hover,
.page-menus tbody tr:hover,
.page-departments tbody tr:hover,
.page-dictionary tbody tr:hover,
.page-callLogs tbody tr:hover,
.page-templates tbody tr:hover {
  background: #f7fbff;
}

.page-users .link-button,
.page-roles .link-button,
.page-menus .link-button,
.page-departments .link-button,
.page-dictionary .link-button,
.page-callLogs .link-button,
.page-templates .link-button {
  color: #0766ad;
}

.page-users .btn.primary,
.page-roles .btn.primary,
.page-menus .btn.primary,
.page-departments .btn.primary,
.page-dictionary .btn.primary,
.page-callLogs .btn.primary,
.page-templates .btn.primary {
  border-color: #0c73bc;
  background: linear-gradient(180deg, #1387d4, #0766ad);
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(6, 102, 173, 0.18);
}

.page-users .pager,
.page-roles .pager,
.page-menus .pager,
.page-departments .pager,
.page-dictionary .pager,
.page-callLogs .pager,
.page-templates .pager {
  border-top: 1px solid #e6eef5;
  background: #fbfdff;
}

.page-users .pager .current,
.page-roles .pager .current,
.page-menus .pager .current,
.page-departments .pager .current,
.page-dictionary .pager .current,
.page-callLogs .pager .current,
.page-templates .pager .current {
  background: #0766ad;
}

.tree-layout {
  display: grid;
  grid-template-columns: 250px minmax(860px, 1fr);
  gap: 12px;
}

.org-tree {
  min-height: 640px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.tree-search {
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.tree-list {
  padding: 18px 22px;
  line-height: 2.35;
  color: #344257;
}

.tree-list .indent {
  padding-left: 22px;
}

.play-icon {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 2px solid #49a9e8;
  border-radius: 50%;
  color: #168bd8;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  color: #526175;
}

.pager-button {
  display: grid;
  min-width: 34px;
  height: 38px;
  place-items: center;
  border: 1px solid #d6e2ee;
  border-radius: 3px;
  background: #ffffff;
  color: #526175;
  font-weight: 800;
}

.pager-button:hover {
  border-color: #9dd8ff;
  color: #0766ad;
}

.pager .current {
  border-color: #1593e9;
  background: #1593e9;
  color: #ffffff;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.metric-card {
  padding: 18px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.metric-card small {
  display: block;
  color: var(--muted);
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  color: #0d4478;
  font-size: 30px;
  line-height: 1;
}

.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(11, 21, 35, 0.58);
}

.modal-mask.open {
  display: flex;
}

.modal-panel {
  width: min(1120px, 96vw);
  max-height: calc(100vh - 60px);
  overflow: hidden;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(5, 29, 64, 0.28);
}

.modal-head,
.modal-actions {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0 20px;
}

.modal-head {
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.modal-head h2 {
  margin: 0;
  font-size: 22px;
}

.plain-icon {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 30px;
  line-height: 1;
}

.modal-content {
  max-height: calc(100vh - 180px);
  overflow: auto;
  padding: 18px 22px;
}

.modal-actions {
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  background: #fbfdff;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  max-width: 360px;
  padding: 12px 16px;
  border-radius: 4px;
  background: rgba(13, 25, 43, 0.92);
  color: #ffffff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1460px) {
  .module-button {
    min-width: 82px;
    padding-inline: 9px;
    font-size: 14px;
  }

  .brand-copy strong {
    font-size: 23px;
  }

  .form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .recording-upload-form {
    grid-template-columns: 1fr;
  }

  .recording-upload-grid .wide {
    grid-column: 1 / -1;
  }
}

/* 2026-05-15 polish layer: compact duty-console chrome and shared component rhythm. */
:root {
  --nav-blue: #075f9f;
  --nav-blue-dark: #054875;
  --nav-blue-soft: #0a83c9;
  --cyan: #16a9ca;
  --line: #d8e3ee;
  --line-strong: #c3d2e2;
  --bg: #eef3f7;
  --panel: #ffffff;
  --text: #12233a;
  --muted: #5f7288;
  --green: #168a52;
  --red: #c8334f;
  --orange: #b87509;
  --blue: #0879b3;
  --purple: #5b61c8;
  --shadow: 0 5px 16px rgba(16, 43, 72, 0.07);
  --shadow-raised: 0 10px 26px rgba(16, 43, 72, 0.10);
  --radius: 6px;
}

body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0) 220px),
    var(--bg);
  font-size: 14px;
  line-height: 1.5;
}

button,
.tab-button,
.module-button,
.btn,
.link-button,
.pager-button,
.header-toggle {
  touch-action: manipulation;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.tab-button:focus-visible,
.module-button:focus-visible,
.link-button:focus-visible {
  outline: 3px solid rgba(8, 121, 179, 0.22);
  outline-offset: 2px;
}

.system-header {
  min-height: 156px;
  box-shadow: 0 1px 0 rgba(7, 54, 88, 0.10), 0 8px 22px rgba(7, 54, 88, 0.10);
}

.portal-topbar {
  height: 28px;
  padding: 0 40px;
  background: #53606b;
  font-size: 13px;
}

.portal-topbar nav {
  gap: 7px;
}

.portal-search {
  width: 116px;
  height: 20px;
  margin-left: 12px;
}

.portal-brand {
  min-height: 84px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0 38%, rgba(255, 255, 255, 0.74) 62%, rgba(255, 255, 255, 0.9) 100%),
    url("https://www.njtech.edu.cn/dfiles/14435/public/home/image/headerbg.jpg") center 38% / cover no-repeat;
}

.brand-area {
  min-height: 84px;
  gap: 20px;
  padding: 0 42px;
}

.school-logo {
  width: 214px;
  height: 58px;
}

.brand-copy.system-title {
  padding-left: 20px;
}

.brand-copy strong {
  color: #0579bc;
  font-size: 24px;
  letter-spacing: 0;
}

.brand-copy span {
  margin-top: 4px;
  color: #0879b3;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.module-nav {
  height: 44px;
  padding: 0 40px;
  background: linear-gradient(180deg, #0797d0, #0879b3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.module-button {
  min-height: 44px;
  height: 44px;
  padding: 0 7px;
  gap: 5px;
  font-size: 13px;
  font-weight: 800;
  transition: background 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.module-button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.module-button.active {
  background: rgba(3, 64, 103, 0.30);
  box-shadow: inset 0 -3px 0 #ffffff;
}

.module-icon {
  width: 16px;
  flex-basis: 16px;
  font-size: 16px;
}

.tab-strip {
  top: 156px;
  height: 42px;
  gap: 6px;
  padding: 0 14px;
  border-bottom-color: #cfdbe7;
  background: rgba(250, 253, 255, 0.96);
  backdrop-filter: blur(8px);
}

.tab-button {
  min-width: 96px;
  height: 30px;
  gap: 7px;
  padding: 0 11px;
  border-radius: 4px;
  color: #31465f;
  font-size: 14px;
}

.tab-button.active {
  border-color: #0879b3;
  background: linear-gradient(180deg, #1399dc, #0879b3);
  box-shadow: 0 5px 12px rgba(8, 121, 179, 0.18);
}

.header-toggle {
  min-height: 32px;
  height: 32px;
  border-radius: 4px;
  color: #1c4f73;
}

.alarm-app.header-collapsed .system-header {
  min-height: 44px;
  top: 0;
}

.alarm-app.header-collapsed .tab-strip {
  top: 44px;
}

.alarm-app.header-collapsed .page-stage {
  top: 0;
  margin-bottom: 0;
}

.alarm-app.header-collapsed .portal-topbar,
.alarm-app.header-collapsed .portal-brand {
  display: none;
}

.page-stage {
  min-height: calc(100vh - 198px);
  padding: 12px 16px 18px;
}

.panel,
.command-panel,
.command-screen .alarm-rail,
.dispatch-card,
.org-tree,
.workflow-panel,
.workflow-side-panel,
.workflow-error-panel,
.page-transcription .panel,
.page-missedCalls .panel,
.page-users .panel,
.page-roles .panel,
.page-menus .panel,
.page-departments .panel,
.page-dictionary .panel,
.page-callLogs .panel,
.page-templates .panel,
.page-contacts .panel,
.page-recordings .panel,
.page-alarmQuery .panel,
.page-alarmDetail .panel,
.page-plans .panel {
  border-color: #d5e1ec;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel-head,
.command-panel-head,
.page-transcription .panel-head,
.page-missedCalls .panel-head,
.page-users .panel-head,
.page-roles .panel-head,
.page-menus .panel-head,
.page-departments .panel-head,
.page-dictionary .panel-head,
.page-callLogs .panel-head,
.page-templates .panel-head,
.page-contacts .panel-head,
.page-recordings .panel-head,
.page-alarmQuery .panel-head,
.page-alarmDetail .panel-head,
.page-plans .panel-head {
  min-height: 50px;
  padding: 0 16px;
  border-bottom-color: #e4ecf4;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.panel-head h1,
.panel-head h2,
.command-panel-head h2 {
  color: #14233d;
  font-size: 18px;
  letter-spacing: 0;
}

.form-panel,
.page-missedCalls .form-panel,
.page-users .form-panel,
.page-roles .form-panel,
.page-menus .form-panel,
.page-departments .form-panel,
.page-dictionary .form-panel,
.page-callLogs .form-panel,
.page-templates .form-panel,
.page-contacts .form-panel,
.page-recordings .form-panel,
.page-alarmQuery .form-panel,
.page-alarmDetail .form-panel,
.page-plans .form-panel {
  padding: 14px 16px;
  background: #f7fbff;
}

.form-grid {
  gap: 12px 20px;
}

.form-row {
  grid-template-columns: 82px minmax(0, 1fr);
}

.form-row > span:first-child,
.form-row label,
.page-missedCalls .form-row > span:first-child,
.page-users .form-row > span:first-child,
.page-roles .form-row > span:first-child,
.page-menus .form-row > span:first-child,
.page-departments .form-row > span:first-child,
.page-dictionary .form-row > span:first-child,
.page-callLogs .form-row > span:first-child,
.page-templates .form-row > span:first-child {
  color: #2c4561;
  font-size: 13px;
  font-weight: 800;
}

.field,
.select-field,
.textarea-field {
  border-color: #ccd9e7;
  border-radius: 4px;
  color: #13243a;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.field,
.select-field {
  min-height: 38px;
  height: 38px;
}

.field:hover,
.select-field:hover,
.textarea-field:hover {
  border-color: #aebfd0;
}

.field:focus,
.select-field:focus,
.textarea-field:focus {
  outline: none;
  border-color: #0879b3;
  box-shadow: 0 0 0 3px rgba(8, 121, 179, 0.12);
}

.btn {
  min-width: 78px;
  min-height: 38px;
  height: 38px;
  border-radius: 4px;
  font-weight: 800;
  transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease, color 150ms ease;
}

.btn:hover {
  border-color: #9cb7ce;
  background: #f8fbff;
}

.btn.primary,
.btn.solid,
.page-transcription .btn.primary,
.page-missedCalls .btn.primary,
.page-users .btn.primary,
.page-roles .btn.primary,
.page-menus .btn.primary,
.page-departments .btn.primary,
.page-dictionary .btn.primary,
.page-callLogs .btn.primary,
.page-templates .btn.primary,
.page-contacts .btn.primary,
.page-recordings .btn.primary,
.page-alarmQuery .btn.primary,
.page-alarmDetail .btn.primary,
.page-plans .btn.primary {
  border-color: #076aa0;
  background: linear-gradient(180deg, #0f8dcc, #076aa0);
  color: #ffffff;
  box-shadow: 0 5px 12px rgba(7, 106, 160, 0.18);
}

.btn.primary:hover,
.btn.solid:hover {
  border-color: #054875;
  background: linear-gradient(180deg, #0a7eb8, #055985);
}

.btn:disabled,
.btn.disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: none;
}

.link-button {
  min-height: 30px;
  color: #076aa0;
  text-underline-offset: 3px;
}

.tag,
.status-chip,
.page-transcription .status-tag {
  border-radius: 999px;
  font-weight: 800;
}

.table-wrap {
  border-top: 1px solid #edf2f7;
}

table {
  font-size: 13px;
}

th,
td {
  height: 42px;
  padding: 8px 11px;
  border-bottom-color: #e7eef5;
  border-right-color: #f0f4f8;
}

th,
.page-transcription thead th,
.page-missedCalls thead th,
.page-users thead th,
.page-roles thead th,
.page-menus thead th,
.page-departments thead th,
.page-dictionary thead th,
.page-callLogs thead th,
.page-templates thead th {
  background: #f3f8fc;
  color: #263b53;
}

tbody tr:hover td,
.page-transcription tbody tr:hover,
.page-missedCalls tbody tr:hover,
.page-users tbody tr:hover,
.page-roles tbody tr:hover,
.page-menus tbody tr:hover,
.page-departments tbody tr:hover,
.page-dictionary tbody tr:hover,
.page-callLogs tbody tr:hover,
.page-templates tbody tr:hover {
  background: #f4faff;
}

.summary-card,
.command-kpis .summary-card,
.campus-duty-screen .summary-card,
.missed-metrics article,
.system-metrics article,
.page-transcription .transcription-overview article,
.page-transcription .transcription-flow article {
  border-color: #d5e1ec;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.summary-card strong,
.command-kpis .summary-card strong,
.campus-duty-screen .summary-card strong,
.missed-metrics strong,
.system-metrics strong,
.page-transcription .transcription-overview strong {
  color: #083862;
  font-variant-numeric: tabular-nums;
}

.command-hero,
.dispatch-hero,
.alarm-hero,
.recording-hero,
.dispatch-console-hero,
.mobile110-hero,
.plan-hero,
.workflow-relaxed-hero,
.missed-hero,
.system-hero,
.page-transcription .transcription-hero {
  min-height: 96px;
  padding: 16px 24px;
  border-color: #c9dcea;
  border-left-width: 4px;
  border-left-color: #0879b3;
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(242, 249, 252, 0.96)),
    linear-gradient(135deg, rgba(22, 169, 202, 0.08), transparent 54%);
  box-shadow: var(--shadow);
}

.command-hero h1,
.dispatch-hero h1,
.alarm-hero h1,
.recording-hero h1,
.dispatch-console-hero h1,
.mobile110-hero h1,
.plan-hero h1,
.workflow-relaxed-hero h1,
.missed-hero h1,
.system-hero h1,
.page-transcription .transcription-hero h1 {
  margin: 5px 0 5px;
  color: #083862;
  font-size: 27px;
  letter-spacing: 0;
}

.command-hero p,
.dispatch-hero p,
.alarm-hero p,
.recording-hero p,
.dispatch-console-hero p,
.mobile110-hero p,
.plan-hero p,
.workflow-relaxed-hero p,
.missed-hero p,
.system-hero p,
.page-transcription .transcription-hero p {
  color: #425b74;
  line-height: 1.55;
}

.command-hero .eyebrow,
.dispatch-hero .eyebrow,
.alarm-hero .eyebrow,
.recording-hero .eyebrow,
.dispatch-console-hero .eyebrow,
.mobile110-hero .eyebrow,
.plan-hero .eyebrow,
.workflow-relaxed-hero .eyebrow,
.missed-hero .eyebrow,
.system-hero .eyebrow,
.page-transcription .transcription-hero .eyebrow {
  min-height: 26px;
  align-items: center;
  border-color: #c5ddeb;
  border-radius: 4px;
  background: #f1f9fd;
  color: #075f9f;
  font-size: 12px;
}

.command-screen,
.page-transcription,
.page-missedCalls,
.page-users,
.page-roles,
.page-menus,
.page-departments,
.page-dictionary,
.page-callLogs,
.page-templates,
.page-contacts,
.page-recordings,
.page-alarmQuery,
.page-alarmDetail,
.page-plans {
  background:
    linear-gradient(135deg, rgba(22, 169, 202, 0.05), transparent 280px),
    linear-gradient(180deg, #f6f9fc, #edf3f7);
}

.page-transcription .transcription-pulse {
  grid-template-columns: minmax(390px, 0.76fr) minmax(650px, 1.24fr);
}

.page-transcription .transcription-overview,
.page-transcription .transcription-flow {
  gap: 8px;
}

.page-transcription .transcription-overview article {
  min-height: 68px;
  padding: 10px 12px;
}

.page-transcription .transcription-overview strong {
  margin-top: 4px;
  font-size: 25px;
}

.page-transcription .transcription-flow article {
  min-height: 68px;
  grid-template-columns: 38px minmax(0, 1fr);
  padding: 9px 11px;
}

.page-transcription .transcription-flow b {
  width: 34px;
  height: 34px;
  background: #0879b3;
}

.page-transcription .transcription-layout {
  grid-template-columns: minmax(340px, 370px) minmax(0, 1fr);
}

.page-transcription .drop-zone {
  min-height: 118px;
}

.page-transcription .result-text {
  min-height: 236px;
  max-height: 330px;
  color: #162235;
  background:
    linear-gradient(90deg, rgba(8, 121, 179, 0.035) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, #fbfdff, #ffffff);
}

.page-transcription .tasks-panel .table-wrap {
  max-height: 330px;
}

.page-transcription .transcription-service-card {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.modal-mask {
  z-index: 60;
}

.toast {
  z-index: 70;
  border-radius: 6px;
  box-shadow: var(--shadow-raised);
}

@media (max-width: 1460px) {
  .portal-topbar,
  .brand-area,
  .module-nav {
    padding-inline: 28px;
  }

  .module-button {
    min-width: 0;
    padding-inline: 5px;
    font-size: 12px;
  }

  .module-icon {
    font-size: 15px;
  }

  .brand-copy strong {
    font-size: 22px;
  }
}

@media (max-width: 900px) {
  html,
  body,
  .alarm-app {
    width: 100%;
    max-width: 100%;
  }

  .portal-topbar {
    grid-template-columns: 1fr;
    padding-inline: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100vw;
  }

  .portal-topbar nav {
    min-width: max-content;
  }

  .brand-area {
    padding-inline: 16px;
    gap: 12px;
  }

  .school-logo {
    width: clamp(148px, 42vw, 214px);
  }

  .brand-copy strong {
    font-size: clamp(18px, 5vw, 24px);
  }

  .brand-copy span {
    font-size: 12px;
  }

  .module-nav {
    display: flex;
    grid-template-columns: none;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    padding-inline: 8px;
    max-width: 100vw;
    scrollbar-width: thin;
  }

  .module-button {
    flex: 0 0 auto;
    width: auto;
    min-width: 96px;
    padding-inline: 10px;
  }

  .page-stage {
    max-width: 100vw;
    overflow-x: hidden;
    padding-inline: 10px;
  }

  .command-hero,
  .stats-summary.command-kpis,
  .command-chart-grid,
  .dashboard-layout,
  .split-workspace,
  .alarm-hero,
  .alarm-metrics,
  .recording-hero,
  .recording-metrics,
  .recording-grid,
  .transcription-hero,
  .transcription-pulse,
  .transcription-layout,
  .contact-hero,
  .contact-metrics,
  .mobile-hero,
  .mobile-metrics,
  .plans-hero,
  .plans-metrics,
  .missed-hero,
  .missed-metrics,
  .system-hero,
  .system-metrics,
  .tree-layout {
    grid-template-columns: 1fr !important;
    max-width: 100%;
  }

  .command-panel,
  .alarm-rail,
  .side-detail,
  .panel,
  .upload-panel,
  .result-panel,
  .tasks-panel,
  .table-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

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

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

/* 2026-05-15 polish layer 2: align secondary modules and dense workbench controls. */
.dispatch-metrics,
.alarm-metrics,
.recording-metrics,
.dispatch-console-metrics,
.mobile110-metrics,
.plan-metrics,
.workflow-metrics,
.missed-metrics,
.system-metrics {
  gap: 12px;
}

.dispatch-metrics article,
.alarm-metrics article,
.recording-metrics article,
.dispatch-console-metrics article,
.mobile110-metrics article,
.plan-metrics article,
.workflow-metrics article,
.missed-metrics article,
.system-metrics article {
  min-height: 76px;
  padding: 14px 16px;
  border: 1px solid #d5e1ec;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(8, 121, 179, 0.045), transparent 54%),
    #ffffff;
  box-shadow: var(--shadow);
}

.dispatch-metrics span,
.dispatch-metrics small,
.alarm-metrics span,
.alarm-metrics small,
.recording-metrics span,
.recording-metrics small,
.dispatch-console-metrics span,
.dispatch-console-metrics small,
.mobile110-metrics span,
.mobile110-metrics small,
.plan-metrics span,
.plan-metrics small,
.workflow-metrics span,
.workflow-metrics small {
  color: #526981;
  font-size: 13px;
}

.dispatch-metrics strong,
.alarm-metrics strong,
.recording-metrics strong,
.dispatch-console-metrics strong,
.mobile110-metrics strong,
.plan-metrics strong,
.workflow-metrics strong {
  margin-top: 6px;
  color: #083862;
  font-size: 28px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.pc-queue-item,
.pc-alert-item,
.pc-action-card,
.pc-timeline article,
.dispatch-flow-steps article,
.recording-audit-flow article,
.dispatch-control,
.mobile-entry-card,
.mobile-case-card,
.plan-flow article,
.plan-linkage-grid article,
.workflow-primary-step,
.workflow-info-card,
.workflow-feedback-row article,
.missed-policy-list article,
.recording-monitor-list article {
  border-color: #d5e1ec;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(16, 43, 72, 0.045);
}

.pc-action-card:hover,
.dispatch-control:hover,
.mobile-entry-card:hover {
  border-color: #b5cde1;
  background: #f8fcff;
  box-shadow: 0 8px 18px rgba(16, 43, 72, 0.08);
}

.dispatch-flow-steps article.active,
.plan-flow article.active,
.workflow-primary-step.critical {
  border-color: #f1c982;
  background:
    linear-gradient(135deg, rgba(184, 117, 9, 0.08), transparent 58%),
    #ffffff;
}

.pc-queue-item b,
.dispatch-flow-steps b,
.recording-audit-flow b,
.plan-flow b,
.workflow-primary-step > span {
  background: #0879b3;
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(8, 121, 179, 0.16);
}

.pc-queue-item strong,
.pc-alert-item strong,
.pc-action-card strong,
.dispatch-control strong,
.mobile-entry-card strong,
.mobile-case-card strong,
.plan-linkage-grid strong,
.workflow-info-card h3,
.missed-policy-list strong,
.recording-monitor-list strong {
  color: #14233d;
}

.pc-queue-item span,
.pc-alert-item span,
.pc-action-card span,
.dispatch-control span,
.mobile-entry-card span,
.mobile-case-card span,
.plan-linkage-grid span,
.workflow-info-card li,
.workflow-info-card p,
.missed-policy-list span,
.recording-monitor-list span {
  color: #526981;
}

.org-tree,
.page-users .org-tree,
.page-roles .org-tree,
.page-menus .org-tree,
.page-departments .org-tree,
.page-dictionary .org-tree,
.page-callLogs .org-tree,
.page-templates .org-tree,
.page-contacts .org-tree {
  border-radius: 6px;
  background: #ffffff;
}

.tree-search {
  padding: 12px;
  background: #f8fbff;
}

.tree-list {
  padding: 14px 16px;
  line-height: 2.05;
}

.tree-node,
.tree-list .link-button,
.page-users .tree-list .link-button,
.page-roles .tree-list .link-button,
.page-menus .tree-list .link-button,
.page-departments .tree-list .link-button,
.page-dictionary .tree-list .link-button,
.page-callLogs .tree-list .link-button,
.page-templates .tree-list .link-button {
  min-height: 34px;
  border-radius: 4px;
}

.tree-node.active,
.tree-list .link-button.active,
.page-users .tree-list .link-button.active,
.page-roles .tree-list .link-button.active,
.page-menus .tree-list .link-button.active,
.page-departments .tree-list .link-button.active,
.page-dictionary .tree-list .link-button.active,
.page-callLogs .tree-list .link-button.active,
.page-templates .tree-list .link-button.active {
  background: #eaf6fc;
  color: #075f9f;
  box-shadow: inset 3px 0 0 #0879b3;
}

.mini-tabs,
.pc-campus-strip,
.pc-list-tabs,
.campus-tabs,
.queue-tabs {
  border-color: #ccdbea;
  border-radius: 5px;
  overflow: hidden;
}

.mini-tabs button,
.pc-campus-strip button,
.pc-list-tabs button,
.campus-tabs button,
.queue-tabs button {
  min-height: 36px;
  color: #28445f;
  font-weight: 800;
}

.mini-tabs button.active,
.pc-campus-strip button.active,
.pc-list-tabs button.active,
.campus-tabs button.active,
.queue-tabs button.active {
  background: #eaf6fc;
  color: #075f9f;
  box-shadow: inset 0 -3px 0 #0879b3;
}

.pager {
  min-height: 52px;
  gap: 9px;
  border-top-color: #e4ecf4;
  background: #fbfdff;
}

.pager-button {
  min-width: 34px;
  height: 34px;
  border-radius: 4px;
}

.pager .current,
.page-users .pager .current,
.page-roles .pager .current,
.page-menus .pager .current,
.page-departments .pager .current,
.page-dictionary .pager .current,
.page-callLogs .pager .current,
.page-templates .pager .current,
.page-recordings .pager .current,
.page-alarmQuery .pager .current,
.page-alarmDetail .pager .current,
.page-plans .pager .current,
.page-missedCalls .pager .current {
  border-color: #0879b3;
  background: #0879b3;
  color: #ffffff;
}

.empty-cell,
.page-transcription .empty-cell {
  padding: 30px;
  color: #64748b;
  background:
    linear-gradient(135deg, rgba(8, 121, 179, 0.04), transparent 52%),
    #ffffff;
  text-align: center;
}

.button-row {
  gap: 8px;
}

.btn.red {
  border-color: #f1c6c6;
  background: #fff5f5;
  color: #b42318;
}

.btn.red:hover {
  border-color: #e6a2a2;
  background: #ffecec;
}

.status-chip,
.tag {
  min-height: 24px;
  padding-inline: 9px;
}

.play-icon {
  width: 30px;
  height: 30px;
  border-color: #7fbde4;
  color: #0879b3;
}

.modal-panel {
  border-radius: 8px;
}

.modal-head h2 {
  color: #14233d;
  font-size: 20px;
}

.plain-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 26px;
}

.plain-icon:hover {
  background: #eef5fb;
  color: #17395d;
}

/* 2026-05-15 polish layer 3: dense scanning and keyboard-safe work surfaces. */
.alarm-app {
  --control-focus-ring: 0 0 0 3px rgba(8, 121, 179, 0.16);
}

.system-header {
  border-bottom: 1px solid rgba(7, 58, 96, 0.12);
}

.alarm-app.header-collapsed .system-header {
  box-shadow: 0 1px 0 rgba(7, 58, 96, 0.12), 0 8px 20px rgba(7, 58, 96, 0.10);
}

.tab-strip {
  scrollbar-width: thin;
  scrollbar-color: #9fc3dc #eef5fa;
}

.tab-strip::-webkit-scrollbar,
.table-wrap::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.tab-strip::-webkit-scrollbar-track,
.table-wrap::-webkit-scrollbar-track {
  background: #eef5fa;
}

.tab-strip::-webkit-scrollbar-thumb,
.table-wrap::-webkit-scrollbar-thumb {
  border: 2px solid #eef5fa;
  border-radius: 999px;
  background: #9fc3dc;
}

.tab-strip::-webkit-scrollbar-thumb:hover,
.table-wrap::-webkit-scrollbar-thumb:hover {
  background: #6fa9cf;
}

.module-button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.74);
  outline-offset: -4px;
}

.tab-button:hover {
  border-color: #adc6da;
  background: #f8fcff;
  color: #17395d;
}

.tab-button.active:hover {
  border-color: #0879b3;
  background: linear-gradient(180deg, #1194d4, #076aa0);
  color: #ffffff;
}

.form-panel {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.form-grid {
  align-items: end;
}

.form-grid .button-row {
  align-self: end;
  min-height: 38px;
}

.form-row {
  min-width: 0;
}

.form-row > span:first-child,
.form-row label {
  line-height: 1.2;
}

.field::placeholder,
.textarea-field::placeholder {
  color: #7d91a6;
  opacity: 1;
}

.select-field {
  cursor: pointer;
}

input[type="checkbox"] {
  accent-color: #0879b3;
}

.btn:focus-visible,
.pager-button:focus-visible,
.tree-node:focus-visible,
.plain-icon:focus-visible {
  outline: none;
  box-shadow: var(--control-focus-ring);
}

.btn.primary:focus-visible,
.btn.solid:focus-visible {
  box-shadow: 0 5px 12px rgba(7, 106, 160, 0.18), var(--control-focus-ring);
}

.table-wrap {
  position: relative;
  border-bottom: 1px solid #e3ebf3;
  background: #ffffff;
  scrollbar-width: thin;
  scrollbar-color: #9fc3dc #eef5fa;
}

.table-wrap table {
  min-width: 760px;
}

.table-wrap th,
.table-wrap td {
  line-height: 1.35;
}

.page-stage .table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: linear-gradient(180deg, #f8fbfe, #edf5fb);
  box-shadow: 0 1px 0 #d5e1ec, 0 6px 12px rgba(16, 43, 72, 0.06);
}

.table-wrap th {
  font-size: 12px;
  letter-spacing: 0;
}

.table-wrap td:first-child,
.table-wrap th:first-child {
  padding-left: 14px;
}

.table-wrap td:last-child,
.table-wrap th:last-child {
  padding-right: 14px;
  border-right: 0;
}

.table-wrap tbody tr {
  transition: background 140ms ease, box-shadow 140ms ease;
}

.table-wrap tbody tr:hover td {
  background: #eef8ff;
}

.table-wrap tbody tr:focus-within td {
  background: #eaf6fc;
  box-shadow: inset 0 1px 0 #c6ddec, inset 0 -1px 0 #c6ddec;
}

.table-wrap tbody tr:focus-within td:first-child {
  box-shadow: inset 3px 0 0 #0879b3, inset 0 1px 0 #c6ddec, inset 0 -1px 0 #c6ddec;
}

.table-wrap td:last-child,
.table-wrap .tag,
.table-wrap .status-chip,
.table-wrap .link-button {
  white-space: nowrap;
}

.table-wrap .link-button {
  min-height: 28px;
  padding: 0 3px;
}

.pager {
  flex-wrap: wrap;
  color: #50657c;
  font-size: 13px;
}

.pager > span:first-child {
  margin-right: auto;
  color: #28445f;
  font-weight: 800;
}

.pager .select-field,
.pager .field {
  min-height: 34px;
  height: 34px;
}

.pager .field {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.pager-button {
  font-variant-numeric: tabular-nums;
  transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.pager-button:not(.current):hover {
  transform: translateY(-1px);
}

.pager-button.current {
  cursor: default;
}

.tree-node:hover,
.tree-list .link-button:hover {
  background: #f3f9fd;
  text-decoration: none;
}

/* Step 2: tighten the alarm-query filter area so the list appears earlier. */
.page-alarmQuery .form-panel {
  padding: 12px 16px 10px;
}

.page-alarmQuery .form-grid {
  gap: 10px 18px;
}

.page-alarmQuery .form-row {
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 8px;
}

.page-alarmQuery .field,
.page-alarmQuery .select-field {
  min-height: 36px;
  height: 36px;
  padding-inline: 10px;
}

.page-alarmQuery .form-grid .button-row {
  min-height: 36px;
  gap: 8px;
}

/* Step 3: compact the alarm-query list header so table rows surface sooner. */
.page-alarmQuery .alarm-list-head {
  min-height: 42px;
  padding: 6px 14px;
  gap: 10px;
}

.page-alarmQuery .alarm-list-head > div {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 8px;
}

.page-alarmQuery .alarm-list-head h2 {
  margin: 0;
  flex: 0 0 auto;
  font-size: 17px;
  line-height: 1.2;
}

.page-alarmQuery .alarm-list-head p {
  overflow: hidden;
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-alarmQuery .alarm-list-head .btn {
  min-height: 32px;
  height: 32px;
}

.page-alarmQuery .alarm-workbench {
  gap: 10px;
}

.page-alarmQuery .alarm-metrics {
  gap: 10px;
}

.page-alarmQuery .alarm-metrics article {
  min-height: 68px;
  padding: 12px 16px;
}

.page-alarmQuery .alarm-metrics span,
.page-alarmQuery .alarm-metrics small {
  font-size: 12px;
  line-height: 1.25;
}

.page-alarmQuery .alarm-metrics strong {
  margin: 5px 0 2px;
  font-size: 24px;
}

.page-alarmQuery .alarm-list-panel th,
.page-alarmQuery .alarm-list-panel td {
  height: 38px;
  padding: 6px 10px;
}

.page-alarmQuery .alarm-list-panel thead th {
  height: 34px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.page-alarmQuery .alarm-list-panel .link-button {
  min-height: 26px;
  padding-inline: 5px;
}

.page-alarmQuery .alarm-hero {
  min-height: 86px;
  padding: 10px 24px;
}

.page-alarmQuery .alarm-hero > div:first-child {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
}

.page-alarmQuery .alarm-hero .eyebrow {
  min-height: 22px;
  padding: 2px 9px;
}

.page-alarmQuery .alarm-hero h1 {
  margin: 0;
  font-size: 25px;
  line-height: 1.2;
}

.page-alarmQuery .alarm-hero p {
  grid-column: 1 / -1;
  margin-top: 4px;
  line-height: 1.4;
}

.page-alarmQuery .alarm-hero-summary {
  gap: 3px;
  min-width: 204px;
}

.page-alarmQuery .alarm-hero-summary strong {
  font-size: 30px;
}

@media (max-width: 760px) {
  body:has(.page-transcription) {
    min-width: 0;
  }

  body:has(.page-transcription) .module-nav {
    display: flex;
    grid-template-columns: none;
    justify-content: flex-start;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding-inline: 8px;
    scrollbar-width: none;
  }

  body:has(.page-transcription) .module-nav::-webkit-scrollbar {
    display: none;
  }

  body:has(.page-transcription) .module-button {
    flex: 0 0 auto;
    width: auto;
    min-width: 98px;
    padding-inline: 10px;
  }

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

  .page-transcription .upload-panel,
  .page-transcription .result-panel {
    min-height: 0;
  }

  .page-transcription .upload-box {
    padding: 14px;
  }

  .page-transcription .drop-zone {
    min-height: 112px;
    padding: 16px 12px;
  }

  .page-transcription .drop-zone-icon {
    margin-bottom: 8px;
    transform: scale(0.86);
  }

  .page-transcription .drop-zone strong {
    font-size: 16px;
  }

  .page-transcription .drop-zone span {
    max-width: 260px;
    line-height: 1.45;
  }

  .page-transcription .transcription-capture-card {
    gap: 12px;
  }

  .page-transcription .transcription-capture-card span {
    font-size: 13px;
  }

  .page-transcription .transcription-upload-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .page-transcription .transcription-upload-row label {
    display: grid;
    gap: 7px;
    text-align: left;
  }

  .page-transcription .transcription-upload-row .btn {
    width: 100%;
    min-height: 44px;
  }

  .page-transcription .notice {
    margin: 0 14px 14px;
    line-height: 1.55;
  }

  .page-transcription .realtime-record-panel {
    margin: 0 14px 14px;
    padding: 12px;
  }

  .page-transcription .realtime-record-head {
    display: grid;
    gap: 8px;
  }

  .page-transcription .realtime-record-head .status-tag {
    width: fit-content;
    min-width: 74px;
  }

  .page-transcription .realtime-controls {
    grid-template-columns: 1fr;
  }

  .page-transcription .realtime-controls .btn {
    min-height: 44px;
  }

  .page-transcription .realtime-text-grid article {
    min-height: 92px;
  }

  .page-transcription .result-panel .panel-head {
    display: grid;
    align-items: stretch;
    gap: 10px;
  }

  .page-transcription .result-panel .panel-head .button-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .page-transcription .result-panel .panel-head .button-row .btn {
    width: 100%;
    min-width: 0;
    min-height: 44px;
  }

  .page-transcription .status-line {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 12px 14px;
    line-height: 1.55;
  }

  .page-transcription .status-line .status-tag {
    min-width: 74px;
  }

  .page-transcription #transcriptionStatusMessage {
    flex: 1 1 190px;
    min-width: 0;
  }

  .page-transcription .result-text {
    min-height: 220px;
    max-height: 360px;
    padding: 16px;
    overflow: auto;
    font-size: 14px;
    line-height: 1.75;
  }

  .page-transcription .ai-analysis-head {
    display: grid;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px;
  }

  .page-transcription .ai-analysis-head h3 {
    font-size: 15px;
  }

  .page-transcription .ai-analysis-head p {
    line-height: 1.55;
  }

  .page-transcription .ai-analysis-head .btn {
    width: 100%;
    min-height: 44px;
  }

  .page-transcription .ai-analysis-content {
    gap: 10px;
    padding: 12px 14px 14px;
  }

  .page-transcription .ai-analysis-empty {
    min-height: 58px;
    padding: 14px;
    text-align: left;
  }

  .page-transcription .ai-analysis-block > header,
  .page-transcription .ai-analysis-table-card header {
    display: grid;
    align-items: start;
    gap: 4px;
  }

  .page-transcription .ai-analysis-table-wrap table {
    min-width: 620px;
  }

  .page-transcription .tasks-panel .table-wrap table {
    min-width: 0;
  }

  .page-transcription .tasks-panel .table-wrap .link-button {
    padding: 0 10px;
  }
}
