:root {
  --navy-950: #07101b;
  --navy-900: #0b1422;
  --navy-850: #101b2b;
  --navy-800: #152235;
  --navy-700: #263750;
  --ink: #edf4ec;
  --muted: #8fa0ae;
  --muted-strong: #b9c5cb;
  --line: rgba(205, 222, 214, 0.12);
  --line-strong: rgba(205, 222, 214, 0.22);
  --lime: #c9f46a;
  --lime-strong: #dcff91;
  --lime-ink: #18210c;
  --blue: #79b7ff;
  --amber: #f2c46d;
  --rose: #ff8d99;
  --green: #77d7a0;
  --violet: #b8a7ff;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --sidebar-width: 272px;
  --shadow-overlay: 0 24px 80px rgba(0, 0, 0, 0.5);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  font-family: "Manrope", "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--navy-950);
  font-synthesis: none;
}

* { box-sizing: border-box; }

.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

html { min-width: 320px; background: var(--navy-950); }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 76% -15%, rgba(70, 116, 105, 0.18), transparent 62%),
    var(--navy-950);
  color: var(--ink);
}

button, input { font: inherit; }
button { color: inherit; }
button:not(:disabled) { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.45; }

::selection { color: var(--lime-ink); background: var(--lime); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--navy-950); }
::-webkit-scrollbar-thumb { border: 3px solid var(--navy-950); border-radius: 10px; background: var(--navy-700); }

:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

[hidden] { display: none !important; }

.auth-gate {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: clamp(24px, 6vw, 72px);
  overflow: hidden;
  background:
    radial-gradient(ellipse 54% 58% at 50% 16%, rgba(71, 118, 106, 0.2), transparent 70%),
    var(--navy-950);
}
.auth-gate::before,
.auth-gate::after {
  position: absolute;
  width: min(30vw, 360px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 244, 106, 0.46), transparent);
  content: "";
}
.auth-gate::before { top: 19%; left: -5%; transform: rotate(32deg); }
.auth-gate::after { right: -5%; bottom: 18%; transform: rotate(-32deg); }
.auth-panel {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: clamp(28px, 5vw, 46px);
  border-radius: var(--radius-lg);
  background: var(--navy-900);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.44);
}
.auth-brand { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 34px; border-radius: var(--radius-md); background: rgba(201, 244, 106, 0.09); }
.auth-brand .brand-mark { width: 34px; height: 34px; }
.auth-copy h1 { max-width: 340px; margin: 0; font-size: clamp(28px, 5vw, 38px); line-height: 1.05; letter-spacing: -0.03em; }
.auth-copy p { max-width: 48ch; margin: 14px 0 0; color: var(--muted-strong); font-size: 13px; line-height: 1.65; }
.auth-form { display: grid; gap: 17px; margin-top: 33px; }
.auth-form label,
.manager-form label { display: grid; gap: 8px; }
.auth-form label > span,
.manager-form label > span { color: var(--muted-strong); font-size: 11px; font-weight: 680; }
.auth-form input,
.manager-form input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  outline: 0;
  background: var(--navy-850);
  color: var(--ink);
  caret-color: var(--lime);
  font-size: 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.auth-form input:hover,
.manager-form input:hover { border-color: rgba(205, 222, 214, 0.34); }
.auth-form input:focus,
.manager-form input:focus { border-color: var(--lime); background: var(--navy-800); box-shadow: 0 0 0 3px rgba(201, 244, 106, 0.09); }
.form-error { margin: -3px 0 0; padding: 10px 12px; border-radius: var(--radius-sm); background: rgba(255, 141, 153, 0.1); color: #ffabb4; font-size: 11px; line-height: 1.5; }
.auth-submit { width: 100%; min-height: 50px; margin-top: 3px; font-size: 13px; }

.skip-link {
  position: fixed;
  z-index: 100;
  left: 16px;
  top: 16px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--lime);
  color: var(--lime-ink);
  font-weight: 750;
  transition: transform 180ms var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

.app-shell { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-height: 100vh; }

.sidebar {
  position: sticky;
  z-index: 25;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 620px;
  padding: 26px 18px 20px;
  border-right: 1px solid var(--line);
  background: rgba(7, 16, 27, 0.94);
}

.brand { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 8px; }
.brand-mark { width: 38px; height: 38px; flex: none; fill: var(--lime); }
.brand strong, .brand span { display: block; }
.brand strong { font-size: 15px; letter-spacing: -0.01em; }
.brand span { margin-top: 3px; color: var(--muted); font-size: 12px; }

.sidebar-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 48px 9px 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.count-badge { font-variant-numeric: tabular-nums; }

.project-nav { display: grid; gap: 5px; overflow-y: auto; }
.project-nav-button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 8px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  text-align: left;
  transition: background 180ms ease, color 180ms ease;
}
.project-nav-button:hover { background: rgba(255, 255, 255, 0.045); }
.project-nav-button[aria-current="true"] { background: var(--navy-800); }
.project-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: rgba(201, 244, 106, 0.12);
  color: var(--lime);
  font-size: 13px;
  font-weight: 800;
}
.project-nav-button[aria-current="true"] .project-avatar { background: var(--lime); color: var(--lime-ink); }
.project-nav-copy { min-width: 0; }
.project-nav-copy strong, .project-nav-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-nav-copy strong { font-size: 13px; font-weight: 680; }
.project-nav-copy span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.project-indicator { width: 6px; height: 6px; border-radius: 50%; background: var(--navy-700); }
.project-indicator.is-ready { background: var(--green); box-shadow: 0 0 0 4px rgba(119, 215, 160, 0.09); }

.add-project-button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  margin-top: 12px;
  padding: 0 12px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 650;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}
.add-project-button:hover { border-color: rgba(201, 244, 106, 0.5); background: rgba(201, 244, 106, 0.045); color: var(--lime); }
.add-project-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.managers-button { border-style: solid; }

.sidebar-account {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  margin-top: auto;
  padding: 10px 6px 10px 10px;
  border-top: 1px solid var(--line);
}
.account-copy { min-width: 0; }
.account-copy strong,
.account-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-copy strong { font-size: 12px; }
.account-copy span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.sidebar-account .icon-button { width: 36px; height: 36px; }

.sidebar-footnote {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 15px 10px 4px;
  border-top: 1px solid var(--line);
}
.sidebar-footnote strong, .sidebar-footnote span { display: block; }
.sidebar-footnote strong { font-size: 11px; }
.sidebar-footnote span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.live-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(201, 244, 106, 0.09); }

.workspace { min-width: 0; padding: 0 clamp(22px, 3.5vw, 56px) 60px; }
.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: center;
  gap: 28px;
  min-height: 112px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 27, 0.91);
  backdrop-filter: blur(18px);
}
.mobile-menu-button { display: none !important; }
.project-heading { min-width: 0; }
.heading-line { display: flex; align-items: center; gap: 12px; }
.project-heading h1 {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 720px;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: clamp(22px, 2.1vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-heading p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.project-state {
  flex: none;
  padding: 5px 8px;
  border-radius: 7px;
  background: rgba(119, 215, 160, 0.1);
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.project-settings-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 7px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted-strong);
  font-size: 10px;
  font-weight: 720;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}
.project-settings-button::after { display: none; }
.project-settings-button:hover:not(:disabled) { border-color: var(--line-strong); background: rgba(255,255,255,.045); color: var(--ink); }
.project-settings-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }

.readiness { display: grid; grid-template-columns: minmax(210px, auto) 90px; align-items: center; gap: 13px; min-width: 320px; }
.readiness-copy { display: grid; gap: 4px; }
.readiness-copy span { color: var(--muted); font-size: 11px; }
.readiness-copy strong { font-size: 14px; font-variant-numeric: tabular-nums; }
.readiness-meter { height: 5px; overflow: hidden; border-radius: 4px; background: var(--navy-700); }
.readiness-meter span { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--lime); transform: scaleX(0); transform-origin: left center; transition: transform 500ms var(--ease-out); }

.primary-button, .secondary-button, .ghost-button, .icon-button {
  border: 0;
  border-radius: var(--radius-sm);
  font-weight: 720;
  transition: transform 180ms var(--ease-out), background 180ms ease, border-color 180ms ease;
}
.danger-button { min-height: 42px; padding: 0 15px; border: 1px solid rgba(255,141,153,.42); border-radius: var(--radius-sm); background: rgba(255,141,153,.12); color: var(--rose); font-size: 11px; font-weight: 760; }
.danger-button:hover { background: rgba(255,141,153,.2); }
.danger-text-button { color: var(--rose); }
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 17px;
  background: var(--lime);
  color: var(--lime-ink);
  font-size: 12px;
}
.primary-button:hover:not(:disabled) { transform: translateY(-1px); background: var(--lime-strong); }
.primary-button[data-complete="true"]:disabled {
  opacity: 1;
  border: 1px solid rgba(119, 215, 160, .28);
  background: rgba(119, 215, 160, .1);
  color: var(--green);
}
.prepare-button { background: var(--blue); color: #07101b; }
.prepare-button:hover:not(:disabled) { background: #a4ceff; }
.primary-button svg, .ghost-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted-strong);
  font-size: 12px;
}
.secondary-button svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.secondary-button:hover:not(:disabled), .ghost-button:hover:not(:disabled) { background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.24); }
.ghost-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 13px; border: 1px solid var(--line); background: transparent; color: var(--muted-strong); font-size: 11px; }
.icon-button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; background: transparent; color: var(--muted-strong); }
.icon-button:hover { background: rgba(255, 255, 255, 0.06); color: var(--ink); }
.icon-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.button-spinner { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 700ms linear infinite; }

.workflow-feedback {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 260px) auto;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid rgba(121, 183, 255, .25);
  border-radius: var(--radius-md);
  background: linear-gradient(100deg, rgba(121, 183, 255, .105), rgba(16, 27, 43, .88));
}
.workflow-feedback.is-completed,
.workflow-feedback.is-planned { border-color: rgba(119, 215, 160, .28); background: linear-gradient(100deg, rgba(119, 215, 160, .1), rgba(16, 27, 43, .88)); }
.workflow-feedback.is-error,
.workflow-feedback.is-partial { border-color: rgba(255, 141, 153, .28); background: linear-gradient(100deg, rgba(255, 141, 153, .09), rgba(16, 27, 43, .88)); }
.workflow-feedback-copy { min-width: 0; }
.workflow-feedback-copy strong { display: block; font-size: 13px; }
.workflow-feedback-copy span { display: block; margin-top: 5px; color: var(--muted-strong); font-size: 11px; line-height: 1.45; }
.workflow-progress { height: 7px; overflow: hidden; border-radius: 999px; background: var(--navy-700); }
.workflow-progress span { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--blue); transform: scaleX(0); transform-origin: left center; transition: transform 260ms var(--ease-out); }
.workflow-feedback .secondary-button { white-space: nowrap; }

.status-strip { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0 16px; }
.status-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.status-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 10px; }
.status-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.status-chip b { color: var(--muted-strong); font-variant-numeric: tabular-nums; }
.week-range { flex: none; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }

.board-region { padding-top: 18px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 24px; }
.section-heading h2 { margin: 0; font-size: clamp(21px, 2vw, 28px); line-height: 1.1; letter-spacing: -0.022em; }
.section-heading p { max-width: 610px; margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

.week-board {
  display: grid;
  grid-template-columns: repeat(7, minmax(154px, 1fr));
  gap: 1px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
  scrollbar-gutter: stable;
}
.day-column { display: flex; flex-direction: column; min-width: 154px; min-height: 430px; padding: 0 12px 14px; background: var(--navy-900); }
.day-column.is-today { background: #101c2a; }
.day-head { position: relative; z-index: 2; padding: 17px 2px 14px; border-bottom: 1px solid var(--line); background: inherit; }
.day-head-line { display: flex !important; align-items: center; justify-content: space-between; gap: 8px; margin: 0 !important; }
.day-head strong { display: block; font-size: 12px; text-transform: capitalize; }
.day-head span { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.day-item-count { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 7px; background: var(--navy-700); color: var(--muted-strong); font-size: 9px; font-variant-numeric: tabular-nums; }
.today-mark { color: var(--lime) !important; font-weight: 750; }
.day-items { display: grid; gap: 9px; padding-top: 12px; }
.day-empty { display: grid; place-items: center; min-height: 120px; padding: 18px 8px; color: var(--muted); font-size: 10px; text-align: center; }
.day-add-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 38px; margin-top: auto; padding: 0 9px; border: 1px dashed var(--line-strong); border-radius: 9px; background: transparent; color: var(--muted-strong); font-size: 9px; font-weight: 720; }
.day-add-button:hover { border-color: rgba(201,244,106,.5); background: rgba(201,244,106,.055); color: var(--lime); }
.day-add-button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.content-card {
  position: relative;
  width: 100%;
  min-height: 170px;
  padding: 13px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--navy-850);
  color: var(--ink);
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 180ms var(--ease-out);
}
.content-card-open { display: grid; width: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: inherit; text-align: left; }
.content-card-open:focus-visible { outline: 2px solid var(--lime); outline-offset: 5px; border-radius: 7px; }
.card-top { min-height: 24px; }
.card-time { color: var(--ink); font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
.card-menu-button { display: grid; place-items: center; width: 28px; height: 28px; margin: -4px -5px -4px auto; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--muted); }
.card-menu-button:hover, .card-menu-button:focus-visible { background: rgba(255,255,255,.06); color: var(--ink); }
.card-menu-button svg { width: 16px; height: 16px; fill: currentColor; }
.card-origin { justify-self: start; margin-top: 2px; padding: 4px 6px; border-radius: 6px; background: rgba(184,167,255,.1); color: var(--violet); font-size: 8px; font-weight: 750; }
.content-card:hover { z-index: 1; transform: translateY(-2px); border-color: rgba(201, 244, 106, 0.32); background: #152235; }
.content-card.is-updated {
  border-color: rgba(121, 183, 255, .64);
  background: linear-gradient(145deg, rgba(121, 183, 255, .13), var(--navy-850) 65%);
  box-shadow: inset 0 0 0 1px rgba(121, 183, 255, .12);
  animation: card-updated 620ms var(--ease-out) both;
}
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-update-label { flex: none; padding: 3px 5px; border-radius: 5px; background: rgba(121, 183, 255, .13); color: var(--blue); font-size: 7px; font-weight: 820; letter-spacing: .04em; text-transform: uppercase; }
.format-label { overflow: hidden; color: var(--muted); font-size: 9px; font-weight: 770; letter-spacing: .06em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.status-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--muted); }
.status-dot[data-status="draft"] { background: var(--muted); }
.status-dot[data-status="planned"], .status-dot[data-status="generating"] { background: var(--blue); }
.status-dot[data-status="generated"], .status-dot[data-status="rendering"] { background: var(--violet); }
.status-dot[data-status="rendered"], .status-dot[data-status="review"] { background: var(--amber); }
.status-dot[data-status="approved"] { background: var(--lime); }
.status-dot[data-status="published"] { background: var(--green); }
.status-dot[data-status="export_ready"], .status-dot[data-status="partially_published"] { background: var(--green); }
.status-dot[data-status="failed"] { background: var(--rose); }
.content-card h3 { display: -webkit-box; margin: 14px 0 9px; overflow: hidden; font-size: 13px; line-height: 1.34; letter-spacing: -0.01em; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.content-card p { display: -webkit-box; min-height: 34px; margin: 0; overflow: hidden; color: var(--muted); font-size: 10px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 15px; }
.card-status { display: inline-flex; align-items: center; gap: 6px; }
.card-status { color: var(--muted-strong); font-size: 9px; font-weight: 700; }
.mini-channels { display: flex; align-items: center; }
.mini-channel { display: grid; place-items: center; width: 20px; height: 20px; margin-left: -4px; border: 2px solid var(--navy-850); border-radius: 50%; background: var(--navy-700); color: var(--muted-strong); font-size: 7px; font-weight: 800; }
.mini-channel.is-success { background: rgba(119, 215, 160, .18); color: var(--green); }
.content-card:hover .mini-channel { border-color: #152235; }

.loading-state { padding: 4px 0; }
.skeleton { overflow: hidden; border-radius: var(--radius-md); background: var(--navy-850); }
.skeleton::after { display: block; width: 45%; height: 100%; content: ""; background: linear-gradient(90deg, transparent, rgba(255,255,255,.05), transparent); animation: shimmer 1.3s infinite; }
.skeleton-title { width: 240px; height: 24px; margin-bottom: 24px; }
.skeleton-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.skeleton-day { height: 420px; border-radius: 0; }

.error-state, .empty-state { min-height: 420px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--navy-900); }
.error-state { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; min-height: 112px; padding: 22px; }
.error-state > svg { width: 28px; fill: none; stroke: var(--rose); stroke-width: 1.6; stroke-linecap: round; }
.error-state strong { font-size: 13px; }
.error-state p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.empty-state { display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 48px 20px; text-align: center; }
.empty-state > svg { width: 64px; fill: none; stroke: var(--navy-700); stroke-width: 1.5; }
.empty-state h3 { margin: 22px 0 8px; font-size: 20px; }
.empty-state p { max-width: 440px; margin: 0 0 24px; color: var(--muted); font-size: 12px; line-height: 1.6; }

.detail-drawer {
  position: fixed;
  z-index: 60;
  inset: 0 0 0 auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(620px, 94vw);
  height: 100vh;
  height: 100dvh;
  transform: translateX(104%);
  border-left: 1px solid var(--line-strong);
  background: var(--navy-900);
  box-shadow: var(--shadow-overlay);
  transition: transform 360ms var(--ease-out);
}
.detail-drawer.is-open { transform: translateX(0); }
.drawer-scrim, .sidebar-scrim { position: fixed; z-index: 50; inset: 0; background: rgba(2, 8, 14, 0.64); opacity: 0; transition: opacity 240ms ease; }
.drawer-scrim.is-visible, .sidebar-scrim.is-visible { opacity: 1; }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 25px 27px 20px; border-bottom: 1px solid var(--line); }
.drawer-date { color: var(--lime); font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.drawer-head h2 { max-width: 480px; margin: 9px 0 0; font-size: clamp(23px, 3vw, 32px); line-height: 1.12; letter-spacing: -.025em; }
.drawer-body { overflow-y: auto; padding: 24px 27px 34px; }
.drawer-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 9px; padding: 16px 27px 19px; border-top: 1px solid var(--line); background: rgba(7, 16, 27, .56); }
.publish-channel-summary { flex: 1 1 100%; color: var(--muted-strong); font-size: 10px; line-height: 1.45; }
.publish-channel-summary b { color: var(--ink); }
.detail-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 23px; }
.detail-meta span { padding: 6px 9px; border-radius: 7px; background: var(--navy-800); color: var(--muted-strong); font-size: 9px; }
.detail-section { padding: 21px 0; border-top: 1px solid var(--line); }
.detail-section:first-of-type { border-top: 0; padding-top: 0; }
.detail-section h3 { display: flex; align-items: center; justify-content: space-between; margin: 0 0 11px; font-size: 11px; letter-spacing: .03em; }
.detail-section p, .script-copy, .storyboard-list { margin: 0; color: var(--muted-strong); font-size: 12px; line-height: 1.7; white-space: pre-wrap; }
.storyboard-list { display: grid; gap: 9px; padding: 0; list-style: none; counter-reset: scenes; }
.storyboard-list li { position: relative; padding-left: 31px; counter-increment: scenes; }
.storyboard-list li::before { position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 21px; height: 21px; border-radius: 7px; background: rgba(201,244,106,.09); color: var(--lime); content: counter(scenes); font-size: 9px; font-weight: 800; }
.video-stage { position: relative; display: grid; place-items: center; width: min(100%, 310px); aspect-ratio: 9/16; margin-inline: auto; overflow: hidden; border-radius: var(--radius-md); background: #050a10; }
.video-stage video { width: 100%; height: 100%; object-fit: contain; }
.video-placeholder { display: grid; place-items: center; gap: 10px; color: var(--muted); text-align: center; }
.video-placeholder svg { width: 32px; fill: none; stroke: var(--navy-700); stroke-width: 1.5; }
.video-placeholder span { max-width: 260px; font-size: 10px; line-height: 1.5; }
.channel-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.channel-section-head h3 { margin-bottom: 5px; }
.channel-section-head p { color: var(--muted); font-size: 10px; line-height: 1.45; }
.channel-inherit-button {
  flex: none;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted-strong);
  font-size: 10px;
  font-weight: 700;
}
.channel-inherit-button:hover:not(:disabled) { border-color: var(--line-strong); background: rgba(255,255,255,.045); }
.channel-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.channel-result {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  text-align: center;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}
.channel-result:hover { border-color: var(--line-strong); color: var(--muted-strong); }
.channel-result.is-selected { border-color: rgba(201,244,106,.45); background: rgba(201,244,106,.06); color: var(--lime); }
.channel-result.is-success { color: var(--green); }
.channel-result.is-failed { color: var(--rose); }
.channel-result:focus-within { outline: 2px solid var(--lime); outline-offset: 3px; }
.channel-result-toggle { display: flex; align-items: center; flex-direction: column; gap: 6px; min-height: 94px; margin: 0 !important; padding: 11px 5px 9px; cursor: pointer; }
.channel-result-toggle:has(input:disabled) { cursor: default; }
.channel-result-toggle input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.channel-result-toggle input:disabled + .channel-result-icon { opacity: .86; }
.channel-result-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.channel-result strong { max-width: 100%; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.channel-result small { min-height: 24px; color: inherit; font-size: 9px; line-height: 1.35; opacity: .82; }
.channel-result-link { display: block; min-height: 36px; padding: 10px 4px; border-top: 1px solid var(--line); color: inherit; font-size: 9px; font-weight: 750; text-decoration: none; }
.channel-result-link:hover { text-decoration: underline; text-underline-offset: 2px; }
.channel-empty-note { margin-top: 10px !important; padding: 9px 10px; border-radius: 8px; background: rgba(242,196,109,.08); color: var(--amber) !important; font-size: 10px !important; line-height: 1.5 !important; }
.immutable-note { margin: 14px 0 0; padding: 11px 12px; border: 1px solid rgba(242,196,109,.24); border-radius: 9px; background: rgba(242,196,109,.07); color: var(--amber); font-size: 10px; line-height: 1.5; }
.revision-state { margin-top: 17px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--navy-850); }
.revision-state h3 { margin: 0 0 10px; font-size: 11px; }
.revision-state dl { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin: 0; }
.revision-state dl > div { padding: 8px 9px; border-radius: 8px; background: var(--navy-900); }
.revision-state dt { color: var(--muted); font-size: 8px; }
.revision-state dd { margin: 4px 0 0; color: var(--muted-strong); font-size: 10px; }
.item-editor-form { display: grid; gap: 16px; margin-top: 16px; }
.editor-grid { display: grid; gap: 11px; }
.editor-field { display: grid; gap: 7px; margin: 0; }
.editor-field > span { color: var(--muted-strong); font-size: 10px; font-weight: 690; }
.editor-field input, .editor-field textarea { width: 100%; padding: 10px 11px; border: 1px solid var(--line-strong); border-radius: 8px; outline: 0; background: var(--navy-850); color: var(--ink); font: inherit; font-size: 11px; line-height: 1.5; }
.editor-field input { height: 42px; }
.editor-field textarea { resize: vertical; }
.editor-field input:focus, .editor-field textarea:focus { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(201,244,106,.08); }
.editor-caption-fields, .route-schedule-fields fieldset { min-width: 0; margin: 0; padding: 13px; border: 1px solid var(--line); border-radius: 10px; }
.editor-caption-fields > legend, .route-schedule-fields legend { padding-inline: 5px; color: var(--muted); font-size: 9px; }
.editor-caption-fields { display: grid; gap: 10px; }
.editor-panel { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--navy-850); }
.editor-panel > h3 { margin: 0 0 11px; font-size: 11px; }
.route-schedule-fields { display: grid; gap: 12px; }
.editor-channel-options { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; }
.editor-channel-options label { display: grid; grid-template-columns: 16px minmax(0,1fr); align-items: center; gap: 7px; min-height: 34px; padding: 6px 8px; border-radius: 7px; background: var(--navy-900); color: var(--muted-strong); font-size: 9px; }
.editor-channel-options input { width: 16px; height: 16px; accent-color: var(--lime); }
.edit-impact { margin: 0; padding: 10px 11px; border-radius: 8px; background: rgba(121,183,255,.08); color: var(--blue); font-size: 9px; line-height: 1.5; }
.editor-form-actions { display: flex; justify-content: flex-end; gap: 8px; }
.current-image-preview { margin: 0 0 14px; }
.current-image-preview img { display: block; width: min(100%, 260px); aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-md); }
.current-image-preview figcaption { margin-top: 7px; color: var(--muted); font-size: 9px; }
.ai-instruction-panel { margin-top: 17px; padding: 15px; border: 1px solid rgba(184,167,255,.23); border-radius: var(--radius-md); background: rgba(184,167,255,.055); }
.ai-instruction-panel h3 { margin: 0 0 11px; font-size: 11px; }
.ai-instruction-panel label { display: grid; gap: 7px; }
.ai-instruction-panel label > span { color: var(--muted-strong); font-size: 10px; }
.ai-instruction-panel textarea { width: 100%; padding: 10px 11px; resize: vertical; border: 1px solid var(--line-strong); border-radius: 8px; outline: 0; background: var(--navy-900); color: var(--ink); font: inherit; font-size: 11px; line-height: 1.5; }
.ai-instruction-panel textarea:focus { border-color: var(--lime); }
.ai-instruction-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 9px; }
.ai-preview-panel { margin-top: 12px; padding: 14px; border: 1px solid rgba(119,215,160,.26); border-radius: var(--radius-md); background: rgba(119,215,160,.055); }
.ai-preview-panel h3 { margin: 0 0 9px; font-size: 11px; }
.ai-preview-panel pre { max-height: 240px; margin: 0; padding: 11px; overflow: auto; border-radius: 8px; background: var(--navy-950); color: var(--muted-strong); font-size: 9px; line-height: 1.55; white-space: pre-wrap; }
.ai-preview-panel > div { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }

.project-dialog {
  width: min(520px, calc(100vw - 30px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--navy-900);
  color: var(--ink);
  box-shadow: var(--shadow-overlay);
}
.project-dialog > form, .project-dialog > div { max-height: calc(100dvh - 24px); overflow-y: auto; }
.project-dialog::backdrop { background: rgba(2, 8, 14, .78); backdrop-filter: blur(5px); }
.project-dialog form { padding: 25px; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.dialog-head span { color: var(--lime); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.dialog-head h2 { margin: 8px 0 0; font-size: 24px; letter-spacing: -.02em; }
.project-dialog label { display: grid; gap: 8px; margin-top: 16px; }
.project-dialog label > span { color: var(--muted-strong); font-size: 11px; font-weight: 680; }
.project-dialog input, .project-dialog select { width: 100%; height: 48px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); outline: 0; background: var(--navy-850); color: var(--ink); font-size: 13px; }
.project-dialog input::placeholder { color: #687987; }
.project-dialog input:focus, .project-dialog select:focus { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(201, 244, 106, .09); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 26px; }

.project-settings-dialog {
  width: min(1100px, calc(100vw - 24px));
  height: min(860px, calc(100dvh - 24px));
  max-height: calc(100dvh - 24px);
}
.project-settings-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.project-settings-dialog > .project-settings-layout { max-height: none; overflow: hidden; }
.project-settings-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 27px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--navy-900);
}
.project-settings-header h2 { margin: 0; font-size: 24px; letter-spacing: -.025em; }
.project-settings-header p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.project-settings-header h2:focus-visible { outline: none; }
.project-settings-header .icon-button { flex: none; width: 44px; height: 44px; }
.project-settings-header .icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.project-settings-layout { display: grid; grid-template-columns: 214px minmax(0, 1fr); min-height: 0; }
.project-settings-nav {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  padding: 20px 14px;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: var(--navy-950);
}
.project-settings-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 11px;
  border-radius: 8px;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 720;
  line-height: 1.35;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}
.project-settings-nav a:hover { background: var(--navy-800); color: var(--ink); }
.project-settings-nav a:active { background: rgba(201,244,106,.08); color: var(--lime); }
.project-settings-nav a[aria-current="page"] { background: rgba(201,244,106,.09); color: var(--lime); }
.project-settings-content { min-width: 0; overflow-x: hidden; overflow-y: auto; scroll-behavior: smooth; overscroll-behavior: contain; }
.project-settings-section { padding: 27px 30px 31px; border-bottom: 1px solid var(--line); scroll-margin-top: 1px; }
.project-settings-section:last-child { border-bottom: 0; }
.project-settings-section > h3 { margin: 0; font-size: 16px; letter-spacing: -.015em; }
.project-settings-intro { max-width: 72ch; margin: 7px 0 20px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.project-settings-section form { padding: 0; }
.project-settings-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 17px 0 0; border-top: 1px solid var(--line); }
.project-settings-summary div { display: grid; grid-template-columns: minmax(110px, .7fr) minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.project-settings-summary dt { color: var(--muted); font-size: 12px; }
.project-settings-summary dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: var(--ink); font-size: 12px; font-weight: 680; }
#projectOwnerForm { display: grid; grid-template-columns: minmax(220px, 420px) auto; align-items: end; gap: 12px; }
#projectOwnerForm > label { margin: 0; }
#projectOwnerForm > label, .project-connection-fields label { display: grid; gap: 8px; }
#projectOwnerForm > label, #projectOwnerForm > select { grid-column: 1; }
#projectOwnerForm .dialog-actions { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
#projectOwnerForm .form-note { grid-column: 1 / -1; }
.project-settings-status { min-height: 38px; margin: 0; padding: 10px 27px; overflow-wrap: anywhere; border-top: 1px solid var(--line); background: var(--navy-900); }
.project-connection-cards { display: grid; margin-top: 18px; border-top: 1px solid var(--line); }
.project-connection-card { position: relative; min-width: 0; padding: 20px 0 21px; border-bottom: 1px solid var(--line); }
.project-connection-card::before { position: absolute; top: 26px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); content: ""; }
.project-connection-card[data-status="connected"]::before { background: var(--green); box-shadow: 0 0 0 4px rgba(119,215,160,.08); }
.project-connection-card[data-status="configured"]::before { background: var(--amber); box-shadow: 0 0 0 4px rgba(242,196,109,.08); }
.project-connection-card[data-status="error"]::before { background: var(--rose); box-shadow: 0 0 0 4px rgba(255,141,153,.08); }
.project-connection-card > header { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding-left: 20px; }
.project-connection-card > header h4 { margin: 0; font-size: 13px; }
.project-connection-card > header strong { flex: none; color: var(--muted-strong); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }
.project-connection-card[data-status="connected"] > header strong { color: var(--green); }
.project-connection-card[data-status="configured"] > header strong { color: var(--amber); }
.project-connection-card[data-status="error"] > header strong { color: var(--rose); }
.project-connection-card > p { max-width: 78ch; margin: 7px 0 0 20px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.project-connection-account { color: var(--muted-strong) !important; font-weight: 680; }
.project-connection-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 14px 0 0 20px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--line); }
.project-connection-meta div { min-width: 0; padding: 10px 11px; background: var(--navy-850); }
.project-connection-meta dt { color: var(--muted); font-size: 12px; }
.project-connection-meta dd { min-width: 0; margin: 4px 0 0; overflow: hidden; text-overflow: ellipsis; color: var(--muted-strong); font-size: 12px; white-space: nowrap; }
.project-connection-card form { margin: 15px 0 0 20px; }
.project-connection-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.project-connection-fields label { min-width: 0; margin: 0; }
.project-connection-fields label > span { color: var(--muted-strong); font-size: 12px; font-weight: 680; }
.project-connection-fields input { height: 44px; padding-inline: 11px; font-size: 13px; }
.project-connection-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.project-connection-actions button { min-height: 44px; }
.project-connection-oauth-note, .project-connection-readonly { margin-top: 10px !important; }
.project-connection-readonly { padding: 9px 11px; border-radius: 8px; background: rgba(121,183,255,.06); color: var(--blue) !important; }
.project-connection-card [data-connection-status] { min-height: 14px; color: var(--muted-strong); }
.project-connection-card[aria-busy] { opacity: .72; }
.channel-settings-intro { max-width: 66ch; margin: -7px 0 22px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.project-channel-settings { min-width: 0; margin: 0; padding: 0; border: 0; }
.project-channel-settings legend { margin-bottom: 11px; color: var(--muted-strong); font-size: 11px; font-weight: 680; }
.project-channel-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.project-channel-option {
  display: grid !important;
  grid-template-columns: 20px 28px minmax(0, 1fr);
  align-items: center;
  gap: 9px !important;
  min-height: 62px;
  margin: 0 !important;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--navy-850);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}
.project-channel-option:hover { border-color: var(--line-strong); background: var(--navy-800); }
.project-channel-option.is-selected { border-color: rgba(201,244,106,.38); background: rgba(201,244,106,.055); }
.project-channel-option input { width: 18px !important; height: 18px !important; margin: 0; padding: 0; accent-color: var(--lime); }
.project-channel-mark { display: grid; place-items: center; color: var(--muted-strong); }
.project-channel-mark svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.project-channel-copy { min-width: 0; }
.project-channel-copy strong, .project-channel-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-channel-copy strong { font-size: 12px; }
.project-channel-copy small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.channel-settings-hint { margin: 13px 0 0; padding: 10px 11px; border-radius: 8px; background: rgba(119,215,160,.07); color: var(--green); font-size: 12px; line-height: 1.5; }
.channel-settings-hint.is-paused { background: rgba(242,196,109,.08); color: var(--amber); }

.auto-prepare-setting { display: grid !important; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 13px !important; margin: 0 !important; padding: 15px 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--navy-850); cursor: pointer; }
.auto-prepare-setting > span:last-child { min-width: 0; }
.auto-prepare-setting strong, .auto-prepare-setting small { display: block; }
.auto-prepare-setting strong { font-size: 12px; }
.auto-prepare-setting small { margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.45; }
.switch-control { position: relative; display: inline-block !important; width: 38px; height: 22px; flex: none; }
.switch-control input { position: absolute; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden; clip: rect(0 0 0 0); }
.switch-control i { position: absolute; inset: 0; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--navy-700); transition: background 160ms ease, border-color 160ms ease; }
.switch-control i::after { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted-strong); content: ""; transition: transform 160ms var(--ease-out), background 160ms ease; }
.switch-control input:checked + i { border-color: rgba(201, 244, 106, .52); background: rgba(201, 244, 106, .18); }
.switch-control input:checked + i::after { transform: translateX(16px); background: var(--lime); }
.switch-control input:focus-visible + i { outline: 2px solid var(--lime); outline-offset: 3px; }
.switch-control input:disabled + i { opacity: .45; }
.ai-configuration-note { margin: 10px 0 0; color: var(--green); font-size: 12px; line-height: 1.5; }
.ai-configuration-note.is-warning { color: var(--amber); }
.slot-list-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 27px 0 13px; }
.slot-list-head h3, .slot-list-head h4 { margin: 0; font-size: 14px; }
.slot-list-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.content-plan-slot-rows { display: grid; gap: 10px; }
.content-plan-empty { padding: 34px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius-md); color: var(--muted); font-size: 12px; text-align: center; }
.content-plan-slot { min-width: 0; margin: 0; padding: 15px 16px 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--navy-850); }
.content-plan-slot > legend { padding: 0 6px; color: var(--lime); font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.slot-primary-fields { display: grid; grid-template-columns: minmax(230px, 1.4fr) 124px 76px 44px; align-items: end; gap: 10px; }
.content-plan-slot label { min-width: 0; margin: 0; }
.content-plan-slot label > span { font-size: 12px; }
.content-plan-slot select, .content-plan-slot input[type="time"] { width: 100%; height: 44px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 8px; outline: 0; background: var(--navy-900); color: var(--ink); font: inherit; font-size: 12px; }
.content-plan-slot select:focus, .content-plan-slot input[type="time"]:focus { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(201, 244, 106, .09); }
.slot-enabled-field { align-content: end; justify-items: start; height: 65px; }
.slot-enabled-field > span:first-child { margin-bottom: 4px; }
.slot-delete-button { width: 44px; height: 44px; border: 1px solid var(--line); color: var(--muted); }
.slot-delete-button:hover { border-color: rgba(255, 141, 153, .4); background: rgba(255, 141, 153, .08); color: var(--rose); }
.slot-channel-fieldset { min-width: 0; margin: 14px 0 0; padding: 0; border: 0; }
.slot-channel-fieldset > legend { margin-bottom: 8px; color: var(--muted); font-size: 12px; }
.slot-channel-options { display: flex; flex-wrap: wrap; gap: 7px; }
.slot-channel-option { position: relative; display: grid !important; grid-template-columns: auto auto; align-items: center; gap: 6px !important; min-height: 44px; margin: 0 !important; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--navy-900); cursor: pointer; }
.slot-channel-option input { position: absolute; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden; clip: rect(0 0 0 0); }
.slot-channel-option span { color: var(--muted-strong) !important; font-size: 12px !important; }
.slot-channel-option small { color: var(--muted); font-size: 12px; }
.slot-channel-option:has(input:checked) { border-color: rgba(201,244,106,.38); background: rgba(201,244,106,.07); }
.slot-channel-option:has(input:checked) span { color: var(--lime) !important; }
.slot-channel-option:focus-within { outline: 2px solid var(--lime); outline-offset: 2px; }
.form-note { min-height: 16px; margin: 10px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.project-settings-dialog .form-note { font-size: 12px; }
.project-settings-dialog label > span,
.project-settings-dialog .project-channel-settings legend { font-size: 12px; }
.project-settings-dialog .secondary-button { min-height: 44px; }
.project-settings-dialog .ghost-button { min-height: 44px; }

.add-content-dialog { width: min(780px, calc(100vw - 24px)); max-height: min(860px, calc(100dvh - 24px)); }
.add-content-dialog > form { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-height: min(860px, calc(100dvh - 24px)); padding: 0; }
.add-content-dialog-head { margin: 0; padding: 24px 26px 19px; border-bottom: 1px solid var(--line); }
.add-content-dialog-body { min-height: 0; padding: 21px 26px 25px; overflow-y: auto; }
.add-content-dialog-actions { margin: 0; padding: 16px 26px 18px; border-top: 1px solid var(--line); background: var(--navy-900); }
.add-content-fieldset { min-width: 0; margin: 0 0 23px; padding: 0; border: 0; }
.add-content-fieldset > legend { margin-bottom: 10px; color: var(--muted-strong); font-size: 11px; font-weight: 760; }
.format-choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.format-choice-grid label { position: relative; display: block !important; min-height: 82px; margin: 0 !important; padding: 13px 13px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--navy-850); cursor: pointer; }
.format-choice-grid input, .topic-mode-options input, .add-channel-option input { position: absolute; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden; clip: rect(0 0 0 0); }
.format-choice-grid label.is-selected { border-color: rgba(201,244,106,.45); background: rgba(201,244,106,.06); }
.format-choice-grid label:focus-within, .topic-mode-options label:focus-within, .add-channel-option:focus-within { outline: 2px solid var(--lime); outline-offset: 2px; }
.format-choice-grid strong, .format-choice-grid small { display: block; }
.format-choice-grid strong { font-size: 11px; }
.format-choice-grid small { margin-top: 7px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.topic-mode-options { display: flex; gap: 7px; margin-bottom: 11px; }
.topic-mode-options label { position: relative; display: inline-flex !important; align-items: center; min-height: 34px; margin: 0 !important; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted-strong); cursor: pointer; }
.topic-mode-options label.is-selected { border-color: rgba(201,244,106,.4); background: rgba(201,244,106,.06); color: var(--lime); }
.topic-mode-options label:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.topic-input-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 9px; }
.topic-input-row label, .add-content-instruction, .add-content-schedule-row > label { margin: 0; }
.topic-input-row .secondary-button { min-height: 48px; white-space: nowrap; }
.add-content-instruction { margin-top: 12px !important; }
.project-dialog textarea { width: 100%; padding: 11px 13px; resize: vertical; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); outline: 0; background: var(--navy-850); color: var(--ink); font: inherit; font-size: 12px; line-height: 1.5; }
.project-dialog textarea:focus { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(201,244,106,.09); }
.add-content-schedule-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: start; gap: 18px; }
.add-content-channel-fieldset { margin: 0; }
.add-content-channels { display: flex; flex-wrap: wrap; gap: 7px; }
.add-channel-option { position: relative; display: grid !important; grid-template-columns: auto auto; align-items: center; gap: 6px !important; min-height: 42px; margin: 0 !important; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--navy-850); cursor: pointer; }
.add-channel-option:has(input:checked) { border-color: rgba(201,244,106,.4); background: rgba(201,244,106,.06); }
.add-channel-option > span { color: var(--lime) !important; font-size: 9px !important; }
.add-channel-option small { color: var(--muted); font-size: 9px; }

.item-actions-dialog { width: min(460px, calc(100vw - 24px)); }
.item-actions-shell { padding: 23px; }
.item-command-list { display: grid; gap: 7px; }
.item-command { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--navy-850); color: var(--ink); text-align: left; }
.item-command:hover { border-color: var(--line-strong); background: var(--navy-800); }
.item-command strong, .item-command small { display: block; }
.item-command strong { font-size: 11px; }
.item-command small { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.item-command svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.item-command.is-danger { color: var(--rose); }
.delete-content-dialog { width: min(560px, calc(100vw - 24px)); }
.delete-content-note { margin: -8px 0 18px; padding: 11px 12px; border-radius: 9px; background: rgba(242,196,109,.07); color: var(--amber); font-size: 10px; line-height: 1.5; }
.delete-mode-options { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.delete-mode-options > legend { margin-bottom: 8px; color: var(--muted-strong); font-size: 10px; font-weight: 720; }
.delete-mode-options label { position: relative; display: block; margin: 0; padding: 12px 13px 12px 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--navy-850); cursor: pointer; }
.delete-mode-options input { position: absolute; left: 13px; top: 16px; width: 17px; height: 17px; accent-color: var(--lime); }
.delete-mode-options label:has(input:checked) { border-color: rgba(201,244,106,.4); background: rgba(201,244,106,.055); }
.delete-mode-options strong, .delete-mode-options small { display: block; }
.delete-mode-options strong { font-size: 11px; }
.delete-mode-options small { margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.undo-toast { grid-template-columns: auto minmax(0,1fr) auto; }
.undo-toast .secondary-button { min-height: 34px; padding-inline: 10px; }

.managers-dialog { width: min(940px, calc(100vw - 30px)); max-height: min(780px, calc(100vh - 30px)); }
.managers-shell { padding: 27px; }
.managers-dialog-head { margin-bottom: 24px; }
.managers-dialog-head p { max-width: 610px; margin: 9px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.managers-layout { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(300px, .82fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--line); }
.manager-directory,
.manager-form { min-width: 0; background: var(--navy-900); }
.manager-directory { display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 440px; }
.manager-form { display: flex; flex-direction: column; gap: 16px; padding: 22px !important; }
.manager-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 22px 16px; border-bottom: 1px solid var(--line); }
.manager-form .manager-section-head { padding: 0 0 3px; border-bottom: 0; }
.manager-section-head h3 { margin: 0; font-size: 14px; letter-spacing: -0.01em; }
.manager-section-head p { margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.manager-list { display: grid; align-content: start; max-height: min(535px, calc(100vh - 230px)); overflow-y: auto; background: var(--navy-900); }
.manager-empty { display: grid; place-items: center; min-height: 100%; padding: 28px; background: var(--navy-900); color: var(--muted); font-size: 11px; line-height: 1.55; text-align: center; }
.manager-entry { padding: 18px 20px; background: var(--navy-900); }
.manager-entry + .manager-entry { border-top: 1px solid var(--line); }
.manager-edit-form { display: grid; gap: 16px; padding: 0 !important; }
.manager-entry-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.manager-identity { min-width: 0; }
.manager-identity strong,
.manager-identity span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.manager-identity strong { font-size: 12px; }
.manager-identity span { margin-top: 4px; color: var(--muted); font-size: 9px; }
.manager-active-control {
  position: relative;
  display: inline-grid !important;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 8px !important;
  margin: 0 !important;
  cursor: pointer;
}
.manager-active-control input {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.manager-active-control > .manager-active-track {
  position: relative;
  width: 34px;
  height: 20px;
  border: 1px solid rgba(255, 141, 153, .42);
  border-radius: 999px;
  background: rgba(255, 141, 153, .12);
  transition: border-color 180ms var(--ease-out), background 180ms var(--ease-out);
}
.manager-active-track::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--rose);
  content: "";
  transition: transform 180ms var(--ease-out), background 180ms var(--ease-out);
}
.manager-active-control input:checked + .manager-active-track { border-color: rgba(119, 215, 160, .5); background: rgba(119, 215, 160, .13); }
.manager-active-control input:checked + .manager-active-track::after { transform: translateX(14px); background: var(--green); }
.manager-active-control input:focus-visible + .manager-active-track { outline: 2px solid var(--lime); outline-offset: 3px; }
.manager-active-control > .manager-active-label { color: var(--rose); font-size: 9px; font-weight: 750; }
.manager-active-on { display: none; }
.manager-active-control input:checked ~ .manager-active-label { color: var(--green); }
.manager-active-control input:checked ~ .manager-active-label .manager-active-on { display: inline; }
.manager-active-control input:checked ~ .manager-active-label .manager-active-off { display: none; }
.manager-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.manager-edit-form .manager-field { display: grid; gap: 7px; min-width: 0; margin: 0 !important; }
.manager-edit-form .manager-field > span { color: var(--muted-strong); font-size: 10px; font-weight: 680; }
.manager-edit-form .manager-field input { height: 42px; padding-inline: 11px; font-size: 11px; }
.manager-entry-projects { min-width: 0; margin: 0; padding: 0; border: 0; }
.manager-entry-projects legend { margin-bottom: 10px; color: var(--muted-strong); font-size: 10px; font-weight: 680; }
.manager-access { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.manager-entry-actions { display: flex; justify-content: flex-end; }
.manager-entry-actions .secondary-button { min-width: 126px; min-height: 38px; }
.project-assignment { min-width: 0; margin: 0; padding: 0; border: 0; }
.project-assignment legend { margin-bottom: 10px; color: var(--muted-strong); font-size: 11px; font-weight: 680; }
.project-checkboxes { display: grid; gap: 7px; }
.project-checkbox {
  display: grid !important;
  grid-template-columns: 17px minmax(0, 1fr);
  align-items: center;
  gap: 9px !important;
  min-height: 38px;
  margin: 0 !important;
  padding: 7px 9px;
  border-radius: 8px;
  background: var(--navy-850);
  color: var(--muted-strong);
  font-size: 10px;
  line-height: 1.35;
}
.project-checkbox:hover { background: var(--navy-800); }
.project-checkbox input { width: 17px !important; height: 17px !important; margin: 0; padding: 0; accent-color: var(--lime); }
.project-checkbox span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-checkbox-empty { margin: 0; padding: 12px; border-radius: 8px; background: var(--navy-850); color: var(--muted); font-size: 10px; line-height: 1.5; }
.manager-submit { width: 100%; min-height: 46px; margin-top: auto; }

.toast-region { position: fixed; z-index: 100; right: 20px; bottom: 20px; display: grid; gap: 9px; width: min(360px, calc(100vw - 40px)); }
.toast { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 11px; padding: 13px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: #172536; box-shadow: 0 16px 50px rgba(0,0,0,.34); animation: toast-in 320ms var(--ease-out) both; }
.toast i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.toast.is-error i { background: var(--rose); }
.toast strong { display: block; font-size: 11px; }
.toast span { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.4; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { from { transform: translateX(-110%); } to { transform: translateX(250%); } }
@keyframes toast-in { from { transform: translateY(10px); opacity: 0; } }
@keyframes card-updated { from { transform: translateY(5px); opacity: .72; } }

@media (max-width: 1600px) {
  .project-settings-button { width: 44px; min-width: 44px; padding: 0; justify-content: center; }
  .project-settings-button span { display: none; }
}

@media (max-width: 1380px) {
  .topbar { grid-template-columns: minmax(220px, 1fr) auto auto; gap: 18px; }
  .readiness { grid-column: 1 / -1; grid-row: 2; padding-bottom: 17px; }
  .topbar { min-height: 134px; padding-top: 17px; }
}

@media (max-width: 840px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(var(--sidebar-width), 86vw); transform: translateX(-104%); box-shadow: var(--shadow-overlay); transition: transform 280ms var(--ease-out); }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar-scrim { z-index: 24; }
  .workspace { padding-inline: 18px; }
  .topbar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; min-height: 158px; padding: 12px 0; }
  .mobile-menu-button { position: absolute; left: 0; top: 14px; display: grid !important; }
  .project-heading { grid-column: 1 / -1; min-height: 44px; padding-left: 50px; }
  .project-heading h1 { font-size: 21px; }
  .project-heading p { display: none; }
  .project-state { display: none; }
  .readiness { display: none; }
  #reconcileButton { grid-column: 1 / -1; width: 100%; min-width: 0; padding-inline: 11px; }
  .topbar .primary-button > span { display: inline; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .workflow-feedback { grid-template-columns: 1fr auto; gap: 14px; }
  .workflow-progress { grid-column: 1 / -1; grid-row: 2; }
  .status-strip { padding-top: 19px; }
  .section-heading { align-items: center; }
  .managers-dialog { max-height: calc(100vh - 20px); }
  .managers-shell { padding: 20px; }
  .managers-layout { grid-template-columns: 1fr; max-height: calc(100vh - 150px); overflow-y: auto; }
  .manager-directory { min-height: 300px; }
  .manager-list { max-height: 330px; }
  .project-settings-dialog { width: calc(100vw - 12px); height: calc(100dvh - 12px); max-height: calc(100dvh - 12px); }
  .project-settings-layout { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .project-settings-nav { display: flex; gap: 6px; padding: 10px 14px; overflow-x: auto; overflow-y: hidden; border-right: 0; border-bottom: 1px solid var(--line); scroll-snap-type: x proximity; }
  .project-settings-nav::after { position: sticky; right: -1px; flex: 0 0 22px; align-self: stretch; margin-left: -14px; pointer-events: none; background: linear-gradient(90deg, transparent, var(--navy-950)); content: ""; }
  .project-settings-nav a { flex: none; min-height: 44px; padding-inline: 10px; scroll-snap-align: start; white-space: nowrap; }
  .project-settings-section { padding-inline: 22px; }
  .project-connection-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slot-primary-fields { grid-template-columns: minmax(0, 1fr) 120px 72px 44px; }
  .format-choice-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .workspace { padding-inline: 14px; padding-bottom: 30px; }
  .topbar { grid-template-columns: 1fr; min-height: 122px; gap: 8px; }
  .project-heading { grid-column: 1; }
  .project-heading h1 { font-size: 18px; }
  .project-heading .heading-line { gap: 0; }
  .project-settings-button { width: 44px; min-width: 44px; min-height: 44px; margin-left: 7px; padding: 0; justify-content: center; }
  .project-settings-button span { display: none; }
  #reconcileButton { grid-column: 1; min-height: 46px; }
  .topbar .primary-button { width: 100%; min-width: 0; padding: 0 12px; }
  .workflow-feedback { grid-template-columns: 1fr; align-items: stretch; }
  .workflow-progress { grid-column: 1; grid-row: auto; }
  .workflow-feedback .secondary-button { width: 100%; white-space: normal; }
  .status-strip { align-items: flex-start; flex-direction: column-reverse; gap: 12px; }
  .week-range { width: 100%; }
  .status-summary { gap: 5px; }
  .section-heading { align-items: flex-start; }
  .section-heading p { display: none; }
  .section-heading .ghost-button { width: 40px; padding: 0; font-size: 0; }
  .week-board { grid-template-columns: repeat(7, minmax(244px, 78vw)); scroll-snap-type: x mandatory; }
  .day-column { min-height: 390px; scroll-snap-align: start; }
  .content-card { min-height: 156px; }
  .drawer-head, .drawer-body, .drawer-actions { padding-inline: 18px; }
  .drawer-actions { justify-content: stretch; }
  .drawer-actions .primary-button, .drawer-actions .secondary-button, .drawer-actions .ghost-button { flex: 1 1 auto; }
  .channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .channel-section-head { align-items: stretch; flex-direction: column; gap: 9px; }
  .channel-inherit-button { align-self: flex-start; }
  .error-state { grid-template-columns: auto 1fr; }
  .error-state .secondary-button { grid-column: 2; justify-self: start; }
  .skeleton-board { grid-template-columns: repeat(2, 1fr); }
  .auth-gate { place-items: start center; padding: 20px 14px; }
  .auth-panel { margin-top: max(18px, 8vh); padding: 27px 22px; }
  .auth-brand { margin-bottom: 28px; }
  .auth-copy h1 { font-size: 29px; }
  .managers-shell { padding: 17px; }
  .managers-dialog-head { margin-bottom: 18px; }
  .managers-dialog-head p { display: none; }
  .manager-fields { grid-template-columns: 1fr; }
  .manager-access { grid-template-columns: 1fr; }
  .project-settings-header { padding: 17px 17px 14px; }
  .project-settings-header h2 { font-size: 20px; }
  .project-settings-header p { display: none; }
  .project-settings-nav { padding-inline: 10px; }
  .project-settings-section { padding: 22px 17px 25px; }
  .project-settings-summary { grid-template-columns: 1fr; }
  #projectOwnerForm { grid-template-columns: 1fr; }
  #projectOwnerForm .dialog-actions { grid-column: 1; grid-row: auto; margin-top: 2px; }
  #projectOwnerForm .dialog-actions > * { width: 100%; }
  .project-settings-status { padding-inline: 17px; }
  .project-connection-card > header { align-items: flex-start; flex-direction: column; gap: 5px; }
  .project-connection-meta { grid-template-columns: 1fr; }
  .project-connection-fields { grid-template-columns: 1fr; }
  .project-connection-actions { align-items: stretch; flex-direction: column; }
  .project-connection-actions > * { width: 100%; }
  .project-channel-options { grid-template-columns: 1fr; }
  .slot-list-head { align-items: stretch; flex-direction: column; gap: 12px; }
  .slot-list-head .secondary-button { width: 100%; }
  .slot-primary-fields { grid-template-columns: minmax(0, 1fr) 64px 44px; }
  .slot-format-field { grid-column: 1 / -1; }
  .slot-time-field { grid-column: 1; }
  .slot-enabled-field { grid-column: 2; }
  .slot-delete-button { grid-column: 3; }
  .content-plan-slot { padding-inline: 12px; }
  .slot-channel-option { min-height: 44px; }
  .slot-channel-option small { display: none; }
  .add-content-dialog { width: calc(100vw - 12px); max-height: calc(100dvh - 12px); }
  .add-content-dialog > form { max-height: calc(100dvh - 12px); }
  .add-content-dialog-head { padding: 19px 18px 16px; }
  .add-content-dialog-body { padding: 17px 18px 20px; }
  .add-content-dialog-actions { padding: 13px 18px 15px; }
  .add-content-dialog-actions > * { flex: 1; }
  .format-choice-grid { grid-template-columns: 1fr; }
  .format-choice-grid label { min-height: 66px; }
  .topic-input-row { grid-template-columns: 1fr; }
  .topic-input-row .secondary-button { width: 100%; min-height: 42px; }
  .add-content-schedule-row { grid-template-columns: 1fr; gap: 16px; }
  .add-channel-option small { display: none; }
  .editor-form-actions, .ai-instruction-actions, .ai-preview-panel > div { align-items: stretch; flex-direction: column-reverse; }
  .editor-form-actions > *, .ai-instruction-actions > *, .ai-preview-panel > div > * { width: 100%; }
  .item-actions-dialog, .delete-content-dialog { width: calc(100vw - 12px); }
  .item-actions-shell { padding: 18px; }
  .undo-toast { grid-template-columns: auto minmax(0,1fr); }
  .undo-toast .secondary-button { grid-column: 2; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
