:root {
  --ink: #172033;
  --muted: #627084;
  --line: #d9e1ea;
  --paper: #ffffff;
  --bg: #edf2f5;
  --navy: #18344d;
  --teal: #1e7b63;
  --mint: #dff4eb;
  --blue: #2f6fed;
  --sky: #dbeafe;
  --amber: #f4a340;
  --coral: #d65c4a;
  --violet: #6c5ce7;
  --radius: 8px;
  --shadow: 0 14px 38px rgba(24, 52, 77, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  padding: 20px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(330px, 390px) minmax(0, 1fr);
  gap: 18px;
  max-width: 1680px;
  min-width: 0;
  margin: 0 auto;
}

.control-panel,
.report-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(217, 225, 234, 0.95);
  box-shadow: var(--shadow);
  min-width: 0;
}

.control-panel {
  position: sticky;
  top: 20px;
  align-self: start;
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: var(--radius);
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 252, 0.94)),
    #fff;
}

.report-panel {
  border-radius: var(--radius);
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 251, 252, 0.96)),
    #fff;
}

.brand-lockup {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.scoreboard-brand-mark {
  display: block;
  width: 50px;
  height: 39px;
  object-fit: contain;
  flex: 0 0 auto;
}

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

h1 {
  font-size: 1.25rem;
  letter-spacing: 0;
}

.brand-lockup h1 {
  font-family: "Bricolage Grotesque", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.38rem;
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: #1c1814;
}

.brand-lockup h1 em {
  color: #e85a42;
  font-style: italic;
}

.brand-lockup p,
.subtle,
.eyebrow {
  color: var(--muted);
}

.brand-lockup p {
  margin-top: 2px;
  font-size: 0.87rem;
}

.setup-form {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

fieldset {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

legend,
.section-row legend {
  margin-bottom: 4px;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

label {
  display: grid;
  gap: 5px;
  color: #314054;
  font-size: 0.83rem;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfdff;
  color: var(--ink);
  padding: 9px 10px;
  outline: none;
}

textarea {
  min-height: 72px;
  overflow-wrap: anywhere;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.14);
}

.section-row,
.run-row,
.report-toolbar,
.toolbar-actions,
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-row {
  flex-wrap: wrap;
}

.scan-allowance {
  display: grid;
  gap: 7px;
  border: 1px solid #f4d58d;
  border-radius: 7px;
  background: #fff8e8;
  padding: 10px;
}

.scan-allowance div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.scan-allowance strong {
  color: var(--ink);
  font-size: 0.86rem;
}

.scan-allowance span,
.scan-allowance p {
  color: #6f5320;
  font-size: 0.76rem;
  font-weight: 800;
}

.scan-allowance p {
  line-height: 1.35;
}

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

.prompt-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 8px;
  align-items: start;
}

.prompt-text {
  min-height: 64px;
}

.icon-button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--navy);
  font-weight: 800;
}

.icon-button:hover,
.secondary-button:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.engine-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.engine-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfdff;
}

.engine-toggle input {
  width: auto;
}

.engine-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.engine-copy strong {
  font-size: 0.83rem;
  overflow-wrap: anywhere;
}

.engine-copy span {
  color: var(--muted);
  font-size: 0.72rem;
}

.primary-button,
.secondary-button {
  border-radius: 7px;
  min-height: 40px;
  padding: 0 14px;
  font-weight: 800;
}

.primary-button {
  flex: 1;
  border: 0;
  background: var(--teal);
  color: white;
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.run-button-wrap {
  position: relative;
  display: grid;
  flex: 1;
  gap: 6px;
  min-width: 0;
}

.run-button-wrap::after,
.run-button-wrap::before {
  position: absolute;
  left: 50%;
  z-index: 30;
  display: none;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition:
    opacity 140ms ease,
    transform 140ms ease;
}

.run-button-wrap::after {
  bottom: calc(100% + 10px);
  left: 0;
  width: min(300px, 76vw);
  border-radius: 7px;
  background: #172033;
  box-shadow: 0 12px 28px rgba(23, 32, 51, 0.24);
  color: white;
  content: attr(data-run-tip);
  padding: 9px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  transform: translate(0, 4px);
}

.run-button-wrap::before {
  bottom: calc(100% + 4px);
  width: 10px;
  height: 10px;
  background: #172033;
  content: "";
  transform: translate(-50%, 4px) rotate(45deg);
}

.run-button-wrap:hover::after,
.run-button-wrap:hover::before,
.run-button-wrap:focus-within::after,
.run-button-wrap:focus-within::before,
.run-button-wrap.is-running::after,
.run-button-wrap.is-running::before,
.run-button-wrap.is-complete::after,
.run-button-wrap.is-complete::before,
.run-button-wrap.is-error::after,
.run-button-wrap.is-error::before {
  display: block;
  opacity: 1;
  transform: translate(-50%, 0);
}

.run-button-wrap:hover::after,
.run-button-wrap:focus-within::after,
.run-button-wrap.is-running::after,
.run-button-wrap.is-complete::after,
.run-button-wrap.is-error::after {
  transform: translate(0, 0);
}

.run-button-wrap:hover::before,
.run-button-wrap:focus-within::before,
.run-button-wrap.is-running::before,
.run-button-wrap.is-complete::before,
.run-button-wrap.is-error::before {
  transform: translate(-50%, 0) rotate(45deg);
}

.run-button {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1rem;
  text-transform: uppercase;
}

#sampleButton {
  font-size: 1rem;
  text-transform: uppercase;
}

.run-button.is-complete {
  background: #135d48;
}

.run-button.is-error {
  background: #8f2f21;
}

.run-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: white;
  border-radius: 50%;
  animation: run-spin 760ms linear infinite;
}

.run-button.is-running .run-spinner {
  display: inline-block;
}

.run-button-state {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.run-button-wrap.is-running .run-button-state {
  color: #875400;
}

.run-button-wrap.is-complete .run-button-state {
  color: #135d48;
}

.run-button-wrap.is-error .run-button-state {
  color: #8f2f21;
}

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

.secondary-button {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}

a.secondary-button {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.report-toolbar {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.hero-report {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(340px, 1fr);
  gap: 18px;
  min-height: 260px;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid rgba(24, 52, 77, 0.18);
  border-radius: var(--radius);
  background: #10273c;
}

.hero-report img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 24px 24px 0;
  color: white;
}

.hero-copy .eyebrow {
  color: #9bd8c9;
}

.hero-copy h2 {
  max-width: 680px;
  margin-top: 8px;
  color: white;
  font-size: clamp(1.45rem, 2.4vw, 2.5rem);
  line-height: 1.05;
}

.hero-copy p:not(.eyebrow) {
  max-width: 620px;
  margin-top: 12px;
  color: #dbe7ef;
  line-height: 1.5;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-stats span {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.09);
  color: #eaf4f7;
  padding: 8px 10px;
  font-size: 0.84rem;
}

.hero-stats strong {
  color: #9bd8c9;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

h2 {
  margin-top: 3px;
  font-size: clamp(1.3rem, 2vw, 2rem);
  letter-spacing: 0;
}

.status-banner {
  margin-top: 16px;
  border-radius: 7px;
  padding: 11px 12px;
  font-weight: 700;
}

.report-tabs {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  border-bottom: 1px solid var(--line);
}

.tab-button {
  min-height: 42px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 0 12px;
  font-weight: 900;
}

.tab-button.is-active {
  border-color: var(--teal);
  color: var(--ink);
}

.pro-tab-badge {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  margin-left: 6px;
  border-radius: 999px;
  background: #fff0cf;
  color: #875400;
  padding: 0 7px;
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
  vertical-align: middle;
}

.tab-button.is-active .pro-tab-badge {
  background: var(--mint);
  color: var(--teal);
}

.tab-panel {
  padding-top: 16px;
}

.tab-panel[hidden] {
  display: none;
}

.is-idle {
  background: var(--sky);
  color: #174284;
}

.is-running {
  background: #fff0cf;
  color: #875400;
}

.is-complete {
  background: var(--mint);
  color: #135d48;
}

.is-error {
  background: #fde8e5;
  color: #8f2f21;
}

.partial-results-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  border: 1px solid #f4d58d;
  border-radius: 7px;
  background: #fff8e8;
  color: #5d4100;
  padding: 12px;
}

.partial-results-panel[hidden] {
  display: none;
}

.partial-results-panel p {
  margin-top: 4px;
  color: #6f5320;
  font-size: 0.86rem;
  line-height: 1.4;
}

.partial-results-panel span {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #fff0cf;
  padding: 5px 9px;
  font-size: 0.76rem;
  font-weight: 900;
}

.score-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) repeat(auto-fit, minmax(165px, 1fr));
  gap: 12px;
}

.score-card,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.score-card {
  min-height: 130px;
  padding: 16px;
  background:
    linear-gradient(180deg, #ffffff, #f8fbfc);
}

.main-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.metric-label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tooltip {
  position: relative;
  display: inline-grid;
  width: 17px;
  height: 17px;
  margin-left: 4px;
  place-items: center;
  border: 1px solid #b8c5d4;
  border-radius: 50%;
  background: #fff;
  color: #526174;
  cursor: help;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  text-transform: none;
  vertical-align: middle;
}

.tooltip::after {
  position: absolute;
  z-index: 20;
  bottom: calc(100% + 9px);
  left: 50%;
  width: min(280px, 70vw);
  border-radius: 7px;
  background: #172033;
  box-shadow: 0 12px 28px rgba(23, 32, 51, 0.24);
  color: #fff;
  content: attr(data-tip);
  display: none;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  opacity: 0;
  padding: 9px 10px;
  pointer-events: none;
  text-align: left;
  text-transform: none;
  transform: translate(-50%, 4px);
  transition:
    opacity 140ms ease,
    transform 140ms ease;
}

.tooltip::before {
  position: absolute;
  z-index: 21;
  bottom: calc(100% + 3px);
  left: 50%;
  width: 10px;
  height: 10px;
  background: #172033;
  content: "";
  display: none;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px) rotate(45deg);
  transition:
    opacity 140ms ease,
    transform 140ms ease;
}

.tooltip:hover,
.tooltip:focus {
  border-color: var(--blue);
  color: var(--blue);
  outline: none;
}

.tooltip:hover::after,
.tooltip:hover::before,
.tooltip:focus::after,
.tooltip:focus::before {
  display: block;
  opacity: 1;
  transform: translate(-50%, 0);
}

.score-value {
  margin-top: 8px;
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 900;
}

.metric-value {
  margin-top: 14px;
  font-size: 2rem;
  font-weight: 900;
}

.grade-ring {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 54%, transparent 55%),
    conic-gradient(var(--teal) 0deg, var(--line) 0deg);
}

.grade-ring span {
  font-size: 2rem;
  font-weight: 900;
}

.meter {
  height: 8px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9eef5;
}

.meter span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--meter-color, var(--amber));
  transition: width 240ms ease;
}

.danger-meter span {
  background: var(--meter-color, var(--amber));
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 12px;
  margin-top: 12px;
}

.panel {
  margin-top: 12px;
  padding: 14px;
}

.content-grid .panel {
  margin-top: 0;
}

.history-panel {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.history-panel h2,
.history-list {
  display: grid;
  gap: 8px;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfdff;
  padding: 10px;
  color: var(--ink);
  text-align: left;
}

.history-item:hover {
  border-color: var(--teal);
  background: #f4fbf8;
}

.history-item span {
  display: grid;
  gap: 2px;
}

.history-item small {
  color: var(--muted);
}

.history-item b {
  display: grid;
  min-width: 42px;
  min-height: 34px;
  place-items: center;
  border-radius: 6px;
  background: var(--mint);
  color: var(--teal);
}

.workflow-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 14px;
}

.workflow-visual {
  overflow: hidden;
  border-radius: 7px;
  background: #eef3f7;
}

.workflow-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.workflow-copy {
  display: grid;
  align-content: start;
}

.workflow-copy .eyebrow {
  margin-bottom: 4px;
}

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

.workflow-stage {
  display: grid;
  gap: 7px;
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fbfc;
  padding: 12px;
}

.workflow-stage span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  font-weight: 900;
}

.workflow-stage p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.action-plan {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 10px;
}

.action-step {
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfdff;
  padding: 13px;
}

.action-step h4 {
  margin: 0;
  font-size: 0.98rem;
}

.action-step p {
  color: #2f3e51;
  line-height: 1.43;
}

.step-topline {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.phase-pill,
.impact-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 8px;
  font-size: 0.72rem;
  font-weight: 900;
}

.phase-pill {
  background: var(--sky);
  color: #174284;
}

.impact-high {
  background: var(--mint);
  color: #135d48;
}

.impact-medium {
  background: #fff0cf;
  color: #875400;
}

.action-step dl {
  display: grid;
  gap: 7px;
  margin: 0;
}

.action-step dl div {
  display: grid;
  gap: 2px;
}

.action-step dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.action-step dd {
  margin: 0;
  color: #2f3e51;
  font-size: 0.84rem;
}

.panel-header {
  margin-bottom: 12px;
}

.panel-header-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.panel-header-copy p {
  max-width: 760px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.42;
}

h3 {
  font-size: 1rem;
}

.engine-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.engine-card {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  background: #fbfdff;
}

.engine-card strong {
  display: block;
}

.engine-card .big {
  margin-top: 8px;
  font-size: 1.6rem;
  font-weight: 900;
}

.mode-pill,
.priority-pill,
.prompt-type-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 8px;
  font-size: 0.72rem;
  font-weight: 900;
}

.prompt-type-pill.is-organic {
  background: var(--mint);
  color: #135d48;
}

.prompt-type-pill.is-branded {
  background: var(--sky);
  color: #174284;
}

.prompt-type-pill.is-comparison {
  background: #fff0cf;
  color: #875400;
}

.mode-live {
  background: var(--mint);
  color: #135d48;
}

.mode-demo {
  background: #fff0cf;
  color: #875400;
}

.mode-error {
  background: #fde8e5;
  color: #8f2f21;
}

.mode-provider-error {
  background: #fde8e5;
  color: #8f2f21;
}

.mode-rate-limited {
  background: #fff0cf;
  color: #875400;
}

.mode-timed-out {
  background: #eef3f7;
  color: #415066;
}

.retry-note {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.recommendation-list,
.answer-cards {
  display: grid;
  gap: 10px;
}

.recommendation {
  display: grid;
  gap: 6px;
  border-left: 4px solid var(--teal);
  background: #f8fbfb;
  padding: 10px 12px;
}

.priority-high {
  background: #fde8e5;
  color: #8f2f21;
}

.priority-medium {
  background: #fff0cf;
  color: #875400;
}

.priority-next {
  background: var(--sky);
  color: #174284;
}

.prompt-insights,
.competitor-breakdown,
.opportunity-list,
.market-research,
.playbook-list,
.builder-form {
  display: grid;
  gap: 10px;
}

.market-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 12px;
  margin-top: 12px;
}

.market-signal,
.market-takeaway,
.playbook-item {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfdff;
  padding: 12px;
}

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

.market-signal span {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  border-radius: 999px;
  background: var(--sky);
  color: #174284;
  padding: 0 8px;
  font-size: 0.72rem;
  font-weight: 900;
}

.market-signal strong,
.market-takeaway strong {
  display: block;
  margin-top: 6px;
}

.market-signal p,
.market-takeaway p,
.playbook-item small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.42;
}

.market-signal a {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
}

.market-takeaway {
  border-left: 4px solid var(--teal);
  background: #f4fbf8;
}

.playbook-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

.playbook-item.is-done {
  border-color: rgba(30, 123, 99, 0.35);
  background: #f4fbf8;
}

.playbook-item label {
  display: flex;
  align-items: start;
  gap: 9px;
}

.playbook-item input {
  width: auto;
  margin-top: 2px;
}

.playbook-step-number,
.playbook-state {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  font-weight: 900;
}

.playbook-step-number {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--navy);
  color: white;
  font-size: 0.78rem;
}

.playbook-state {
  min-height: 24px;
  border-radius: 999px;
  background: #eef3f7;
  color: #415066;
  padding: 0 8px;
  font-size: 0.72rem;
}

.playbook-item.is-done .playbook-step-number,
.playbook-item.is-done .playbook-state {
  background: var(--teal);
  color: white;
}

.compact-button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.78rem;
}

.prompt-insight,
.competitor-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfdff;
  padding: 10px;
}

.prompt-insight div,
.competitor-row div {
  min-width: 0;
}

.competitor-row > div {
  flex: 1 1 auto;
}

.prompt-insight strong {
  display: block;
  overflow-wrap: anywhere;
}

.competitor-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.competitor-label strong {
  overflow-wrap: anywhere;
}

.share-rank {
  border-radius: 999px;
  background: #e9eef5;
  color: var(--muted);
  padding: 3px 7px;
  font-size: 0.68rem;
  font-weight: 900;
  white-space: nowrap;
}

.competitor-row.is-monitored-brand {
  border-color: rgba(18, 136, 111, 0.38);
  background: #f4fbf8;
}

.competitor-row.is-monitored-brand .share-rank {
  background: var(--mint);
  color: var(--teal);
}

.prompt-insight p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.competitor-row .meter {
  width: 100%;
  max-width: 220px;
  margin-top: 8px;
}

.competitor-meta {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.competitor-row b {
  color: var(--coral);
}

.pro-report-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.44fr);
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(24, 52, 77, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(24, 52, 77, 0.97), rgba(30, 123, 99, 0.9)),
    #18344d;
  color: white;
  padding: 16px;
}

.pro-report-intro h3 {
  margin-top: 4px;
  color: white;
  font-size: clamp(1.15rem, 1.8vw, 1.75rem);
}

.pro-report-intro p:not(.eyebrow) {
  max-width: 760px;
  margin-top: 8px;
  color: #dbe7ef;
  line-height: 1.45;
}

.pro-report-intro .eyebrow {
  color: #9bd8c9;
}

.tier-ladder {
  display: grid;
  gap: 7px;
}

.tier-ladder span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.09);
  color: #eaf4f7;
  padding: 8px 10px;
  font-size: 0.82rem;
  font-weight: 800;
}

.tier-ladder strong {
  color: #9bd8c9;
}

.tier-ladder .is-current {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.16);
}

.report-summary-grid,
.report-breakdown-grid,
.report-next-steps {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.report-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.initial-recommendations-panel {
  margin-top: 12px;
}

.initial-recommendations-header {
  align-items: flex-start;
  flex-wrap: wrap;
}

.recommendations-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.tier-3-cta {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  gap: 8px;
  border: 1px solid rgba(24, 52, 77, 0.28);
  border-radius: 999px;
  background: var(--navy);
  color: white;
  padding: 0 8px 0 12px;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

.tier-3-cta:hover,
.tier-3-cta:focus-visible {
  border-color: var(--teal);
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(30, 123, 99, 0.16);
  outline: none;
}

.tier-3-cta b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 1rem;
  line-height: 1;
}

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

.report-stat,
.report-read,
.report-metric-row,
.competitive-brand-row,
.proof-gap-item,
.report-prompt-card,
.report-next-step {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfdff;
  padding: 12px;
}

.report-stat {
  display: grid;
  gap: 6px;
}

.report-stat.tone-good {
  border-color: rgba(30, 123, 99, 0.34);
  background: #f4fbf8;
}

.report-stat.tone-warn {
  border-color: rgba(244, 163, 64, 0.42);
  background: #fff9ed;
}

.report-stat.tone-danger {
  border-color: rgba(214, 92, 74, 0.34);
  background: #fff5f3;
}

.report-stat.tone-info {
  border-color: rgba(30, 93, 145, 0.2);
  background: #f5f9fc;
}

.report-stat span,
.report-metric-row span,
.report-prompt-card dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.report-stat strong {
  color: var(--navy);
  font-size: 1.24rem;
}

.report-stat p,
.report-read p,
.report-metric-row p,
.proof-gap-item p,
.report-prompt-card p,
.report-next-step p,
.report-next-step small {
  color: var(--muted);
  line-height: 1.42;
}

.report-copy-block,
.metric-breakdown-list,
.competitive-read,
.competitive-brand-list,
.proof-gap-list,
.report-prompt-list {
  display: grid;
  gap: 10px;
}

.report-read {
  border-left: 4px solid var(--teal);
  background: #f4fbf8;
}

.report-read strong,
.proof-gap-item strong,
.report-prompt-card h4,
.report-next-step h4 {
  display: block;
  color: var(--ink);
}

.report-read p,
.proof-gap-item p,
.report-prompt-card p {
  margin-top: 5px;
}

.report-metric-row {
  display: grid;
  gap: 8px;
}

.report-metric-row > div,
.competitive-brand-row,
.proof-gap-item > div,
.report-prompt-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.report-metric-row strong {
  color: var(--ink);
  font-size: 1.12rem;
}

.competitive-brand-row > div {
  flex: 1 1 auto;
  min-width: 0;
}

.competitive-brand-row strong {
  display: block;
  overflow-wrap: anywhere;
}

.competitive-brand-row span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.competitive-brand-row b {
  flex: 0 0 auto;
}

.competitive-brand-row.is-monitored-brand {
  border-color: rgba(30, 123, 99, 0.35);
  background: #f4fbf8;
}

.proof-gap-item {
  display: grid;
  gap: 7px;
}

.proof-gap-item > div {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.report-prompt-card {
  display: grid;
  gap: 9px;
}

.report-prompt-card h4,
.report-next-step h4 {
  margin: 0;
  font-size: 0.98rem;
}

.report-prompt-card dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin: 0;
}

.report-prompt-card dl div {
  display: grid;
  gap: 2px;
}

.report-prompt-card dd {
  margin: 0;
  color: #2f3e51;
  font-size: 0.84rem;
  font-weight: 800;
}

.prompt-type-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 8px;
  font-size: 0.72rem;
  font-weight: 900;
}

.prompt-type-pill.is-organic {
  background: var(--mint);
  color: var(--teal);
}

.prompt-type-pill.is-branded {
  background: var(--sky);
  color: #174284;
}

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

.report-next-step {
  display: grid;
  align-content: start;
  gap: 8px;
}

.report-next-step .phase-pill {
  justify-self: start;
}

.fix-builder-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.2fr);
  gap: 12px;
  margin-top: 12px;
}

.opportunity-card {
  display: grid;
  gap: 7px;
  width: 100%;
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: 7px;
  background: #fbfdff;
  color: var(--ink);
  padding: 12px;
  text-align: left;
}

.opportunity-card:hover,
.opportunity-card.is-selected {
  border-color: var(--teal);
  border-left-color: var(--teal);
  background: #f4fbf8;
}

.opportunity-card.opportunity-high {
  border-left-color: var(--coral);
}

.opportunity-card.opportunity-medium {
  border-left-color: var(--amber);
}

.opportunity-card strong {
  overflow-wrap: anywhere;
}

.opportunity-card span {
  color: var(--muted);
  font-size: 0.8rem;
}

.opportunity-card .opportunity-next {
  color: #2f3e51;
  font-size: 0.8rem;
  line-height: 1.35;
}

.opportunity-topline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.opportunity-topline b {
  color: var(--coral);
}

.builder-panel textarea {
  min-height: 112px;
}

.field-help,
.file-purpose {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}

.field-help {
  margin: 3px 0 6px;
}

.file-purpose {
  margin: -4px 0 0;
}

.builder-summary,
.builder-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.builder-actions {
  justify-content: flex-end;
}

.builder-actions select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
  font-weight: 800;
}

.file-generator {
  display: grid;
  gap: 10px;
  margin-top: 6px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.file-generator h4 {
  margin: 0;
  font-size: 0.94rem;
}

.file-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.file-tab {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 0 10px;
  font-size: 0.76rem;
  font-weight: 900;
}

.file-tab.is-active {
  border-color: var(--teal);
  background: var(--mint);
  color: var(--teal);
}

.builder-panel .generated-file-content {
  min-height: 260px;
  background: #f8fbfc;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.8rem;
  line-height: 1.45;
  white-space: pre;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--navy);
  background: #f2f6fa;
  font-size: 0.74rem;
  text-transform: uppercase;
  white-space: nowrap;
}

th .tooltip {
  margin-left: 3px;
}

th .tooltip::after {
  top: calc(100% + 9px);
  bottom: auto;
  transform: translate(-50%, -4px);
}

th .tooltip::before {
  top: calc(100% + 3px);
  bottom: auto;
  transform: translate(-50%, -4px) rotate(45deg);
}

th .tooltip:hover::after,
th .tooltip:focus::after {
  transform: translate(-50%, 0);
}

th .tooltip:hover::before,
th .tooltip:focus::before {
  transform: translate(-50%, 0) rotate(45deg);
}

th:first-child .tooltip::after {
  left: 0;
  transform: translate(0, -4px);
}

th:first-child .tooltip:hover::after,
th:first-child .tooltip:focus::after {
  transform: translate(0, 0);
}

th:nth-last-child(-n + 2) .tooltip::after {
  right: 0;
  left: auto;
  transform: translate(0, -4px);
}

th:nth-last-child(-n + 2) .tooltip:hover::after,
th:nth-last-child(-n + 2) .tooltip:focus::after {
  transform: translate(0, 0);
}

.score-chip {
  display: inline-flex;
  min-width: 44px;
  justify-content: center;
  border-radius: 999px;
  padding: 3px 8px;
  color: white;
  background: var(--teal);
  font-weight: 900;
}

.score-low {
  background: var(--coral);
}

.score-mid {
  background: var(--amber);
}

.answer-card {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  background: #fbfdff;
}

.answer-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.answer-card p {
  color: #2f3e51;
  line-height: 1.45;
}

.citation-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.citation-list a {
  max-width: 220px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef3f7;
  color: #174284;
  padding: 4px 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.75rem;
  text-decoration: none;
}

.empty-state,
.empty-cell {
  color: var(--muted);
  font-weight: 700;
}

.usage-shell {
  min-height: 100vh;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(237, 242, 245, 0.92), rgba(243, 239, 231, 0.9)),
    var(--bg);
}

.usage-topbar,
.usage-hero,
.usage-panel,
.usage-stat,
.usage-provider-card {
  min-width: 0;
  border: 1px solid rgba(217, 225, 234, 0.95);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.usage-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1480px;
  margin: 0 auto 16px;
  padding: 12px 14px;
}

.usage-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1c1814;
  font-family: "Bricolage Grotesque", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
}

.usage-brand img {
  width: 46px;
  height: 36px;
  object-fit: contain;
}

.usage-brand em {
  color: #e85a42;
  font-style: italic;
}

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

.usage-nav a {
  color: #314054;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.usage-hero,
.usage-summary-grid,
.usage-control-grid,
.usage-provider-grid,
.usage-detail-grid {
  max-width: 1480px;
  margin-right: auto;
  margin-left: auto;
}

.usage-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
  padding: clamp(22px, 4vw, 38px);
  background:
    linear-gradient(135deg, rgba(24, 52, 77, 0.96), rgba(30, 123, 99, 0.88)),
    var(--navy);
  color: white;
}

.usage-hero .eyebrow,
.usage-hero p {
  color: rgba(255, 255, 255, 0.78);
}

.usage-hero h1 {
  margin-top: 4px;
  color: white;
  font-family: "Bricolage Grotesque", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.95;
}

.usage-hero p {
  max-width: 660px;
  margin-top: 12px;
  font-size: 1rem;
  line-height: 1.55;
}

.usage-period-control {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.usage-period-button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.76);
  padding: 9px 12px;
  font-size: 0.82rem;
  font-weight: 900;
}

.usage-period-button.is-active {
  background: white;
  color: var(--navy);
}

.usage-shell .status-banner {
  max-width: 1480px;
  margin: 0 auto 12px;
}

.usage-summary-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) repeat(3, minmax(190px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.usage-stat {
  display: grid;
  gap: 8px;
  min-height: 142px;
  padding: 18px;
}

.usage-stat span,
.usage-stat small,
.usage-provider-card small,
.usage-provider-caption,
.usage-note,
.usage-ledger-meta {
  color: var(--muted);
}

.usage-stat span {
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.usage-stat strong {
  align-self: end;
  color: var(--navy);
  font-size: clamp(1.65rem, 3vw, 2.65rem);
  line-height: 1;
}

.usage-stat-primary {
  background:
    linear-gradient(135deg, rgba(223, 244, 235, 0.95), rgba(255, 255, 255, 0.95)),
    white;
}

.usage-control-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 12px;
  margin-bottom: 12px;
}

.usage-panel {
  padding: 16px;
}

.usage-panel h2 {
  color: var(--navy);
  font-size: 1rem;
}

.usage-budget-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 12px;
}

.usage-budget-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #d9e1ea;
  margin-top: 12px;
}

.usage-budget-meter span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
  transition:
    width 180ms ease,
    background 180ms ease;
}

.usage-pill {
  border-radius: 999px;
  background: var(--mint);
  color: var(--teal);
  padding: 5px 9px;
  font-size: 0.76rem;
  font-weight: 900;
}

.usage-note {
  margin-top: 9px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.usage-ledger-meta {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  font-size: 0.88rem;
  font-weight: 800;
}

.usage-provider-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.usage-provider-card {
  display: grid;
  gap: 12px;
  min-height: 260px;
  padding: 16px;
  overflow: hidden;
}

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

.usage-provider-head span {
  display: grid;
  gap: 3px;
}

.usage-provider-head strong {
  color: var(--navy);
}

.usage-provider-head b {
  color: var(--teal);
  white-space: nowrap;
}

.usage-provider-total {
  color: var(--ink);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 900;
  line-height: 1;
}

.usage-provider-caption {
  min-height: 34px;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

.usage-bars {
  display: grid;
  gap: 6px;
}

.usage-bars span {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: var(--teal);
}

.usage-bars span + span {
  background: var(--amber);
}

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

.usage-provider-metrics div {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfdff;
  padding: 8px;
}

.usage-provider-metrics dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.usage-provider-metrics dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-weight: 900;
}

.usage-provider-openai {
  border-top: 4px solid var(--teal);
}

.usage-provider-anthropic {
  border-top: 4px solid var(--amber);
}

.usage-provider-gemini {
  border-top: 4px solid var(--blue);
}

.usage-provider-perplexity {
  border-top: 4px solid var(--coral);
}

.usage-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  gap: 12px;
}

.usage-table td:last-child,
.usage-table th:last-child {
  text-align: right;
}

.usage-table td {
  white-space: nowrap;
}

.usage-panel .table-wrap {
  max-width: 100%;
  min-width: 0;
}

@media (max-width: 1080px) {
  .workspace,
  .score-grid,
  .insight-grid,
  .content-grid,
  .market-grid,
  .hero-report,
  .workflow-panel,
  .pro-report-intro,
  .report-breakdown-grid,
  .fix-builder-grid,
  .usage-summary-grid,
  .usage-control-grid,
  .usage-provider-grid,
  .usage-detail-grid {
    grid-template-columns: 1fr;
  }

  .control-panel {
    position: static;
    max-height: none;
  }

  .hero-copy {
    padding: 4px 18px 20px;
  }

  .workflow-stages {
    grid-template-columns: 1fr 1fr;
  }

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

  .usage-hero {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .app-shell {
    padding: 10px;
  }

  .usage-shell {
    padding: 10px;
  }

  .usage-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .usage-provider-grid,
  .usage-budget-row {
    grid-template-columns: 1fr;
  }

  .usage-period-control,
  .usage-period-button,
  .usage-budget-row .primary-button,
  .usage-nav .secondary-button {
    width: 100%;
  }

  .usage-table {
    table-layout: fixed;
    font-size: 0.66rem;
  }

  .usage-table th,
  .usage-table td {
    padding: 8px 5px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .report-panel,
  .control-panel {
    padding: 14px;
  }

  .scan-allowance div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .scan-upgrade-button {
    width: 100%;
  }

  .engine-list {
    grid-template-columns: 1fr;
  }

  .workflow-stages {
    grid-template-columns: 1fr;
  }

  .toolbar-actions {
    flex-wrap: wrap;
  }

  .report-tabs {
    overflow-x: auto;
  }

  .tab-button {
    white-space: nowrap;
  }

  .builder-actions {
    justify-content: stretch;
  }

  .builder-actions > * {
    flex: 1 1 140px;
  }

  .market-signal,
  .playbook-item {
    grid-template-columns: 1fr;
  }

  .market-signal {
    display: grid;
  }

  .builder-panel .generated-file-content {
    min-height: 220px;
  }
}

@media print {
  body {
    background: white;
  }

  .control-panel,
  .toolbar-actions,
  .status-banner,
  .hero-report img,
  .workflow-visual {
    display: none;
  }

  .workspace {
    display: block;
  }

  .report-panel {
    box-shadow: none;
    border: 0;
  }
}
