:root {
  color-scheme: light;
  --bg: #f6f7f4;
  --surface: #ffffff;
  --surface-soft: #eef4f1;
  --ink: #18211f;
  --muted: #62706c;
  --line: #dbe2de;
  --brand: #116a5c;
  --brand-strong: #0b4f45;
  --accent: #d95f35;
  --gold: #b5832f;
  --blue: #346cb0;
  --shadow: 0 18px 45px rgba(34, 47, 43, 0.09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

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

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.sidebar {
  background: #122421;
  color: #f9fbf9;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.brand-mark {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
}

.mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #f4c95d;
  color: #122421;
  font-weight: 900;
}

.intelligence-shell .mark {
  background: #9ed8c0;
}

.brand-mark h1 {
  font-size: 18px;
  line-height: 1.25;
  margin: 0;
}

.brand-mark p,
.sidebar-note {
  color: #b9c7c2;
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.5;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.workspace-switch {
  display: grid;
  gap: 10px;
}

.workspace-switch button {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  color: #dce7e3;
  text-align: left;
}

.workspace-switch button.active {
  background: #f4c95d;
  color: #122421;
  border-color: #f4c95d;
}

.intelligence-shell .workspace-switch button.active {
  background: #9ed8c0;
  border-color: #9ed8c0;
}

.workspace-switch strong {
  font-size: 14px;
}

.workspace-switch span {
  color: inherit;
  opacity: 0.78;
  font-size: 12px;
  line-height: 1.35;
}

.nav-section-title {
  margin-top: 2px;
  padding: 10px 8px 2px;
  color: #94a9a2;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
}

.nav-item {
  width: 100%;
  min-height: 42px;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: #dce7e3;
  text-align: left;
  text-decoration: none;
}

.nav-item.active,
.nav-item:hover {
  background: #213a35;
  color: #ffffff;
}

.main {
  padding: 28px;
  overflow: auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 22px;
}

.eyebrow {
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 6px;
}

h2 {
  font-size: 28px;
  margin: 0;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

.subtle {
  color: var(--muted);
  margin: 8px 0 0;
  line-height: 1.6;
}

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

.grid.two {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: start;
}

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

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

.panel {
  padding: 18px;
}

.card {
  padding: 16px;
}

.project-card {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  color: inherit;
}

.project-card:hover {
  border-color: #9ec8be;
  transform: translateY(-1px);
}

.meta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--surface-soft);
  color: #31504a;
  font-size: 13px;
  font-weight: 650;
}

.pill.intent {
  background: #fff1df;
  color: #874a16;
}

.pill.intent.selected {
  background: var(--accent);
  color: #fff;
}

.form {
  display: grid;
  gap: 14px;
}

.compact-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  color: #32403d;
  font-size: 13px;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfd9d5;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
}

textarea {
  min-height: 118px;
  resize: vertical;
  line-height: 1.55;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(17, 106, 92, 0.12);
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  min-height: 40px;
  border-radius: 8px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #e8eeeb;
  color: #20302d;
  font-weight: 760;
}

.btn.primary {
  background: var(--brand);
  color: #fff;
}

.btn.primary:hover {
  background: var(--brand-strong);
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--line);
}

.btn.warn {
  background: #fff1df;
  color: #7d4213;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.analysis-tree {
  display: grid;
  gap: 14px;
}

.audience {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfdfc;
}

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

.scene {
  margin-top: 12px;
  padding: 12px;
  border-left: 3px solid #9eb8b0;
  background: #f3f8f6;
  border-radius: 0 8px 8px 0;
}

.intent-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.intent-tag {
  border-radius: 999px;
  padding: 7px 11px;
  background: #fff;
  border: 1px solid #ead2b4;
  color: #7c4316;
  font-weight: 700;
}

.selected-box {
  border: 1px solid #b8d6cd;
  border-radius: 8px;
  background: #ecf8f4;
  padding: 14px;
}

.asset-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

.asset-card {
  text-align: left;
  color: inherit;
  display: grid;
  gap: 11px;
}

.asset-card-main {
  display: grid;
  gap: 11px;
  width: 100%;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.thumb {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(17, 106, 92, 0.92), rgba(217, 95, 53, 0.78)),
    radial-gradient(circle at 25% 30%, #fff 0 10%, transparent 11%);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 22px;
}

.metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

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

.structure > div {
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfdfc;
}

.timeline-time {
  min-height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #122421;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
}

.mode-list,
.model-list {
  display: grid;
  gap: 10px;
}

.option {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.option input {
  width: auto;
}

.compact-option {
  margin-bottom: 10px;
  background: #fbfdfc;
}

.prompt-output {
  min-height: 260px;
  white-space: pre-wrap;
}

.prompt-output.small {
  min-height: 110px;
  font-size: 13px;
}

.asset-picker-group {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.workflow-steps,
.checklist-grid,
.library-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.workflow-steps {
  margin-bottom: 12px;
}

.workflow-steps span,
.checklist-grid span {
  border-radius: 999px;
  padding: 7px 11px;
  background: #edf3f1;
  color: #52645f;
  font-size: 13px;
  font-weight: 750;
}

.workflow-steps span.active,
.checklist-grid span.ok {
  background: #dff3eb;
  color: #116a5c;
}

.checklist-grid span.missing {
  background: #fff1df;
  color: #7d4213;
}

.platform-rules,
.checklist-box {
  margin-top: 12px;
}

.creative-options {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.creative-options h4 {
  margin: 0;
}

.library-filters {
  margin-bottom: 16px;
}

.library-filters .field {
  min-width: 170px;
  flex: 1;
}

.product-pack-card.selected {
  border-color: #83b9ad;
  background: #f5fbf8;
}

.product-asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 12px;
}

.product-asset {
  position: relative;
  display: grid;
  gap: 6px;
  align-content: start;
  min-height: 90px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #f8fbfa;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
}

.asset-delete {
  position: absolute;
  top: 7px;
  right: 7px;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(255, 241, 223, 0.96);
  color: #7d4213;
  border: 1px solid #edc79d;
  font-size: 12px;
  font-weight: 800;
}

.asset-delete:hover {
  background: #ffd9ac;
}

.product-asset img,
.product-asset video {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  object-fit: cover;
  background: #dfe8e4;
}

.product-asset strong {
  color: #31504a;
  font-size: 12px;
}

.product-asset span {
  overflow-wrap: anywhere;
}

.product-asset.pending {
  border-style: dashed;
  background: #fbf7ef;
}

.product-asset.file {
  place-items: center;
  text-align: center;
}

.upload-slot {
  border: 1px dashed #b9cbc5;
  border-radius: 8px;
  padding: 12px;
  background: #fbfdfc;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f3f7f5;
}

.auth-card {
  width: min(440px, 100%);
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.auth-card .mark {
  width: 46px;
  height: 46px;
}

.auth-card h1 {
  margin: 0;
  font-size: 28px;
}

.auth-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.login-card .form {
  margin-top: 4px;
}

.os-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.os-status div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 8px;
  background: #f7faf8;
  border: 1px solid var(--line);
}

.os-status span,
.log-list span,
.log-list em {
  color: var(--muted);
  font-size: 13px;
}

.pending-runs-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.pending-runs-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.pending-run-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.pending-run-grid article {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid rgba(35, 116, 98, 0.18);
  border-radius: 8px;
  background: #f8fcfa;
}

.pending-run-grid article > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.pending-run-grid span,
.pending-run-grid p,
.pending-run-grid em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.pending-run-grid i {
  overflow: hidden;
  height: 7px;
  border-radius: 999px;
  background: #e2ece8;
}

.pending-run-grid b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #82b7a3);
}

.os-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.os-tabs button,
.os-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border-radius: 8px;
  padding: 9px 12px;
  background: #e8eeeb;
  color: #20302d;
  font-weight: 760;
  text-decoration: none;
}

.os-tabs button.active,
.os-tabs a.active {
  background: #122421;
  color: #fff;
}

.os-metric {
  min-height: 130px;
}

.os-metric.opportunity strong {
  color: var(--brand);
}

.os-metric.risk strong {
  color: var(--accent);
}

.os-metric.insight strong {
  color: var(--blue);
}

.insight-list,
.log-list,
.trend-bars,
.metric-bars,
.coverage-list,
.analysis-summary,
.decision-grid,
.trend-spark-grid,
.color-signal-grid,
.discovery-feed,
.discovery-family-list,
.discovery-signal-list,
.maturity-grid,
.channel-breakdown,
.fusion-grid,
.alert-list,
.forecast-grid,
.data-gap-board,
.intent-map,
.source-quality-grid,
.readiness-grid,
.readiness-errors {
  display: grid;
  gap: 10px;
}

.insight-row,
.competitor-card,
.log-list div,
.coverage-list div,
.analysis-summary article {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.insight-row p,
.competitor-card p,
.analysis-summary p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.coverage-list div,
.analysis-summary article {
  align-items: flex-start;
}

.coverage-list div {
  display: grid;
  grid-template-columns: minmax(110px, 0.7fr) minmax(90px, 0.5fr) minmax(0, 1.4fr);
}

.coverage-list span,
.analysis-summary span {
  color: var(--brand);
  font-weight: 850;
}

.coverage-list em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

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

.analysis-summary article {
  display: grid;
  min-height: 142px;
}

.decision-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.keyword-explorer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 12px;
  align-items: stretch;
  margin-top: 12px;
}

.keyword-explorer textarea {
  min-height: 150px;
  resize: vertical;
}

.keyword-explorer > div {
  display: grid;
  align-content: start;
  gap: 10px;
}

.keyword-dimension-grid,
.color-dashboard-grid,
.color-opportunity-grid,
.opportunity-conclusion-grid,
.diagnostic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.keyword-dimension-card,
.color-score-card,
.opportunity-conclusion-card,
.diagnostic-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  padding: 14px;
}

.keyword-dimension-card span,
.color-score-card span,
.opportunity-conclusion-card span {
  color: var(--brand);
  font-size: 12px;
  font-weight: 850;
}

.keyword-dimension-card p,
.opportunity-conclusion-card p {
  color: var(--muted);
  line-height: 1.5;
}

.mini-signal-list {
  display: grid;
  gap: 7px;
}

.mini-signal-list div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 42px;
  gap: 8px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 7px;
  font-size: 12px;
}

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

.mini-signal-list strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.color-score-card strong {
  color: var(--brand);
  font-size: 38px;
  line-height: 1;
}

.color-score-card p,
.opportunity-conclusion-card em {
  color: var(--muted);
  line-height: 1.45;
  font-style: normal;
}

.opportunity-conclusion-card em {
  border-radius: 8px;
  background: #eef5f2;
  padding: 9px;
  color: #31504a;
  font-weight: 760;
}

.diagnostic-card div,
.diagnostic-card footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.diagnostic-card span,
.diagnostic-card p {
  color: var(--muted);
  font-size: 13px;
}

.diagnostic-card i {
  height: 10px;
  border-radius: 999px;
  background: #e8eeeb;
  overflow: hidden;
}

.diagnostic-card b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--brand));
}

.diagnostic-card em {
  min-width: 40px;
  color: var(--brand);
  font-style: normal;
  font-weight: 850;
}

.google-trend-chart {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.trend-chart-head,
.topic-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.trend-chart-head strong,
.topic-detail-head strong {
  display: block;
  font-size: 16px;
}

.trend-chart-head span,
.topic-detail-head p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.trend-chart-head em,
.topic-detail-head em {
  border-radius: 999px;
  background: #eef5f2;
  color: #31504a;
  padding: 5px 9px;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.google-trend-chart svg {
  width: 100%;
  height: 280px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(#fbfdfc, #ffffff);
}

.google-trend-chart line {
  stroke: #e2ebe8;
  stroke-width: 0.5;
}

.google-trend-chart polyline {
  fill: none;
  stroke: var(--line);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.trend-legend,
.source-mix {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trend-legend div,
.source-mix div {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  padding: 7px 9px;
  font-size: 13px;
}

.trend-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.trend-legend strong,
.source-mix strong {
  color: var(--brand);
}

.decision-card,
.trend-spark-card,
.color-signal-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  padding: 14px;
}

.discovery-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  background: #f8fbfa;
}

.discovery-hero h3 {
  margin: 2px 0 8px;
  font-size: 26px;
}

.discovery-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(88px, 1fr));
  gap: 10px;
  min-width: min(100%, 330px);
}

.discovery-kpis div,
.discovery-card,
.discovery-family-list article,
.discovery-signal-list article,
.maturity-grid article,
.channel-breakdown article,
.alert-list article,
.forecast-grid article,
.data-gap-board article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.discovery-kpis strong {
  display: block;
  color: var(--brand);
  font-size: 28px;
}

.discovery-kpis span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.run-chip {
  display: inline-flex;
  width: fit-content;
  margin: 10px 0 0;
  border: 1px solid #c8d9d2;
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff;
  color: #31504a;
  font-size: 12px;
  font-weight: 800;
}

.priority-board {
  display: grid;
  gap: 10px;
}

.priority-board article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 52px;
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  padding: 12px;
}

.priority-rank,
.priority-board article > em {
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-style: normal;
  font-weight: 900;
}

.priority-rank {
  width: 34px;
  height: 34px;
  background: #122421;
  color: #fff;
}

.priority-board article > em {
  min-width: 48px;
  min-height: 48px;
  background: #dff3eb;
  color: var(--brand);
  font-size: 16px;
}

.priority-head {
  display: grid;
  gap: 3px;
}

.priority-head strong {
  color: var(--ink);
  line-height: 1.3;
}

.priority-head span,
.priority-board p {
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.priority-head span {
  font-size: 12px;
  font-weight: 800;
}

.priority-board p {
  margin: 6px 0 8px;
}

.discovery-feed {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.discovery-card {
  display: grid;
  gap: 9px;
  min-height: 190px;
}

.discovery-card-head,
.discovery-card footer,
.discovery-family-list article div,
.discovery-signal-list article div,
.maturity-grid article div,
.channel-breakdown article div,
.alert-list article div,
.forecast-grid article div,
.data-gap-board article div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.discovery-card span,
.discovery-card em,
.discovery-card b,
.discovery-family-list span,
.discovery-signal-list span,
.maturity-grid span,
.channel-breakdown span,
.alert-list span,
.forecast-grid span,
.data-gap-board span {
  color: var(--brand);
  font-size: 12px;
  font-weight: 850;
  font-style: normal;
}

.discovery-card strong,
.discovery-family-list strong,
.discovery-signal-list strong,
.maturity-grid strong,
.channel-breakdown strong,
.alert-list strong,
.forecast-grid strong,
.data-gap-board strong {
  color: var(--ink);
  line-height: 1.3;
}

.discovery-card p,
.discovery-family-list p,
.discovery-family-list em,
.discovery-signal-list p,
.discovery-signal-list small,
.discovery-card small,
.maturity-grid p,
.maturity-grid em,
.channel-breakdown p,
.channel-breakdown small,
.alert-list p,
.alert-list em,
.forecast-grid p,
.forecast-grid em,
.data-gap-board p,
.data-gap-board em {
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.discovery-family-list article,
.discovery-signal-list article,
.maturity-grid article,
.channel-breakdown article,
.alert-list article,
.forecast-grid article,
.data-gap-board article {
  display: grid;
  gap: 8px;
}

.data-gap-board {
  margin-top: 12px;
}

.data-gap-board h4 {
  margin: 6px 0 2px;
  font-size: 14px;
}

.data-gap-board article.missing,
.data-gap-board article.weak {
  background: #fffaf0;
  border-color: #e4cf91;
}

.data-gap-board article.ok {
  background: #f8fbfa;
}

.maturity-grid,
.forecast-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.maturity-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

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

.maturity-grid.compact article b {
  font-size: 22px;
}

.maturity-grid.compact article em {
  display: none;
}

.maturity-grid article b {
  color: var(--brand);
  font-size: 28px;
}

.channel-breakdown article b,
.forecast-meter {
  display: block;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #edf3f1;
  overflow: hidden;
}

.channel-breakdown article b i,
.forecast-meter b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
}

.alert-list article.high {
  border-color: #e6b29b;
  background: #fff8f4;
}

.alert-list article.medium {
  border-color: #e4cf91;
  background: #fffaf0;
}

.alert-list article.low {
  border-color: #c8d9d2;
  background: #f8fbfa;
}

.discovery-family-list article b {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: var(--brand);
}

.metric-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.metric-chip-row span {
  border-radius: 999px;
  padding: 4px 7px;
  background: #eef5f2;
  color: #31504a;
  font-size: 12px;
  font-weight: 760;
}

.decision-card {
  display: grid;
  gap: 7px;
  min-height: 150px;
}

.decision-card span,
.trend-spark-card span,
.color-signal-card span {
  color: var(--brand);
  font-size: 12px;
  font-weight: 850;
}

.decision-card strong,
.trend-spark-card strong,
.color-signal-card strong,
.keyword-dimension-card strong,
.topic-card strong,
.evidence-card strong,
.opportunity-card h3,
.opportunity-conclusion-card strong {
  color: var(--ink);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.decision-card p,
.color-signal-card p,
.keyword-dimension-card p,
.topic-card span,
.topic-card em,
.evidence-card p,
.opportunity-card p,
.opportunity-conclusion-card p,
.opportunity-conclusion-card em {
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.trend-spark-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 12px;
}

.trend-spark-card {
  display: grid;
  gap: 10px;
  min-height: 180px;
}

.trend-spark-card footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 12px;
}

.trend-spark-card footer em,
.trend-spark-card footer small {
  font-style: normal;
  white-space: normal;
  overflow-wrap: anywhere;
}

.trend-spark-card b,
.color-signal-card em {
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-style: normal;
}

.trend-spark-card b.up,
.color-signal-card em.up {
  background: #dff3eb;
  color: var(--brand);
}

.trend-spark-card b.down,
.color-signal-card em.down {
  background: #fff1df;
  color: #9a3f1c;
}

.sparkline {
  width: 100%;
  height: 58px;
  display: block;
}

.sparkline polyline {
  fill: none;
  stroke: var(--brand);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.empty-spark {
  height: 58px;
  border-radius: 8px;
  background: #eef5f2;
}

.color-signal-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.color-signal-card {
  display: grid;
  gap: 8px;
}

.signal-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  background: #eef5f2;
}

.action-note {
  margin: 0 0 8px;
  color: #31504a;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 750;
}

.score {
  min-width: 48px;
  min-height: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #dff3eb;
  color: var(--brand);
  font-weight: 900;
}

.status-pill,
.severity {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 4px 9px;
  background: #edf3f1;
  color: #52645f;
  font-size: 12px;
  font-weight: 800;
}

.status-pill.success,
.status-pill.positive {
  background: #dff3eb;
  color: var(--brand);
}

.status-pill.failed,
.status-pill.error,
.status-pill.negative,
.severity.high {
  background: #fff1df;
  color: #9a3f1c;
}

.status-pill.neutral,
.severity.medium {
  background: #edf3f8;
  color: var(--blue);
}

.keyword-palette,
.topic-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.keyword-palette span,
.topic-card {
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fbfdfc;
  color: inherit;
}

.keyword-palette span {
  padding: 7px 10px;
  color: #31504a;
  font-size: 13px;
  font-weight: 750;
}

.topic-card {
  min-width: 150px;
  padding: 12px;
  display: grid;
  gap: 5px;
  text-align: left;
}

.topic-card:hover {
  border-color: #9ec8be;
}

.topic-card.active {
  border-color: #122421;
  background: #eef5f2;
}

.topic-card.static {
  cursor: default;
}

.topic-card span,
.topic-card em,
.competitor-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.trend-bars div,
.metric-bars label {
  display: grid;
  grid-template-columns: minmax(120px, 190px) minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}

.trend-bars i,
.metric-bars i {
  height: 10px;
  border-radius: 999px;
  background: #e8eeeb;
  overflow: hidden;
}

.trend-bars b,
.metric-bars b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.intent-map article,
.source-quality-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  padding: 12px;
  min-width: 0;
}

.intent-map article > div,
.source-quality-head,
.source-quality-metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.intent-map strong,
.source-quality-grid strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.intent-map span,
.source-quality-grid span,
.source-quality-grid em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}

.intent-map i {
  display: block;
  height: 10px;
  margin: 10px 0;
  border-radius: 999px;
  background: #e8eeeb;
  overflow: hidden;
}

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

.intent-map p,
.source-quality-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.source-quality-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.source-quality-metric {
  margin: 10px 0;
}

.source-quality-metric b {
  color: var(--brand);
  font-size: 24px;
}

.social-readiness {
  margin-bottom: 16px;
  border-color: #c9a86a;
  background: #fffaf0;
}

.readiness-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 14px;
}

.readiness-grid article {
  border: 1px solid #ead6a6;
  border-radius: 8px;
  background: #fffdf8;
  padding: 12px;
}

.readiness-grid strong {
  display: block;
  color: #6f4b00;
  margin-bottom: 6px;
}

.readiness-grid p {
  margin: 0 0 10px;
  color: var(--text);
  line-height: 1.55;
}

.readiness-grid em,
.readiness-errors span {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.readiness-errors {
  margin-top: 12px;
}

.readiness-errors span {
  display: block;
  border: 1px dashed #d8bf82;
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  overflow-wrap: anywhere;
}

.fusion-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.fusion-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  padding: 12px;
}

.fusion-grid article div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.fusion-grid strong {
  overflow-wrap: anywhere;
}

.fusion-grid span {
  color: var(--brand);
  font-size: 12px;
  white-space: nowrap;
}

.fusion-grid p {
  margin: 0 0 8px;
  color: var(--text);
  line-height: 1.5;
}

.fusion-grid em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.media-summary,
.sentiment-bars,
.topic-detail,
.topic-post-list {
  display: grid;
  gap: 10px;
}

.sentiment-bars label {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.sentiment-bars i {
  height: 10px;
  border-radius: 999px;
  background: #e8eeeb;
  overflow: hidden;
}

.sentiment-bars b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #9ec8be;
}

.sentiment-bars b.positive {
  background: var(--brand);
}

.sentiment-bars b.negative {
  background: var(--accent);
}

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

.topic-detail-head span {
  color: var(--brand);
  font-size: 12px;
  font-weight: 850;
}

.topic-post-list {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.topic-post-list article {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfa;
  padding: 12px;
}

.topic-post-list article > div,
.topic-post-list footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.topic-post-list p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.topic-post-list footer span {
  color: var(--muted);
  font-size: 12px;
}

.opportunity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.opportunity-card {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.opportunity-card h3 {
  margin-bottom: 6px;
}

.opportunity-card p {
  color: var(--muted);
  line-height: 1.5;
}

.score-ring {
  width: 76px;
  height: 76px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--brand) var(--score), #e8eeeb 0);
}

.score-ring strong {
  width: 56px;
  height: 56px;
  border-radius: inherit;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--brand);
  font-size: 20px;
}

.score-hero {
  display: grid;
  gap: 6px;
  place-items: start;
  margin-bottom: 14px;
}

.score-hero strong {
  font-size: 46px;
  line-height: 1;
  color: var(--brand);
}

.source-list,
.evidence-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.source-list.compact {
  margin-top: 8px;
}

.source-list > div,
.evidence-card,
.voc-evidence {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfa;
  padding: 10px;
}

.source-list strong,
.evidence-card strong {
  color: var(--ink);
}

.source-list p,
.voc-evidence p {
  margin: 5px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.source-list a,
.voc-evidence a,
.analysis-table a {
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

.source-list a:hover,
.voc-evidence a:hover,
.analysis-table a:hover {
  text-decoration: underline;
}

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

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

.evidence-head span,
.voc-evidence span,
.source-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.upload-slot input[type="file"] {
  background: #fff;
}

.upload-slot small {
  color: var(--muted);
  line-height: 1.5;
}

.product-preview {
  min-height: 76px;
}

.saved-product-assets {
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.product-asset-section {
  display: grid;
  gap: 8px;
}

.product-asset-section h4 {
  margin: 0;
  font-size: 14px;
}

.visual-fingerprint-panel {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfa;
  padding: 14px;
}

.section-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.section-title-row h4 {
  margin: 0 0 4px;
}

.fingerprint-summary {
  display: grid;
  gap: 10px;
  font-size: 14px;
}

.fingerprint-summary p {
  margin: 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.tag-row span {
  border-radius: 999px;
  background: #eef5f2;
  color: #31504a;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 700;
}

.compact-tags {
  margin-top: 8px;
}

.tag-editor {
  grid-template-columns: 1fr;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

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

.generated-preview {
  min-height: 220px;
  border-radius: 8px;
  padding: 18px;
  display: flex;
  align-items: end;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(17, 106, 92, 0.92), rgba(52, 108, 176, 0.82)),
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.45), transparent 24%);
  overflow: hidden;
}

.generated-preview.video {
  aspect-ratio: 9 / 16;
  max-height: 420px;
  background:
    linear-gradient(135deg, rgba(18, 36, 33, 0.94), rgba(217, 95, 53, 0.86)),
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.34), transparent 20%);
}

.generated-preview.image {
  aspect-ratio: 4 / 5;
}

.generated-preview strong {
  display: block;
  max-width: 520px;
  font-size: 24px;
  line-height: 1.2;
}

.generated-preview p {
  max-width: 560px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.86);
}

.generated-type {
  display: inline-flex;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.generated-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  background: #0f1f1c;
}

.video-shell {
  display: grid;
  gap: 10px;
  width: 100%;
}

.video-shell .generated-media {
  aspect-ratio: 9 / 16;
  height: auto;
}

.error-text {
  color: #b3341f;
  background: #fff1ed;
  border: 1px solid #f2c2b8;
  border-radius: 8px;
  padding: 10px;
  margin: 10px 0 0;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13, 22, 20, 0.54);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 20;
}

.modal {
  width: min(920px, 100%);
  max-height: 86vh;
  overflow: auto;
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

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

.metric-card {
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.metric-card strong {
  display: block;
  font-size: 20px;
  margin-bottom: 3px;
}

.empty {
  border: 1px dashed #b8c8c2;
  border-radius: 8px;
  padding: 22px;
  color: var(--muted);
  text-align: center;
  background: #fbfdfc;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #122421;
  color: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  z-index: 30;
}

.small {
  font-size: 13px;
}

.busy-layer {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(247, 250, 249, 0.62);
  backdrop-filter: blur(2px);
  z-index: 40;
}

.busy-card {
  width: min(420px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.busy-card p {
  margin: 4px 0 0;
  color: var(--muted);
}

.collection-progress {
  margin-top: 14px;
  min-width: min(560px, calc(100vw - 96px));
}

.collection-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 13px;
}

.collection-progress-head span {
  font-weight: 700;
  color: var(--ink);
}

.collection-progress-head em,
.collection-progress-estimate {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.collection-progress-bar {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: #e7eeee;
}

.collection-progress-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #1f7b68);
  transition: width 0.35s ease;
}

.collection-progress-current {
  margin-top: 10px;
  color: var(--ink);
  font-size: 13px;
}

.collection-progress-estimate {
  margin-top: 4px;
}

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

.collection-stage-list li {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 8px;
  align-items: start;
  color: var(--muted);
  font-size: 12px;
}

.collection-stage-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 999px;
  background: #cbd8d5;
}

.collection-stage-list li.active::before {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(35, 116, 98, 0.12);
}

.collection-stage-list li.done::before {
  background: #2f8f5b;
}

.collection-stage-list b {
  display: block;
  color: var(--ink);
  font-size: 12px;
}

.collection-stage-list span {
  display: block;
  margin-top: 1px;
}

.studio-lock {
  max-width: 520px;
  margin: 72px auto;
  text-align: left;
}

.lock-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 800;
}

.studio-lock-form {
  margin-top: 18px;
}

.social-command-center {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) 1.2fr;
  gap: 18px;
  align-items: start;
}

.social-command-center.embedded {
  padding: 0;
}

.social-page-shell {
  display: grid;
  gap: 18px;
}

.social-page-head {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) 1.15fr;
  gap: 18px;
  align-items: end;
}

.social-section-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.social-section-tabs button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: #ffffff;
  color: var(--muted);
  cursor: pointer;
}

.social-section-tabs button.active {
  border-color: rgba(35, 116, 98, 0.35);
  background: #eef7f3;
  color: var(--accent);
  font-weight: 700;
}

.social-section-body {
  display: grid;
  gap: 16px;
}

.social-section-body > section,
.social-section-body .grid > section {
  min-width: 0;
}

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

.social-summary-grid article,
.recent-color-grid article {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.social-summary-grid span,
.recent-color-grid span {
  color: var(--muted);
  font-size: 12px;
}

.social-summary-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 16px;
}

.social-summary-grid p,
.recent-color-grid p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.stacked-evidence {
  display: grid;
  gap: 16px;
}

.stacked-evidence h4 {
  margin: 0 0 8px;
  font-size: 13px;
}

.topic-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.recent-color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.recent-color-grid article {
  display: grid;
  gap: 8px;
}

.recent-color-grid article > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.recent-color-grid b {
  color: var(--accent);
  font-size: 24px;
}

.recent-color-grid em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.recent-color-grid a {
  color: var(--accent);
  font-size: 12px;
  text-decoration: none;
}

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

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

  .social-section-tabs {
    justify-content: flex-start;
  }

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

  .task-status {
    grid-template-columns: 10px 1fr;
  }

  .task-status span,
  .task-status em {
    grid-column: 2;
  }
}

.task-status {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 10px minmax(140px, auto) 1fr auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(35, 116, 98, 0.18);
  border-radius: 8px;
  background: rgba(248, 252, 250, 0.94);
  box-shadow: 0 10px 24px rgba(23, 36, 34, 0.08);
  backdrop-filter: blur(10px);
}

.task-status::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(35, 116, 98, 0.12);
  grid-row: 1;
}

.task-status span {
  color: var(--muted);
  line-height: 1.45;
}

.task-status em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.task-status.error {
  border-color: rgba(217, 72, 65, 0.24);
  background: #fff8f7;
}

.task-status.error::before {
  background: #d94841;
  box-shadow: 0 0 0 5px rgba(217, 72, 65, 0.12);
}

.task-status.success {
  border-color: rgba(47, 143, 91, 0.24);
}

.task-status.success::before {
  background: #2f8f5b;
  box-shadow: 0 0 0 5px rgba(47, 143, 91, 0.12);
}

.spinner {
  width: 30px;
  height: 30px;
  border: 3px solid #d8e4e0;
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfdfc;
}

summary {
  cursor: pointer;
  font-weight: 750;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 10px 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.analysis-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: white;
  font-size: 12px;
}

.analysis-table.wide {
  min-width: 1500px;
}

.analysis-table th,
.analysis-table td {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 9px;
  text-align: left;
  vertical-align: top;
}

.analysis-table th {
  background: #f1f6f4;
  color: var(--ink);
  font-weight: 750;
  white-space: nowrap;
}

.storyboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.storyboard-frame {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: white;
}

.storyboard-frame img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 8px;
}

.inline-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.inline-actions .subtle {
  margin: 0;
  flex: 1;
  min-width: 220px;
}

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

  .sidebar {
    padding: 18px;
    gap: 16px;
  }

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

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

  .nav-section-title {
    grid-column: 1 / -1;
    display: block;
    padding-left: 0;
  }

  .nav-item {
    justify-content: center;
    padding: 9px;
  }

  .nav-text {
    display: inline;
  }

  .grid.two,
  .grid.three,
  .structure,
  .timeline-item,
  .compact-form {
    grid-template-columns: 1fr;
  }

  .main {
    padding: 18px;
  }
}

@media (max-width: 560px) {
  .topbar {
    flex-direction: column;
  }

  .brand-mark {
    grid-template-columns: 36px 1fr;
  }

  .mark {
    width: 36px;
    height: 36px;
  }

  h2 {
    font-size: 24px;
  }

  .workspace-switch,
  .nav-list {
    grid-template-columns: 1fr;
  }
}
