:root {
  --fw-blue: #1957e8;
  --fw-blue-ink: #0e3aa8;
  --fw-blue-soft: #eaf0ff;
  --ink: #0a0a0a;
  --ink-2: #1a1a1a;
  --ink-3: #2a2a2a;
  --line: #e6e6e6;
  --line-2: #d4d4d4;
  --line-strong: #111;
  --paper: #fafafa;
  --paper-2: #f3f3f3;
  --paper-3: #ededed;
  --white: #ffffff;
  --muted: #6b6b6b;
  --muted-2: #8c8c8c;
  --green: #1f8a3a;
  --amber: #b87a00;
  --red: #b81818;

  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button { font-family: inherit; cursor: pointer; }
a { color: inherit; }

/* ---------- App shell ---------- */
.app {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

/* ---------- Sidebar ---------- */
.sidebar {
  background: #000;
  color: #fff;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar .brand {
  padding: 0 24px 24px;
  border-bottom: 1px solid #1c1c1c;
}
.sidebar .brand h1 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 28px;
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin: 0;
}
.sidebar .brand .pill {
  display: inline-block;
  margin-top: 10px;
  background: var(--fw-blue);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 4px 8px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  padding: 18px 0;
  flex: 1;
}
.sidebar nav button {
  background: transparent;
  border: 0;
  color: #fff;
  text-align: left;
  padding: 11px 24px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-left: 3px solid transparent;
}
.sidebar nav button:hover { background: #0e0e0e; }
.sidebar nav button.active {
  background: #0e0e0e;
  border-left-color: var(--fw-blue);
}
.sidebar nav button .count {
  font-size: 10px;
  color: #888;
  font-weight: 500;
  letter-spacing: 0;
}
.sidebar nav button.active .count { color: #fff; }
.sidebar .foot {
  padding: 18px 24px;
  border-top: 1px solid #1c1c1c;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sidebar .foot .alt-btn {
  background: var(--fw-blue);
  border: 0;
  color: #fff;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
}
.sidebar .foot .ver {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; color: #888;
}
.sidebar .foot .ver-mark {
  width: 36px; height: 36px;
  background: var(--fw-blue);
  display: grid; place-items: center;
  font-weight: 800; font-size: 14px; color: #fff;
  font-family: var(--serif);
  letter-spacing: -0.02em;
}

/* ---------- Main ---------- */
.main {
  background: var(--white);
  min-width: 0;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  position: sticky; top: 0; z-index: 10;
}
.crumbs {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.crumbs .sep { color: var(--line-2); }
.crumbs .now { color: var(--ink); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }

.btn {
  border: 1px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  padding: 9px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn:hover { background: var(--ink); color: var(--white); }
.btn.primary { background: var(--fw-blue); border-color: var(--fw-blue); color: #fff; }
.btn.primary:hover { background: var(--fw-blue-ink); border-color: var(--fw-blue-ink); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover { background: #000; }
.btn.ghost { border-color: var(--line-2); color: var(--ink); }
.btn.ghost:hover { background: var(--paper-2); color: var(--ink); }
.btn.sm { padding: 6px 10px; font-size: 10px; }
.btn.icon { padding: 9px 11px; }

.page {
  padding: 28px 32px 80px;
  max-width: 1380px;
}
.page.wide { max-width: none; }

.page-h {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.page-h h2 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 36px;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  line-height: 1;
}
.page-h p {
  margin: 0;
  color: var(--muted);
  max-width: 640px;
  font-size: 13.5px;
  line-height: 1.5;
}

/* ---------- Status pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 8px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pill.ink { background: var(--ink); color: #fff; }
.pill.blue { background: var(--fw-blue); color: #fff; }
.pill.green { background: #d6f0dd; color: var(--green); }
.pill.amber { background: #fbeccb; color: var(--amber); }
.pill.red { background: #fadcdc; color: var(--red); }
.pill.gray { background: var(--paper-3); color: var(--ink-3); }
.pill.outline { background: #fff; color: var(--ink); border: 1px solid var(--line-2); }

/* ---------- Cards / panels ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
}
.card-h {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.card-h h3 {
  margin: 0;
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.card-b { padding: 16px; }

/* ---------- Dashboard ---------- */
.dash {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.kpi {
  border: 1px solid var(--line);
  padding: 14px 16px;
  background: #fff;
  display: flex; flex-direction: column; gap: 6px;
}
.kpi .label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
}
.kpi .num {
  font-family: var(--sans);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.kpi .delta { font-size: 11px; color: var(--muted); }
.kpi .delta.up { color: var(--green); }
.kpi.accent { background: #000; color: #fff; border-color: #000; }
.kpi.accent .label { color: #888; }
.kpi.accent .num { color: #fff; }

.feed-list { display: flex; flex-direction: column; }
.feed-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.feed-row:last-child { border-bottom: 0; }
.feed-row .when {
  font-family: var(--mono);
  font-size: 11px; color: var(--muted);
}
.feed-row .what { font-size: 13px; }
.feed-row .what b { font-weight: 700; }
.feed-row .who { font-size: 11px; color: var(--muted); margin-top: 2px;}

/* ---------- Slots editor ---------- */
.slots-shell {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}
.slot-canvas {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 18px;
  position: relative;
}
.slot-canvas .canvas-h {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.slot-canvas .canvas-h .small {
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); font-weight: 700;
}

/* fake browser chrome */
.browser {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 0;
}
.browser .url {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: #f6f6f6;
}
.browser .dots { display: flex; gap: 5px; }
.browser .dots i { width: 9px; height: 9px; border-radius: 50%; display: block; background: #ccc; }
.browser .url-bar {
  flex: 1; background: #fff; border: 1px solid var(--line);
  padding: 4px 10px; font-family: var(--mono); font-size: 11px; color: #333;
}
.browser .browser-body { padding: 14px; background: #fff; }

/* the actual homepage layout reproduced */
.fw-home { font-family: var(--serif); }
.fw-topstrip { text-align: center; padding: 6px 0; }
.fw-topstrip .top-link {
  font-family: var(--sans); font-size: 9px; font-weight: 700;
  color: var(--fw-blue); letter-spacing: 0.2em; text-transform: uppercase;
}
.fw-mast {
  display: grid; grid-template-columns: 90px 1fr 160px;
  align-items: center; padding: 4px 0 12px;
}
.fw-social { display: flex; gap: 6px; color: #444; font-size: 11px; }
.fw-mast .word {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  letter-spacing: -0.01em;
  font-weight: 700;
}
.fw-search {
  border: 1px solid var(--line-2);
  height: 22px;
  display: flex; align-items: center;
  font-family: var(--sans);
}
.fw-search input {
  border: 0; outline: 0; flex: 1;
  font-size: 10px; padding: 0 6px;
  background: transparent;
}
.fw-search .sb {
  width: 22px; height: 22px;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  font-size: 11px;
}
.fw-nav {
  display: flex;
  background: var(--fw-blue);
  margin-bottom: 10px;
  font-family: var(--sans);
}
.fw-nav .item {
  flex: 1;
  text-align: center;
  color: #fff;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 8px 0;
  border-right: 1px solid rgba(255,255,255,0.2);
}
.fw-nav .item.active { background: #fff; color: var(--fw-blue); }
.fw-nav .item.dark { background: #000; color: #fff; }

/* hero grid */
/* Hero — exact dezelfde grid als de echte alt-site (1.85fr/1fr · 1.7fr-onder/1fr-smalls) */
.fw-hero {
  display: grid;
  grid-template-columns: 1.85fr 1fr;
  grid-template-rows: 1fr;
  gap: 8px;
  margin-bottom: 8px;
  aspect-ratio: 2 / 1.35;
}
.fw-hero-left {
  display: grid;
  grid-template-rows: 1.7fr 1fr;
  gap: 8px;
  min-height: 0;
}
.fw-hero-smalls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  min-height: 0;
}
.fw-hero-right {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  min-height: 0;
}
/* Legacy classes nog ondersteund maar niet meer gebruikt in nieuwe markup */
.fw-hero .big {
  grid-row: 1 / span 2;
}
.fw-tri {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  height: 120px;
  margin-bottom: 18px;
}
.fw-mid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 18px;
}
.fw-mid .editorial-h {
  font-family: var(--sans);
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.fw-mid h2.kvr {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 22px;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.fw-mid .kvr-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.fw-mid .kvr-main { }
.fw-mid .kvr-side { display: flex; flex-direction: column; gap: 12px; }
.fw-side .side-h {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 16px;
  margin: 0 0 10px;
}
.fw-side .side-list { display: flex; flex-direction: column; gap: 12px; }

.fw-fvm {
  background: #000; color: #fff;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 4px solid var(--fw-blue);
}
.fw-fvm .fvm-img { background: #1a1a1a; min-height: 180px; position: relative; }
.fw-fvm .fvm-text { padding: 18px 18px; font-family: var(--serif); }
.fw-fvm .fvm-text .meta {
  font-family: var(--sans); font-size: 9px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--fw-blue);
  margin-bottom: 8px;
}
.fw-fvm .fvm-text h3 {
  font-size: 22px; margin: 0 0 4px; font-weight: 800; letter-spacing: -0.01em;
}
.fw-fvm .fvm-text .loc { font-family: var(--sans); font-size: 10px; color: #aaa; margin-bottom: 12px; }
.fw-fvm .fvm-text .quote {
  font-style: italic; font-size: 12px; line-height: 1.5;
  border-left: 2px solid var(--fw-blue); padding-left: 10px; margin-bottom: 14px;
}
.fw-fvm .scores {
  display: grid; grid-template-columns: repeat(4, 1fr);
  font-family: var(--sans);
  border-top: 1px solid #222;
  padding-top: 10px;
}
.fw-fvm .scores .s { display: flex; flex-direction: column; gap: 2px; }
.fw-fvm .scores .s .l {
  font-size: 8px; font-weight: 700; letter-spacing: 0.2em; color: #888;
  text-transform: uppercase;
}
.fw-fvm .scores .s .v { font-size: 18px; color: var(--fw-blue); font-weight: 800; }

/* slot blocks */
.slot {
  position: relative;
  background: #f7f7f7;
  border: 1px dashed #c4c4c4;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  min-height: 60px;
}
.slot:hover { border-color: var(--fw-blue); background: var(--fw-blue-soft); }
.slot.over { border-style: solid; border-color: var(--fw-blue); background: var(--fw-blue-soft); }
.slot.empty {
  align-items: center; justify-content: center;
  font-family: var(--sans);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  text-align: center;
}
.slot.empty .plus { font-size: 22px; line-height: 1; margin-bottom: 4px; }

.slot-img {
  position: relative;
  width: 100%; height: 100%;
  background-size: cover; background-position: center;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff;
}
.slot-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.0) 55%);
  pointer-events: none;
}
.slot-img .gloss {
  position: relative; z-index: 1;
  padding: 10px 12px;
  font-family: var(--serif);
  width: 100%;
}
.slot-img .gloss .by {
  font-family: var(--sans);
  font-size: 8px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 4px;
}
.slot-img .gloss .by .dot { width: 8px; height: 8px; background: var(--fw-blue); border-radius: 50%; }
.slot-img .gloss h4 {
  font-size: 16px; line-height: 1.1; font-weight: 800;
  margin: 0;
  letter-spacing: -0.01em;
}
.slot-img .gloss h4.sm { font-size: 12px; }
.slot-img .gloss h4.xl { font-size: 26px; }
.slot-img .corner-cat {
  position: absolute; top: 8px; left: 8px;
  background: var(--fw-blue);
  color: #fff;
  font-family: var(--sans);
  font-size: 8px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 3px 6px;
  z-index: 2;
}

.slot-side-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 8px;
  background: #fff;
  border: 1px dashed #c4c4c4;
  padding: 6px;
  cursor: pointer;
  min-height: 60px;
  transition: border-color 0.15s, background 0.15s;
}
.slot-side-item:hover { border-color: var(--fw-blue); background: var(--fw-blue-soft); }
.slot-side-item.over { border-style: solid; border-color: var(--fw-blue); background: var(--fw-blue-soft); }
.slot-side-item.empty {
  align-items: center; justify-content: center;
  display: flex;
  font-family: var(--sans);
  color: var(--muted); font-size: 9px;
  letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
}
.slot-side-item .ssi-img {
  background: #ddd; background-size: cover; background-position: center;
}
.slot-side-item .ssi-text {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 11px;
  line-height: 1.2;
  display: flex; flex-direction: column; justify-content: space-between;
}
.slot-side-item .ssi-text .by {
  font-family: var(--sans);
  font-size: 7.5px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}

.slot-mg {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px;
  background: #fff;
  border: 1px dashed #c4c4c4;
  padding: 8px;
  cursor: pointer;
  min-height: 70px;
}
.slot-mg:hover { border-color: var(--fw-blue); background: var(--fw-blue-soft); }
.slot-mg.over { border-style: solid; border-color: var(--fw-blue); background: var(--fw-blue-soft); }
.slot-mg.empty {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans);
  color: var(--muted); font-size: 9px;
  letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
}
.slot-mg .mg-img { background: #ddd; background-size: cover; background-position: center; }
.slot-mg .mg-t {
  font-family: var(--serif);
  font-size: 12px; font-weight: 700; line-height: 1.15;
  display: flex; flex-direction: column; gap: 4px;
}
.slot-mg .mg-by {
  font-family: var(--sans);
  font-size: 7.5px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}

.slot-fvm-img {
  background-size: cover; background-position: center;
  background-color: #1a1a1a;
  min-height: 220px;
  cursor: pointer;
  border: 2px dashed transparent;
}
.slot-fvm-img.empty {
  display: flex; align-items: center; justify-content: center;
  border: 2px dashed #444;
  color: #666;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}

/* sidebar (article picker) */
.picker {
  position: sticky;
  top: 80px;
  background: #fff;
  border: 1px solid var(--line);
}
.picker-h {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.picker-h h3 {
  margin: 0; font-size: 11px; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.picker .filter {
  display: flex; gap: 4px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.picker .filter .chip {
  font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}
.picker .filter .chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.picker .search {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.picker .search input {
  width: 100%; padding: 7px 10px;
  border: 1px solid var(--line-2);
  font-family: var(--sans); font-size: 12px;
  outline: 0;
}
.picker .list {
  max-height: 540px; overflow: auto;
}
.picker .item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  cursor: grab;
  background: #fff;
  user-select: none;
}
.picker .item:hover { background: var(--paper); }
.picker .item.dragging { opacity: 0.4; }
.picker .item .img { background: #ddd; background-size: cover; background-position: center; aspect-ratio: 1; }
.picker .item .t { font-family: var(--serif); font-size: 12px; font-weight: 700; line-height: 1.2; margin: 0 0 4px; }
.picker .item .meta { font-family: var(--sans); font-size: 9.5px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.picker .item .meta .by { font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }

/* slot popover (filled state extras) */
.slot-tools {
  position: absolute;
  top: 6px; right: 6px;
  display: flex; gap: 4px;
  z-index: 3;
}
.slot-side-item, .slot-mg { position: relative; }
.slot-tools button {
  background: rgba(255,255,255,0.92); border: 1px solid rgba(0,0,0,0.18);
  font-size: 9.5px; font-weight: 800;
  padding: 4px 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.12s, color 0.12s;
}
.slot-tools button:hover { background: var(--ink); color: var(--lemon, #fff); border-color: var(--ink); }
.slot-tools button[data-kind="edit"] { background: var(--fw-blue); color: #fff; border-color: var(--fw-blue); }
.slot-tools button[data-kind="edit"]:hover { background: #0d3d8a; }

/* ---------- Articles list ---------- */
.toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #fff;
  margin-bottom: -1px;
  flex-wrap: wrap;
  gap: 10px;
}
.tabs { display: flex; gap: 0; }
.tab {
  background: transparent; border: 1px solid var(--line);
  padding: 7px 12px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-right: -1px;
  display: inline-flex; align-items: center; gap: 6px;
}
.tab .ct { font-size: 9.5px; color: var(--muted); }
.tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.tab.active .ct { color: #ccc; }

.search-input {
  flex: 1; min-width: 280px;
  border: 1px solid var(--line-2);
  padding: 8px 10px;
  font-size: 12px;
  outline: 0;
}
.select {
  border: 1px solid var(--line-2);
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 600;
  background: #fff;
}

.tbl {
  width: 100%;
  border: 1px solid var(--line);
  border-collapse: collapse;
  background: #fff;
}
.tbl th, .tbl td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.tbl th {
  font-size: 9.5px; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
  padding: 12px 14px;
  background: var(--paper);
}
.tbl td { padding: 12px 14px; font-size: 13px; }
.tbl tbody tr:hover { background: var(--paper); cursor: pointer; }
.tbl .t-thumb { width: 56px; height: 42px; background: #ddd; background-size: cover; background-position: center; }
.tbl .t-title { font-weight: 700; line-height: 1.25; }
.tbl .t-sub { color: var(--muted); font-size: 11px; margin-top: 3px; }
.tbl .t-slot {
  font-family: var(--mono); font-size: 10.5px;
  color: var(--fw-blue); font-weight: 700;
}
.tbl .t-mono { font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* ---------- Article editor ---------- */
.editor-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  background: #fff;
  min-height: 760px;
}
.ed-left {
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.ed-toolbar {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  display: flex; gap: 6px; flex-wrap: wrap;
  align-items: center;
}
.ed-toolbar .tb {
  border: 1px solid var(--line);
  background: #fff;
  padding: 6px 9px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.05em;
}
.ed-toolbar .tb:hover { background: var(--paper-2); }
.ed-toolbar .ai {
  background: var(--fw-blue); color: #fff; border-color: var(--fw-blue);
  letter-spacing: 0.14em; text-transform: uppercase;
}
.ed-form {
  padding: 22px 26px;
  display: flex; flex-direction: column; gap: 14px;
  overflow: auto;
  flex: 1;
}
.ed-form label {
  font-size: 9.5px; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
  display: block; margin-bottom: 6px;
}
.ed-form input.title {
  font-family: var(--serif);
  font-size: 30px; font-weight: 800;
  letter-spacing: -0.01em;
  border: 0; border-bottom: 2px solid var(--line);
  padding: 8px 6px 12px; outline: 0;
  width: 100%;
  background: #fafafa;
  cursor: text;
  transition: background .15s, border-color .15s;
}
.ed-form input.title:hover { background: #f3f3f3; border-bottom-color: #bdbdbd; }
.ed-form input.title:focus { background: #fff; border-bottom-color: var(--fw-blue); }
.ed-form input.title::placeholder { color: #c5c5c5; font-weight: 500; font-style: italic; }
.ed-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ed-form input.text, .ed-form .select, .ed-form textarea {
  width: 100%;
  border: 1px solid var(--line-2);
  padding: 9px 10px;
  font-family: var(--sans); font-size: 13px;
  outline: 0;
}
.ed-form textarea { font-family: var(--sans); resize: vertical; }
.ed-form textarea.body {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.6;
  min-height: 320px;
  border: 1px solid var(--line-2);
  padding: 14px;
}
.ed-form .img-up {
  border: 1px dashed var(--line-2);
  padding: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.ed-form .img-up.has {
  background-size: cover; background-position: center;
  height: 180px;
  position: relative;
  border-style: solid;
}

.ed-right { background: var(--paper); display: flex; flex-direction: column; }
.ed-right-h {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.ed-right-h .lbl { font-size: 10px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.ed-preview {
  padding: 30px;
  flex: 1; overflow: auto;
  background: #fff;
}
.ed-preview .pv-cat {
  display: inline-block;
  background: var(--fw-blue);
  color: #fff;
  font-family: var(--sans);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 5px 10px;
  margin-bottom: 14px;
}
.ed-preview .pv-title {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 36px;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0 0 12px;
}
.ed-preview .pv-by {
  font-family: var(--sans);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.ed-preview .pv-by .dot { width: 8px; height: 8px; background: var(--fw-blue); border-radius: 50%; }
.ed-preview .pv-hero {
  width: 100%; height: 280px;
  background: #ddd; background-size: cover; background-position: center;
  margin-bottom: 18px;
}
.ed-preview .pv-intro {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.45;
  color: #222;
  margin-bottom: 18px;
}
.ed-preview .pv-body {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.65;
  color: #1a1a1a;
}
.ed-preview .pv-body p { margin: 0 0 14px; }

/* ---------- Feed ---------- */
.feed-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.feed-card {
  background: #fff;
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.feed-card .fch {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.feed-card .fcb { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.feed-card .src {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fw-blue);
}
.feed-card h4 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.2;
}
.feed-card .summ { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.feed-card .fcf {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
}
.feed-card .fcf .meta { font-size: 10px; color: var(--muted); font-family: var(--mono); }
.feed-card .fcf .acts { display: flex; gap: 6px; }
.feed-card .ix { font-size: 10px; color: var(--muted); font-family: var(--mono); }

/* ---------- Agent ---------- */
.agent-shell {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
}
.agent-stream {
  background: #000;
  color: #fff;
  border: 1px solid #000;
  padding: 0;
}
.agent-stream-h {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #1c1c1c;
}
.agent-stream-h .a-name { display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; }
.agent-stream-h .a-name .led { width: 8px; height: 8px; background: #2dd25b; border-radius: 50%; box-shadow: 0 0 8px #2dd25b; }
.agent-stream-body {
  padding: 16px; max-height: 480px; overflow: auto;
  display: flex; flex-direction: column; gap: 12px;
  font-family: var(--mono); font-size: 12px;
}
.agent-stream-body .line .ts { color: #5fa8ff; margin-right: 8px; }
.agent-stream-body .line .lbl {
  display: inline-block; font-weight: 700;
  padding: 1px 6px; font-size: 9.5px; letter-spacing: 0.14em;
  margin-right: 6px;
}
.agent-stream-body .line.read .lbl { background: #1957e8; color: #fff; }
.agent-stream-body .line.write .lbl { background: #2dd25b; color: #000; }
.agent-stream-body .line.skip .lbl { background: #444; color: #fff; }
.agent-stream-body .line.error .lbl { background: var(--red); color: #fff; }
.agent-stream-body .line .body { color: #ddd; }

.agent-pitch {
  background: #0a0a0a; color: #fff;
  border: 1px solid #0a0a0a;
}
.agent-pitch h3 {
  margin: 0; padding: 12px 16px;
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase;
  border-bottom: 1px solid #1c1c1c;
}
.agent-pitch .ap-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.agent-pitch textarea {
  width: 100%;
  background: #1a1a1a;
  color: #fff;
  border: 1px solid #2a2a2a;
  padding: 10px;
  font-family: var(--sans); font-size: 13px;
  outline: 0; resize: vertical;
  min-height: 90px;
}
.agent-pitch .opts { display: flex; flex-direction: column; gap: 6px; }
.agent-pitch label.opt {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; cursor: pointer;
}
.agent-pitch .send { background: var(--fw-blue); color: #fff; border: 0; padding: 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }

.queue-card {
  background: #fff; border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 14px; align-items: center;
  padding: 12px 16px;
  margin-bottom: 8px;
}
.queue-card .ix {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
}
.queue-card .qt { font-weight: 700; font-size: 14px; line-height: 1.2; margin: 0 0 4px; }
.queue-card .qsub { font-size: 11px; color: var(--muted); }
.queue-card .qact { display: flex; gap: 6px; }

/* ---------- Misc / utility ---------- */
.row-flex { display: flex; align-items: center; gap: 10px; }
.col-flex { display: flex; flex-direction: column; gap: 10px; }
.gap-tiny { gap: 4px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.spacer { flex: 1; }
.divider-h { height: 1px; background: var(--line); margin: 18px 0; }

.kbd {
  font-family: var(--mono); font-size: 10.5px;
  border: 1px solid var(--line-2);
  background: #fff;
  padding: 1px 6px;
  border-bottom-width: 2px;
  color: var(--ink);
}
