:root {
  --ink: #f7f8f2;
  --night: #090a09;
  --night-2: #111410;
  --lime: #c8ff41;
  --lime-2: #9ced3f;
  --mint: #9ff5df;
  --blue: #66c6ff;
  --violet: #d391ff;
  --rose: #ffb5c7;
  --sand: #d8c887;
  --panel: #ffffff;
  --panel-2: #f6f8fb;
  --line: #d9dee8;
  --text: #252b37;
  --muted: #667085;
  --soft: #98a2b3;
  --green: #14a06f;
  --green-soft: #e5f7ef;
  --yellow: #d8941f;
  --yellow-soft: #fff2d8;
  --red-soft: #ffe5e8;
  --radius: 8px;
  --shadow: 0 16px 38px rgba(21, 32, 56, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  min-width: 0;
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--night);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.schedule-app {
  min-height: 100vh;
}

.hero-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 100vh;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 85%, rgba(109, 215, 255, 0.18), transparent 28%),
    radial-gradient(circle at 78% 82%, rgba(201, 255, 65, 0.16), transparent 26%),
    linear-gradient(180deg, #0a0b0a 0%, #0c0e0b 54%, #050605 100%);
}

body.board-open {
  background: var(--panel-2);
}

body.board-open .hero-shell {
  display: none;
}

.hero-shell::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, transparent, #000 24%, #000 78%, transparent);
  content: "";
}

.hero-nav {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 34px;
  min-height: 78px;
  padding: 18px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 2px solid rgba(200, 255, 65, 0.7);
  border-radius: 50%;
  color: var(--night);
  background: var(--lime);
  box-shadow: 0 0 28px rgba(200, 255, 65, 0.24);
  font-weight: 950;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 34px;
  min-width: 0;
}

.nav-links a {
  color: rgba(247, 248, 242, 0.82);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--lime);
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.sync-pill {
  min-height: 32px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #5f4100;
  background: #fff2d8;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.sync-pill.connected {
  color: #062f21;
  background: #bef7d9;
}

.primary-button,
.ghost-button {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 900;
  white-space: nowrap;
}

.primary-button {
  border: 1px solid var(--lime);
  color: #071005;
  background: linear-gradient(180deg, #d9ff62, var(--lime));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28) inset;
}

.primary-button:hover {
  filter: brightness(1.05);
}

.ghost-button {
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--panel);
}

.ghost-button.dark {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}

.ghost-button.dark:hover {
  border-color: rgba(200, 255, 65, 0.45);
}

.hero-center {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(72px, 10vh, 130px) 28px 86px;
  text-align: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(200, 255, 65, 0.18);
  border-radius: 999px;
  color: rgba(247, 248, 242, 0.82);
  background: rgba(200, 255, 65, 0.11);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
}

.hero-kicker span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: #141414;
  background: #ffc2d0;
  font-size: 12px;
  font-weight: 900;
}

.hero-kicker b {
  font-size: 15px;
}

.hero-center h1 {
  max-width: 1040px;
  margin: 42px 0 18px;
  color: #fff;
  font-size: clamp(48px, 5.2vw, 82px);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-center h1 span {
  display: block;
}

.hero-center p {
  max-width: 820px;
  margin: 0;
  color: rgba(247, 248, 242, 0.72);
  font-size: clamp(16px, 1.5vw, 21px);
  line-height: 1.65;
}

.hero-actions {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 42px;
}

.hero-cta {
  min-height: 58px;
  padding: 0 30px;
  font-size: 20px;
}

#heroSummary {
  color: rgba(247, 248, 242, 0.62);
  font-size: 14px;
  font-weight: 800;
}

.schedule-section {
  position: relative;
  z-index: 4;
  min-height: 100vh;
  padding: 28px 24px 38px;
  background: var(--panel-2);
}

.schedule-section.is-hidden {
  display: none;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: 1520px;
  margin: 0 auto 18px;
}

.section-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: min(520px, 100%);
}

.board-back {
  min-height: 38px;
  border-radius: var(--radius);
}

.section-eyebrow {
  color: #245dcc;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 4px 0 5px;
  font-size: 28px;
  letter-spacing: 0;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 7px;
  width: min(360px, 100%);
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.search-field span {
  color: var(--soft);
}

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

.sheet-tabs,
.insight-strip,
.social-dashboard,
.table-toolbar,
.sheet-panel {
  max-width: 1520px;
  margin-right: auto;
  margin-left: auto;
}

.sheet-tabs {
  display: flex;
  min-height: 48px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  background: #fbfcfe;
}

.sheet-tabs button {
  position: relative;
  flex: 0 0 auto;
  min-width: 136px;
  padding: 0 18px;
  border: 0;
  color: #344054;
  background: transparent;
  font-weight: 800;
  white-space: nowrap;
}

.sheet-tabs button:hover {
  color: #245dcc;
  background: #fff;
}

.sheet-tabs button.active {
  color: #245dcc;
  background: #fff;
}

.sheet-tabs button.active::after {
  position: absolute;
  right: 14px;
  bottom: 0;
  left: 14px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: #245dcc;
  content: "";
}

.insight-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.metric {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  min-height: 74px;
  padding: 12px 18px;
  border: 0;
  color: var(--text);
  background: var(--panel);
  text-align: left;
}

.metric:hover,
.metric.active {
  background: #f4f8ff;
}

.metric.active {
  box-shadow: inset 0 -3px 0 #245dcc;
}

.metric span {
  align-self: end;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.metric strong {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  font-size: 30px;
  line-height: 1;
}

.metric small {
  overflow: hidden;
  color: var(--soft);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 10px;
  padding: 10px 0;
}

.dashboard-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.panel-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 8px;
  border-bottom: 1px solid var(--line);
}

.panel-heading span {
  color: #245dcc;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.panel-heading strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-list {
  display: grid;
}

.compact-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 2px 10px;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  background: transparent;
  text-align: left;
}

.compact-item:last-child {
  border-bottom: 0;
}

.compact-item:hover {
  background: #f8fbff;
}

.compact-date {
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.compact-item strong,
.compact-item span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-item strong {
  font-size: 13px;
}

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

.issue-item.error {
  box-shadow: inset 3px 0 0 #d13b45;
}

.issue-item.warn {
  box-shadow: inset 3px 0 0 var(--yellow);
}

.team-list {
  display: grid;
}

.team-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  background: transparent;
  text-align: left;
}

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

.team-row:hover {
  background: #f8fbff;
}

.team-copy {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 4px;
}

.team-copy strong,
.team-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.team-copy i {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1f6;
}

.team-copy b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #245dcc;
}

.panel-empty {
  margin: 0;
  padding: 18px 12px;
  color: var(--muted);
  font-size: 13px;
}

.panel-empty.success {
  color: #08734e;
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--panel);
}

.view-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 150px;
}

.table-icon {
  color: var(--muted);
}

#currentViewLabel {
  padding: 3px 8px;
  border-radius: 999px;
  color: #245dcc;
  background: #e7efff;
  font-size: 12px;
  font-weight: 850;
}

.toolbar-actions {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.view-switch {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
}

.view-switch button {
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  color: #344054;
  background: transparent;
  white-space: nowrap;
}

.view-switch button:hover,
.view-switch button.active {
  background: #e7efff;
}

.sheet-panel {
  min-width: 0;
  height: 560px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.grid-scroll {
  width: 100%;
  height: 100%;
  overflow: auto;
}

.schedule-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 14px;
}

.schedule-table th,
.schedule-table td {
  height: 44px;
  padding: 0 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  vertical-align: middle;
}

.schedule-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: #344054;
  background: #f8fafc;
  font-weight: 850;
  text-align: left;
}

.schedule-table th:first-child,
.schedule-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  border-right-color: #c6ccd7;
  background: #fbfcfe;
}

.schedule-table th:first-child {
  z-index: 4;
}

.schedule-table tr.row-error td:first-child {
  box-shadow: inset 3px 0 0 #d13b45;
}

.schedule-table tr.row-warn td:first-child {
  box-shadow: inset 3px 0 0 var(--yellow);
}

.row-index {
  width: 62px;
  color: var(--soft);
  text-align: center;
}

.row-number {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--soft);
}

.cell-input {
  width: 100%;
  min-height: 30px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cell-input:focus {
  margin: 0 -6px;
  padding: 4px 6px;
  border: 0;
  border-radius: 5px;
  background: #fff;
  box-shadow: inset 0 0 0 2px rgba(47, 111, 236, 0.32);
}

.reviewer {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.reviewer-input {
  min-width: 0;
}

.platform-field {
  font-weight: 750;
}

.avatar {
  display: inline-grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #3c8dbc, #245dcc);
  font-size: 12px;
  font-weight: 900;
}

.tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  color: #344054;
  background: #f1f5f9;
  font-weight: 750;
  line-height: 1.25;
}

.tag-select {
  min-height: 26px;
  border: 0;
  outline: 0;
  appearance: none;
  cursor: pointer;
}

.empty-row {
  height: 180px;
  color: var(--muted);
  text-align: center;
}

.type-图文 {
  color: #93346f;
  background: #fde7f3;
}

.type-创意视频 {
  color: #8a5400;
  background: var(--yellow-soft);
}

.type-活动视频 {
  color: #08727f;
  background: #dff6f8;
}

.type-产品上新视频 {
  color: #a23a45;
  background: #ffe6e9;
}

.type-教程视频,
.type-展示视频 {
  color: #315ca5;
  background: #e7efff;
}

.status-待填写 {
  color: #667085;
  background: #f1f5f9;
}

.status-待审核 {
  color: #8a5400;
  background: var(--yellow-soft);
}

.status-已排期 {
  color: #245dcc;
  background: #e7efff;
}

.status-已发布 {
  color: #08734e;
  background: var(--green-soft);
}

.link-cell a {
  color: #245dcc;
  text-decoration: none;
}

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

.check-cell {
  min-width: 0;
}

.check-stack {
  display: grid;
  gap: 3px;
}

.issue-pill {
  display: inline-flex;
  justify-self: start;
  min-height: 22px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.issue-pill.ok {
  color: #08734e;
  background: var(--green-soft);
}

.issue-pill.error {
  color: #a71d2a;
  background: var(--red-soft);
}

.issue-pill.warn {
  color: #8a5400;
  background: var(--yellow-soft);
}

.check-text {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

  .nav-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-center {
    padding-top: 72px;
  }

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

  .sheet-panel {
    height: 560px;
  }
}

@media (max-width: 860px) {
  .hero-nav {
    gap: 14px;
    padding: 14px 16px;
  }

  .brand-lockup {
    font-size: 17px;
  }

  .nav-actions {
    max-width: 100%;
    overflow-x: auto;
  }

  .hero-center {
    padding: 52px 18px 34px;
  }

  .hero-center h1 {
    margin-top: 34px;
    font-size: clamp(42px, 11vw, 68px);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .schedule-section {
    padding: 20px 12px 28px;
  }

  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .section-tools {
    align-items: stretch;
    flex-direction: column;
    min-width: 0;
  }

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

  .table-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar-actions {
    overflow-x: auto;
  }
}

body.board-open {
  color: #e8edf8;
  background: #050608;
}

body.board-open .schedule-app {
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, #07090d 0%, #0a0d12 48%, #07080b 100%);
  background-size:
    42px 42px,
    42px 42px,
    auto;
}

.command-center {
  color: #e8edf8;
  background: transparent;
}

.command-center::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(200, 255, 65, 0.08), transparent 22%, transparent 78%, rgba(102, 198, 255, 0.08)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.3));
  content: "";
}

.command-top,
.command-grid,
.source-toolbar,
.sheet-panel,
.insight-strip {
  position: relative;
  z-index: 1;
  max-width: 1680px;
}

.command-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 22px;
  margin: 0 auto 18px;
}

.command-title h2 {
  margin: 5px 0 8px;
  color: #ffffff;
  font-size: clamp(30px, 3.2vw, 54px);
  line-height: 1;
  letter-spacing: 0;
}

.command-title p {
  max-width: 780px;
  margin: 0;
  color: rgba(232, 237, 248, 0.62);
  font-size: 14px;
  line-height: 1.6;
}

.command-center .section-eyebrow,
.rail-label,
.stage-heading span,
.detail-head span,
.detail-section > span {
  color: #c8ff41;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.command-center .section-tools {
  align-items: center;
  min-width: min(560px, 100%);
}

.command-center .board-back,
.command-center .ghost-button {
  border-color: rgba(255, 255, 255, 0.16);
  color: #e8edf8;
  background: rgba(255, 255, 255, 0.08);
}

.command-center .board-back:hover,
.command-center .ghost-button:hover {
  border-color: rgba(200, 255, 65, 0.45);
}

.command-center .search-field {
  border-color: rgba(255, 255, 255, 0.14);
  color: #e8edf8;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.command-center .search-field input {
  color: #ffffff;
}

.command-center .search-field input::placeholder {
  color: rgba(232, 237, 248, 0.42);
}

.command-center .insight-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
  border: 0;
  background: transparent;
}

.command-center .metric {
  min-height: 106px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  color: #e8edf8;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
    rgba(9, 12, 18, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.command-center .metric:hover,
.command-center .metric.active {
  border-color: rgba(200, 255, 65, 0.6);
  background:
    linear-gradient(135deg, rgba(200, 255, 65, 0.14), rgba(102, 198, 255, 0.08)),
    rgba(12, 16, 22, 0.95);
}

.command-center .metric.active {
  box-shadow:
    inset 0 -3px 0 #c8ff41,
    0 18px 36px rgba(0, 0, 0, 0.28);
}

.command-center .metric span {
  color: rgba(232, 237, 248, 0.62);
}

.command-center .metric strong {
  color: #ffffff;
  font-size: 42px;
}

.command-center .metric small {
  color: rgba(232, 237, 248, 0.42);
}

.command-grid {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr) 360px;
  gap: 12px;
  height: clamp(480px, calc(100vh - 250px), 720px);
  min-height: 0;
  margin: 0 auto 14px;
}

.command-rail,
.content-stage,
.detail-panel,
.source-toolbar,
.sheet-panel {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  background: rgba(8, 11, 16, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 20px 54px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.command-rail {
  display: grid;
  align-content: start;
  gap: 22px;
  min-height: 0;
  overflow: auto;
  padding: 16px;
}

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

.command-center .sheet-tabs {
  display: grid;
  min-height: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.command-center .sheet-tabs button,
.command-center .view-switch button {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  min-width: 0;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: rgba(232, 237, 248, 0.7);
  background: transparent;
  text-align: left;
}

.command-center .sheet-tabs button span,
.command-center .view-switch button span {
  min-width: 0;
}

.command-center .sheet-tabs button small {
  flex: 0 0 auto;
  color: rgba(232, 237, 248, 0.38);
  font-size: 10px;
  font-weight: 900;
}

.command-center .sheet-tabs button:hover,
.command-center .sheet-tabs button.active,
.command-center .view-switch button:hover,
.command-center .view-switch button.active {
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.command-center .sheet-tabs button.active::after {
  right: auto;
  bottom: 8px;
  left: 0;
  width: 3px;
  height: 22px;
  border-radius: 999px;
  background: #c8ff41;
}

.command-center .sheet-tabs button.unavailable {
  cursor: not-allowed;
  opacity: 0.48;
}

.command-center .sheet-tabs button.unavailable:hover {
  border-color: transparent;
  color: rgba(232, 237, 248, 0.7);
  background: transparent;
}

.command-center .view-switch {
  display: grid;
  gap: 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.content-stage {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.stage-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stage-heading h3 {
  margin: 5px 0 0;
  color: #ffffff;
  font-size: 22px;
  letter-spacing: 0;
}

.stage-heading p {
  margin: 0;
  color: rgba(232, 237, 248, 0.48);
  font-size: 13px;
}

.content-deck {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  align-content: start;
  gap: 12px;
  min-height: 0;
  overflow: auto;
  padding: 14px;
}

.content-card {
  position: relative;
  display: grid;
  gap: 11px;
  min-height: 214px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #e8edf8;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.035)),
    #0b0f16;
  text-align: left;
}

.content-card:hover,
.content-card.active {
  transform: translateY(-1px);
  border-color: rgba(200, 255, 65, 0.56);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

.content-card.active {
  background:
    linear-gradient(135deg, rgba(200, 255, 65, 0.14), rgba(102, 198, 255, 0.08)),
    #0d1118;
}

.card-signal {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: #66c6ff;
}

.tone-danger .card-signal {
  background: #ff6b7a;
}

.tone-warn .card-signal,
.tone-review .card-signal {
  background: #ffcf66;
}

.tone-ready .card-signal {
  background: #66c6ff;
}

.tone-done .card-signal {
  background: #7af0b8;
}

.tone-draft .card-signal {
  background: #d391ff;
}

.card-topline,
.card-meta,
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.card-topline {
  color: rgba(232, 237, 248, 0.54);
  font-size: 12px;
  font-weight: 850;
}

.type-chip,
.platform-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: #09100c;
  background: #c8ff41;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.content-card strong {
  min-width: 0;
  overflow: hidden;
  color: #ffffff;
  font-size: 20px;
  line-height: 1.24;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-title {
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  color: rgba(232, 237, 248, 0.6);
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  justify-content: flex-start;
  color: rgba(232, 237, 248, 0.72);
  font-size: 13px;
  font-weight: 750;
}

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

.platform-chip {
  color: rgba(232, 237, 248, 0.86);
  background: rgba(255, 255, 255, 0.09);
}

.platform-chip.muted {
  color: rgba(232, 237, 248, 0.42);
}

.card-foot {
  padding-top: 2px;
  color: rgba(232, 237, 248, 0.46);
  font-size: 12px;
}

.card-foot span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deck-empty,
.detail-empty {
  display: grid;
  min-height: 220px;
  place-items: center;
  padding: 24px;
  color: rgba(232, 237, 248, 0.52);
  text-align: center;
}

.detail-panel {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 18px;
  min-height: 0;
  min-width: 0;
  overflow: auto;
}

.detail-head {
  display: grid;
  gap: 8px;
}

.detail-head strong {
  color: #ffffff;
  font-size: 24px;
  line-height: 1.18;
}

.detail-head p {
  margin: 0;
  color: rgba(232, 237, 248, 0.56);
  font-size: 13px;
  line-height: 1.55;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
}

.detail-grid div,
.detail-section,
.detail-actions {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.detail-grid dt {
  margin: 0 0 5px;
  color: rgba(232, 237, 248, 0.44);
  font-size: 11px;
  font-weight: 850;
}

.detail-grid dd {
  margin: 0;
  overflow: hidden;
  color: #ffffff;
  font-size: 13px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

.issue-list li {
  padding: 9px 10px;
  border-radius: 8px;
  color: rgba(232, 237, 248, 0.78);
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
}

.issue-list li.error {
  color: #ffd9de;
  background: rgba(255, 107, 122, 0.15);
}

.issue-list li.warn {
  color: #ffe4ad;
  background: rgba(255, 207, 102, 0.14);
}

.issue-list li.ok {
  color: #c8ffe4;
  background: rgba(122, 240, 184, 0.13);
}

.detail-actions {
  color: rgba(232, 237, 248, 0.5);
  font-size: 13px;
}

.detail-actions a {
  color: #c8ff41;
  font-weight: 900;
  text-decoration: none;
}

.source-toolbar {
  margin: 0 auto;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  color: #e8edf8;
  background: rgba(8, 11, 16, 0.82);
}

.source-toolbar .view-title strong {
  color: #ffffff;
}

.source-toolbar .view-title span:last-child,
.source-toolbar p {
  margin: 0;
  color: rgba(232, 237, 248, 0.48);
  font-size: 12px;
}

.command-center .sheet-panel {
  height: 430px;
  margin-bottom: 0;
  border-radius: 0 0 12px 12px;
  background: rgba(8, 11, 16, 0.82);
}

.command-center .schedule-table th,
.command-center .schedule-table td {
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(232, 237, 248, 0.82);
  background: rgba(8, 11, 16, 0.78);
}

.command-center .schedule-table th {
  color: rgba(232, 237, 248, 0.66);
  background: #0e131b;
}

.command-center .schedule-table th:first-child,
.command-center .schedule-table td:first-child {
  background: #0e131b;
}

.command-center .cell-input {
  color: rgba(232, 237, 248, 0.88);
}

.command-center .cell-input:focus {
  color: #ffffff;
  background: #111926;
}

.command-center .avatar {
  color: #071005;
  background: linear-gradient(135deg, #c8ff41, #66c6ff);
}

@media (max-width: 1220px) {
  .command-grid {
    grid-template-columns: 210px minmax(0, 1fr);
    height: auto;
    align-items: start;
  }

  .command-rail,
  .content-stage {
    height: clamp(480px, calc(100vh - 250px), 720px);
  }

  .detail-panel {
    grid-column: 1 / -1;
    max-height: 460px;
  }
}

@media (max-width: 860px) {
  .command-top,
  .command-grid {
    grid-template-columns: 1fr;
  }

  .command-center .insight-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .command-center .section-tools {
    align-items: stretch;
  }

  .content-deck {
    grid-template-columns: 1fr;
  }

  .command-rail {
    height: auto;
    max-height: 320px;
  }

  .content-stage {
    height: clamp(420px, 66vh, 620px);
  }

  .stage-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}
