:root {
  --bg: #f3f7fb;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-solid: #ffffff;
  --line: #dbe5f0;
  --line-soft: #edf2f8;
  --text: #111827;
  --muted: #667085;
  --muted-2: #98a2b3;
  --blue: #2563eb;
  --blue-dark: #1749b8;
  --blue-soft: #eaf2ff;
  --green: #16a34a;
  --green-soft: #eafff2;
  --red: #ef4444;
  --red-soft: #fff0ef;
  --orange: #f59e0b;
  --orange-soft: #fff5df;
  --purple: #7c3aed;
  --purple-soft: #f2edff;
  --teal: #0891b2;
  --teal-soft: #e7fbfd;
  --shadow: 0 18px 48px rgba(36, 60, 92, 0.1);
  --shadow-strong: 0 22px 68px rgba(17, 24, 39, 0.16);
  --radius: 14px;
  --sidebar: 236px;
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    "Noto Sans SC",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(37, 99, 235, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, #f8fbff 0%, #eef4f9 100%);
  background-size:
    48px 48px,
    auto;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

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

button {
  cursor: pointer;
}

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

input,
select,
textarea {
  width: 100%;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  outline: 0;
}

input,
select {
  min-height: 42px;
  padding: 0 12px;
}

textarea {
  min-height: 130px;
  padding: 12px;
  line-height: 1.65;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #8bb8ff;
  box-shadow: 0 0 0 4px rgba(47, 119, 255, 0.13);
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
}

.auth-shell {
  display: block;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 12;
  height: 100vh;
  padding: 20px 14px;
  overflow-y: auto;
  border-right: 1px solid rgba(219, 229, 240, 0.78);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(244, 249, 255, 0.86)),
    linear-gradient(90deg, rgba(37, 99, 235, 0.08), transparent 32%);
  backdrop-filter: blur(20px);
}

.side-brand,
.top-brand,
.logo-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.side-brand {
  min-height: 58px;
  margin-bottom: 18px;
}

.side-brand strong,
.top-brand strong,
.logo-line h1 {
  display: block;
  margin: 0;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
}

.side-brand small,
.top-brand small,
.logo-line p {
  display: block;
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.logo-bulb {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  color: #fff;
  border-radius: 18px;
  background: linear-gradient(135deg, #2774ff 0%, #5c54ff 100%);
  box-shadow: 0 12px 26px rgba(47, 119, 255, 0.28);
}

.logo-bulb.small {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.logo-bulb.mini {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

.logo-bulb svg {
  width: 25px;
  height: 25px;
}

.nav-list {
  display: grid;
  gap: 5px;
  padding-bottom: 20px;
}

.nav-group {
  margin: 18px 13px 7px;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 800;
}

.nav-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: #25304e;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  font-weight: 700;
  text-align: left;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.nav-item:hover,
.nav-item.active {
  color: #1263ff;
  border-color: rgba(37, 99, 235, 0.14);
  background: linear-gradient(90deg, #e2efff, #f2f8ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transform: translateX(2px);
}

.nav-item.active svg {
  stroke-width: 2.4;
}

.nav-item em {
  min-width: 34px;
  padding: 2px 7px;
  color: #8a5a00;
  border-radius: 999px;
  background: var(--orange-soft);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.workspace {
  min-width: 0;
  overflow-x: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 11;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 78px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

.mobile-menu {
  display: none;
}

.top-brand {
  display: none;
}

.search-pill {
  position: relative;
  flex: 1;
  max-width: 690px;
}

.search-pill svg {
  position: absolute;
  top: 50%;
  left: 17px;
  color: var(--muted);
  transform: translateY(-50%);
}

.search-pill input {
  height: 50px;
  padding-left: 50px;
  border-color: #d5e1f2;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.top-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  color: #175cd3;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #edf5ff);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.top-status svg {
  width: 18px;
  height: 18px;
}

.top-tools {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.btn,
.icon-btn,
.text-btn,
.quick-tile,
.round-btn,
.user-chip,
.demo-login button,
.tool-grid button {
  border: 0;
  background: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #5c54ff);
  box-shadow: 0 10px 22px rgba(47, 119, 255, 0.23);
}

.btn.primary:hover {
  background: linear-gradient(135deg, var(--blue-dark), #4a42df);
}

.btn.secondary {
  color: #1263ff;
  background: var(--blue-soft);
}

.btn.ghost {
  color: var(--text);
  border: 1px solid var(--line);
  background: #fff;
}

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

.btn.full {
  width: 100%;
}

.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #111936;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
}

.notify span {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: #fff;
  border-radius: 50%;
  background: #f2333d;
  font-size: 11px;
  font-weight: 900;
}

.user-chip {
  display: grid;
  grid-template-columns: 42px auto;
  grid-template-rows: auto auto;
  column-gap: 9px;
  align-items: center;
  min-width: 142px;
  color: var(--text);
  text-align: left;
}

.user-chip > span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, #222b46, #4c648a);
  font-weight: 900;
}

.user-chip strong {
  font-size: 14px;
}

.user-chip small {
  color: var(--muted);
  font-size: 12px;
}

.content {
  width: 100%;
  max-width: 1320px;
  min-width: 0;
  margin: 0 auto;
  padding: 28px 26px 36px;
  overflow-x: hidden;
}

.busy {
  position: sticky;
  top: 86px;
  z-index: 10;
  margin-bottom: 14px;
  padding: 12px 16px;
  color: #855300;
  border: 1px solid #ffdf91;
  border-radius: 14px;
  background: #fff8e8;
  box-shadow: var(--shadow);
}

.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: stretch;
  min-height: 248px;
  margin-bottom: 18px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(216, 228, 242, 0.86);
  border-radius: 18px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.96), rgba(235, 245, 255, 0.88)),
    linear-gradient(90deg, rgba(37, 99, 235, 0.08), transparent 55%);
  box-shadow: var(--shadow);
}

.hero-copy {
  display: grid;
  align-content: center;
  justify-items: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: #175cd3;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 999px;
  background: var(--blue-soft);
  font-size: 12px;
  font-weight: 900;
}

.hero-band h1 {
  margin: 0 0 12px;
  font-size: 42px;
  line-height: 1.12;
}

.hero-band p {
  max-width: 640px;
  margin: 0;
  color: #53627a;
  font-size: 16px;
  line-height: 1.78;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-console {
  display: grid;
  grid-template-columns: 134px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}

.signal-core,
.console-grid article {
  border: 1px solid rgba(219, 229, 240, 0.72);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 248, 253, 0.82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.signal-core {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  min-height: 190px;
}

.signal-core > span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #fff;
  border-radius: 18px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.22);
}

.signal-core strong {
  font-size: 32px;
}

.signal-core small,
.console-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

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

.console-grid article {
  display: grid;
  align-content: center;
  gap: 5px;
  min-height: 89px;
  padding: 16px;
}

.console-grid b {
  font-size: 26px;
}

.home-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: -2px 0 22px;
}

.command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.75fr) minmax(300px, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.home-metric {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 102px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.home-metric > span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 13px 22px rgba(56, 93, 160, 0.18);
}

.home-metric.blue > span,
.quick-tile.blue svg {
  background: linear-gradient(135deg, #2f89ff, #1b66f2);
}

.home-metric.red > span,
.quick-tile.red svg {
  background: linear-gradient(135deg, #ff6c42, #ff3547);
}

.home-metric.green > span,
.quick-tile.green svg {
  background: linear-gradient(135deg, #52e67d, #18bd56);
}

.home-metric.purple > span,
.quick-tile.purple svg {
  background: linear-gradient(135deg, #a36aff, #6f4dea);
}

.home-metric.orange > span,
.quick-tile.orange svg {
  background: linear-gradient(135deg, #ffc746, #ffa115);
}

.home-metric strong {
  display: block;
  font-size: 25px;
}

.home-metric small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-weight: 800;
}

.home-metric em {
  display: block;
  margin-top: 8px;
  color: #0ca85a;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 16px;
  align-items: start;
}

.flow-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
}

.flow-node {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 8px;
  min-height: 118px;
  padding: 14px;
  overflow: hidden;
  color: var(--text);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #fff;
  text-align: left;
}

.flow-node::after {
  position: absolute;
  right: -28px;
  bottom: -34px;
  width: 86px;
  height: 86px;
  border-radius: 18px;
  background: currentColor;
  opacity: 0.08;
  transform: rotate(18deg);
  content: "";
}

.flow-node i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #fff;
  border-radius: 9px;
  background: #94a3b8;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.flow-node strong {
  font-size: 27px;
}

.flow-node span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.flow-node.blue i {
  background: var(--blue);
}

.flow-node.red i {
  background: var(--red);
}

.flow-node.green i {
  background: var(--green);
}

.flow-node.orange i {
  background: var(--orange);
}

.flow-node.purple i {
  background: var(--purple);
}

.readiness-list {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.readiness-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 42px;
}

.readiness-list strong {
  font-size: 14px;
}

.readiness-list article > span:not(.badge) {
  grid-column: 2;
  margin-top: -8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.knowledge-bars {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.knowledge-bars button {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 0;
  color: var(--text);
  border: 0;
  background: transparent;
  text-align: left;
}

.knowledge-bars span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.knowledge-bars i {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f7;
}

.knowledge-bars b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--teal));
}

.knowledge-bars strong {
  font-size: 13px;
  text-align: right;
}

.quick-panel {
  grid-column: 1 / 2;
}

.glass-card {
  min-width: 0;
  border: 1px solid rgba(220, 232, 246, 0.86);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.card-title,
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.card-title {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line-soft);
}

.card-title.no-border {
  border-bottom: 0;
}

.card-title.compact {
  padding: 18px 0 10px;
  border-bottom: 0;
}

.card-title h2,
.card-title h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 18px;
}

.card-title span,
.meta-line,
.source-row span,
.article-row span,
.material-row span,
.publish-row span,
.result-row span,
.job-row span,
.log-row span,
.topic-line span,
.mini-row span {
  color: var(--muted);
  font-size: 13px;
}

.text-btn {
  color: #587096;
  font-weight: 900;
}

.hot-table,
.news-list,
.list-stack,
.topic-list-page,
.hot-workbench {
  display: grid;
  gap: 10px;
  padding: 14px 16px 16px;
}

.hot-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto 96px;
  gap: 14px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
}

.hot-row:last-child {
  border-bottom: 0;
}

.rank {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #fff;
  border-radius: 8px;
  background: #b8c2d2;
  font-size: 14px;
  font-weight: 900;
}

.rank.hot {
  background: linear-gradient(135deg, #ff6558, #ff2e47);
}

.rank.big {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  font-size: 20px;
}

.hot-info {
  min-width: 0;
}

.hot-info strong {
  display: block;
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hot-info small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.thumb-card {
  display: grid;
  place-items: center;
  width: 96px;
  height: 58px;
  overflow: hidden;
  color: #fff;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 900;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.18);
}

.thumb-card.blue {
  background: linear-gradient(135deg, #7ab5ff, #236fff);
}

.thumb-card.green {
  background: linear-gradient(135deg, #6ee7a3, #13b65b);
}

.thumb-card.teal {
  background: linear-gradient(135deg, #7ce8ee, #13a0aa);
}

.thumb-card.purple {
  background: linear-gradient(135deg, #bb94ff, #714ce9);
}

.thumb-card.orange {
  background: linear-gradient(135deg, #ffd876, #ff9e1b);
}

.calendar-card {
  grid-column: 2;
  grid-row: 1 / 3;
  padding-bottom: 18px;
}

.calendar-month {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 18px 10px;
}

.calendar-month strong {
  font-size: 20px;
}

.round-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--blue);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  font-size: 22px;
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  padding: 0 18px 12px;
}

.month-grid span {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 31px;
  color: #263250;
  border-radius: 50%;
  font-size: 13px;
}

.month-grid .week,
.month-grid .outside {
  color: var(--muted-2);
}

.month-grid .active {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #5b5cff);
  font-weight: 900;
}

.month-grid .has-event::after {
  position: absolute;
  bottom: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--orange);
  content: "";
}

.today-list {
  padding: 0 18px;
}

.agenda-row {
  display: grid;
  grid-template-columns: 48px 10px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 38px;
  color: #23304f;
}

.agenda-row time {
  font-size: 13px;
}

.agenda-row strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot.c0 {
  background: var(--orange);
}

.dot.c1 {
  background: #ff7a00;
}

.dot.c2 {
  background: var(--green);
}

.dot.c3 {
  background: var(--blue);
}

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

.quick-tile {
  display: grid;
  gap: 7px;
  min-height: 106px;
  padding: 16px;
  border-radius: 12px;
  text-align: left;
}

.quick-tile.blue {
  background: #eaf4ff;
}

.quick-tile.green {
  background: #ebfbf0;
}

.quick-tile.purple {
  background: #f3edff;
}

.quick-tile.orange {
  background: #fff5e5;
}

.quick-tile svg {
  width: 28px;
  height: 28px;
  padding: 5px;
  color: #fff;
  border-radius: 8px;
}

.quick-tile strong {
  font-size: 15px;
}

.quick-tile span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.bottom-grid,
.content-grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.bottom-grid {
  grid-template-columns: 1.1fr 0.92fr 0.98fr;
}

.content-grid {
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.9fr);
}

.side-stack {
  display: grid;
  gap: 16px;
  align-content: start;
  min-width: 0;
}

.chart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 12px;
  min-height: 170px;
  padding: 20px 24px 18px;
  border-bottom: 1px solid var(--line-soft);
}

.chart div {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.chart span {
  width: 10px;
  min-height: 12px;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, #2f77ff, #7ab5ff);
}

.chart small {
  color: var(--muted);
  font-size: 12px;
}

.tabs {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border-radius: 999px;
  background: #edf4ff;
}

.tabs button {
  min-height: 26px;
  padding: 0 10px;
  color: var(--muted);
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 12px;
  font-weight: 900;
}

.tabs button.active {
  color: var(--blue);
  background: #fff;
}

.progress-card {
  display: grid;
  align-content: start;
}

.donut {
  display: grid;
  place-items: center;
  width: 160px;
  height: 160px;
  margin: 22px auto 14px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 54%, transparent 55%),
    conic-gradient(var(--green) calc(var(--p) * 1%), #abd6ff 0 76%, var(--orange) 0 88%, var(--blue) 0);
}

.donut strong {
  font-size: 26px;
}

.donut span {
  margin-top: -26px;
  color: var(--muted);
  font-size: 12px;
}

.progress-legend {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 12px;
  padding: 0 22px 20px;
}

.progress-legend p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.progress-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
}

i.green {
  background: var(--green);
}

i.blue {
  background: var(--blue);
}

i.orange {
  background: var(--orange);
}

i.purple {
  background: var(--purple);
}

.domain-tags,
.tag-line,
.table-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.domain-tags {
  padding: 0 20px 16px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 0 20px 20px;
}

.tool-grid button {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-height: 66px;
  color: var(--muted);
  border-radius: 12px;
  background: #f2f7ff;
  font-size: 12px;
  font-weight: 900;
}

.tool-grid svg {
  color: var(--blue);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.badge.blue {
  color: #1263ff;
  background: var(--blue-soft);
}

.badge.green,
.badge.good {
  color: #088341;
  background: var(--green-soft);
}

.badge.red,
.badge.bad {
  color: #db2f26;
  background: var(--red-soft);
}

.badge.orange,
.badge.warn {
  color: #a86500;
  background: var(--orange-soft);
}

.badge.purple,
.badge.note {
  color: #7647e8;
  background: var(--purple-soft);
}

.badge.teal {
  color: #09838b;
  background: var(--teal-soft);
}

.badge.plain {
  color: var(--muted);
  background: #edf3f8;
}

.page-head {
  margin-bottom: 18px;
}

.page-head p {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 14px;
}

.page-head h1 {
  margin: 0;
  font-size: 34px;
}

.head-actions,
.row-actions,
.action-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.news-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}

.news-card:last-child {
  border-bottom: 0;
}

.news-card h3,
.topic-card h2 {
  margin: 0 0 8px;
  font-size: 17px;
}

.news-card p,
.topic-card p,
.idea-card p,
.notice-card p,
.material-row p,
.result-row p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.65;
}

.meta-line {
  margin: 0 0 10px;
}

.source-row,
.fact-row,
.article-row,
.material-row,
.publish-row,
.result-row,
.job-row,
.log-row,
.topic-line,
.user-row,
.mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border-radius: 12px;
  background: #f8fbff;
}

.source-row strong,
.fact-row strong,
.article-row strong,
.material-row strong,
.publish-row strong,
.result-row strong,
.job-row strong,
.topic-line strong,
.mini-row strong,
.user-row strong {
  display: block;
  margin-bottom: 4px;
}

.publish-row p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.material-tools {
  display: grid;
  justify-items: end;
  gap: 10px;
  min-width: 190px;
}

.mini-checks {
  display: grid;
  gap: 8px;
  padding: 0 18px 12px;
}

.mini-checks article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f8fbff;
}

.mini-checks span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.audit-panel {
  margin-top: 16px;
}

.btn.danger,
.btn.ghost.danger {
  color: var(--red);
  border-color: rgba(238, 75, 91, 0.24);
  background: #fff6f7;
}

.topic-line > div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.hot-detail {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 4px;
  padding: 18px;
}

.detail-list,
.compact-dl {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
}

.detail-list div,
.compact-dl div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
}

dt {
  color: var(--muted);
  font-weight: 900;
}

dd {
  margin: 0;
  line-height: 1.65;
}

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

.idea-card,
.draft-card,
.script-card,
.knowledge-card,
.notice-card {
  padding-bottom: 16px;
}

.idea-card p,
.draft-card p,
.script-card p,
.notice-card p {
  padding: 0 18px;
}

.idea-card .tag-line,
.idea-card .action-bar,
.draft-card .action-bar,
.script-card .action-bar {
  padding: 0 18px;
}

.draft-card textarea {
  width: calc(100% - 36px);
  min-height: 190px;
  margin: 0 18px 12px;
}

.form-grid,
.style-form,
.login-form {
  display: grid;
  gap: 14px;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 16px 18px 18px;
}

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

.style-form {
  grid-template-columns: 1fr 1fr 1.4fr auto;
  align-items: end;
  padding: 16px 18px 18px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.ai-settings-card .form-grid {
  padding-top: 0;
}

.ai-preset {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 16px 18px;
  padding: 16px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 14px;
  background: linear-gradient(135deg, #eff6ff, #ffffff);
}

.ai-preset strong,
.ai-guide strong {
  display: block;
  margin-bottom: 6px;
}

.ai-preset span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  font-weight: 800;
}

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

.provider-tile {
  display: grid;
  justify-items: start;
  gap: 8px;
  min-height: 118px;
  padding: 14px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbff;
  text-align: left;
}

.provider-tile.active {
  border-color: rgba(47, 119, 255, 0.46);
  background: #eff6ff;
  box-shadow: 0 10px 28px rgba(47, 119, 255, 0.12);
}

.provider-tile strong {
  font-size: 15px;
}

.provider-tile span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.ai-guide {
  padding: 18px;
}

.ai-guide p {
  padding: 0;
  margin-bottom: 18px;
}

.ai-guide p:last-child {
  margin-bottom: 0;
}

.topic-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 18px;
}

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

.day-card {
  min-height: 260px;
  padding: 14px;
}

.day-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.calendar-item {
  display: grid;
  gap: 5px;
  margin-bottom: 8px;
  padding: 10px;
  border-radius: 12px;
  background: var(--blue-soft);
}

.calendar-item.social {
  background: var(--blue-soft);
}

.calendar-item.wechat {
  background: var(--green-soft);
}

.calendar-item.video {
  background: var(--purple-soft);
}

.calendar-item.expiry {
  background: var(--orange-soft);
}

.calendar-item strong {
  font-size: 13px;
  line-height: 1.45;
}

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

.table-tags {
  padding: 18px;
}

.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, #222b46, #4c648a);
  font-weight: 900;
}

.user-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
}

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

.empty.small {
  padding: 12px;
  font-size: 13px;
}

.login-page,
.boot-page {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

.login-page {
  grid-template-columns: minmax(0, 620px);
  gap: 18px;
  align-content: start;
  justify-items: stretch;
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 18px 36px;
}

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

.login-brand h2 {
  width: min(100%, 720px);
  max-width: 720px;
  margin: 28px 0 14px;
  font-size: 38px;
  line-height: 1.16;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.login-brand h2 span {
  display: block;
}

.login-lead {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 700;
}

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

.login-metrics article,
.login-panel,
.boot-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.login-metrics article {
  padding: 18px;
}

.login-metrics strong {
  display: block;
  font-size: 25px;
}

.login-metrics span {
  color: var(--muted);
  font-weight: 800;
}

.login-panel {
  width: min(100%, 430px);
  padding: 24px;
  justify-self: start;
}

.panel-heading p {
  margin: 0 0 6px;
  color: var(--blue);
  font-weight: 900;
}

.panel-heading h2 {
  margin: 0 0 24px;
  font-size: 30px;
}

.demo-login {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.demo-login button {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 13px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.demo-login span,
.login-note {
  color: var(--muted);
}

.login-note {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.6;
}

.boot-page {
  place-items: center;
  padding: 20px;
}

.boot-card {
  width: min(480px, 100%);
  padding: 30px;
  text-align: center;
}

.boot-card h1 {
  margin: 18px 0 8px;
}

.boot-card p {
  margin: 0;
  color: var(--muted);
}

.boot-card.error svg {
  color: var(--red);
}

.modal {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.modal::backdrop {
  background: rgba(18, 27, 58, 0.34);
}

.modal-card {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.modal-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.modal-card header p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
}

.modal-card h2 {
  margin: 0;
}

.article-modal .long-text,
.modal-card .long-text {
  min-height: 300px;
}

.citation-box {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbff;
}

.citation-box p {
  margin: 10px 0 0;
  color: var(--muted);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  max-width: min(380px, calc(100vw - 44px));
  padding: 12px 16px;
  color: #fff;
  border-radius: 14px;
  background: #17203b;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

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

@media (min-width: 1100px) {
  .login-page {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
    gap: 28px;
    align-items: center;
    align-content: center;
    max-width: 1180px;
    padding: clamp(32px, 4vw, 56px);
  }

  .login-brand h2 {
    font-size: 50px;
  }

  .login-lead {
    font-size: 18px;
  }

  .login-panel {
    justify-self: end;
  }
}

@media (max-width: 1180px) {
  .login-page {
    grid-template-columns: minmax(0, 620px);
    align-content: start;
    justify-items: stretch;
    max-width: 720px;
    padding: 24px 18px 34px;
  }

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

  .login-brand h2 {
    margin-top: 28px;
    font-size: 38px;
  }

  .login-lead,
  .login-metrics {
    max-width: none;
  }

  .login-panel {
    justify-self: stretch;
    width: 100%;
  }

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

  .home-layout,
  .content-grid,
  .bottom-grid,
  .command-grid {
    grid-template-columns: 1fr;
  }

  .calendar-card,
  .quick-panel {
    grid-column: auto;
    grid-row: auto;
  }

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

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

  .hero-band {
    grid-template-columns: 1fr;
  }

  .hero-console {
    grid-template-columns: minmax(150px, 0.38fr) minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  :root {
    --sidebar: 0px;
  }

  body {
    background: linear-gradient(180deg, #f7fbff 0%, #eef7ff 100%);
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(286px, calc(100vw - 42px));
    transform: translateX(-104%);
    transition: transform 0.2s ease;
    box-shadow: var(--shadow);
  }

  .nav-open .sidebar {
    transform: translateX(0);
  }

  .mobile-menu {
    display: inline-grid;
    flex: 0 0 auto;
  }

  .topbar {
    gap: 10px;
    min-height: 66px;
    padding: 10px 12px;
  }

  .top-brand {
    display: flex;
    min-width: 0;
  }

  .top-brand .mini {
    display: grid;
  }

  .top-brand strong {
    font-size: 16px;
  }

  .top-brand small {
    display: none;
  }

  .search-pill {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }

  .search-pill input {
    height: 44px;
  }

  .top-tools {
    gap: 6px;
  }

  .top-tools .icon-btn {
    display: none;
  }

  .top-status {
    display: none;
  }

  .user-chip {
    min-width: auto;
    grid-template-columns: 36px;
  }

  .user-chip strong,
  .user-chip small {
    display: none;
  }

  .user-chip > span {
    width: 36px;
    height: 36px;
  }

  .content {
    padding: 14px 12px 24px;
  }

  .hero-band {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 24px 18px;
  }

  .hero-console {
    grid-template-columns: 1fr;
  }

  .hero-band h1 {
    font-size: 30px;
  }

  .hero-band p {
    font-size: 15px;
  }

  .page-head h1 {
    font-size: 28px;
  }

  .home-metrics,
  .card-grid,
  .quick-grid,
  .flow-track,
  .week-grid,
  .form-grid,
  .style-form,
  .login-metrics {
    grid-template-columns: 1fr;
  }

  .ai-preset {
    grid-template-columns: 1fr;
  }

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

  .home-metric {
    min-height: 86px;
  }

  .hot-row {
    grid-template-columns: 34px minmax(0, 1fr) auto;
  }

  .hot-row .thumb-card {
    display: none;
  }

  .news-card,
  .topic-card,
  .hot-detail,
  .detail-list div,
  .compact-dl div,
  .user-row {
    grid-template-columns: 1fr;
  }

  .news-card > .thumb-card {
    display: none;
  }

  .row-actions,
  .action-bar,
  .head-actions,
  .page-head,
  .card-title,
  .source-row,
  .fact-row,
  .article-row,
  .material-row,
  .publish-row,
  .result-row,
  .job-row,
  .log-row,
  .topic-line {
    align-items: stretch;
    flex-direction: column;
  }

  .material-tools {
    justify-items: stretch;
    min-width: 0;
  }

  .row-actions .btn,
  .action-bar .btn,
  .head-actions .btn {
    width: 100%;
  }

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

  .login-brand h2 {
    font-size: 32px;
  }

  .login-lead {
    font-size: 15px;
  }

  .login-panel {
    padding: 20px;
  }
}

@media (max-width: 520px) {
  .login-page {
    padding: 18px 14px 28px;
  }

  .login-brand h2 {
    margin: 22px 0 10px;
    font-size: 28px;
    line-height: 1.18;
  }

  .login-lead {
    font-size: 14px;
    line-height: 1.7;
  }

  .login-metrics {
    display: none;
  }

  .login-panel {
    padding: 18px;
    border-radius: 16px;
  }

  .panel-heading h2 {
    font-size: 24px;
  }

  .demo-login button {
    align-items: flex-start;
    flex-direction: column;
  }

  .content {
    padding-inline: 10px;
  }

  .home-metric {
    padding: 14px;
  }

  .home-metric > span {
    width: 48px;
    height: 48px;
  }

  .month-grid {
    gap: 3px;
    padding-inline: 12px;
  }

  .month-grid span {
    min-height: 29px;
    font-size: 12px;
  }

  .agenda-row {
    grid-template-columns: 44px 8px minmax(0, 1fr);
  }

  .agenda-row .badge {
    grid-column: 3;
    justify-self: start;
  }

  .toast {
    right: 12px;
    bottom: 12px;
  }
}

/* Final login-page guard: keep the public entry readable in every browser width. */
#app .login-page {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  width: min(100%, 540px) !important;
  max-width: 540px !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  margin: 0 auto !important;
  padding: 32px 16px 40px !important;
  gap: 18px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

#app .login-brand,
#app .login-panel {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  justify-self: auto !important;
  writing-mode: horizontal-tb !important;
}

#app .login-brand .logo-line {
  grid-template-columns: 54px minmax(0, 1fr) !important;
  align-items: center !important;
}

#app .login-brand h2 {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 22px 0 10px !important;
  font-size: 30px !important;
  line-height: 1.35 !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  text-wrap: auto !important;
  writing-mode: horizontal-tb !important;
}

#app .login-brand h2 span {
  display: inline !important;
}

#app .login-lead {
  max-width: none !important;
  font-size: 15px !important;
  line-height: 1.75 !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  writing-mode: horizontal-tb !important;
}

#app .login-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  max-width: none !important;
  margin-top: 18px !important;
}

#app .login-panel {
  padding: 22px !important;
}

@media (max-width: 520px) {
  #app .login-page {
    width: 100% !important;
    max-width: none !important;
    padding: 20px 14px 30px !important;
  }

  #app .login-brand h2 {
    font-size: 26px !important;
  }

  #app .login-metrics {
    display: none !important;
  }
}
