.redacao-page {
  width: min(100%, 1440px);
  margin-inline: auto;
  padding: clamp(14px, 2.25vw, 32px);
  container: redacao / inline-size;
}
.newsroom, .headline-reader {
  min-width: 0;
  font-size: calc(13px * var(--admin-font-factor, 1));
  display: grid;
  gap: 14px;
}
.newsroom h1, .newsroom h2, .newsroom h3, .newsroom h4, .newsroom p, .headline-reader h2, .headline-reader h3, .headline-reader p { margin: 0; }
.newsroom a:not(.btn) { color: var(--mint); text-decoration: underline; text-underline-offset: .2em; }
.newsroom :is(p, small, label, strong, a, h2, h3), .headline-reader :is(p, h3) { overflow-wrap: anywhere; }

.newsroom-hero {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: end;
  justify-content: space-between;
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(112deg, var(--mint-bg) 0%, var(--card) 72%);
}
.newsroom-hero-copy { flex: 1 1 390px; min-width: 0; }
.newsroom-hero h1 { color: var(--text); font-size: calc(clamp(27px, 3vw, 39px) * var(--admin-font-factor, 1)); line-height: 1.15; margin-block: 5px 8px; }
.newsroom-hero-copy > p:last-child, .headline-header > div > p:last-child { color: var(--muted); max-width: 54ch; }
.news-kicker {
  color: var(--mint);
  font-size: .8em;
  letter-spacing: .1em;
  font-weight: 750;
  text-transform: uppercase;
}
.newsroom-signal, .newsroom-dot { width: .64em; height: .64em; display: inline-block; border-radius: 50%; background: var(--mint); }
.newsroom-signal { margin-inline-end: 4px; vertical-align: .1em; }
.newsroom-hero-actions, .newsroom-tabs, .headline-presenter-tabs, .newsroom-actions,
.newsroom-meta, .newsroom-pages, .newsroom-topics, .newsroom-public-links {
  display: flex;
  flex-flow: row wrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
}
.newsroom-tabs, .headline-presenter-tabs {
  padding: 0 0 10px;
  border-bottom: 1px solid var(--line);
}
.newsroom-tabs [data-redacao-action="refresh"] { margin-inline-start: auto; }
.newsroom-tabs [aria-pressed="true"], .headline-presenter-tabs [aria-pressed="true"] {
  color: var(--mint);
  background: var(--mint-bg);
  border-color: var(--mint);
  font-weight: 750;
  box-shadow: inset 0 -2px var(--mint);
}

.news-feedback, .newsroom-notice {
  border-inline-start: 3px solid var(--mint);
  background: var(--card2);
  color: var(--text);
  border-radius: 7px;
  padding: 10px 12px;
}
.news-feedback:empty, .newsroom-notice:empty { display: none; }
.news-feedback.is-error, .newsroom-notice.is-error { color: var(--red); border-inline-start-color: var(--red); }
.newsroom .is-error { color: var(--red); }
.newsroom-empty, .redacao-pending { padding: clamp(14px, 3vw, 25px); color: var(--muted); }
.redacao-pending p { margin-block: 8px 16px; }

.newsroom-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.newsroom-metric {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--muted);
  padding: 12px 14px;
  text-align: start;
}
.newsroom-metric strong { grid-column: 2; font-size: 1.8em; line-height: 1.2; color: var(--text); font-variant-numeric: tabular-nums; }
.newsroom-metric[aria-pressed="true"], .newsroom-metric:hover { border-color: var(--mint); background: var(--mint-bg); }
.newsroom-dot[data-status="pending"] { background: var(--yellow); }
.newsroom-dot[data-status="rejected"] { background: var(--red); }
.newsroom-filters {
  display: grid;
  grid-template-columns: minmax(110px, .8fr) minmax(145px, 1fr) minmax(150px, 1.65fr) auto;
  align-items: end;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}
.newsroom label:not(.newsroom-check), .headline-filters label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--text);
  font-weight: 650;
}
.newsroom :is(input:not([type="checkbox"]), select, textarea), .headline-filters select {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-weight: 400;
}
.newsroom input[type="file"] { font-size: .88em; max-width: 100%; }
.newsroom textarea { min-height: 125px; resize: vertical; line-height: 1.6; }
.newsroom .btn, .headline-reader .btn, .headline-presenter-tabs .btn { min-height: 38px; white-space: normal; }
.newsroom :is(button, a, input, select, textarea):focus-visible,
.headline-reader :is(button, select):focus-visible, .headline-presenter-tabs button:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}
.newsroom-columns {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 14px;
  align-items: start;
}
.newsroom-queue, .newsroom-editor {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 13px;
}
.newsroom-section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  min-height: 55px;
  padding: 10px 15px;
  border-bottom: 1px solid var(--line);
}
.newsroom-section-head h2 { font-size: 1.27em; }
#redacaoEditor:focus { outline: none; }
.newsroom-list { display: grid; gap: 7px; list-style: none; margin: 0; padding: 10px; }
.newsroom-story {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 10px 11px;
  text-align: start;
  color: var(--text);
  background: var(--card2);
  border: 1px solid var(--line);
  border-radius: 9px;
}
.newsroom-story:hover, .newsroom-story[aria-pressed="true"] { border-color: var(--mint); }
.newsroom-story[aria-pressed="true"] { background: var(--mint-bg); }
.newsroom-story strong { font-size: 1.09em; }
.newsroom-story small, .newsroom-hint, .newsroom-source-row small { color: var(--muted); }
.news-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-width: 0;
  border-radius: 20px;
  padding: 3px 8px;
  background: var(--card2);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: .81em;
  font-weight: 650;
}
.news-pill[data-status="approved"], .news-blog-pill { color: var(--mint); background: var(--mint-bg); }
.news-pill[data-status="pending"] { background: color-mix(in srgb, var(--yellow) 16%, var(--card)); }
.news-pill[data-status="rejected"] { background: color-mix(in srgb, var(--red) 15%, var(--card)); }
.newsroom-pages { padding: 0 10px 12px; justify-content: center; color: var(--muted); }
.newsroom-editor-empty { min-height: 204px; display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; padding: 20px; }
.newsroom-editor-empty p { color: var(--muted); max-width: 36ch; }
.newsroom-editor-empty span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--mint); background: var(--mint-bg); }
.newsroom-editor-empty svg { width: 20px; height: 20px; }
.newsroom-editor-body, .newsroom-editor-form, .newsroom-fields, .newsroom-cover-controls {
  display: grid;
  min-width: 0;
  gap: 12px;
}
.newsroom-editor-body { padding: 14px; }
.newsroom-edit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.newsroom-source { display: grid; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--card2); }
.newsroom-source summary { color: var(--text); font-weight: 650; cursor: pointer; }
.newsroom-source p { margin-block: 6px; }
.newsroom fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.newsroom :is(.newsroom-cover, .newsroom-publish) {
  display: grid;
  gap: 9px;
  padding: 9px 11px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.newsroom legend { padding-inline: 6px; font-weight: 750; }
.newsroom-cover-layout { display: grid; grid-template-columns: minmax(130px, .85fr) minmax(0, 1.15fr); gap: 10px; align-items: start; }
.newsroom-cover figure { min-width: 0; margin: 0; }
.newsroom-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--card2);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.newsroom-cover figcaption { color: var(--muted); font-size: .86em; overflow-wrap: anywhere; margin-top: 4px; }
.newsroom-cover-controls .btn { justify-self: start; }
.newsroom-check { display: flex; align-items: flex-start; gap: 7px; min-width: 0; }
.newsroom-check input { accent-color: var(--mint); flex: 0 0 auto; margin-block-start: .28em; }
.newsroom-editor-foot { display: flex; justify-content: end; }
.newsroom-source-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, .85fr); }
.newsroom-source-grid .newsroom-list { padding: 0; }
.newsroom-source-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 9px;
  border: 1px solid var(--line);
  background: var(--card2);
  border-radius: 9px;
  padding: 11px;
}
.newsroom-source-row > div { min-width: 0; }
.newsroom-source-row p { color: var(--muted); margin-block: 4px; }
.newsroom-topics .btn { min-height: 32px; }

.console-tabs button[data-tab="newsroom"] { --studio-ink: var(--mint); }
.headline-reader { padding: clamp(12px, 2vw, 21px); border: 1px solid var(--line); border-radius: 13px; background: var(--card); }
.headline-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
}
.headline-header h2 { font-size: calc(clamp(20px, 2.2vw, 27px) * var(--admin-font-factor, 1)); }
.headline-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.headline-filters label { flex: 0 1 250px; }
.headline-list { display: grid; gap: 9px; }
.headline-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(8px, 1.5vw, 16px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card2);
  padding: clamp(11px, 2vw, 19px);
}
.headline-number { color: var(--mint); font: 750 1.1em / 1.55 ui-monospace, monospace; }
.headline-copy h3 { font-size: calc(clamp(17px, 1.65vw, 22px) * var(--admin-font-factor, 1)); margin-block: 2px 8px; }
.headline-script { white-space: pre-wrap; font-size: 1.12em; line-height: 1.68; }
.headline-copy .headline-source { color: var(--muted); margin-top: 8px; font-size: .9em; }
.headline-presenter-tabs { margin-block: 12px; }
#presenterNewsPanel { margin-block: 14px; }
#presenterPlaylistPanel[hidden], #presenterNewsPanel[hidden] { display: none; }

.newsroom-prompter {
  max-height: min(50vh, 480px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: clamp(12px, 2vw, 24px);
  background: #0b151a;
  color: #f2f8fa;
  border: 1px solid #33515a;
  border-radius: 8px;
  font-size: calc(clamp(17px, 1.55vw, 23px) * var(--admin-font-factor, 1));
  line-height: 1.6;
}
.newsroom-prompter article { padding-block: 14px; border-block: 1px solid #30444a; margin-block: 12px; }
.newsroom-prompter h4 { color: #b8f5d6; font-size: 1.06em; margin-block: 4px; }
.newsroom-prompter p { white-space: pre-wrap; color: inherit; }
.newsroom-prompter small { font-size: .7em; color: #b7c9cf; }
.newsroom-prompter .eyebrow { color: #b8f5d6; }
.newsroom-record { display: grid; gap: 9px; margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.newsroom-record audio { width: min(100%, 420px); height: 38px; }
.newsroom-selection, .newsroom-giro-controls { margin-block: 9px; }
.newsroom-selection summary { cursor: pointer; color: var(--mint); }

@container redacao (max-width: 760px) {
  .newsroom-columns { grid-template-columns: minmax(0, 1fr); }
  .newsroom-columns:has([data-redacao-form="review"]) .newsroom-editor { grid-row: 1; }
  .newsroom-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .newsroom-filters > button { justify-self: end; }
}
@container redacao (max-width: 425px) {
  .newsroom-tabs [data-redacao-action="refresh"] { margin-inline-start: 0; }
  .newsroom-cover-layout { grid-template-columns: minmax(0, 1fr); }
  .newsroom-metrics { gap: 6px; }
  .newsroom-metric { padding: 8px 7px; gap: 3px 5px; font-size: .87em; }
  .newsroom-filters label:has(input[type="search"]) { grid-column: 1 / -1; }
  .newsroom-filters > button { grid-column: 1 / -1; justify-self: stretch; }
  .newsroom-editor-body, .newsroom-filters { padding: 10px; }
}
