:root {
  --bg: #edf1f3;
  --side: #151d22;
  --side-2: #202a30;
  --panel: #ffffff;
  --ink: #182028;
  --muted: #64717d;
  --line: #dbe2e8;
  --soft: #f6f8fa;
  --green: #127466;
  --blue: #2c64a5;
  --cyan: #0b7f95;
  --violet: #635b8f;
  --amber: #a86600;
  --red: #a43d3d;
  --shadow: 0 14px 34px rgba(24, 32, 40, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
}

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

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr);
}

.side {
  background: var(--side);
  color: #f4f7f8;
  padding: 22px 18px;
  display: grid;
  align-content: start;
  gap: 22px;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: #dce9e5;
  color: var(--green);
  border-radius: 8px;
  font-size: 24px;
  font-weight: 800;
}

.brand-kicker {
  color: #9bcabf;
  font-size: 12px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 23px;
  line-height: 1.2;
}

h2 {
  font-size: 28px;
  line-height: 1.2;
}

h3 {
  font-size: 17px;
  line-height: 1.35;
}

.nav {
  display: grid;
  gap: 10px;
}

.nav-btn {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--side-2);
  color: #eef3f5;
  border-radius: 8px;
  padding: 12px;
  text-align: left;
  cursor: pointer;
}

.nav-btn span {
  display: block;
  font-size: 15px;
  font-weight: 800;
}

.nav-btn small {
  display: block;
  margin-top: 4px;
  color: #aeb9c2;
  font-size: 12px;
}

.nav-btn.active {
  background: var(--green);
  border-color: var(--green);
}

.nav-btn.active small {
  color: #d8efea;
}

.side-block {
  display: grid;
  gap: 10px;
}

.side-title {
  color: #c8d2d8;
  font-size: 13px;
  font-weight: 800;
}

.filter-list,
.pill-list {
  display: grid;
  gap: 8px;
}

.filter-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #f4f7f8;
  border-radius: 8px;
  padding: 9px 10px;
  text-align: left;
  cursor: pointer;
}

.filter-btn.active {
  background: #f4f7f8;
  color: var(--ink);
}

.pill {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 10px;
}

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

.pill span {
  display: block;
  margin-top: 4px;
  color: #aeb9c2;
  font-size: 12px;
}

.main {
  min-width: 0;
  padding: 22px;
  display: grid;
  align-content: start;
  gap: 16px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.mode-note,
.muted {
  color: var(--muted);
  font-size: 13px;
}

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

.btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  padding: 9px 12px;
  cursor: pointer;
}

.btn.accent {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.btn.small {
  padding: 6px 8px;
  font-size: 12px;
}

.btn:disabled {
  cursor: wait;
  opacity: 0.65;
}

.banner {
  border: 1px solid #e3c174;
  background: #fff7e5;
  color: #6e4a06;
  border-radius: 8px;
  padding: 10px 12px;
}

.hidden {
  display: none;
}

.page {
  display: none;
}

.page.active {
  display: grid;
  gap: 16px;
}

.project-hero {
  min-height: 312px;
  position: relative;
  overflow: hidden;
  border: 1px solid #263640;
  border-radius: 8px;
  background: #10171d;
  box-shadow: var(--shadow);
}

.project-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 18, 24, 0.88) 0%, rgba(12, 18, 24, 0.58) 42%, rgba(12, 18, 24, 0.14) 100%),
    linear-gradient(0deg, rgba(12, 18, 24, 0.72) 0%, rgba(12, 18, 24, 0.05) 56%);
}

.project-hero-copy {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 32px));
  padding: 24px;
  display: grid;
  gap: 16px;
}

.hero-kicker {
  color: #7fd0c3;
  font-size: 12px;
  font-weight: 900;
}

.project-hero h3 {
  color: #fff;
  font-size: 34px;
  line-height: 1.18;
}

.hero-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(96px, 1fr));
  gap: 8px;
}

.hero-flow-item {
  min-height: 76px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  padding: 10px;
  display: grid;
  align-content: space-between;
}

.hero-flow-item span,
.hero-stat span {
  color: rgba(238, 246, 248, 0.72);
  font-size: 12px;
}

.hero-flow-item strong {
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
}

.hero-flow-item.online {
  border-color: rgba(63, 203, 154, 0.36);
}

.hero-flow-item.pending {
  border-color: rgba(240, 178, 82, 0.38);
}

.hero-flow-item.manual {
  border-color: rgba(113, 160, 214, 0.42);
}

.hero-stat-strip {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(112px, 1fr));
  gap: 8px;
}

.hero-stat {
  min-height: 76px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(13, 20, 26, 0.76);
  padding: 10px;
}

.hero-stat strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 26px;
  line-height: 1;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 12px;
}

.kpi-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  min-height: 104px;
  box-shadow: var(--shadow);
}

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

.kpi-value {
  margin-top: 8px;
  font-size: 30px;
  line-height: 1;
  font-weight: 850;
}

.kpi-sub {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

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

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

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

.panel-head {
  min-height: 54px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
}

.matrix,
.control-grid,
.task-list,
.mini-cards,
.trend-board,
.account-list,
.reply-list,
.connection-list {
  padding: 14px;
  display: grid;
  gap: 10px;
}

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

.short-op-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  display: grid;
  gap: 10px;
  min-width: 0;
}

.short-op-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.short-op-top strong,
.short-op-top span {
  display: block;
}

.short-op-top span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.mini-light {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  margin-top: 3px;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(168, 102, 0, 0.12);
}

.mini-light.online {
  background: #18a866;
  box-shadow: 0 0 0 4px rgba(24, 168, 102, 0.13);
}

.mini-light.offline {
  background: #d94b4b;
  box-shadow: 0 0 0 4px rgba(217, 75, 75, 0.12);
}

.short-op-flow {
  display: grid;
  grid-template-columns: auto minmax(12px, 1fr) auto minmax(12px, 1fr) auto minmax(12px, 1fr) auto;
  align-items: center;
  gap: 6px;
  color: #40505a;
  font-size: 12px;
}

.short-op-flow i {
  height: 1px;
  background: var(--line);
}

.cookie-console-panel .panel-head {
  align-items: flex-start;
}

.cookie-console {
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 14px;
}

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

.cookie-input-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 12px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.field-label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.cookie-input-box select,
.cookie-input-box textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 9px 10px;
}

.cookie-input-box textarea {
  min-height: 118px;
  resize: vertical;
  font-family: Consolas, "Microsoft YaHei", monospace;
  font-size: 12px;
  line-height: 1.5;
}

.cookie-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.cookie-light-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 322px;
  overflow: auto;
}

.cookie-light-row {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.cookie-light-row:hover,
.cookie-light-row.selected {
  border-color: #7aa6c9;
  box-shadow: 0 0 0 3px rgba(44, 100, 165, 0.11);
}

.cookie-light {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.cookie-light::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.72);
}

.cookie-light.online {
  background: #18a866;
  box-shadow: 0 0 0 4px rgba(24, 168, 102, 0.13), 0 0 14px rgba(24, 168, 102, 0.42);
}

.cookie-light.offline {
  background: #d94b4b;
  box-shadow: 0 0 0 4px rgba(217, 75, 75, 0.13), 0 0 14px rgba(217, 75, 75, 0.28);
}

.cookie-light.pending {
  background: #d99223;
  box-shadow: 0 0 0 4px rgba(217, 146, 35, 0.13), 0 0 14px rgba(217, 146, 35, 0.26);
}

.cookie-light-main {
  min-width: 0;
}

.cookie-light-main strong,
.cookie-light-main span {
  display: block;
}

.cookie-light-main span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cookie-state-text {
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.cookie-state-text.online {
  background: #e5f6ed;
  color: #147348;
}

.cookie-state-text.offline {
  background: #ffe9e9;
  color: var(--red);
}

.cookie-state-text.pending {
  background: #fff4dc;
  color: var(--amber);
}

.cookie-last {
  grid-column: 2 / -1;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

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

.matrix-card,
.control-card,
.task-card,
.own-card,
.reply-card,
.connection-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  min-width: 0;
}

.control-grid {
  padding: 14px;
  display: grid;
  gap: 12px;
}

.control-card {
  display: grid;
  gap: 12px;
}

.control-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

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

.control-head span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.control-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.control-metric {
  background: var(--soft);
  border-radius: 8px;
  padding: 9px;
}

.control-metric span,
.control-metric small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.control-metric strong {
  display: block;
  margin: 5px 0;
  font-size: 22px;
}

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

.signal-strip span {
  border-radius: 999px;
  background: #eef4f6;
  color: #40505a;
  padding: 4px 8px;
  font-size: 12px;
}

.card-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.card-title strong {
  min-width: 0;
}

.meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.line-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.text-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: #eef1f4;
  color: #4f5a65;
  white-space: nowrap;
}

.badge.ok {
  background: #e7f4ec;
  color: #237743;
}

.badge.warn {
  background: #fff4dc;
  color: var(--amber);
}

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

.badge.info {
  background: #e8f0fb;
  color: var(--blue);
}

.radar-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.radar-head p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.legend {
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.dot {
  width: 9px;
  height: 9px;
  display: inline-block;
  border-radius: 999px;
  margin-right: 5px;
}

.dot.hot {
  background: var(--red);
}

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

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

.ticker {
  min-height: 128px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #111820;
}

.ticker-track {
  display: flex;
  gap: 10px;
  padding: 12px;
  min-width: max-content;
  animation: ticker 42s linear infinite;
}

.ticker-card {
  width: 310px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #1d2831;
  color: #fff;
  border-radius: 8px;
  padding: 12px;
}

.ticker-card .meta {
  color: #b7c4cd;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

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

.trend-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  display: grid;
  gap: 12px;
  min-width: 0;
}

.platform-module {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.platform-module-head {
  min-height: 64px;
  padding: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
}

.platform-module-head p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.trend-list {
  display: grid;
}

.trend-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #edf1f4;
  cursor: pointer;
}

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

.trend-row:hover {
  background: #f7fafb;
}

.trend-row-main p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.link-title {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-weight: 800;
  line-height: 1.4;
  cursor: pointer;
}

.trend-row-stats {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.trend-row-stats span {
  border-radius: 999px;
  background: var(--soft);
  color: #4a5964;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
}

.score-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.score {
  border-radius: 8px;
  background: var(--soft);
  padding: 9px;
}

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

.score strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.comment-box {
  max-height: 86px;
  overflow: auto;
  background: #f4faf8;
  border: 1px solid #d8ebe5;
  border-radius: 8px;
  padding: 9px;
  color: #33433f;
  font-size: 12px;
  line-height: 1.55;
}

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

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

.own-card .stats {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.stat {
  background: var(--soft);
  border-radius: 8px;
  padding: 8px;
}

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

.stat strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  padding: 10px 12px;
  background: #182027;
  color: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

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

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 31, 0.52);
}

.modal-card {
  position: relative;
  width: min(860px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(12, 18, 24, 0.32);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
}

.modal-body {
  padding: 16px;
  display: grid;
  gap: 14px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.6fr);
  gap: 12px;
}

.detail-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.detail-section h4 {
  margin: 0 0 8px;
  font-size: 14px;
}

.detail-section p {
  color: #34424c;
  line-height: 1.7;
  font-size: 14px;
}

.empty {
  padding: 18px;
  color: var(--muted);
}

@media (max-width: 1240px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .side {
    position: static;
    gap: 14px;
  }

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

  .nav-btn {
    min-height: 66px;
  }

  .side-block {
    display: none;
  }

  .filter-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .kpi-grid,
  .matrix,
  .control-grid,
  .cookie-console,
  .short-ops,
  .trend-board,
  .screen-grid,
  .account-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 720px) {
  .main,
  .side {
    padding: 14px;
  }

  .top,
  .radar-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-hero {
    min-height: auto;
  }

  .project-hero-copy {
    width: 100%;
    padding: 18px;
  }

  .project-hero h3 {
    font-size: 27px;
  }

  .hero-flow,
  .hero-stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-flow-item {
    min-height: 62px;
  }

  .hero-stat {
    min-height: 64px;
  }

  .hero-stat strong {
    font-size: 22px;
  }

  .hero-stat-strip {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin: 0 18px 18px;
  }

  .kpi-grid,
  .matrix,
  .control-grid,
  .cookie-console,
  .cookie-light-grid,
  .short-ops,
  .trend-board,
  .screen-grid,
  .account-list,
  .mini-cards,
  .filter-list {
    grid-template-columns: 1fr;
  }

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

  .trend-row,
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .hero-flow,
  .hero-stat-strip {
    grid-template-columns: 1fr;
  }
}

/* Tech cockpit redesign */
:root {
  --bg: #071018;
  --side: #09131c;
  --side-2: #0d1a25;
  --panel: rgba(10, 24, 34, 0.86);
  --ink: #e8f3f6;
  --muted: #86a0aa;
  --line: rgba(84, 139, 156, 0.24);
  --soft: rgba(18, 42, 55, 0.72);
  --green: #18c790;
  --blue: #4ca3ff;
  --cyan: #1fd1d1;
  --amber: #f1ae4f;
  --red: #ff6262;
  --shadow: 0 18px 52px rgba(0, 0, 0, 0.32);
}

body {
  background:
    linear-gradient(rgba(31, 209, 209, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 209, 209, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, rgba(31, 209, 209, 0.08), transparent 42%),
    #071018;
  background-size: 34px 34px, 34px 34px, auto, auto;
}

.side {
  border-right: 1px solid rgba(31, 209, 209, 0.18);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04);
}

.brand-mark {
  background: rgba(31, 209, 209, 0.13);
  color: #7ff4e7;
  border: 1px solid rgba(31, 209, 209, 0.36);
  box-shadow: 0 0 28px rgba(31, 209, 209, 0.18);
}

.nav-btn,
.filter-btn,
.pill {
  background: rgba(15, 31, 43, 0.86);
  border-color: rgba(112, 179, 197, 0.18);
}

.nav-btn.active,
.filter-btn.active {
  background: linear-gradient(135deg, rgba(18, 199, 145, 0.92), rgba(22, 137, 156, 0.92));
  color: #f4fffd;
  border-color: rgba(125, 244, 231, 0.42);
  box-shadow: 0 0 30px rgba(24, 199, 144, 0.18);
}

.main {
  gap: 18px;
}

.top {
  color: var(--ink);
}

.mode-note,
.muted,
.meta,
.kpi-label,
.kpi-sub {
  color: var(--muted);
}

.btn {
  background: rgba(12, 30, 42, 0.82);
  color: var(--ink);
  border-color: rgba(122, 198, 214, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.btn.accent {
  background: linear-gradient(135deg, #14a579, #128ea4);
  border-color: rgba(127, 244, 231, 0.48);
  box-shadow: 0 0 24px rgba(20, 165, 121, 0.24);
}

.project-hero {
  min-height: 378px;
  border-color: rgba(31, 209, 209, 0.32);
  background:
    linear-gradient(135deg, rgba(8, 18, 27, 0.94), rgba(10, 29, 39, 0.94)),
    #08121b;
}

.cockpit-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(31, 209, 209, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 209, 209, 0.09) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.24));
}

.cockpit-beams {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(112deg, transparent 0 20%, rgba(31, 209, 209, 0.18) 20.2%, transparent 20.8% 47%, rgba(76, 163, 255, 0.14) 47.2%, transparent 48%),
    linear-gradient(25deg, transparent 0 54%, rgba(24, 199, 144, 0.16) 54.2%, transparent 55%),
    repeating-linear-gradient(90deg, transparent 0 88px, rgba(255, 255, 255, 0.035) 88px 89px);
  opacity: 0.95;
}

.project-hero-image,
.project-hero-shade {
  display: none;
}

.project-hero-copy {
  width: min(620px, 58%);
  padding: 28px;
}

.hero-kicker {
  color: #7ff4e7;
  letter-spacing: 0.08em;
}

.project-hero h3 {
  font-size: 38px;
  text-shadow: 0 0 28px rgba(31, 209, 209, 0.22);
}

.hero-flow {
  grid-template-columns: repeat(5, minmax(84px, 1fr));
}

.hero-flow-item,
.hero-stat,
.kpi-card,
.panel,
.control-card,
.task-card,
.own-card,
.reply-card,
.connection-card,
.short-op-card,
.cookie-input-box,
.cookie-light-row,
.platform-module,
.radar-head,
.detail-section {
  background:
    linear-gradient(180deg, rgba(23, 55, 70, 0.72), rgba(9, 24, 34, 0.86));
  border: 1px solid rgba(102, 180, 199, 0.22);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 18px 42px rgba(0, 0, 0, 0.2);
}

.hero-flow-item {
  min-height: 70px;
  position: relative;
  overflow: hidden;
}

.hero-flow-item::before,
.kpi-card::before,
.panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 42%;
  height: 1px;
  background: linear-gradient(90deg, rgba(127, 244, 231, 0.9), transparent);
}

.hero-flow-item.online,
.hero-flow-item.pending,
.hero-flow-item.manual {
  border-color: rgba(31, 209, 209, 0.34);
}

.platform-constellation {
  position: absolute;
  right: 24px;
  top: 24px;
  bottom: 112px;
  width: min(46%, 560px);
  display: grid;
  grid-template-columns: repeat(5, minmax(72px, 1fr));
  grid-auto-rows: minmax(76px, 1fr);
  gap: 12px;
  z-index: 1;
}

.constellation-node {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(31, 209, 209, 0.22);
  background: rgba(8, 23, 33, 0.72);
  color: var(--ink);
  border-radius: 8px;
  padding: 9px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  cursor: pointer;
}

.constellation-node::before {
  content: "";
  position: absolute;
  left: -12px;
  right: 50%;
  top: 50%;
  height: 1px;
  background: rgba(31, 209, 209, 0.26);
}

.node-core {
  width: 30px;
  height: 3px;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 0 18px rgba(241, 174, 79, 0.45);
}

.constellation-node.ok .node-core,
.constellation-node.online .node-core {
  background: var(--green);
  box-shadow: 0 0 18px rgba(24, 199, 144, 0.55);
}

.constellation-node.warn .node-core,
.constellation-node.pending .node-core {
  background: var(--amber);
  box-shadow: 0 0 18px rgba(241, 174, 79, 0.45);
}

.constellation-node.danger .node-core,
.constellation-node.offline .node-core {
  background: var(--red);
  box-shadow: 0 0 18px rgba(255, 98, 98, 0.5);
}

.constellation-node strong {
  font-size: 13px;
  white-space: nowrap;
}

.constellation-node em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.node-meta {
  color: rgba(202, 245, 241, 0.76);
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
}

.hero-stat-strip {
  right: 24px;
  bottom: 70px;
  width: min(46%, 560px);
}

.cookie-mini-strip {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: auto;
  padding: 5px 2px;
}

.cookie-mini-dot {
  flex: 0 0 auto;
  height: 28px;
  border: 1px solid rgba(102, 180, 199, 0.18);
  border-radius: 999px;
  background: rgba(5, 16, 24, 0.72);
  color: var(--muted);
  padding: 0 9px 0 7px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.cookie-mini-dot i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 0 10px rgba(241, 174, 79, 0.48);
}

.cookie-mini-dot.online i {
  background: var(--green);
  box-shadow: 0 0 10px rgba(24, 199, 144, 0.58);
}

.cookie-mini-dot.offline i {
  background: var(--red);
  box-shadow: 0 0 10px rgba(255, 98, 98, 0.54);
}

.cookie-mini-dot span {
  font-size: 12px;
  white-space: nowrap;
}

.cookie-mini-empty {
  color: var(--muted);
  font-size: 12px;
}

.hero-stat {
  background: rgba(8, 23, 33, 0.76);
}

.hero-stat strong,
.kpi-value,
.control-metric strong,
.score strong,
.stat strong {
  color: #ffffff;
  text-shadow: 0 0 18px rgba(31, 209, 209, 0.16);
}

.kpi-grid {
  grid-template-columns: repeat(6, minmax(120px, 1fr));
}

.kpi-card {
  position: relative;
  min-height: 112px;
  overflow: hidden;
}

.kpi-card::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 14px;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(31, 209, 209, 0.34);
  transform: rotate(45deg);
}

.panel {
  position: relative;
  overflow: hidden;
}

.panel-head,
.platform-module-head,
.modal-head {
  background: rgba(8, 23, 33, 0.82);
  border-bottom-color: rgba(102, 180, 199, 0.2);
}

.panel-head h3,
.platform-module-head h3 {
  color: #ffffff;
}

.control-grid,
.task-list,
.mini-cards,
.short-ops,
.ops-board,
.agent-board,
.cookie-console,
.trend-board,
.account-list,
.reply-list,
.connection-list {
  background:
    linear-gradient(rgba(31, 209, 209, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 209, 209, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}

.control-card,
.ops-card,
.agent-card,
.short-op-card,
.task-card,
.own-card,
.reply-card,
.connection-card {
  border-left-color: rgba(31, 209, 209, 0.46);
}

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

.ops-card {
  min-width: 0;
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.ops-card-head,
.agent-status-line {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.ops-card-head > div {
  min-width: 0;
  flex: 1;
}

.ops-card-head strong,
.ops-card-head span {
  display: block;
}

.ops-card-head span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-status-dot {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  margin-top: 4px;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(241, 174, 79, 0.1), 0 0 16px rgba(241, 174, 79, 0.4);
}

.ops-status-dot.online {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(24, 199, 144, 0.1), 0 0 16px rgba(24, 199, 144, 0.48);
}

.ops-status-dot.offline {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(255, 98, 98, 0.1), 0 0 16px rgba(255, 98, 98, 0.46);
}

.ops-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ops-metrics div {
  min-height: 54px;
  border: 1px solid rgba(102, 180, 199, 0.14);
  border-radius: 8px;
  background: rgba(7, 18, 26, 0.62);
  padding: 7px;
}

.ops-metrics span,
.ops-agent-line span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.ops-metrics strong {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-size: 17px;
  line-height: 1;
}

.ops-agent-line {
  border-top: 1px solid rgba(102, 180, 199, 0.14);
  padding-top: 9px;
}

.ops-agent-line em {
  display: block;
  margin-top: 4px;
  color: #dceff2;
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.agent-board {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.agent-card {
  border-radius: 8px;
  padding: 12px;
}

.agent-status-line {
  align-items: center;
}

.agent-status-line strong {
  flex: 1;
  min-width: 0;
  color: #fff;
}

.agent-status-line em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.agent-card p {
  margin: 8px 0 0;
  color: #dceff2;
  font-size: 12px;
  line-height: 1.55;
}

.control-metric,
.score,
.stat,
.comment-box {
  background: rgba(7, 18, 26, 0.74);
  border: 1px solid rgba(102, 180, 199, 0.16);
}

.signal-strip span,
.trend-row-stats span {
  background: rgba(31, 209, 209, 0.09);
  color: #bde8ec;
  border: 1px solid rgba(31, 209, 209, 0.16);
}

.badge {
  background: rgba(102, 180, 199, 0.12);
  color: #bde8ec;
  border: 1px solid rgba(102, 180, 199, 0.18);
}

.badge.ok {
  background: rgba(24, 199, 144, 0.13);
  color: #8ff4c8;
}

.badge.warn {
  background: rgba(241, 174, 79, 0.14);
  color: #ffd79a;
}

.badge.danger {
  background: rgba(255, 98, 98, 0.14);
  color: #ffb2b2;
}

.cookie-input-box select,
.cookie-input-box textarea {
  background: rgba(4, 13, 20, 0.92);
  border-color: rgba(102, 180, 199, 0.24);
  color: var(--ink);
}

.cookie-state-text.online {
  background: rgba(24, 199, 144, 0.13);
  color: #8ff4c8;
}

.cookie-state-text.offline {
  background: rgba(255, 98, 98, 0.14);
  color: #ffb2b2;
}

.cookie-state-text.pending {
  background: rgba(241, 174, 79, 0.14);
  color: #ffd79a;
}

.trend-row {
  border-bottom-color: rgba(102, 180, 199, 0.15);
}

.trend-row:hover {
  background: rgba(31, 209, 209, 0.07);
}

.link-title {
  color: #ffffff;
}

.ticker {
  border-color: rgba(31, 209, 209, 0.28);
  background:
    linear-gradient(rgba(31, 209, 209, 0.08) 1px, transparent 1px),
    #061018;
  background-size: 26px 26px;
}

.ticker-card {
  background: rgba(10, 27, 38, 0.88);
  border-color: rgba(102, 180, 199, 0.2);
}

.modal-card {
  background: #08141d;
  border: 1px solid rgba(102, 180, 199, 0.28);
}

.empty {
  color: var(--muted);
}

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

.cookie-compact-panel .cookie-console {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.cookie-compact-panel .cookie-light-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: none;
  overflow: visible;
}

.cookie-light-row.compact {
  width: auto;
  min-height: 34px;
  padding: 6px 8px;
  grid-template-columns: auto auto auto;
  gap: 7px;
}

.cookie-light-row.compact .cookie-light {
  width: 12px;
  height: 12px;
}

.cookie-light-row.compact strong {
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
}

.cookie-light-row.compact .cookie-state-text {
  font-size: 10px;
  padding: 2px 6px;
  white-space: nowrap;
}

.cookie-compact-panel .cookie-input-box {
  padding: 10px;
  gap: 8px;
}

.cookie-compact-panel .form-row {
  grid-template-columns: minmax(180px, 0.8fr) minmax(160px, 1fr) auto auto;
  align-items: center;
}

.cookie-compact-panel textarea {
  min-height: 58px;
}

.file-input {
  min-width: 0;
  width: 100%;
  border: 1px solid rgba(102, 180, 199, 0.24);
  border-radius: 8px;
  background: rgba(4, 13, 20, 0.92);
  color: var(--muted);
  padding: 8px;
}

.platform-account-board {
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  background:
    linear-gradient(rgba(31, 209, 209, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 209, 209, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}

.publish-console-board,
.publish-job-board,
.content-strategy-board {
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  background:
    linear-gradient(rgba(31, 209, 209, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 209, 209, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}

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

.publish-console-card,
.publish-job-card,
.strategy-card {
  min-width: 0;
  border: 1px solid rgba(102, 180, 199, 0.2);
  border-left-color: rgba(31, 209, 209, 0.46);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(12, 32, 43, 0.78), rgba(6, 18, 27, 0.86));
  padding: 13px;
  display: grid;
  gap: 11px;
}

.publish-console-card.offline {
  border-left-color: rgba(255, 98, 98, 0.62);
}

.publish-console-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.publish-console-head strong,
.publish-console-head em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.publish-console-head strong {
  color: #fff;
  font-size: 17px;
}

.publish-console-head em {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

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

.publish-console-grid div {
  min-width: 0;
  border: 1px solid rgba(102, 180, 199, 0.14);
  border-radius: 8px;
  background: rgba(5, 16, 24, 0.54);
  padding: 8px;
}

.publish-console-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.publish-console-grid strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.publish-console-card p {
  color: #e9f7f6;
  font-size: 13px;
  line-height: 1.45;
}

.publish-job-flow {
  display: grid;
  grid-template-columns: auto minmax(12px, 1fr) auto minmax(12px, 1fr) auto minmax(12px, 1fr) auto;
  align-items: center;
  gap: 6px;
  color: #cfe7ea;
  font-size: 12px;
}

.publish-job-flow i {
  height: 1px;
  background: rgba(102, 180, 199, 0.26);
}

.publish-action-log {
  margin: 0;
  min-height: 180px;
  max-height: 420px;
  overflow: auto;
  padding: 14px;
  background: rgba(4, 13, 20, 0.94);
  color: #dceff2;
  font-family: Consolas, "Microsoft YaHei", monospace;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.account-platform-card {
  min-width: 0;
  border: 1px solid rgba(102, 180, 199, 0.2);
  border-left-color: rgba(31, 209, 209, 0.46);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(12, 32, 43, 0.78), rgba(6, 18, 27, 0.86));
  padding: 13px;
  display: grid;
  gap: 11px;
}

.account-platform-card.offline {
  border-left-color: rgba(255, 98, 98, 0.62);
}

.account-platform-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.account-platform-head > div {
  min-width: 0;
}

.account-platform-head strong,
.account-platform-head em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-platform-head strong {
  color: #fff;
  font-size: 17px;
}

.account-platform-head em {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.platform-persona {
  border: 1px solid rgba(102, 180, 199, 0.14);
  border-radius: 8px;
  background: rgba(5, 16, 24, 0.54);
  padding: 9px;
}

.platform-persona span,
.platform-current span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.platform-persona p,
.platform-current p {
  margin: 4px 0 0;
  color: #e9f7f6;
  font-size: 13px;
  line-height: 1.45;
}

.platform-progress-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.platform-progress-rail div {
  min-width: 0;
  border: 1px solid rgba(102, 180, 199, 0.13);
  border-radius: 8px;
  background: rgba(31, 209, 209, 0.07);
  padding: 7px;
}

.platform-progress-rail span,
.platform-mini-stats span {
  color: var(--muted);
  font-size: 11px;
}

.platform-progress-rail strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.platform-mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.platform-mini-stats span {
  border: 1px solid rgba(102, 180, 199, 0.16);
  border-radius: 999px;
  background: rgba(7, 18, 26, 0.72);
  padding: 4px 8px;
}

.high-interaction-module {
  border-color: rgba(44, 150, 120, 0.42);
}

.high-interaction-row {
  border-left: 3px solid rgba(44, 150, 120, 0.72);
}

.platform-modal-card {
  max-width: 1080px;
}

.platform-modal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.modal-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 12px;
}

.modal-metric-grid div,
.reply-workbench,
.platform-history-row,
.countdown-box {
  border: 1px solid rgba(102, 180, 199, 0.16);
  border-radius: 8px;
  background: rgba(5, 16, 24, 0.54);
}

.modal-metric-grid div {
  min-width: 0;
  padding: 9px;
}

.modal-metric-grid span,
.publish-preview-meta span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.modal-metric-grid strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
}

.platform-history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 9px;
}

.platform-history-row strong,
.platform-history-row span {
  display: block;
}

.platform-history-row strong {
  color: #fff;
}

.platform-history-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.platform-history-stats {
  display: flex;
  gap: 7px;
  color: #dceff2;
  white-space: nowrap;
}

.reply-workbench {
  padding: 11px;
  display: grid;
  gap: 9px;
}

.reply-workbench textarea,
.publish-draft-text,
.modal-input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(102, 180, 199, 0.22);
  border-radius: 8px;
  background: rgba(4, 13, 20, 0.88);
  color: #edf8f8;
  padding: 9px;
}

.reply-workbench textarea,
.publish-draft-text {
  resize: vertical;
  line-height: 1.55;
}

.publish-preview-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.publish-preview-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-input {
  margin-bottom: 8px;
}

.countdown-box {
  margin: 9px 0;
  padding: 9px;
  color: #dceff2;
  font-size: 13px;
}

.overview-mode .top {
  display: none;
}

.account-mode .top {
  display: none;
}

.account-mode .main {
  padding-top: 16px;
}

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

.overview-mode .side {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 10px 18px;
}

.overview-mode .brand {
  min-height: 42px;
}

.overview-mode .brand-mark {
  width: 36px;
  height: 36px;
  font-size: 20px;
}

.overview-mode .brand-kicker {
  font-size: 10px;
}

.overview-mode .brand h1 {
  font-size: 18px;
}

.overview-mode .nav {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.overview-mode .nav-btn {
  min-height: 42px;
  padding: 8px 10px;
}

.overview-mode .nav-btn small,
.overview-mode .side-block {
  display: none;
}

.overview-mode .main {
  padding: 16px 22px 22px;
}

.span-all {
  grid-column: 1 / -1;
}

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

.overview-grid .panel {
  min-height: 0;
}

.project-hero {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  align-items: start;
  gap: 16px;
  min-height: auto;
  padding: 24px 24px 60px;
}

.project-hero-copy {
  grid-column: 1;
  grid-row: auto;
  width: auto;
  padding: 0;
}

.publish-board {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(132px, 1fr));
  gap: 10px;
}

.publish-card {
  min-width: 0;
  min-height: 132px;
  border: 1px solid rgba(31, 209, 209, 0.24);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(12, 32, 43, 0.84), rgba(6, 18, 27, 0.86));
  color: var(--ink);
  padding: 11px;
  display: grid;
  align-content: start;
  gap: 9px;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.publish-card:hover {
  border-color: rgba(127, 244, 231, 0.52);
  background: linear-gradient(180deg, rgba(16, 46, 58, 0.9), rgba(7, 21, 31, 0.9));
}

.publish-card-head {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
}

.publish-card-head .node-core {
  grid-row: span 2;
}

.publish-card-head strong,
.publish-card-head em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.publish-card-head strong {
  color: #fff;
  font-size: 15px;
  line-height: 1.2;
}

.publish-card-head em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

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

.publish-steps span {
  min-width: 0;
  border: 1px solid rgba(102, 180, 199, 0.13);
  border-radius: 6px;
  background: rgba(5, 16, 24, 0.56);
  color: #cfe7ea;
  padding: 5px 6px;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.publish-card small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.publish-card.online .node-core {
  background: var(--green);
  box-shadow: 0 0 18px rgba(24, 199, 144, 0.55);
}

.publish-card.offline .node-core {
  background: var(--red);
  box-shadow: 0 0 18px rgba(255, 98, 98, 0.5);
}

.hero-agent-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.hero-agent-board .agent-card {
  min-width: 0;
  background: rgba(7, 18, 26, 0.66);
  border: 1px solid rgba(102, 180, 199, 0.16);
  box-shadow: none;
}

.hero-agent-board .agent-status-line {
  gap: 7px;
}

.hero-agent-board .agent-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.platform-constellation {
  position: relative;
  inset: auto;
  grid-column: 2;
  grid-row: 1;
  width: auto;
  grid-template-columns: repeat(4, minmax(90px, 1fr));
  grid-auto-rows: minmax(72px, 1fr);
}

.hero-stat-strip {
  position: relative;
  inset: auto;
  grid-column: 1;
  grid-row: auto;
  width: auto;
  align-self: end;
}

.ops-board {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1240px) {
  .project-hero {
    grid-template-columns: 1fr;
  }

  .project-hero-copy {
    grid-column: 1;
    grid-row: auto;
    width: auto;
  }

  .publish-board,
  .platform-constellation,
  .hero-stat-strip {
    grid-column: 1;
    grid-row: auto;
    position: relative;
    inset: auto;
    width: auto;
    margin: 0;
  }

  .cookie-mini-strip {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin: 0 18px 18px;
  }

  .platform-constellation {
    grid-template-columns: repeat(5, minmax(68px, 1fr));
  }

  .publish-board,
  .hero-agent-board {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .publish-console-board,
  .publish-job-board,
  .content-strategy-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .platform-account-board {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .project-hero {
    min-height: auto;
  }

  .project-hero-copy {
    padding: 18px;
  }

  .project-hero h3 {
    font-size: 28px;
  }

  .hero-flow,
  .publish-board,
  .hero-agent-board,
  .platform-constellation,
  .hero-stat-strip,
  .ops-board,
  .publish-console-board,
  .publish-job-board,
  .content-strategy-board,
  .cookie-compact-panel .form-row,
  .platform-progress-rail,
  .platform-current {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modal-metric-grid,
  .publish-preview-meta,
  .platform-history-row {
    grid-template-columns: 1fr;
  }

  .platform-history-stats {
    flex-wrap: wrap;
  }

  .hero-stat-strip {
    width: auto;
  }
}

@media (max-width: 420px) {
  .hero-flow,
  .publish-board,
  .hero-agent-board,
  .platform-constellation,
  .hero-stat-strip,
  .ops-board,
  .cookie-compact-panel .form-row,
  .platform-progress-rail,
  .platform-current {
    grid-template-columns: 1fr;
  }
}
