@font-face {
  font-family: Inter;
  src: url("/static/fonts/Inter.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Newsreader;
  src: url("/static/fonts/Newsreader.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/static/fonts/GeistMono.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
/* Resend reference: black canvas, off-white action, hairline depth, editorial type. */
:root {
  color-scheme: dark;
  --bg: #000;
  --panel: #0a0a0c;
  --panel2: #101012;
  --deep: #06060a;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.14);
  --fg: #fcfdff;
  --body: rgba(252, 253, 255, 0.86);
  --muted: #a1a4a5;
  --ash: #888e90;
  --accent: #fcfdff;
  --red: #ff6a81;
  --purple: #b7b3cc;
  --amber: #ffc53d;
  --green: #11ff99;
  --blue: #3b9eff;
  --serif: Newsreader, Georgia, "Times New Roman", serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --sidebar-width: 224px;
  --radius: 12px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 28px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: #ffffff30;
  color: #fff;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--fg);
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  border: 1px solid var(--line-strong);
  background: var(--panel2);
  border-radius: 8px;
  padding: 8px 14px;
  color: var(--fg);
  cursor: pointer;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  transition:
    background 0.16s,
    border-color 0.16s,
    color 0.16s;
}
button:hover,
.button:hover {
  background: #19191c;
  border-color: #ffffff35;
  color: var(--fg);
}
button:active,
.button:active {
  background: #242427;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.primary {
  background: var(--fg);
  border-color: var(--fg);
  color: #000;
}
.primary:hover,
.primary:active {
  background: #e7ebef;
  border-color: #e7ebef;
  color: #000;
}
.danger {
  color: var(--red);
}
.link {
  border: 0;
  min-height: 28px;
  padding: 4px 0;
  background: transparent;
  color: var(--muted);
  font-weight: 400;
}
.link:hover {
  background: transparent;
  color: var(--fg);
}
.icon-button {
  padding: 7px;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: transparent;
}
.button svg,
button svg,
nav svg {
  flex-shrink: 0;
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--fg);
  outline: none;
  font-size: 14px;
  transition: border-color 0.16s;
}
input::placeholder,
textarea::placeholder {
  color: #7f8087;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--fg);
}
textarea {
  resize: vertical;
  line-height: 1.65;
  scroll-margin-block: 96px;
}
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--fg);
}
input[type="color"] {
  height: 43px;
  padding: 5px;
}
label {
  display: block;
  color: var(--body);
  font-size: 13px;
  margin: 20px 0 6px;
}
label > input,
label > select,
label > textarea {
  display: block;
  margin-top: 8px;
}
form {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  color: var(--fg);
  font-weight: 500;
}
h1 {
  font-size: 36px;
  line-height: 1.12;
  letter-spacing: -1px;
  margin: 12px 0 20px;
}
h2 {
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -0.4px;
  margin: 0 0 16px;
}
h3 {
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.15px;
  margin: 20px 0 8px;
}
p {
  margin: 8px 0 16px;
}
.display-title,
.page-head h1 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: clamp(48px, 5.4vw, 76px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  font-feature-settings: "ss01", "liga";
}
.page-head .eyebrow {
  margin-bottom: 22px;
}
.page-head h1 {
  margin: 0 0 20px;
}
.page-description {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 620px;
}
.title-stop {
  color: #87878c;
}
.muted {
  color: var(--muted);
}
.small,
small {
  font-size: 12px;
}
.accent {
  color: var(--fg);
}
.amber,
.warning {
  color: var(--amber);
}
.error,
.red {
  color: var(--red);
}
.green {
  color: var(--green);
}
.wide {
  width: 100%;
}
.eyebrow,
.nav-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.8px;
  color: var(--muted);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow-line {
  width: 22px;
  height: 1px;
  background: #fff8;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  color: #000;
  background: #fff;
  transform: translateY(-150%);
}
.skip-link:focus {
  transform: translateY(0);
  color: #000;
}
/* Workspace chrome stays quiet; the story carries the hierarchy. */
.sidebar {
  width: var(--sidebar-width);
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  border-right: 1px solid var(--line);
  padding: 30px 16px 20px;
  display: flex;
  flex-direction: column;
  background: #050505;
  overflow-y: auto;
}
.sidebar-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}
.brand {
  display: inline-flex;
  width: 108px;
  flex-shrink: 0;
}
.brand, .topbar-brand {
  cursor: default;
  -webkit-user-select: none;
  user-select: none;
}
.platform-logo {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
}
.workspace-label {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 10px;
  margin: 37px 0 30px;
  font-size: 12px;
}
.workspace-avatar {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 20px;
}
.workspace-label small {
  display: block;
  font-size: 10px;
  color: var(--ash);
  margin-top: 2px;
}
.nav-label {
  margin: 0 12px 12px;
  font-size: 9px;
  letter-spacing: 1.3px;
  color: var(--ash);
}
.secondary-nav-label {
  margin-top: 32px;
}
nav {
  display: grid;
  gap: 4px;
}
nav a {
  display: flex;
  align-items: center;
  padding: 11px 12px;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  gap: 11px;
  color: var(--muted);
  font-size: 12px;
  transition:
    background 0.16s,
    color 0.16s;
}
nav a:hover {
  background: #ffffff06;
}
nav a.active {
  background: #141416;
  border-color: var(--line);
  color: var(--fg);
}
nav a svg {
  color: var(--ash);
}
nav a.active svg {
  color: var(--fg);
}
.nav-mark {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--fg);
  margin-left: auto;
  opacity: 0;
}
nav a.active .nav-mark {
  opacity: 1;
}
.primary-navigation {
  margin-top: 40px;
}
.sidebar-spend {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: auto;
  margin-bottom: 16px;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
}
.sidebar-spend:hover {
  border-color: var(--line-strong);
  color: var(--muted);
}
.sidebar-spend:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.sidebar-spend-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.2px;
  color: var(--ash);
}
.sidebar-spend-total {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.6px;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.sidebar-spend-window {
  font-size: 11px;
  color: var(--ash);
}
.sidebar-spend-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  font-size: 11px;
}
.sidebar-spend-line strong {
  font-weight: 500;
  color: var(--body);
  font-variant-numeric: tabular-nums;
}
.sidebar-spend-note {
  font-size: 10px;
  line-height: 1.4;
  color: var(--ash);
}
.sidebar-spend-note[data-spend-tone='amber'] {
  color: var(--amber);
}
.sidebar-foot {
  margin-top: 0;
  padding: 16px 10px 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-foot form {
  margin: 0;
}
.sidebar-foot .icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 8px;
}
.sidebar-settings:hover, .sidebar-settings.active {
  color: var(--fg);
  background: var(--panel);
  border-color: var(--line);
}
.sidebar-foot .sidebar-logout:hover {
  color: var(--red);
  background: #ff20470a;
}
.live-dot {
  display: inline-block;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  margin-right: 2px;
}
.workspace {
  margin-left: var(--sidebar-width);
  padding: 0 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.topbar {
  height: 72px;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 11px;
}
.topbar-location {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.topbar-path {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.topbar-brand {
  color: var(--body);
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.settings-breadcrumb {
  flex-shrink: 0;
  color: var(--muted);
}
.settings-breadcrumb:hover {
  color: var(--fg);
}
.topbar-current {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.breadcrumb-separator {
  color: #4c4c52;
}
.top-state {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 10px;
  flex-shrink: 0;
}
.top-state .pill {
  margin-left: 8px;
  font-size: 10px;
  padding: 3px 9px;
}
.demo-notice {
  padding: 10px 0;
  color: var(--amber);
  font-size: 11px;
  border-bottom: 1px solid var(--line);
}
.page-content {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  flex: 1;
  min-width: 0;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin: 56px 0 40px;
}
.page-head p {
  margin-top: 0;
  margin-bottom: 0;
}
.workspace-footer {
  width: 100%;
  max-width: 1200px;
  margin: 44px auto 0;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--ash);
}
.nav-toggle,
.nav-close,
.nav-backdrop {
  display: none;
}
/* Chronological newsroom list. No priority score or automatic topic filtering. */
.feed-head {
  margin: 64px 0 28px;
  align-items: flex-end;
}
.feed-head h1 {
  font-size: clamp(56px, 6.4vw, 88px);
  margin-bottom: 0;
}
.feed-surface {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #0a0a0c 0, #050506 400px);
  overflow: hidden;
}
.feed-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 21px 24px;
  border-bottom: 1px solid var(--line);
}
.feed-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.feed-heading h2 {
  font-size: 14px;
  margin: 0;
  white-space: nowrap;
  letter-spacing: -0.1px;
}
.count {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  vertical-align: middle;
  background: #ffffff05;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 2px 7px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
}
.feed-order {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ash);
  font-size: 10px;
  margin-left: 12px;
  white-space: nowrap;
}
.feed-search {
  position: relative;
  max-width: 280px;
  flex: 1;
  min-width: 160px;
}
.feed-search > svg {
  position: absolute;
  left: 12px;
  top: 11px;
  color: var(--ash);
  pointer-events: none;
}
.feed-search input {
  padding: 9px 34px 9px 37px;
  min-height: 38px;
  font-size: 12px;
  background: #000;
}
.feed-search kbd {
  position: absolute;
  right: 11px;
  top: 9px;
  pointer-events: none;
}
.list-heading {
  display: flex;
  justify-content: space-between;
  color: var(--ash);
  font-size: 9px;
  letter-spacing: 1.2px;
  padding: 14px 24px;
  background: #ffffff02;
}
.list-heading span:last-child {
  padding-right: 35px;
}
.event-row.content-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 16px;
  align-items: center;
  gap: 24px;
  padding: 23px 24px;
  border-top: 1px solid var(--line);
  position: relative;
  transition: background 0.16s;
}
.event-row:hover,
.event-row.selected {
  background: #ffffff04;
  color: var(--fg);
}
.event-row:focus-visible {
  outline-offset: -3px;
}
.event-row.selected:before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: var(--fg);
}
.event-copy {
  min-width: 0;
}
.row-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ash);
  font-size: 10px;
  flex-wrap: wrap;
}
.row-source {
  overflow-wrap: anywhere;
}
.region {
  color: #c1c1c8;
  letter-spacing: 1px;
  font-size: 8px;
}
.meta-dot {
  color: #5c5c63;
}
.event-copy h3 {
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.18px;
  margin: 8px 0 0;
  font-weight: 450;
  overflow-wrap: anywhere;
  max-width: 810px;
}
.event-copy p {
  font-size: 11px;
  margin: 7px 0 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 730px;
}
.event-copy > .small {
  display: block;
  margin-top: 8px;
}
.event-end {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  max-width: 200px;
}
.event-time {
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 10px;
  color: var(--ash);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.row-open {
  display: flex;
  color: #55565e;
  transition:
    color 0.16s,
    transform 0.16s;
}
.event-row:hover .row-open {
  color: var(--fg);
  transform: translateX(3px);
}
.pill,
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  background: #ffffff03;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 400;
  white-space: nowrap;
}
.status.awaiting_approval {
  color: #9ce3ba;
  border-color: #11ff9924;
  background: #11ff9905;
}
.status.awaiting_approval:before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green);
}
.status.published {
  color: #acbded;
}
.status.reading,
.status.writing {
  color: #b5d9ff;
}
.status.content_blocked {
  color: var(--amber);
}
.feed-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 17px 24px;
  border-top: 1px solid var(--line);
  color: var(--ash);
  font-size: 10px;
}
.keyboard-hint {
  display: flex;
  align-items: center;
  gap: 5px;
}
.keyboard-hint > span {
  margin: 0 6px;
}
kbd {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 20px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
}
.feed-note {
  text-align: center;
  font-size: 11px;
  color: var(--ash);
  margin: 20px 0;
}
.feed-note strong {
  color: var(--muted);
  font-weight: 500;
}
/* Shared content, forms and operational states. */
.panel {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 22px;
  min-width: 0;
}
.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.section-head h2 {
  margin: 0;
}
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.check input {
  margin: 0;
  flex-shrink: 0;
}
.empty {
  text-align: center;
  padding: 64px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 20px 0;
}
.empty h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 44px;
}
.empty h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  margin: 20px 0 12px;
}
.empty p {
  font-size: 13px;
  line-height: 1.75;
}
.empty-icon {
  display: inline-grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  color: var(--muted);
}
.feed-empty,
.search-empty {
  border: 0;
  margin: 0;
  padding-block: 76px;
}
.empty .button {
  margin-top: 12px;
}
.banner {
  padding: 18px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--panel);
  font-size: 12px;
  line-height: 1.7;
  margin: 0 0 20px;
  overflow-wrap: anywhere;
}
.banner p:last-child {
  margin-bottom: 0;
}
.banner.amber {
  border-color: #ffc53d35;
  background: #ffc53d04;
}
.banner.error,
.banner.failed {
  border-color: #ff6a8140;
  background: #ff204705;
}
.banner strong {
  font-weight: 550;
}
.banner ul {
  padding-left: 20px;
}
.banner li + li {
  margin-top: 5px;
}
.detail-head {
  align-items: start;
}
.detail-head .row-meta {
  margin: 18px 0 12px;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.65fr);
  gap: 24px;
}
.detail-grid > .source-column,
.detail-grid > .editor-column {
  min-width: 0;
}
.source-column > h2 {
  margin: 8px 0 18px;
}
.source-card h3 {
  font-size: 15px;
  margin: 12px 0;
  line-height: 1.6;
}
.source-copy {
  font-size: 13px;
  color: var(--body);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 500px;
  overflow: auto;
  line-height: 1.8;
}
.source-meta {
  display: grid;
  grid-template-columns: 65px minmax(0, 1fr);
  font-size: 10px;
  color: var(--muted);
  gap: 6px;
  margin: 20px 0;
}
.source-meta dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--body);
}
details[open] > summary {
  margin-bottom: 16px;
}
details {
  min-width: 0;
}
.tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  background: var(--bg);
  border-bottom: 1px solid var(--line-strong);
  padding: 0;
  gap: 16px;
  max-width: 100%;
  overflow-x: auto;
  margin-bottom: 24px;
}
.tabs button {
  flex: 0 0 auto;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 15px 2px;
  color: var(--muted);
  font-size: 12px;
  min-height: 48px;
}
.tabs button:hover {
  color: var(--fg);
}
.tabs button.active {
  color: var(--fg);
  border-bottom-color: var(--fg);
}
.copy-field {
  position: relative;
  margin: 20px 0;
}
.char-count {
  float: right;
  color: var(--ash);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  margin-left: 10px;
  letter-spacing: -0.3px;
}
.save-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 24px;
}
.decision-bar {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 24px;
}
.decision-bar > .actions {
  margin-top: 16px;
}
.lint {
  display: flex;
  gap: 10px;
  font-size: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.quality-checks details {
  margin-top: 20px;
}
.evidence {
  border-left: 2px solid var(--line-strong);
  padding: 8px 14px;
  margin-top: 14px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.evidence.unmatched {
  border-color: var(--red);
  color: var(--red);
}
.evidence p {
  color: var(--muted);
  font-size: 11px;
  margin: 7px 0;
}
.evidence [data-evidence-missing] {
  color: var(--red);
}
.reread {
  margin-top: 14px;
}
.reread form {
  margin-top: 8px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.metric {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  padding: 24px;
  border-radius: 12px;
  min-width: 0;
}
.metric strong {
  margin-left: auto;
  font-size: 24px;
  font-weight: 400;
}
.metric > span:not(.tier) {
  font-size: 12px;
}
.metric.vertical {
  align-items: flex-start;
  gap: 10px;
  flex-direction: column;
}
.metric.vertical strong {
  margin: 0;
  font-size: 32px;
  letter-spacing: -1px;
}
.tier {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  flex-shrink: 0;
}
.bar-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  margin: 18px 0 7px;
}
progress {
  width: 100%;
  height: 4px;
  appearance: none;
  border: 0;
  border-radius: 5px;
  overflow: hidden;
  background: var(--line);
}
progress::-webkit-progress-bar {
  background: var(--line);
}
progress::-webkit-progress-value {
  background: #a1a4a5;
  border-radius: 5px;
}
progress::-moz-progress-bar {
  background: #a1a4a5;
}
.timeline {
  display: grid;
  grid-template-columns: 1fr auto;
  font-size: 12px;
  gap: 12px;
}
.timeline dt {
  color: var(--muted);
}
.timeline dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
}
.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}
.carousel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
figure {
  margin: 0;
  min-width: 0;
}
figure img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
}
.carousel img {
  aspect-ratio: 4 / 5;
  object-fit: contain;
}
figcaption {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
  gap: 8px;
  margin: 10px 0 18px;
}
figcaption a:hover {
  text-decoration: underline;
}
figcaption .red {
  font-size: 10px;
}
.table-wrap {
  overflow-x: auto;
  max-width: 100%;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
th {
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.6px;
  font-weight: 400;
  color: var(--muted);
  padding: 14px 12px;
  border-bottom: 1px solid var(--line-strong);
}
td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
td:first-child {
  max-width: 500px;
}
tr:last-child td {
  border-bottom: 0;
}
.inline-form {
  display: flex;
  gap: 6px;
}
.inline-form input {
  width: 76px;
  font-size: 12px;
  padding: 7px;
}
.inline-form button {
  padding: 7px;
  font-size: 11px;
}
.stat-line,
.version-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.code,
code {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.7;
  background: var(--deep);
  font-variant-ligatures: none;
}
code {
  padding: 2px 5px;
  border-radius: 4px;
}
.event-pick {
  max-height: 300px;
  overflow: auto;
  padding: 3px 0 20px;
  margin-bottom: 12px;
}
.event-pick .check {
  padding: 8px 0;
  line-height: 1.5;
}
.diff-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 12px 0;
  color: var(--muted);
  font-size: 12px;
}
.diff {
  font-family: var(--mono);
  font-size: 11px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  table-layout: fixed;
}
.diff td {
  padding: 6px;
  max-width: 100%;
  white-space: normal !important;
}
.diff_header,
.diff_next {
  background: var(--panel2);
  color: var(--muted);
  width: 24px;
}
.diff_next {
  width: 18px;
}
.diff_add {
  background: #11ff9918;
}
.diff_sub {
  background: #ff204724;
}
.diff_chg {
  background: #ffc53d24;
}
.step {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--muted);
  display: block;
  margin-bottom: 20px;
}
.login-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
}
.login-main > .page-content {
  max-width: 1200px;
  margin: auto;
}
.slide-editor {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 28px;
}
.slide-editor .section-head {
  margin-bottom: 12px;
}
.slide-editor h3 {
  margin: 0;
}
.slide-editor [data-slide-layout] {
  max-width: 260px;
}
.quote-proof {
  margin-top: 16px;
}
.generation-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  border-color: #ffffff24;
  background: var(--panel);
  margin-top: 20px;
  min-height: 74px;
}
.generation-progress strong {
  font-weight: 500;
}
.generation-progress > div {
  flex: 1;
  min-width: 0;
}
.progress-spinner,
.is-generating:before {
  content: "";
  width: 15px;
  height: 15px;
  border: 2px solid #ffffff25;
  border-top-color: var(--fg);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  flex-shrink: 0;
}
.elapsed {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  white-space: nowrap;
}
.is-generating:disabled {
  opacity: 0.75;
}
.primary.is-generating:before {
  border-color: #0003;
  border-top-color: #000;
}
.generation-progress[data-phase="stalled"] .progress-spinner {
  animation: none;
  border-color: var(--amber);
}
[data-engine-state="stopped"] .live-dot,
[data-engine-state="stalled"] .live-dot {
  background: var(--amber);
}
[data-event-updated] .button,
[data-event-connection] button {
  margin-left: 10px;
}
[data-event-detail] {
  overflow-anchor: none;
}
.form-error,
.form-status {
  font-size: 12px;
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  white-space: normal;
}
.form-error {
  color: var(--red);
  border-color: #ff6a8140;
  background: #ff204705;
}
.form-status {
  color: #9ce3ba;
  border-color: #11ff9924;
  background: #11ff9905;
}
.field-error {
  color: var(--red);
  font-size: 11px;
  margin: 8px 0 0;
}
textarea[aria-invalid="true"],
select[aria-invalid="true"],
input[aria-invalid="true"] {
  border-color: var(--red);
}
.slide-editor[aria-invalid="true"] {
  border-top-color: var(--red);
}
.banner.failed {
  color: var(--red);
}
[data-event-failed] .button,
[data-event-failed] button,
[data-event-updated] button {
  margin-left: 10px;
}
[data-export-blocked] {
  margin-bottom: 14px;
}
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 60;
  max-width: min(420px, calc(100vw - 32px));
  background: var(--panel2);
  border: 1px solid #ffffff40;
  color: var(--fg);
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 13px;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 4px;
}
main:focus {
  outline: none;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (min-width: 1600px) {
  .workspace {
    padding-inline: 56px;
  }
  .topbar {
    max-width: 1320px;
    width: 100%;
    margin-inline: auto;
  }
  .page-head {
    margin-top: 72px;
  }
  .feed-head h1 {
    font-size: 96px;
  }
}
@media (max-width: 1279px) {
  .workspace {
    padding-inline: 28px;
  }
  .event-row.content-row {
    gap: 18px;
  }
  .event-end {
    max-width: 178px;
  }
  .feed-toolbar {
    gap: 12px;
    padding-inline: 20px;
  }
  .feed-order {
    display: none;
  }
  .event-copy h3 {
    font-size: 14px;
  }
  .metric {
    padding: 20px;
  }
  .top-state .model-status {
    display: none;
  }
}
@media (max-width: 1023px) {
  :root {
    --sidebar-width: 0px;
  }
  .workspace {
    margin-left: 0;
    padding-inline: 28px;
  }
  .sidebar {
    width: 248px;
    transform: translateX(-100%);
    visibility: hidden;
    transition:
      transform 0.2s,
      visibility 0.2s;
    background: #050505;
    z-index: 50;
  }
  .sidebar-brand-row {
    padding-right: 0;
  }
  .nav-toggle,
  .nav-close {
    display: inline-flex;
  }
  .nav-toggle {
    border: 0;
    margin-left: -8px;
  }
  .nav-close {
    border: 0;
  }
  .nav-backdrop {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    background: #0009;
    backdrop-filter: blur(3px);
    z-index: 40;
    display: block;
  }
  .nav-backdrop:hover {
    background: #0009;
  }
  .nav-open {
    overflow: hidden;
  }
  .nav-open .sidebar {
    transform: translateX(0);
    visibility: visible;
  }
  .topbar {
    height: 64px;
    min-height: 64px;
  }
  .page-head {
    margin-top: 44px;
  }
  .page-head h1 {
    font-size: 64px;
  }
  .detail-grid,
  .two-col {
    grid-template-columns: minmax(0, 1fr);
  }
  .source-column {
    order: 2;
    margin-top: 24px;
  }
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .form-grid {
    gap: 0 16px;
  }
  .panel {
    padding: 24px;
  }
  .section-head {
    flex-wrap: wrap;
    align-items: flex-start;
  }
}
@media (max-width: 767px) {
  .workspace {
    padding-inline: 20px;
  }
  .page-head {
    margin: 36px 0 30px;
    gap: 20px;
    align-items: flex-start;
  }
  .page-head h1 {
    font-size: 56px;
  }
  .page-head .eyebrow {
    margin-bottom: 18px;
  }
  .page-description {
    font-size: 13px;
  }
  .feed-head {
    flex-direction: column;
    gap: 24px;
  }
  .feed-head .primary {
    align-self: flex-start;
  }
  .feed-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 20px;
  }
  .feed-heading {
    justify-content: flex-start;
  }
  .feed-order {
    display: flex;
    margin-left: auto;
  }
  .feed-search {
    max-width: none;
    width: 100%;
  }
  .feed-search input {
    min-height: 44px;
    font-size: 13px;
  }
  .feed-search > svg {
    top: 14px;
  }
  .feed-search kbd {
    display: none;
  }
  .list-heading {
    padding: 12px 20px;
  }
  .list-heading span:last-child {
    display: none;
  }
  .event-row.content-row {
    grid-template-columns: minmax(0, 1fr) 16px;
    gap: 14px;
    padding: 22px 20px;
  }
  .event-copy {
    grid-column: 1;
  }
  .event-end {
    grid-column: 1;
    grid-row: 2;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    max-width: none;
  }
  .row-open {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
  .event-copy h3 {
    font-size: 15px;
  }
  .event-copy p {
    font-size: 11px;
  }
  .event-end .status {
    white-space: normal;
    font-size: 9px;
  }
  .feed-footer {
    padding: 16px 20px;
  }
  .keyboard-hint {
    display: none;
  }
  .feed-note {
    font-size: 10px;
    line-height: 1.7;
    max-width: 340px;
    margin-inline: auto;
  }
  .topbar-location {
    gap: 10px;
    font-size: 10px;
  }
  .topbar-brand,
  .breadcrumb-separator {
    display: none;
  }
  .top-state {
    font-size: 9px;
    gap: 5px;
  }
  .workspace-footer {
    font-size: 9px;
  }
  .workspace-footer span:last-child {
    display: none;
  }
  .panel {
    padding: 20px;
  }
  .detail-head {
    display: block;
  }
  .detail-head .actions {
    margin-top: 20px;
  }
  .save-bar {
    align-items: stretch;
    flex-direction: column;
  }
  .decision-bar .primary {
    white-space: normal;
  }
  .check-grid,
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .check-grid {
    gap: 0;
  }
  .diff {
    font-size: 9px;
  }
  button,
  .button {
    min-height: 44px;
    padding-block: 10px;
  }
  input,
  select {
    min-height: 48px;
  }
  input,
  textarea,
  select {
    font-size: 16px;
  }
  input[type="checkbox"] {
    min-height: 16px;
  }
  .icon-button {
    min-height: 44px;
    min-width: 44px;
  }
  .link {
    min-height: 36px;
  }
  .char-count {
    font-size: 9px;
  }
  .banner {
    padding: 16px;
    font-size: 12px;
  }
  .generation-progress {
    padding: 16px;
    gap: 10px;
  }
  .generation-progress .small {
    font-size: 11px;
  }
  [data-event-updated] .button,
  [data-event-connection] button,
  [data-event-failed] .button,
  [data-event-failed] button,
  [data-event-updated] button {
    margin: 10px 0 0;
    white-space: normal;
  }
  .carousel {
    gap: 10px;
  }
  .metric {
    padding: 18px;
    gap: 8px;
  }
  .metric.vertical strong {
    font-size: 28px;
  }
  .tabs {
    gap: 14px;
  }
  .tabs button {
    font-size: 11px;
    min-height: 48px;
  }
  .inline-form input {
    min-height: 36px;
  }
  .inline-form button {
    min-height: 36px;
  }
  .logout-button {
    font-size: 12px;
  }
  .sidebar-foot p {
    font-size: 11px;
  }
}
@media (max-width: 425px) {
  .workspace {
    padding-inline: 16px;
  }
  .page-head h1 {
    font-size: 44px;
  }
  .feed-toolbar {
    padding: 18px 16px;
  }
  .list-heading {
    padding-inline: 16px;
  }
  .event-row.content-row {
    padding: 20px 16px;
    gap: 12px;
  }
  .feed-footer {
    padding-inline: 16px;
  }
  .event-copy h3 {
    font-size: 14px;
  }
  .row-meta {
    font-size: 9px;
    gap: 6px;
  }
  .event-time {
    font-size: 9px;
  }
  .page-head .eyebrow {
    font-size: 9px;
  }
  .topbar {
    gap: 8px;
  }
  .top-state {
    max-width: 150px;
  }
  .panel {
    padding: 18px;
  }
  .workspace-footer {
    margin-top: 32px;
  }
  .metric-grid {
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
/* iOS must not zoom the workspace when an editor enters a compact field. */
@media (max-width: 767px) {
  .page-content
    :is(input, textarea, select):not([type="checkbox"]):not([type="color"]) {
    font-size: 16px;
  }
}

/* Topic selections combine; the region group narrows the complete news archive. */
.feed-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  padding: 18px 24px 20px;
  border-bottom: 1px solid var(--line);
}
.feed-filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.feed-filter-label { color: var(--ash); font: 10px var(--mono); letter-spacing: .08em; margin-right: 3px; }
.feed-chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 36px; padding: 7px 12px; border: 1px solid var(--line-strong);
  border-radius: 8px; color: var(--muted); background: transparent;
  font-size: 12px; line-height: 1.45; transition: background .16s, color .16s, border-color .16s;
}
.feed-chip:hover { border-color: #ffffff40; background: var(--panel2); }
.feed-chip.active { color: var(--bg); border-color: var(--fg); background: var(--fg); }
.feed-chip:focus-visible, .feed-reset:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.feed-reset { margin-left: auto; color: var(--muted); font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.feed-connection { margin: 0; padding: 12px 24px; background: var(--panel2); color: var(--amber); font-size: 12px; }
.feed-connection button { margin-left: 8px; font-size: 12px; }
.feed-refresh-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; margin: 0 0 20px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.feed-refresh-status form { margin: 0; order: 3; }
/* Tarama düğmesi kaynak durumunun bittiği yerde, sessiz bir ikon olarak durur. */
.feed-refresh-button { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: none; }
.feed-refresh-button:hover:not(:disabled) { color: var(--fg); border-color: var(--line-strong); background: var(--panel); }
.feed-refresh-button:disabled { opacity: .55; cursor: default; }
.feed-refresh-button[aria-busy="true"] svg { animation: spin 1.2s linear infinite; }
.feed-refresh-status p { margin: 0; }
.feed-source-health { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; color: var(--ash); }
/* Erişilemeyen kaynakların adları: tarayıcının yavaş title ipucu yerine kendi kutumuz. */
.source-tip-wrap { position: relative; display: inline-flex; }
.source-tip {
  position: absolute; bottom: calc(100% + 8px); left: 0; z-index: 20;
  width: max-content; max-width: min(340px, 60vw); padding: 9px 12px;
  border: 1px solid var(--line-strong); border-radius: 8px; background: #101012;
  color: var(--fg); font-size: 12px; line-height: 1.55; text-align: left;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .55);
  opacity: 0; visibility: hidden; transform: translateY(3px);
  transition: opacity .14s, transform .14s, visibility .14s;
}
.source-tip-wrap:hover .source-tip,
.source-tip-wrap:focus-within .source-tip { opacity: 1; visibility: visible; transform: translateY(0); }
.source-tip[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .source-tip { transition: none; } }
.feed-source-health a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
.feed-refresh-status[data-status="failed"] [data-source-refresh-message] { color: var(--amber); }
@media (max-width: 767px) { .source-tip { left: auto; right: 0; } }
@media (prefers-reduced-motion: reduce) { [data-feed-refresh][aria-busy="true"] svg { animation: none; } }
[data-live-feed] { transition: opacity .12s; }
[data-live-feed][aria-busy="true"] { opacity: .65; }
.feed-pagination { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; padding: 20px 24px; border-top: 1px solid var(--line); }
.feed-pagination > :first-child { justify-self: start; }
.feed-pagination > :last-child { justify-self: end; }
.feed-pagination > span { color: var(--muted); font-size: 12px; }
.feed-search { margin: 0; }
@media (max-width: 767px) {
  .feed-filter-bar { padding: 16px 20px 18px; gap: 14px; }
  .feed-filter-group { width: 100%; gap: 8px; }
  .feed-filter-label { width: 100%; }
  .feed-chip { min-height: 40px; }
  .feed-reset { margin-left: 0; }
  .feed-pagination { padding: 16px; gap: 8px; }
  .feed-pagination .button { padding: 8px 10px; font-size: 12px; }
}
@media (max-width: 425px) { .feed-filter-bar { padding-inline: 16px; } }
@media (prefers-reduced-motion: reduce) { .feed-chip, [data-live-feed] { transition: none; } }

.feed-list-wrap { position: relative; }
.feed-loading { position: absolute; z-index: 1; top: 24px; inset-inline: 24px; margin: 0; text-align: center; color: var(--muted); font-size: 12px; }
[data-live-feed][data-feed-pending] > * { visibility: hidden; }
