:root {
  --color-bg: #f4f6f8;
  --color-surface: #ffffff;
  --color-surface-muted: #f8fafc;
  --color-ink: #172033;
  --color-ink-muted: #536071;
  --color-line: #d9e0e8;
  --color-primary: #b21f2d;
  --color-primary-dark: #8f1722;
  --color-primary-soft: #fff1f2;
  --color-gold: #b98a2f;
  --color-blue: #23466f;
  --shadow-sm: 0 8px 24px rgba(23, 32, 51, 0.08);
  --shadow-md: 0 20px 50px rgba(23, 32, 51, 0.16);
  --radius-sm: 4px;
  --radius-md: 8px;
  --header-height: 72px;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--color-bg);
  color: var(--color-ink);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  transform: translateY(-140%);
  border-radius: var(--radius-sm);
  background: var(--color-ink);
  color: #fff;
  padding: 10px 14px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--color-line);
  backdrop-filter: blur(10px);
}

.header-inner {
  width: min(1280px, calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  color: #fff;
  background: linear-gradient(145deg, var(--color-primary), var(--color-primary-dark));
  box-shadow: 0 10px 22px rgba(178, 31, 45, 0.22);
}

.brand strong {
  display: block;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: 0;
}

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

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

.top-nav a,
.header-login {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  padding: 0 16px;
  color: var(--color-ink-muted);
  font-weight: 600;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  background: var(--color-surface-muted);
  color: var(--color-primary);
}

.header-login {
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
}

.header-login:hover,
.header-login:focus-visible {
  background: var(--color-primary);
  color: #fff;
}

.header-login.ghost {
  border-color: var(--color-line);
  color: var(--color-ink);
}

.hero-section {
  position: relative;
  min-height: calc(100dvh - var(--header-height));
  display: grid;
  align-items: end;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(13, 18, 31, 0.98) 0%, rgba(20, 28, 44, 0.96) 58%, rgba(46, 56, 72, 0.92) 100%),
    #101827;
}

.hero-system-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-system-bg::before,
.hero-system-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-system-bg::before {
  background:
    linear-gradient(90deg, rgba(178, 31, 45, 0.3) 0 5px, transparent 5px 100%),
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.08) 52%, transparent 100%);
  opacity: 0.72;
}

.hero-system-bg::after {
  background:
    radial-gradient(circle at 78% 30%, rgba(255, 255, 255, 0.08), transparent 26%),
    linear-gradient(135deg, transparent 0 56%, rgba(255, 255, 255, 0.07) 56% 56.5%, transparent 56.5% 100%),
    linear-gradient(135deg, transparent 0 68%, rgba(178, 31, 45, 0.14) 68% 68.35%, transparent 68.35% 100%);
  opacity: 0.82;
}

.hero-gridlines {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.88) 62%, transparent 100%);
  opacity: 0.92;
}

.hero-content {
  position: relative;
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 92px 0 170px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--color-gold);
  font-size: 14px;
  font-weight: 700;
}

.hero-content h1 {
  margin: 0;
  max-width: 1180px;
  font-size: clamp(44px, 4.6vw, 68px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 690px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0 22px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 14px 28px rgba(178, 31, 45, 0.28);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-primary-dark);
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.56);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

.hero-status {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(1280px, calc(100% - 48px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  box-shadow: var(--shadow-md);
}

.hero-status div {
  padding: 24px 28px;
  border-right: 1px solid var(--color-line);
}

.hero-status div:last-child {
  border-right: 0;
}

.hero-status strong {
  display: block;
  color: var(--color-primary);
  font-size: 30px;
  line-height: 1;
}

.hero-status span {
  display: block;
  margin-top: 8px;
  color: var(--color-ink-muted);
  font-weight: 600;
}

.guide-hero {
  min-height: calc(100dvh - var(--header-height) - 58px);
  align-items: start;
  padding: 24px 0 16px;
}

.guide-dashboard {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  gap: 16px;
  color: #fff;
}

.guide-intro {
  width: auto;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 24px;
  align-items: end;
}

.guide-intro h1 {
  max-width: none;
  font-size: clamp(38px, 3.85vw, 54px);
}

.guide-intro .hero-copy {
  max-width: 760px;
  margin-top: 12px;
  font-size: 16px;
}

.guide-intro .hero-actions {
  margin-top: 18px;
}

.guide-intro .hero-status {
  position: static;
  width: 100%;
  margin-top: 0;
  transform: none;
  overflow: hidden;
  align-self: end;
}

.guide-intro .hero-status div {
  padding: 15px 18px;
}

.guide-panels {
  display: grid;
  grid-template-columns: minmax(520px, 1.18fr) minmax(380px, 0.94fr) minmax(260px, 0.62fr);
  gap: 14px;
  align-items: start;
}

.guide-panel {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.94);
  color: var(--color-ink);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
}

.guide-panel-title {
  display: block;
  gap: 16px;
  padding: 14px 16px 0;
}

.guide-panel-title .eyebrow {
  margin: 0;
  white-space: nowrap;
}

.guide-panel-title h2 {
  margin: 3px 0 0;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: 0;
}

.guide-panel .industry-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 0;
  padding: 12px 14px 14px;
}

.guide-panel .industry-card {
  min-height: 88px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "icon"
    "title"
    "desc";
  align-content: center;
  justify-content: flex-start;
  justify-items: start;
  row-gap: 4px;
  padding: 10px;
  box-shadow: none;
}

.guide-panel .industry-icon {
  grid-area: icon;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
}

.guide-panel .industry-icon svg {
  width: 16px;
  height: 16px;
}

.guide-panel .industry-card strong {
  grid-area: title;
  margin-top: 0;
  font-size: 15px;
  line-height: 1.2;
}

.guide-panel .industry-card span:last-child {
  grid-area: desc;
  font-size: 13px;
}

.compact-feature-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 10px 14px 14px;
}

.compact-feature-list article {
  grid-template-columns: 30px 1fr;
  gap: 8px;
  border-bottom: 0;
  padding: 8px 6px;
}

.compact-feature-list span {
  font-size: 16px;
}

.compact-feature-list h3 {
  font-size: 16px;
}

.compact-feature-list p {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.45;
}

.support-mini {
  display: block;
  padding-bottom: 16px;
}

.support-mini .guide-panel-title {
  display: block;
  padding-bottom: 0;
}

.support-mini .guide-panel-title h2 {
  margin-top: 5px;
}

.support-mini ul {
  margin: 14px 18px 0;
  padding-left: 18px;
  color: var(--color-ink-muted);
  font-size: 14px;
  line-height: 1.7;
}

.guide-page {
  background: var(--color-bg);
}

.guide-screen {
  position: relative;
  overflow: hidden;
  min-height: calc(100dvh - var(--header-height));
  display: grid;
  align-items: center;
  padding: 72px 0;
}

.guide-screen-inner {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

.guide-banner {
  color: #fff;
  background:
    linear-gradient(100deg, rgba(13, 18, 31, 0.98) 0%, rgba(18, 27, 45, 0.98) 54%, rgba(77, 35, 42, 0.88) 100%),
    #101827;
}

.banner-layout {
  display: grid;
  grid-template-columns: minmax(760px, 1fr) 430px;
  gap: 48px;
  align-items: center;
}

.banner-copy h1 {
  margin: 0;
  max-width: 980px;
  color: #fff;
  font-size: clamp(42px, 4.15vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
}

.banner-copy p:not(.eyebrow) {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
  line-height: 1.75;
}

.banner-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 640px;
  margin-top: 42px;
}

.banner-metrics div {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  padding: 18px 20px;
}

.banner-metrics strong {
  display: block;
  color: #fff;
  font-size: 32px;
  line-height: 1;
}

.banner-metrics span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.command-board {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.94);
  color: var(--color-ink);
  padding: 22px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
}

.command-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--color-line);
  padding-bottom: 18px;
}

.command-board-head span {
  color: var(--color-ink-muted);
  font-weight: 800;
}

.command-board-head strong {
  color: var(--color-primary);
}

.board-node {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  margin-top: 16px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 16px;
}

.board-node.is-active {
  border-color: rgba(178, 31, 45, 0.38);
  background: linear-gradient(90deg, var(--color-primary-soft), #fff);
}

.board-node > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--color-ink);
  color: #fff;
  font-weight: 900;
}

.board-node.is-active > span {
  background: var(--color-primary);
}

.board-node strong {
  display: block;
  font-size: 18px;
}

.board-node small {
  display: block;
  margin-top: 4px;
  color: var(--color-ink-muted);
  font-size: 14px;
  line-height: 1.5;
}

.scope-screen,
.support-screen {
  background: var(--color-surface-muted);
}

.flow-screen {
  background: #fff;
}

.screen-heading {
  max-width: 760px;
}

.screen-heading h2 {
  margin: 0;
  color: var(--color-ink);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.16;
  letter-spacing: 0;
}

.screen-heading p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--color-ink-muted);
  font-size: 18px;
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 42px;
}

.scope-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.scope-card:hover,
.scope-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(178, 31, 45, 0.34);
  box-shadow: var(--shadow-md);
}

.scope-card .industry-icon {
  width: 52px;
  height: 52px;
}

.scope-card strong {
  margin-top: 30px;
  font-size: 24px;
}

.scope-card span:last-child {
  color: var(--color-ink-muted);
}

.flow-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(520px, 1.2fr);
  gap: 72px;
  align-items: center;
}

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

.flow-steps article {
  min-height: 210px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, #fff, var(--color-surface-muted));
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.flow-steps span {
  color: var(--color-gold);
  font-size: 22px;
  font-weight: 900;
}

.flow-steps h3 {
  margin: 28px 0 0;
  font-size: 22px;
}

.flow-steps p {
  margin: 10px 0 0;
  color: var(--color-ink-muted);
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.78fr) minmax(520px, 1fr) auto;
  gap: 42px;
  align-items: center;
}

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

.support-list article {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.support-list strong {
  display: block;
  font-size: 18px;
}

.support-list span {
  display: block;
  margin-top: 8px;
  color: var(--color-ink-muted);
}

.section {
  padding: 76px 0;
  background: var(--color-surface);
}

.band-light {
  background: var(--color-surface-muted);
}

.band-muted {
  background: #eef2f6;
}

.section-inner {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

.section-heading {
  max-width: 720px;
}

.section-heading h2,
.support-strip h2 {
  margin: 0;
  color: var(--color-ink);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--color-ink-muted);
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.industry-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.industry-card:hover,
.industry-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(178, 31, 45, 0.35);
  box-shadow: var(--shadow-md);
}

.industry-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

.industry-card strong {
  margin-top: 24px;
  font-size: 22px;
}

.industry-card span:last-child {
  color: var(--color-ink-muted);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(420px, 1fr);
  gap: 72px;
  align-items: start;
}

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

.feature-list article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  border-bottom: 1px solid var(--color-line);
  padding: 0 0 18px;
}

.feature-list article:last-child {
  border-bottom: 0;
}

.feature-list span {
  color: var(--color-gold);
  font-weight: 800;
  font-size: 20px;
}

.feature-list h3 {
  margin: 0;
  font-size: 20px;
}

.feature-list p {
  margin: 6px 0 0;
  color: var(--color-ink-muted);
}

.support-strip {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(360px, 1fr) auto;
  gap: 32px;
  align-items: center;
}

.support-strip ul {
  margin: 0;
  padding-left: 20px;
  color: var(--color-ink-muted);
}

.site-footer {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 18px 24px;
  border-top: 1px solid var(--color-line);
  background: #fff;
  color: var(--color-ink-muted);
  font-size: 14px;
}

.login-body {
  min-height: 100dvh;
  background: #f0f3f7;
}

.login-header {
  position: relative;
}

.login-main {
  min-height: calc(100dvh - var(--header-height) - 58px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 480px;
}

.login-visual {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 680px;
  background: #111827;
}

.login-visual-bg,
.login-visual-bg img {
  position: absolute;
  inset: 0;
}

.login-visual-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.32;
}

.login-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.72)),
    linear-gradient(180deg, rgba(178, 31, 45, 0.24), rgba(17, 24, 39, 0));
}

.login-visual-content {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 72px));
  margin: 0 auto;
  color: #fff;
}

.login-visual-content h1 {
  margin: 0;
  max-width: 640px;
  font-size: clamp(38px, 4.8vw, 62px);
  line-height: 1.12;
  letter-spacing: 0;
}

.login-visual-content p:not(.eyebrow) {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
}

.login-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 34px 0 0;
}

.login-metrics div {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  padding: 16px;
}

.login-metrics dt {
  color: #fff;
  font-weight: 800;
}

.login-metrics dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: #fff;
}

.login-card {
  width: 100%;
  max-width: 392px;
}

.login-card-head h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
}

.login-card-head p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--color-ink-muted);
}

.login-form {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.login-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border-radius: var(--radius-md);
  background: var(--color-surface-muted);
  padding: 5px;
}

.login-mode button {
  min-height: 40px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-ink-muted);
  cursor: pointer;
  font-weight: 800;
}

.login-mode button.is-active {
  background: var(--color-primary);
  color: #fff;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--color-ink);
  font-weight: 700;
}

.input-wrap {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 0 12px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.input-wrap:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(178, 31, 45, 0.12);
}

.input-wrap svg {
  flex: 0 0 auto;
  color: var(--color-ink-muted);
}

.input-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--color-ink);
}

.input-wrap input::placeholder {
  color: #8a95a3;
}

.icon-button {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-ink-muted);
  cursor: pointer;
}

.icon-button:hover,
.icon-button:focus-visible {
  background: var(--color-surface-muted);
  color: var(--color-primary);
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.check-control {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-ink-muted);
  cursor: pointer;
}

.check-control input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
}

.text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--color-primary);
  font-weight: 700;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration: underline;
}

.btn-full {
  width: 100%;
  min-height: 50px;
  border: 0;
}

.login-note {
  display: grid;
  gap: 4px;
  margin-top: 24px;
  border-left: 3px solid var(--color-gold);
  background: var(--color-surface-muted);
  padding: 14px 16px;
  color: var(--color-ink-muted);
}

.login-note strong {
  color: var(--color-ink);
}

.login-footer {
  justify-content: space-between;
}

:focus-visible {
  outline: 3px solid rgba(185, 138, 47, 0.68);
  outline-offset: 3px;
}

@media (max-width: 1040px) {
  .top-nav {
    display: none;
  }

  .guide-screen {
    min-height: auto;
    padding: 58px 0;
  }

  .banner-layout,
  .flow-layout,
  .support-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .command-board {
    max-width: 680px;
  }

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

  .support-layout > .btn {
    justify-self: start;
  }

  .guide-hero {
    min-height: auto;
    padding: 32px 0;
  }

  .guide-dashboard {
    grid-template-columns: 1fr;
  }

  .guide-intro {
    grid-template-columns: 1fr;
    padding-top: 0;
  }

  .guide-panels {
    grid-template-columns: 1fr;
  }

  .guide-panel .industry-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .industry-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .split-layout,
  .support-strip,
  .login-main {
    grid-template-columns: 1fr;
  }

  .login-visual {
    min-height: 460px;
  }

  .login-panel {
    padding: 42px 24px 56px;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: auto;
  }

  .site-header {
    position: relative;
    height: auto;
  }

  .header-inner {
    width: min(100% - 32px, 1280px);
    min-height: 72px;
    gap: 12px;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand small {
    display: none;
  }

  .header-login {
    padding: 0 12px;
    white-space: nowrap;
  }

  .guide-screen {
    padding: 44px 0;
  }

  .guide-screen-inner {
    width: min(100% - 32px, 1280px);
  }

  .banner-copy h1 {
    font-size: clamp(36px, 11vw, 52px);
  }

  .banner-copy p:not(.eyebrow),
  .screen-heading p:not(.eyebrow) {
    font-size: 16px;
  }

  .banner-metrics,
  .scope-grid,
  .flow-steps,
  .support-list {
    grid-template-columns: 1fr;
  }

  .scope-card,
  .flow-steps article {
    min-height: auto;
  }

  .command-board {
    padding: 16px;
  }

  .command-board-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .board-node {
    grid-template-columns: 40px 1fr;
    padding: 14px;
  }

  .hero-content {
    width: min(100% - 32px, 1280px);
    padding: 64px 0 230px;
  }

  .guide-dashboard {
    width: min(100% - 32px, 1280px);
    gap: 16px;
  }

  .guide-intro.hero-content {
    width: auto;
    padding: 0;
  }

  .hero-content h1 {
    font-size: clamp(36px, 10vw, 46px);
  }

  .guide-intro h1 {
    font-size: clamp(34px, 10vw, 44px);
  }

  .hero-copy,
  .login-visual-content p:not(.eyebrow) {
    font-size: 17px;
  }

  .hero-status {
    width: calc(100% - 32px);
    grid-template-columns: 1fr;
  }

  .guide-intro .hero-status {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 24px;
  }

  .hero-status div {
    padding: 16px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--color-line);
  }

  .guide-intro .hero-status div {
    border-right: 1px solid var(--color-line);
    border-bottom: 0;
    padding: 16px 12px;
  }

  .guide-intro .hero-status div:last-child {
    border-right: 0;
  }

  .hero-status div:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 54px 0;
  }

  .section-inner {
    width: min(100% - 32px, 1280px);
  }

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

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

  .industry-card {
    min-height: 150px;
  }

  .guide-panel .industry-card {
    min-height: 92px;
  }

  .feature-list article {
    grid-template-columns: 42px 1fr;
  }

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

  .support-strip {
    gap: 20px;
  }

  .support-mini {
    grid-template-columns: 1fr;
  }

  .support-mini ul {
    margin: 0 18px;
  }

  .site-footer,
  .login-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .login-visual {
    min-height: 410px;
  }

  .login-visual-content {
    width: min(100% - 32px, 720px);
  }

  .login-metrics {
    grid-template-columns: 1fr;
  }

  .login-panel {
    padding: 34px 16px 48px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .kpi-card strong {
    transition: none;
  }
}

.app-body {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  background: #eef2f6;
}

.app-body.is-notification-open {
  overflow: hidden;
}

.app-sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #111827;
  color: #fff;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 86px;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-brand strong {
  display: block;
  max-width: 170px;
  font-size: 16px;
  line-height: 1.35;
}

.app-brand small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.58);
}

.app-nav {
  flex: 1;
  overflow: auto;
  padding: 8px 12px 20px;
}

.app-nav a {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: var(--radius-md);
  padding: 0 14px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
  transition: background-color 160ms ease, color 160ms ease;
}

.app-nav a:hover,
.app-nav a:focus-visible,
.app-nav a.is-active {
  background: var(--color-primary);
  color: #fff;
}

.app-nav svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.app-user {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
  margin: 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  padding: 12px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #315a91;
  color: #fff;
  font-weight: 800;
}

.app-user strong,
.app-user small {
  display: block;
}

.app-user small,
.app-user a {
  color: rgba(255, 255, 255, 0.62);
}

.app-shell {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 28px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--color-line);
  backdrop-filter: blur(10px);
}

.app-topbar p {
  margin: 0;
  color: var(--color-ink-muted);
  font-size: 13px;
}

.app-topbar h1 {
  margin: 2px 0 0;
  font-size: 26px;
  line-height: 1.2;
}

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

.topbar-icon {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: #fff;
  cursor: pointer;
}

.topbar-icon span {
  position: absolute;
  top: -7px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.notification-layer {
  position: fixed;
  inset: 0;
  z-index: 520;
  pointer-events: none;
  visibility: hidden;
}

.notification-layer.is-open {
  pointer-events: auto;
  visibility: visible;
}

.notification-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(17, 24, 39, 0.48);
  cursor: pointer;
  opacity: 0;
  transition: opacity 200ms ease;
}

.notification-layer.is-open .notification-scrim {
  opacity: 1;
}

.notification-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: min(66.666vw, 980px);
  min-width: 720px;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 16px;
  border-left: 1px solid var(--color-line);
  background: #fff;
  box-shadow: -30px 0 80px rgba(17, 24, 39, 0.28);
  padding: 24px 28px 30px;
  overflow: hidden;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 220ms ease, transform 220ms ease;
}

.notification-layer.is-open .notification-drawer {
  opacity: 1;
  transform: translateX(0);
}

.notification-head,
.notification-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.notification-head {
  border-bottom: 1px solid var(--color-line);
  padding-bottom: 16px;
}

.notification-head p,
.notification-detail-head span {
  margin: 0 0 4px;
  color: var(--color-ink-muted);
  font-size: 13px;
  font-weight: 800;
}

.notification-head h2,
.notification-detail-head h3 {
  margin: 0;
  line-height: 1.2;
}

.notification-head h2 {
  font-size: 24px;
}

.notification-detail-head h3 {
  font-size: 20px;
}

.notification-close {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--color-ink);
  cursor: pointer;
}

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

.notification-summary article {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-surface-muted);
  padding: 12px;
}

.notification-summary span,
.notification-summary strong {
  display: block;
}

.notification-summary span {
  color: var(--color-ink-muted);
  font-size: 13px;
  font-weight: 800;
}

.notification-summary strong {
  margin-top: 4px;
  font-size: 24px;
  line-height: 1;
}

.notification-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.notification-tabs button,
.notification-item {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}

.notification-tabs button {
  min-height: 38px;
  padding: 0 14px;
}

.notification-tabs button:hover,
.notification-tabs button:focus-visible,
.notification-tabs button.is-active {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.notification-content {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  gap: 16px;
}

.notification-list,
.notification-detail {
  min-height: 0;
  overflow: auto;
}

.notification-list {
  display: grid;
  align-content: start;
  gap: 10px;
  padding-right: 2px;
}

.notification-item {
  min-height: 104px;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  padding: 12px;
  text-align: left;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.notification-item:hover,
.notification-item:focus-visible,
.notification-item.is-active {
  border-color: rgba(178, 31, 45, 0.42);
  background: var(--color-primary-soft);
  box-shadow: inset 3px 0 0 var(--color-primary);
}

.notification-dot {
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--color-line);
}

.notification-dot.is-unread {
  background: var(--color-primary);
}

.notification-item-main {
  min-width: 0;
}

.notification-item-main strong,
.notification-item-main small,
.notification-item-main em {
  display: block;
}

.notification-item-main strong {
  color: var(--color-ink);
  line-height: 1.35;
  white-space: normal;
}

.notification-item-main small,
.notification-item-main em {
  margin-top: 4px;
  color: var(--color-ink-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.notification-detail {
  display: grid;
  align-content: start;
  gap: 16px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-surface-muted);
  padding: 18px;
}

.notification-detail p {
  margin: 0;
  color: var(--color-ink-muted);
}

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

.notification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.notification-empty {
  border: 1px dashed var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-surface-muted);
  padding: 24px;
  color: var(--color-ink-muted);
  font-weight: 800;
}

.danger-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: #fff;
  padding: 0 16px;
  cursor: pointer;
  font-weight: 800;
}

.app-main {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  padding: 24px 28px 48px;
}

.page-stack {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.panel,
.filter-panel,
.tabs,
.kpi-card {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.panel {
  min-width: 0;
  padding: 20px;
}

.panel h2 {
  margin: 0;
  font-size: 20px;
}

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

.panel-head a {
  color: var(--color-primary);
  font-weight: 700;
}

.filter-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 14px;
  padding: 18px;
}

.filter-panel label,
.two-col-form label,
.config-grid label {
  display: grid;
  gap: 6px;
  color: var(--color-ink-muted);
  font-weight: 700;
}

.filter-panel input,
.two-col-form input,
.two-col-form textarea,
.two-col-form select,
.config-grid input,
.config-grid select {
  min-height: 42px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: 8px 11px;
  color: var(--color-ink);
  background: #fff;
}

.filter-panel input {
  width: 160px;
}

.btn-plain,
.button-row button,
.panel-head > button,
.video-card button,
.config-grid button {
  min-height: 40px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-ink);
  padding: 0 14px;
  cursor: pointer;
  font-weight: 700;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.check-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
}

.check-line input,
.permission-tree input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
}

.info-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.info-grid div {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-surface-muted);
  padding: 12px;
}

.info-grid dt {
  color: var(--color-ink-muted);
  font-size: 13px;
  font-weight: 800;
}

.info-grid dd {
  margin: 5px 0 0;
  color: var(--color-ink);
  font-weight: 800;
}

.alert-panel {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(178, 31, 45, 0.24);
  border-radius: var(--radius-md);
  background: var(--color-primary-soft);
  padding: 16px 18px;
}

.alert-panel svg {
  color: var(--color-primary);
}

.alert-panel strong,
.alert-panel span {
  display: block;
}

.alert-panel span {
  color: var(--color-ink-muted);
}

.alert-panel button,
.quick-grid button,
.video-tools button,
.permission-tree label,
.message-detail button {
  min-height: 40px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-ink);
  padding: 0 14px;
  cursor: pointer;
  font-weight: 800;
}

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

.quick-grid button {
  min-height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.quick-grid svg {
  color: var(--color-primary);
}

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

.kpi-card {
  position: relative;
  padding: 20px;
}

.kpi-card svg {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 28px;
  height: 28px;
  color: var(--color-primary);
}

.kpi-card span {
  display: block;
  color: var(--color-ink-muted);
  font-weight: 700;
}

.kpi-card strong {
  display: block;
  margin-top: 8px;
  font-size: 32px;
  line-height: 1;
  color: var(--color-ink);
  font-variant-numeric: tabular-nums;
  transition: color 180ms ease, transform 180ms ease;
}

.kpi-card strong.is-counting {
  color: var(--color-primary);
  transform: translateY(-1px);
}

.kpi-card small {
  display: block;
  margin-top: 10px;
  color: #16823a;
  font-weight: 700;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: start;
  gap: 18px;
}

.span-2 {
  grid-column: span 2;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.segmented button,
.tabs button {
  min-height: 36px;
  border: 1px solid var(--color-line);
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 0 12px;
  cursor: pointer;
  font-weight: 700;
}

.segmented .is-active,
.tabs .is-active {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

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

.bar-list div {
  display: grid;
  grid-template-columns: 94px 1fr 34px;
  align-items: center;
  gap: 10px;
}

.bar-list b {
  height: 12px;
  border-radius: 999px;
  background: var(--color-primary);
}

.bar-list em {
  font-style: normal;
  color: var(--color-ink-muted);
}

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

.activity-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.trend-chart {
  width: 100%;
  height: 300px;
  min-height: 260px;
  overflow: hidden;
}

.overview-combo {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.72fr);
  gap: 18px;
}

.risk-dynamic-row,
.notice-audit-row {
  min-width: 0;
  display: grid;
  align-items: stretch;
  gap: 18px;
}

.risk-dynamic-row {
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
}

.notice-audit-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.risk-dynamic-row .panel,
.notice-audit-row .panel {
  height: 100%;
}

.notice-audit-row .table-wrap {
  overflow: visible;
}

.notice-audit-row table {
  min-width: 0;
  table-layout: fixed;
}

.notice-audit-row th,
.notice-audit-row td {
  padding: 10px 8px;
  white-space: normal;
  word-break: break-word;
}

.notice-audit-row th:nth-child(1),
.notice-audit-row td:nth-child(1) {
  width: 38%;
}

.notice-audit-row th:last-child,
.notice-audit-row td:last-child {
  width: 22%;
}

.trend-panel,
.closure-panel {
  min-width: 0;
}

.trend-panel {
  display: grid;
  align-content: start;
}

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

.heatmap-panel div {
  position: relative;
  min-height: 118px;
  display: grid;
  align-content: space-between;
  gap: 10px;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-surface-muted);
  padding: 14px;
}

.heatmap-panel div::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: var(--heat);
  background: linear-gradient(180deg, rgba(178, 31, 45, 0.08), rgba(178, 31, 45, 0.22));
}

.heatmap-panel strong,
.heatmap-panel span,
.heatmap-panel em {
  position: relative;
}

.heatmap-panel strong,
.watch-list strong {
  font-size: 16px;
}

.heatmap-panel em {
  color: var(--color-ink-muted);
  font-style: normal;
  font-weight: 800;
}

.closure-chart {
  margin: 0 auto 14px;
  width: 176px;
  height: 176px;
}

.message-delivery strong {
  color: var(--color-ink);
  font-size: 30px;
  line-height: 1;
}

.message-delivery span {
  color: var(--color-ink-muted);
  font-weight: 800;
}

.mini-stat-list,
.watch-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mini-stat-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-surface-muted);
  padding: 10px 12px;
}

.mini-stat-list span,
.watch-list span,
.device-grid span,
.duty-grid span {
  color: var(--color-ink-muted);
  font-weight: 700;
}

.mini-stat-list strong {
  color: var(--color-ink);
  font-size: 18px;
}

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

.ops-watch-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
  align-items: stretch;
  gap: 18px;
}

.ops-stack,
.watch-panel {
  min-width: 0;
}

.ops-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 18px;
}

.ops-stack .panel,
.watch-panel {
  height: 100%;
}

.watch-panel {
  display: flex;
  flex-direction: column;
}

.watch-panel .watch-list {
  flex: 1;
  align-content: stretch;
}

.watch-panel .watch-list li {
  align-content: center;
}

.device-grid article,
.duty-grid article {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-surface-muted);
  padding: 14px;
}

.device-grid article {
  display: grid;
  gap: 6px;
}

.device-grid strong,
.duty-grid strong {
  color: var(--color-ink);
  font-size: 26px;
  line-height: 1;
}

.device-grid .danger {
  border-color: rgba(178, 31, 45, 0.28);
  background: var(--color-primary-soft);
}

.device-grid .warn {
  border-color: rgba(180, 83, 9, 0.28);
  background: #fff7ed;
}

.device-grid .ok {
  border-color: rgba(22, 130, 58, 0.24);
  background: #ecfdf3;
}

.watch-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-surface-muted);
  padding: 12px;
}

.watch-list span {
  grid-column: 1 / -1;
}

.message-delivery {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.message-delivery div {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7edf4;
}

.message-delivery b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--color-primary);
}

.duty-grid article {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 8px 10px;
}

.duty-grid.compact article {
  padding: 12px;
}

.duty-grid.compact strong {
  font-size: 22px;
}

.duty-grid svg {
  grid-row: span 2;
  width: 28px;
  height: 28px;
  color: var(--color-primary);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
}

.table-wrap {
  min-width: 0;
  width: 100%;
  overflow: auto;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
}

.merchant-list-panel {
  overflow: hidden;
}

.drawer-workspace {
  position: relative;
  min-height: 460px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.drawer-source {
  min-height: 420px;
}

.merchant-row {
  cursor: default;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

.merchant-row:hover,
.merchant-row:focus-within,
.merchant-row:focus {
  background: var(--color-primary-soft);
  box-shadow: inset 3px 0 0 var(--color-primary);
}

.drawer-stage {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(66.666vw, 1080px);
  min-width: 760px;
  height: 100dvh;
  pointer-events: none;
  z-index: 220;
}

.drawer-placeholder,
.merchant-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100dvh;
  max-height: none;
  overflow: auto;
  border: 1px solid var(--color-line);
  border-right: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: -30px 0 80px rgba(23, 32, 51, 0.24);
}

.drawer-placeholder {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 28px;
  color: var(--color-ink-muted);
  opacity: 1;
  transform: translateX(100%);
  transition: opacity 220ms ease, transform 220ms ease;
}

.drawer-placeholder strong {
  color: var(--color-ink);
  font-size: 18px;
}

.merchant-drawer {
  display: grid;
  align-content: start;
  gap: 18px;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  padding: 28px 32px 36px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  transition: opacity 220ms ease, transform 220ms ease;
}

.drawer-workspace:hover .drawer-placeholder,
.drawer-workspace:focus-within .drawer-placeholder,
.drawer-workspace.is-drawer-open .drawer-placeholder {
  opacity: 0;
}

.merchant-row:hover ~ tr {
  background: inherit;
}

.drawer-source:has(.merchant-row:nth-child(1):hover) ~ .drawer-stage #merchant-drawer-0 .merchant-drawer,
.drawer-source:has(.merchant-row:nth-child(1):focus) ~ .drawer-stage #merchant-drawer-0 .merchant-drawer,
.drawer-source:has(.merchant-row:nth-child(1):focus-within) ~ .drawer-stage #merchant-drawer-0 .merchant-drawer,
.drawer-source:has(.merchant-row:nth-child(2):hover) ~ .drawer-stage #merchant-drawer-1 .merchant-drawer,
.drawer-source:has(.merchant-row:nth-child(2):focus) ~ .drawer-stage #merchant-drawer-1 .merchant-drawer,
.drawer-source:has(.merchant-row:nth-child(2):focus-within) ~ .drawer-stage #merchant-drawer-1 .merchant-drawer,
.drawer-source:has(.merchant-row:nth-child(3):hover) ~ .drawer-stage #merchant-drawer-2 .merchant-drawer,
.drawer-source:has(.merchant-row:nth-child(3):focus) ~ .drawer-stage #merchant-drawer-2 .merchant-drawer,
.drawer-source:has(.merchant-row:nth-child(3):focus-within) ~ .drawer-stage #merchant-drawer-2 .merchant-drawer,
.drawer-source:has(.merchant-row:nth-child(4):hover) ~ .drawer-stage #merchant-drawer-3 .merchant-drawer,
.drawer-source:has(.merchant-row:nth-child(4):focus) ~ .drawer-stage #merchant-drawer-3 .merchant-drawer,
.drawer-source:has(.merchant-row:nth-child(4):focus-within) ~ .drawer-stage #merchant-drawer-3 .merchant-drawer,
.drawer-source:has(.merchant-row:nth-child(5):hover) ~ .drawer-stage #merchant-drawer-4 .merchant-drawer,
.drawer-source:has(.merchant-row:nth-child(5):focus) ~ .drawer-stage #merchant-drawer-4 .merchant-drawer,
.drawer-source:has(.merchant-row:nth-child(5):focus-within) ~ .drawer-stage #merchant-drawer-4 .merchant-drawer,
.drawer-source:has(.merchant-row:nth-child(6):hover) ~ .drawer-stage #merchant-drawer-5 .merchant-drawer,
.drawer-source:has(.merchant-row:nth-child(6):focus) ~ .drawer-stage #merchant-drawer-5 .merchant-drawer,
.drawer-source:has(.merchant-row:nth-child(6):focus-within) ~ .drawer-stage #merchant-drawer-5 .merchant-drawer,
.drawer-stage:hover .drawer-anchor:hover .merchant-drawer {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.drawer-anchor.is-active .merchant-drawer {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.drawer-workspace:has(.merchant-row:hover) .drawer-stage,
.drawer-workspace:has(.merchant-row:focus) .drawer-stage,
.drawer-workspace:has(.merchant-row:focus-within) .drawer-stage {
  pointer-events: none;
}

.drawer-head {
  position: sticky;
  top: -28px;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--color-line);
  background: #fff;
  padding: 28px 0 14px;
  margin-top: -28px;
}

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

.drawer-head h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.drawer-tabs {
  position: sticky;
  top: 58px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--color-line);
  background: #fff;
  padding: 12px 0;
}

.drawer-tabs button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-ink);
  padding: 0 14px;
  cursor: pointer;
  font-weight: 800;
}

.drawer-tabs button:hover,
.drawer-tabs button:focus-visible,
.drawer-tabs button.is-active {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.merchant-drawer .info-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.drawer-section {
  scroll-margin-top: 112px;
  display: none;
}

.drawer-section.is-active {
  display: block;
}

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

.drawer-section-head h4 {
  margin: 0;
  font-size: 16px;
}

.drawer-section-head span {
  color: var(--color-ink-muted);
  font-size: 13px;
  font-weight: 800;
}

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

.drawer-list article {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-surface-muted);
  padding: 12px;
}

.drawer-list strong,
.drawer-list p,
.drawer-list div {
  display: block;
}

.drawer-list p {
  margin: 4px 0 8px;
  color: var(--color-ink-muted);
}

.drawer-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.risk-drawer .drawer-risk-layout {
  grid-template-columns: 260px minmax(0, 1fr);
}

.risk-drawer .info-grid {
  margin: 16px 0;
}

.risk-drawer p {
  color: var(--color-ink-muted);
}

table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  border-bottom: 1px solid var(--color-line);
  padding: 12px;
  text-align: left;
  white-space: nowrap;
}

th {
  background: #f8fafc;
  color: var(--color-ink);
  font-weight: 800;
}

td {
  color: var(--color-ink-muted);
}

td a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--color-primary);
  cursor: pointer;
  font-weight: 700;
  margin-right: 8px;
}

td a:hover,
td a:focus-visible {
  text-decoration: underline;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 800;
}

.status.danger {
  background: #fff1f2;
  color: #b21f2d;
}

.status.warn {
  background: #fff7ed;
  color: #b45309;
}

.status.ok {
  background: #ecfdf3;
  color: #16823a;
}

.two-col-form {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.two-col-form h2,
.two-col-form .wide,
.two-col-form .form-help {
  grid-column: 1 / -1;
}

.two-col-form textarea {
  min-height: 92px;
  resize: vertical;
}

.form-help {
  margin: 0;
  border-left: 3px solid var(--color-gold);
  background: var(--color-surface-muted);
  padding: 12px;
  color: var(--color-ink-muted);
}

.video-layout {
  min-width: 0;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 18px;
}

.camera-tree {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 18px;
}

.camera-tree h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.camera-tree ul {
  margin: 8px 0 18px;
  padding-left: 18px;
  color: var(--color-ink-muted);
}

.video-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.video-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.video-tools span {
  margin-right: auto;
  color: var(--color-ink-muted);
  font-weight: 800;
}

.video-tools button.is-active {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.video-card {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 14px;
}

.video-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.fake-video {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #101827;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.fake-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.fake-video.replay {
  margin-bottom: 14px;
}

.range {
  width: 100%;
  accent-color: var(--color-primary);
}

.risk-cards {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  align-items: center;
}

.donut {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: conic-gradient(#b21f2d 0 35%, #d97706 35% 55%, #23466f 55% 72%, #16823a 72% 86%, #d9e0e8 86% 100%);
  box-shadow: inset 0 0 0 62px #fff, var(--shadow-sm);
}

.config-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.config-grid article {
  display: grid;
  gap: 12px;
}

.org-layout {
  min-width: 0;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
}

.permission-tree {
  display: grid;
  gap: 10px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-surface-muted);
  padding: 14px;
}

.permission-tree label {
  justify-content: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.message-detail h3 {
  margin: 10px 0;
  font-size: 18px;
}

.message-detail p {
  color: var(--color-ink-muted);
}

@media (max-width: 1360px) {
  .app-body {
    grid-template-columns: 232px minmax(0, 1fr);
  }

  .app-brand {
    padding-inline: 16px;
  }

  .app-brand strong {
    max-width: 140px;
    font-size: 15px;
  }

  .app-nav a {
    gap: 10px;
    padding: 0 12px;
  }

  .app-main {
    padding: 20px 22px 42px;
  }

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

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

  .span-2 {
    grid-column: auto;
  }

  .dashboard-grid .panel {
    min-width: 0;
  }

  .heatmap-panel,
  .device-grid,
  .duty-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-combo {
    grid-template-columns: minmax(0, 1fr);
  }

  .risk-dynamic-row,
  .notice-audit-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .ops-watch-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .ops-stack {
    grid-template-rows: none;
  }

  .dashboard-grid table {
    min-width: 640px;
  }
}

@media (max-width: 1180px) {
  .app-body {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .app-brand span:last-child,
  .app-nav span,
  .app-user div,
  .app-user a {
    display: none;
  }

  .app-brand {
    justify-content: center;
    padding: 18px 12px;
  }

  .app-nav a {
    justify-content: center;
    padding: 0;
  }

  .app-user {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .kpi-grid,
  .config-grid,
  .info-grid,
  .quick-grid,
  .heatmap-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid,
  .video-layout,
  .risk-cards,
  .org-layout,
  .overview-combo,
  .risk-dynamic-row,
  .notice-audit-row,
  .ops-watch-row {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

  .trend-chart {
    height: 220px;
    min-height: 220px;
  }

  .drawer-stage {
    width: min(88vw, 920px);
    min-width: 0;
  }

  .notification-drawer {
    width: min(88vw, 920px);
    min-width: 0;
  }

  .merchant-drawer .info-grid,
  .drawer-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .app-topbar {
    align-items: flex-start;
  }

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

  .panel-head .segmented,
  .panel-head .badge-row,
  .panel-head .button-row {
    width: 100%;
  }

  .segmented button {
    flex: 1 1 86px;
  }

  .kpi-card {
    min-height: 128px;
  }

  .heatmap-panel div {
    min-height: 104px;
  }

  .closure-chart {
    width: 156px;
    height: 156px;
  }

  .message-delivery strong {
    font-size: 26px;
  }
}

@media (max-width: 760px) {
  .app-body {
    display: block;
  }

  .app-sidebar {
    position: relative;
    height: auto;
  }

  .app-brand span:last-child,
  .app-nav span,
  .app-user div,
  .app-user a {
    display: block;
  }

  .app-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 300px;
  }

  .app-nav a {
    justify-content: flex-start;
    padding: 0 12px;
  }

  .app-user {
    grid-template-columns: 42px 1fr auto;
  }

  .app-topbar {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 16px;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .app-main {
    padding: 16px;
  }

  .page-stack {
    gap: 14px;
  }

  .panel {
    padding: 16px;
  }

  .kpi-grid,
  .dashboard-grid,
  .video-grid,
  .two-col-form,
  .config-grid,
  .info-grid,
  .quick-grid,
  .heatmap-panel,
  .device-grid,
  .duty-grid {
    grid-template-columns: 1fr;
  }

  .kpi-grid {
    gap: 12px;
  }

  .kpi-card {
    min-height: auto;
    padding: 16px 54px 16px 16px;
  }

  .kpi-card svg {
    top: 16px;
    right: 16px;
    width: 24px;
    height: 24px;
  }

  .kpi-card strong {
    font-size: 28px;
  }

  .panel-head h2 {
    font-size: 18px;
  }

  .heatmap-panel div {
    min-height: 92px;
  }

  .trend-chart {
    height: 190px;
    min-height: 190px;
  }

  .device-grid article,
  .duty-grid article,
  .watch-list li,
  .mini-stat-list li {
    padding: 12px;
  }

  .device-grid strong,
  .duty-grid strong {
    font-size: 24px;
  }

  .duty-grid article {
    grid-template-columns: 32px 1fr;
  }

  .duty-grid svg {
    width: 24px;
    height: 24px;
  }

  .alert-panel {
    grid-template-columns: 32px 1fr;
  }

  .alert-panel button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .drawer-workspace {
    min-height: auto;
  }

  .drawer-stage {
    position: fixed;
    width: 100%;
    min-width: 0;
    height: 100dvh;
    margin-top: 0;
  }

  .drawer-placeholder,
  .merchant-drawer {
    position: absolute;
    width: 100%;
    height: 100dvh;
    border-right: 1px solid var(--color-line);
    border-radius: 0;
  }

  .merchant-drawer .info-grid,
  .drawer-list,
  .notification-content,
  .notification-detail .info-grid {
    grid-template-columns: 1fr;
  }

  .notification-drawer {
    width: 100%;
    min-width: 0;
    padding: 18px 16px 22px;
  }

  .notification-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .notification-content {
    overflow: auto;
  }

  .notification-list,
  .notification-detail {
    overflow: visible;
  }

  .filter-panel label,
  .filter-panel input {
    width: 100%;
  }
}
