:root {
  color-scheme: light;
  font-family: "Segoe UI Variable", "Segoe UI", "PingFang SC", "Microsoft YaHei UI", system-ui, sans-serif;
  color: #1a2631;
  background: #f4f6f8;
  --muted: #50616f;
  --line: #dde5e9;
  --paper: #fff;
  --ink: #203a40;
  --accent: #d8f8a7;
  --sidebar-size: 212px;
}

*, *::before, *::after { box-sizing: border-box; }
body { min-width: 0; margin: 0; }
h1, h2, p { margin: 0; }
button, select, input { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: wait; opacity: .7; }
button, a, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #448378; outline-offset: 3px; }
main:focus { outline: none; }
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 5;
  padding: 11px 14px;
  transform: translateY(-160%);
  background: var(--paper);
  border-radius: 8px;
  font-weight: 650;
}
.skip-link:focus { transform: none; }

.glyph {
  position: relative;
  display: inline-block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  color: currentColor;
}
.glyph::before, .glyph::after { position: absolute; box-sizing: border-box; }
.glyph-overview { border: 1.4px solid currentColor; border-radius: 3px; }
.glyph-overview::before { content: ""; top: 0; bottom: 0; left: 4px; border-left: 1px solid currentColor; }
.glyph-overview::after { content: ""; left: 5px; right: 0; top: 5px; border-top: 1px solid currentColor; }
.glyph-report::before {
  content: "";
  inset: 1px 0 1px 1px;
  border-left: 1.3px solid currentColor;
  border-bottom: 1.3px solid currentColor;
  border-radius: 0 0 0 2px;
  background: linear-gradient(currentColor, currentColor) 3px 100% / 2px 5px no-repeat,
              linear-gradient(currentColor, currentColor) 7px 100% / 2px 10px no-repeat,
              linear-gradient(currentColor, currentColor) 11px 100% / 2px 7px no-repeat;
}
.glyph-link::before, .glyph-link::after {
  content: "";
  width: 10px;
  height: 7px;
  border-radius: 5px;
  border: 1.4px solid currentColor;
  transform: rotate(-40deg);
}
.glyph-link::before { top: 3px; left: 6px; }
.glyph-link::after { top: 8px; left: 0; }
.glyph-globe { border: 1.3px solid currentColor; border-radius: 50%; }
.glyph-globe::before { content: ""; inset: -1px 3px; border: 1.2px solid currentColor; border-radius: 50%; }
.glyph-globe::after { content: ""; top: 6px; left: 0; right: 0; border-top: 1px solid currentColor; }
.glyph-refresh::before { content: ""; inset: 1px; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; }
.glyph-refresh::after { content: ""; right: -1px; top: 0; border: 3px solid transparent; border-bottom-color: currentColor; transform: rotate(35deg); }
.glyph-clock { border: 1.4px solid currentColor; border-radius: 50%; }
.glyph-clock::after { content: ""; width: 5px; height: 5px; left: 6px; top: 3px; border: 1.2px solid currentColor; border-top: 0; border-right: 0; }
.glyph-mail { height: 12px; border: 1.4px solid currentColor; border-radius: 3px; }
.glyph-mail::after { content: ""; top: -1px; left: 4px; width: 7px; height: 7px; border: 1.3px solid currentColor; border-top: 0; border-left: 0; transform: rotate(45deg); }
.glyph-drive::before { content: ""; inset: 0; background: currentColor; clip-path: polygon(50% 1%, 100% 83%, 88% 99%, 12% 99%, 0 83%, 45% 9%, 57% 27%, 28% 76%, 72% 76%, 42% 25%); }
.glyph-video { height: 12px; border: 1.4px solid currentColor; border-radius: 3px; }
.glyph-video::after { content: ""; left: 6px; top: 2px; border: 3px solid transparent; border-left: 4px solid currentColor; border-right: 0; }
.glyph-bolt::before { content: ""; inset: 0 2px; background: currentColor; clip-path: polygon(64% 0, 17% 54%, 47% 55%, 28% 100%, 85% 42%, 57% 42%); }
.glyph-calendar { border: 1.4px solid currentColor; border-radius: 3px; }
.glyph-calendar::before { content: ""; left: 0; right: 0; top: 4px; border-top: 1px solid currentColor; }
.glyph-calendar::after { content: ""; inset: 7px 3px 2px; background: radial-gradient(circle, currentColor 0 1px, transparent 1.1px) 0 0 / 4px 4px; }
.glyph-eye::before { content: ""; inset: 1px; border: 1.4px solid currentColor; border-radius: 70% 10%; transform: rotate(45deg); }
.glyph-eye::after { content: ""; inset: 5px; border: 1.3px solid currentColor; border-radius: 50%; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--sidebar-size);
  flex-direction: column;
  padding: 27px 17px 20px;
  background: #fdfefe;
  border-right: 1px solid var(--line);
}
.sidebar-header { display: grid; gap: 22px; }
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-inline: 6px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 750;
  letter-spacing: -.035em;
  white-space: nowrap;
}
.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: var(--accent);
  background: #203f44;
}
.brand-mark span {
  width: 17px;
  height: 14px;
  margin-left: 1px;
  background: currentColor;
  clip-path: polygon(0 1%, 100% 50%, 0 99%, 21% 50%);
}
.language-picker {
  position: relative;
  display: flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 40px;
  margin-inline: 4px;
  padding-left: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #435a62;
  background: var(--paper);
}
.language-picker .glyph { flex-basis: 14px; width: 14px; height: 14px; pointer-events: none; }
.language-picker .glyph::after { top: 5px; }
.language-picker select {
  position: relative;
  appearance: none;
  width: 100%;
  min-width: 94px;
  min-height: 38px;
  padding: 1px 25px 2px 7px;
  border: 0;
  border-radius: 7px;
  color: #2a414b;
  background: transparent;
  font-size: 13px;
  font-weight: 650;
}
.language-chevron {
  position: absolute;
  right: 10px;
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 1.3px solid currentColor;
  border-bottom: 1.3px solid currentColor;
  transform: rotate(45deg);
  pointer-events: none;
}
.side-nav { display: grid; gap: 5px; margin-top: 29px; }
.side-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 43px;
  padding: 10px 11px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 620;
  white-space: nowrap;
}
.side-nav a:hover { background: #eef4f3; color: #244c48; }
.side-nav a.selected { background: #e3efed; color: #1c4c48; font-weight: 730; }
.sidebar-bottom { margin-top: auto; border-top: 1px solid var(--line); }
.sidebar-bottom a { display: flex; justify-content: space-between; gap: 8px; padding: 16px 9px 2px; color: var(--muted); font-size: 13px; }
.sidebar-bottom a:hover { color: #195957; }

.main { min-width: 0; margin-left: var(--sidebar-size); }
.frame { max-width: 1320px; margin: 0 auto; padding: 0 clamp(24px, 3.7vw, 53px); }
.page-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 117px;
  padding: 20px 0 18px;
}
.page-heading { min-width: 0; }
.page-heading h1 {
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.14;
  font-weight: 780;
  letter-spacing: -.057em;
}
.page-heading p { margin-top: 7px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.page-actions, .dialog-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.page-actions { flex-shrink: 0; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 14px;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}
.button .glyph { transform: scale(.88); }
.button-primary { background: #223e46; color: #fff; }
.button-primary:hover:not(:disabled) { background: #335866; }
.button-light { background: var(--paper); border-color: #d3dfe4; color: #334d58; }
.button-light:hover:not(:disabled) { background: #ecf3f4; border-color: #b9cbd1; }
.button-danger { background: #8f2925; color: #fff; }
.button-danger:hover:not(:disabled) { background: #75211d; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(212px, 27%);
  gap: 27px 34px;
  padding: 30px 33px 24px;
  border: 1px solid #273d4e;
  border-radius: 20px;
  color: #f1f7f8;
  background: radial-gradient(ellipse at 86% -18%, #3a615d 0%, #25434c 36%, transparent 66%), #182a38;
  box-shadow: 0 12px 30px #182e3a1c;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -47%;
  right: -6%;
  width: min(620px, 78%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-radial-gradient(circle at center, transparent 0 32px, #c3e6da19 33px 34px, transparent 35px 62px);
  mask-image: linear-gradient(45deg, transparent 18%, #000 83%);
  pointer-events: none;
}
.hero-content { min-width: 0; }
.mode {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 13px;
  padding: 5px 9px;
  border: 1px solid #d4e8e760;
  border-radius: 6px;
  color: #d9eae9;
  background: #ccf5fa11;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}
.mode[data-mode="sample"] { color: #ffe7a6; border-color: #f7d48e61; background: #f3cc721c; }
.mode[data-mode="connected"] { color: #d8faa9; border-color: #b6f69760; background: #c3f68917; }
.mode[data-mode="pending"] { color: #e0f2ee; }
.live-dot { flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.hero h2 { font-size: clamp(30px, 4.3vw, 52px); line-height: 1.12; font-weight: 770; letter-spacing: -.055em; }
.hero-copy { max-width: 550px; margin-top: 10px; color: #d4e4e8; font-size: 14px; line-height: 1.68; }
.clock-card {
  display: grid;
  justify-items: start;
  gap: 8px;
  min-width: 0;
  padding: 15px 17px 14px;
  border: 1px solid #cae0e46b;
  border-radius: 12px;
  background: #152f3f6e;
}
.clock-label { display: flex; align-items: center; gap: 7px; color: #e5f0ef; font-size: 13px; font-weight: 620; }
.clock-label .glyph { transform: scale(.85); }
.clock-time { color: var(--accent); font-size: clamp(40px, 5.2vw, 68px); line-height: 1; font-variant-numeric: tabular-nums; font-weight: 650; letter-spacing: -.055em; }
.clock-zone { color: #d6e5e7; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.pipeline {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.pipeline li {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 11px;
  padding: 10px 11px;
  background: #e1f5f215;
  border: 1px solid #cae6e53f;
  border-radius: 9px;
}
.pipeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 1;
  right: -10px;
  width: 6px;
  height: 6px;
  border: 1px solid #b5cbcf;
  border-bottom: 0;
  border-left: 0;
  transform: rotate(45deg);
}
.pipeline-icon, .panel-icon {
  display: inline-grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
}
.pipeline-icon { color: #d6f6b1; background: #d8f6c41e; }
.icon-drive { color: #ceefdb; background: #c2f3e61d; }
.icon-video { color: #ffdbbc; background: #ffd9b91a; }
.pipeline li div { min-width: 0; }
.pipeline strong, .pipeline li div span { display: block; overflow-wrap: anywhere; }
.pipeline strong { color: #f1f7f8; font-size: 13px; line-height: 1.36; font-weight: 710; }
.pipeline li div span { color: #d1e1e4; font-size: 12px; line-height: 1.45; }

.notice { margin-top: 17px; padding: 12px 14px; border-radius: 9px; background: #fcf1e5; color: #6d4528; font-size: 13px; line-height: 1.55; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin: 19px 0; }
.metric, .panel { min-width: 0; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); box-shadow: 0 2px 7px #213c4510; }
.metric { display: grid; align-content: start; gap: 7px; padding: 15px 16px 14px; }
.metric-heading { display: flex; align-items: center; gap: 8px; min-width: 0; }
.metric-heading h2 { color: #38515d; font-size: 13px; line-height: 1.35; font-weight: 670; overflow-wrap: anywhere; }
.metric-glyph { color: #38757a; transform: scale(.88); }
.metric:nth-child(2) .metric-glyph { color: #576d98; }
.metric:nth-child(3) .metric-glyph { color: #576e57; }
.metric strong {
  color: #233e4b;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.18;
  font-variant-numeric: tabular-nums;
  font-weight: 760;
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
}
.metric > span { color: var(--muted); font-size: 12px; line-height: 1.42; overflow-wrap: anywhere; }
.details { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); align-items: stretch; gap: 15px; }
.panel { padding: 18px; scroll-margin-top: 16px; }
.panel-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.panel-icon { flex: 0 0 32px; width: 32px; height: 32px; color: #346873; background: #eaf2f3; }
.panel h2 { font-size: 18px; line-height: 1.3; font-weight: 760; letter-spacing: -.031em; }
.report-badge { margin-left: auto; padding: 5px 7px; border-radius: 5px; color: #3c5662; background: #edf2f4; font-size: 11px; font-weight: 680; line-height: 1.3; }
.report-badge[data-tone="positive"] { color: #285542; background: #e1f3e8; }
.report-badge[data-tone="attention"] { color: #7e3f29; background: #fff0e5; }
.panel-copy, .setup-steps { color: var(--muted); font-size: 13px; line-height: 1.65; }
.report-data { margin: 15px 0 0; }
.report-data > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 12px; padding: 11px 0; border-top: 1px solid #e7eef0; }
.report-data > div:last-child { padding-bottom: 0; }
.report-data dt, .report-data dd { margin: 0; font-size: 13px; }
.report-data dt { color: var(--muted); }
.report-data dd { color: #294854; font-variant-numeric: tabular-nums; font-weight: 670; }
.setup-steps { padding-left: 1.35em; margin: 0; overflow-wrap: anywhere; }
.setup-steps li + li { margin-top: 3px; }
.setup-steps li::marker { color: #316c6c; font-weight: 700; }
code { font-family: "Cascadia Mono", "Consolas", monospace; overflow-wrap: anywhere; font-size: .94em; }
.resource-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 13px; }
.resource-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 5px 8px;
  border: 1px solid #dbe8e9;
  border-radius: 7px;
  color: #315d63;
  background: #f8fbfb;
  font-size: 12px;
  font-weight: 690;
  line-height: 1.35;
}
.resource-links a:hover { background: #edf5f6; border-color: #bcd3d6; }
.setup-button { margin-top: 12px; }
.footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 22px; padding: 16px 0 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer > span { color: #405661; font-weight: 690; }
.footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.footer a:hover { text-decoration: underline; text-underline-offset: 3px; }

dialog {
  width: min(505px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  padding: 21px;
  overflow: auto;
  border: 1px solid #d9e4e8;
  border-radius: 15px;
  color: #1a2631;
  background: var(--paper);
  box-shadow: 0 20px 96px #162e4a5a;
}
dialog::backdrop { background: #152734a8; }
.dialog-heading { display: flex; align-items: center; gap: 9px; }
.dialog-heading h2 { min-width: 0; font-size: 21px; line-height: 1.4; letter-spacing: -.035em; }
.icon-button { flex: 0 0 36px; width: 36px; height: 36px; margin-left: auto; padding: 0; border: 0; border-radius: 7px; color: #46616c; background: #edf3f5; font-size: 24px; line-height: 1; }
.icon-button:hover { color: #203e4a; background: #deebee; }
.dialog-copy { margin: 12px 0 15px; color: var(--muted); font-size: 14px; line-height: 1.66; }
.field-label { display: block; margin: 11px 0 5px; color: #304e59; font-size: 13px; font-weight: 710; }
input[type="text"], input[type="password"] { display: block; width: 100%; min-width: 0; min-height: 42px; padding: 8px 9px; border: 1px solid #bfcfd6; border-radius: 7px; color: #253e4a; background: #fbfdfd; font-size: 16px; }
.copy-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.copy-row input { font-family: "Cascadia Mono", "Consolas", monospace; font-size: 14px; }
.consent { display: flex; align-items: flex-start; gap: 8px; margin: 13px 0; color: #405862; font-size: 13px; line-height: 1.55; }
.consent input { flex: 0 0 auto; margin: 3px 0 0; width: 16px; height: 16px; accent-color: #285b63; }
.dialog-actions { justify-content: end; margin-top: 15px; }
.form-note { margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.form-note:empty { display: none; }
.form-error { color: #8b2f25; }
.text-button { margin-top: 7px; padding: 4px 0; border: 0; color: #28686c; background: transparent; font-size: 13px; }
.text-button:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1060px) {
  :root { --sidebar-size: 182px; }
  .sidebar { padding-inline: 12px; }
  .frame { padding-inline: 24px; }
  .hero { padding: 25px; gap: 21px 20px; }
}
@media (max-width: 820px) {
  .sidebar { position: static; width: auto; flex-flow: row wrap; align-items: center; justify-content: space-between; padding: 12px 24px; gap: 8px 15px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .brand, .language-picker { margin-inline: 0; }
  .side-nav { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 0; }
  .side-nav a { min-height: 37px; padding: 7px 9px; gap: 7px; font-size: 13px; }
  .sidebar-bottom { display: none; }
  .main { margin-left: 0; }
  .page-bar { min-height: 98px; }
}
@media (max-width: 620px) {
  .sidebar, .frame { padding-inline: 16px; }
  .sidebar { align-items: stretch; flex-direction: column; gap: 8px; }
  .sidebar-header { width: 100%; }
  .page-bar { align-items: start; flex-direction: column; gap: 11px; padding: 18px 0 14px; }
  .page-heading p { margin-top: 5px; font-size: 13px; }
  .page-actions .button { min-height: 40px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 17px; border-radius: 15px; }
  .hero::after { top: -80px; right: -60px; width: 350px; }
  .mode { margin-bottom: 10px; }
  .hero-copy { margin-top: 7px; font-size: 13px; }
  .clock-card { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 6px; padding: 10px 12px; }
  .clock-time { grid-row: 1 / 3; grid-column: 2; font-size: clamp(36px, 11vw, 49px); }
  .clock-zone { grid-row: 2; }
  .pipeline { gap: 6px; }
  .pipeline li { align-items: start; flex-direction: column; gap: 5px; padding: 7px; }
  .pipeline li:not(:last-child)::after { display: none; }
  .pipeline-icon { flex-basis: 28px; width: 28px; height: 28px; }
  .pipeline-icon .glyph { transform: scale(.86); }
  .pipeline strong, .pipeline li div span { font-size: 11px; }
  .metrics { gap: 7px; margin: 12px 0; }
  .metric { gap: 6px; padding: 11px 8px; }
  .metric-heading { align-items: start; flex-direction: column; gap: 4px; }
  .metric-heading h2, .metric > span { font-size: 11px; }
  .metric strong { font-size: 17px; }
  .details { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .panel { padding: 15px; }
  .footer { gap: 9px; margin-top: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
