@font-face {
  font-family: Golos;
  src: url('/fonts/golos-text-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Golos;
  src: url('/fonts/golos-text-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Unbounded;
  src: url('/fonts/unbounded-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Plex;
  src: url('/fonts/plex-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
:root {
  --ink: #24392f;
  --muted: #5c675b;
  --paper: #eeeade;
  --sheet: #faf8ef;
  --rail: #182c27;
  --rail-soft: #263e35;
  --rail-text: #edf0df;
  --rail-muted: #b4c2b4;
  --line: #cdcdbc;
  --control-line: #7b8777;
  --amber: #e8b55e;
  --amber-light: #f5e1b5;
  --green: #31583e;
  --red: #a3312c;
  --white: #fff;
  --focus: #99631b;
  --shadow: 0 10px 36px #182c2712;
  --radius: 3px;
  color-scheme: light;
}
.updates {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 28px;
  color: var(--ink);
  background: var(--amber-light);
}
.updates[hidden] {
  display: none;
}
* {
  box-sizing: border-box;
}
html {
  min-height: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    15px/1.55 Golos,
    sans-serif;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select,
summary {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.55;
}
a {
  color: var(--green);
  text-underline-offset: 4px;
}
a:hover {
  text-decoration-thickness: 2px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
button {
  min-height: 42px;
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--sheet);
  color: var(--ink);
  font-weight: 600;
  transition:
    background 0.15s,
    border-color 0.15s;
}
button:hover:enabled {
  border-color: var(--green);
  background: var(--amber-light);
}
button.primary {
  background: var(--green);
  color: var(--sheet);
  border-color: var(--green);
}
button.primary:hover:enabled {
  background: var(--rail);
}
button.secondary {
  background: transparent;
  border-color: var(--green);
}
button.quiet {
  border-color: transparent;
  background: transparent;
  padding: 7px 10px;
  font-size: 13px;
}
button.text-button {
  border: 0;
  background: none;
  padding: 3px 0;
  font-size: 14px;
  text-align: left;
  color: var(--green);
}
.danger-text {
  color: var(--red) !important;
}
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}
h1,
h2,
h3,
h4 {
  line-height: 1.25;
}
h1 {
  font-family: Unbounded, sans-serif;
  font-weight: 600;
  font-size: clamp(24px, 2.5vw, 36px);
  letter-spacing: -1.2px;
  margin-bottom: 12px;
}
h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 17px;
}
h1[tabindex]:focus,
h2[tabindex]:focus {
  outline: none;
}
p {
  margin-bottom: 16px;
}
small,
.small {
  font-size: 12px;
  line-height: 1.5;
}
.muted {
  color: var(--muted);
}
.mono,
code,
pre,
.eyebrow,
.nav-index,
.rail-caption,
.topbar {
  font-family: Plex, monospace;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.6px;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  font:
    11px/1.4 Plex,
    monospace;
  color: var(--ink);
  white-space: normal;
}
.badge.amber {
  background: var(--amber-light);
  border-color: var(--amber);
}
.badge.danger {
  color: var(--red);
  border-color: var(--red);
}
.badge.ok {
  color: var(--green);
  border-color: var(--green);
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}
.filter-tabs button {
  border: 0;
  border-radius: 0;
  padding: 4px 0 8px;
  background: none;
  color: var(--muted);
  border-bottom: 3px solid transparent;
}
.filter-tabs .selected {
  border-bottom-color: var(--green);
  color: var(--green);
}
.bot-strip {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.bot-strip h2 {
  margin: 0 0 8px;
}
.bot-strip p {
  margin: 4px 0 0;
  font-size: 14px;
}
.bot-strip > button {
  flex: none;
}
td.reason {
  max-width: 320px;
  overflow-wrap: anywhere;
}
.bot-strip + .bot-strip {
  margin-top: 12px;
}
.import-errors {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 12px;
}
td.repository {
  min-width: 190px;
  overflow-wrap: anywhere;
}
.skip {
  position: fixed;
  left: 10px;
  top: -80px;
  z-index: 50;
  background: var(--sheet);
  padding: 12px;
}
.skip:focus {
  top: 10px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}
.boot {
  max-width: 600px;
  margin: 10vh auto;
  padding: 32px;
}
.loading {
  padding: 45px 0;
  color: var(--muted);
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--rail-text);
}
.brand strong {
  font:
    600 24px/1 Unbounded,
    sans-serif;
  letter-spacing: 4px;
  display: block;
}
.brand small {
  font:
    9px/1.4 Plex,
    monospace;
  letter-spacing: 1.5px;
  display: block;
  margin-top: 9px;
  color: var(--rail-muted);
}
.sun-mark {
  width: 38px;
  height: 42px;
  flex: none;
  clip-path: polygon(50% 0, 96% 25%, 96% 75%, 50% 100%, 4% 75%, 4% 25%);
  background: var(--amber);
  color: transparent;
  position: relative;
}
.sun-mark:before {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border: 2px solid var(--rail);
  border-radius: 50%;
  top: 9px;
  left: 7px;
}
.sun-mark:after {
  content: '';
  position: absolute;
  width: 30px;
  height: 10px;
  left: 4px;
  top: 22px;
  background: var(--amber);
  border-top: 2px solid var(--rail);
}
.signal-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 0 4px #e8b55e15;
  flex: none;
}
.access {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(420px, 1.1fr);
}
.access-story {
  background: var(--rail);
  color: var(--rail-text);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 52px 64px;
  display: flex;
  flex-direction: column;
}
.access-story:after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 43px, #edf0df07 44px 45px);
}
.access-story .brand {
  margin-bottom: auto;
}
.access-copy {
  margin-top: 160px;
  max-width: 400px;
  position: relative;
}
.access-copy h2 {
  font:
    600 clamp(40px, 5vw, 70px)/1.16 Unbounded,
    sans-serif;
  letter-spacing: -3px;
  margin: 0 0 28px;
}
.access-copy p:last-child {
  font-size: 17px;
  color: var(--rail-muted);
  max-width: 315px;
}
.access-copy .eyebrow {
  color: var(--amber);
}
.access-story footer {
  margin-top: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  font:
    11px Plex,
    monospace;
  letter-spacing: 1px;
}
.signal-art {
  position: absolute;
  z-index: -1;
  width: 570px;
  height: 570px;
  right: -200px;
  top: 60px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle at center, transparent 0 64px, #e8b55e24 65px 66px);
  border: 1px solid #e8b55e24;
  transform: rotate(-18deg);
}
.signal-art:before,
.signal-art:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: #e8b55e38;
}
.signal-art:after {
  transform: rotate(90deg);
}
.signal-core {
  position: absolute;
  top: 46%;
  left: 46%;
  border: 1px solid var(--amber);
  padding: 7px;
  color: var(--amber);
  font:
    14px Plex,
    monospace;
  background: var(--rail);
}
.access-right {
  padding: 56px clamp(35px, 8vw, 125px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--sheet);
}
.access-tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
}
.access-tabs button {
  border: 0;
  border-radius: 0;
  padding: 0 0 14px;
  background: none;
  color: var(--muted);
}
.access-tabs .selected {
  border-bottom: 3px solid var(--green);
  color: var(--green);
}
.access-form h1 {
  font-size: 28px;
  letter-spacing: -0.8px;
}
.access-form .primary {
  width: 100%;
  margin-top: 8px;
}
.access-form .text-button {
  margin-top: 14px;
}
.access-footer {
  padding-top: 40px;
  font-size: 12px;
  color: var(--muted);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0 0 18px;
}
.field > span {
  font-size: 13px;
  font-weight: 600;
}
.field input,
.field textarea,
.field select,
select {
  border: 1px solid var(--control-line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}
.field textarea {
  resize: vertical;
  line-height: 1.6;
  min-height: 130px;
}
.field input:focus,
.field textarea:focus,
select:focus {
  border-color: var(--green);
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
}
.hint {
  display: block;
  color: var(--muted);
  margin: -7px 0 18px;
}
.form-error {
  background: #a3312c0a;
  color: var(--red);
  border-left: 3px solid var(--red);
  padding: 12px 14px;
}
.notice {
  background: var(--amber-light);
  border-left: 3px solid var(--amber);
  padding: 13px 16px;
  font-size: 13px;
}
.form-stack {
  display: flex;
  flex-direction: column;
}
.form-stack > .primary {
  align-self: flex-start;
}
.form-stack .field:last-of-type {
  margin-bottom: 20px;
}
.two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  cursor: pointer;
}
.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
  margin: 3px 0 0;
  flex: none;
}
.check > span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.check small {
  color: var(--muted);
}
.workspace {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
}
.sidebar {
  background: var(--rail);
  color: var(--rail-text);
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 33px 0 20px;
}
.sidebar .brand {
  padding: 0 23px;
}
.sidebar .brand strong {
  font-size: 22px;
}
.sidebar .brand small {
  font-size: 8px;
}
.rail-caption {
  font-size: 10px;
  letter-spacing: 1.7px;
  color: var(--rail-muted);
  margin: 54px 25px 18px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 11px 22px;
  color: var(--rail-muted);
  text-decoration: none;
  border-left: 3px solid transparent;
  font-size: 13px;
}
.sidebar nav a:hover {
  background: var(--rail-soft);
  color: var(--rail-text);
}
.sidebar nav a.current {
  background: var(--rail-soft);
  color: var(--rail-text);
  border-left-color: var(--amber);
}
.nav-index {
  font-size: 10px;
  opacity: 0.75;
}
.nav-count {
  background: var(--amber);
  color: var(--rail);
  font:
    10px Plex,
    monospace;
  border-radius: 2px;
  padding: 2px 5px;
  margin-left: auto;
}
.rail-footer {
  margin-top: auto;
  padding: 24px 25px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.rail-footer .muted {
  color: var(--rail-muted);
  font-size: 11px;
}
.rail-logout {
  margin-top: 7px;
  align-self: flex-start;
  padding: 3px 0;
  border: 0;
  background: none;
  color: var(--rail-muted);
  font-size: 12px;
  min-height: 32px;
}
.rail-logout:hover:enabled {
  background: none;
  color: var(--amber);
}
.workspace-body {
  min-width: 0;
}
.topbar {
  height: 57px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 1.4px;
}
.connection {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.4px;
}
.connection .signal-dot {
  background: var(--green);
  box-shadow: none;
}
.main {
  max-width: 1510px;
  padding: 40px 40px 80px;
  margin: 0 auto;
}
.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.page-heading > div {
  min-width: 0;
}
.page-heading > button {
  flex: none;
  margin-top: 34px;
}
.page-heading .eyebrow {
  color: var(--muted);
}
.lead {
  color: var(--muted);
  max-width: 700px;
  margin: 0;
  font-size: 14px;
}
.metric-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
  padding: 23px 0;
}
.metric-strip > div {
  padding: 0 26px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.metric-strip > div:first-child {
  padding-left: 0;
  border-left: 0;
}
.metric-strip strong {
  font:
    600 34px/1.2 Unbounded,
    sans-serif;
  letter-spacing: -1.4px;
}
.metric-strip span {
  font-size: 12px;
  color: var(--muted);
}
.section {
  margin-top: 35px;
}
.section-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 17px;
}
.section-label h2 {
  margin: 0;
}
.panel,
.paper {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  min-width: 0;
}
.panel > h2:first-child {
  margin-bottom: 15px;
}
.two-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 24px;
}
.narrow {
  max-width: 640px;
}
.home-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
}
.dispatch {
  background: var(--sheet);
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--amber);
  box-shadow: var(--shadow);
}
.dispatch-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.dispatch-heading .eyebrow {
  margin: 0;
}
.dispatch h2 {
  font-size: 26px;
  line-height: 1.3;
  max-width: 420px;
}
.dispatch .primary {
  margin: 12px 0 20px;
}
.dispatch .small {
  margin-bottom: 0;
}
.task-excerpt {
  color: var(--muted);
  line-height: 1.75;
}
.inbox-preview {
  padding-top: 6px;
}
.preview-row {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 18px 0;
  font-weight: 400;
}
.preview-row > span {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.preview-row small {
  font:
    10px Plex,
    monospace;
  color: var(--muted);
}
.preview-row strong {
  font-size: 16px;
}
.news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.paper .eyebrow {
  color: var(--muted);
  font-size: 10px;
}
.paper h2 {
  font-size: 24px;
  line-height: 1.3;
}
.prose {
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.prose p:last-child,
.prose ul:last-child,
.prose ol:last-child {
  margin-bottom: 0;
}
.prose h3 {
  margin: 25px 0 12px;
}
.prose h4 {
  margin: 22px 0 10px;
}
.prose ul,
.prose ol {
  padding-left: 24px;
  margin-top: 0;
}
.prose li {
  padding: 3px 0;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.8;
  background: var(--rail);
  color: var(--rail-text);
  padding: 20px;
  border-radius: var(--radius);
  max-width: 100%;
}
code {
  font-size: 0.85em;
}
p code,
li code {
  background: var(--paper);
  padding: 2px 5px;
  border-radius: 2px;
  color: var(--green);
}
pre code {
  font-size: inherit;
}
.api-response {
  margin-bottom: 0;
  min-height: 120px;
}
.code-input {
  font-family: Plex, monospace;
  font-size: 12px;
}
.steps {
  padding-left: 23px;
  color: var(--muted);
}
.steps li {
  padding: 6px 0;
}
.stage-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}
.stage-rail {
  border-left: 1px solid var(--line);
  padding-left: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stage-rail button {
  border: 1px solid transparent;
  text-align: left;
  background: none;
  padding: 15px;
  font-weight: 400;
}
.stage-rail button.selected {
  background: var(--sheet);
  border-color: var(--line);
  box-shadow: inset 3px 0 var(--amber);
}
.stage-rail button > span {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.stage-rail .mono {
  color: var(--muted);
  font-size: 12px;
}
.stage-rail strong {
  font-size: 14px;
  line-height: 1.5;
}
.stage-rail small {
  color: var(--muted);
}
.stage-detail .paper {
  border-top: 4px solid var(--amber);
}
.stage-receipt {
  padding: 22px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
}
.stage-receipt p {
  margin: 0;
}
.inbox-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
}
.message-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.message-row {
  text-align: left;
  padding: 17px;
  border-color: var(--line);
  font-weight: 400;
  background: transparent;
}
.message-row.selected {
  background: var(--sheet);
  border-left: 3px solid var(--green);
}
.message-row > span {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.message-row small {
  font:
    9px/1.6 Plex,
    monospace;
  color: var(--muted);
}
.message-row strong {
  line-height: 1.5;
}
.message-row .badge {
  align-self: flex-start;
}
.message-detail > .primary {
  margin-top: 20px;
}
.empty {
  text-align: center;
  padding: 44px 25px;
  border: 1px dashed var(--line);
  color: var(--muted);
}
.empty h2 {
  font-size: 18px;
  color: var(--ink);
  margin: 16px 0 10px;
}
.empty p {
  font-size: 14px;
  max-width: 460px;
  margin: 0 auto;
}
.empty-mark {
  font:
    32px Plex,
    monospace;
  color: var(--muted);
}
.dispatch .empty {
  border: 0;
  padding: 16px 0;
}
.footnote {
  font-size: 12px;
  color: var(--muted);
  margin-top: 20px;
  max-width: 800px;
}
.table-scroll {
  overflow: auto;
  border: 1px solid var(--line);
  background: var(--sheet);
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
th {
  font:
    10px/1.5 Plex,
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #e7e6da;
  color: var(--muted);
  padding: 15px 18px;
  white-space: nowrap;
}
td {
  padding: 17px 18px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}
td strong {
  font-size: 14px;
}
td small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}
.row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.row-actions button {
  white-space: nowrap;
}
.digest {
  display: block;
  max-width: 420px;
  font-size: 11px;
  word-break: break-all;
}
.audit-target {
  font-size: 10px;
  overflow-wrap: anywhere;
}
.organizer-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}
.organizer-action {
  text-align: left;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  padding: 25px;
  background: var(--sheet);
  font-weight: 400;
}
.organizer-action:last-child {
  border-right: 0;
}
.organizer-action > span {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.organizer-action .mono {
  font-size: 12px;
  color: var(--muted);
}
.organizer-action strong {
  font-size: 18px;
  line-height: 1.4;
}
.organizer-action span > span:not(.mono) {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
.organizer-action b {
  font-size: 24px;
  align-self: flex-end;
  color: var(--green);
}
.recipient-field {
  border: 1px solid var(--line);
  padding: 16px;
  margin: 0 0 20px;
  min-width: 0;
}
.recipient-field legend {
  font-weight: 600;
  font-size: 13px;
  padding: 0 8px;
}
.recipient-list {
  max-height: 240px;
  overflow: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.recipient-list .check {
  border-top: 1px solid var(--line);
  font-size: 13px;
  padding: 10px 0;
}
.recipient-list small {
  font-size: 11px;
}
.recipient-list:empty:after {
  content: 'Активних учасників ще немає.';
  font-size: 13px;
  color: var(--muted);
}
.submission-choices {
  max-height: 420px;
  overflow: auto;
}
.submission-choices .check {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.submission-choices .digest {
  font-size: 10px;
}
.news-admin-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.news-admin-list .row-actions {
  margin-top: 25px;
}
.secret-box {
  margin-top: 18px;
  border: 1px solid var(--amber);
  background: var(--amber-light);
  padding: 18px;
  overflow-wrap: anywhere;
}
.secret-box p {
  font-size: 13px;
  margin: 10px 0;
}
.secret-box textarea {
  width: 100%;
  font:
    12px/1.7 Plex,
    monospace;
  resize: none;
  padding: 10px;
  border: 1px solid var(--control-line);
  background: var(--sheet);
  color: var(--ink);
}
.secret-box button {
  margin-top: 12px;
}
.modal {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100dvh - 50px);
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--amber);
  background: var(--sheet);
  color: var(--ink);
  box-shadow: 0 24px 80px #0005;
  border-radius: var(--radius);
}
.modal::backdrop {
  background: #0c1c19b8;
}
.modal > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.modal header h2 {
  margin-bottom: 8px;
}
.modal header p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
.modal header button {
  flex: none;
}
.modal .prose {
  margin-bottom: 24px;
}
.modal details {
  margin-bottom: 22px;
  border: 1px solid var(--line);
  padding: 14px;
}
.modal summary {
  cursor: pointer;
  font-weight: 600;
}
.modal details[open] summary {
  margin-bottom: 18px;
}
.toast {
  position: fixed;
  z-index: 100;
  bottom: 22px;
  left: 50%;
  transform: translate(-50%, 20px);
  max-width: min(600px, calc(100vw - 32px));
  padding: 14px 20px;
  background: var(--rail);
  color: var(--rail-text);
  border-left: 3px solid var(--amber);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.18s,
    transform 0.18s;
  font-size: 13px;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (min-width: 1500px) {
  .main {
    padding: 48px 60px 80px;
  }
  .topbar {
    padding: 0 60px;
  }
}
@media (max-width: 1150px) {
  .main {
    padding: 30px 25px 65px;
  }
  .topbar {
    padding: 0 25px;
  }
  .workspace {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .sidebar .brand {
    padding: 0 17px;
  }
  .sidebar .brand strong {
    font-size: 19px;
  }
  .sidebar .brand small {
    font-size: 7px;
  }
  .sidebar nav a {
    padding-left: 17px;
    gap: 9px;
  }
  .home-grid {
    grid-template-columns: 1fr;
  }
  .stage-layout {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 18px;
  }
  .inbox-layout {
    grid-template-columns: 225px minmax(0, 1fr);
  }
  .two-panels {
    grid-template-columns: 1fr;
  }
  .organizer-actions {
    grid-template-columns: 1fr;
  }
  .organizer-action {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .organizer-action:last-child {
    border-bottom: 0;
  }
  .organizer-action > span {
    display: grid;
    grid-template-columns: 25px 1fr 24px;
    gap: 12px;
  }
  .organizer-action span > span:not(.mono) {
    grid-column: 2;
  }
  .organizer-action b {
    grid-column: 3;
    grid-row: 1;
  }
  .access-story {
    padding: 38px;
  }
  .access-right {
    padding: 42px;
  }
  .access {
    grid-template-columns: 1fr 1.1fr;
  }
  .page-heading {
    flex-wrap: wrap;
  }
  .page-heading > button {
    margin: 0;
  }
}
@media (max-width: 760px) {
  .workspace {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 22px 0 0;
  }
  .sidebar .brand {
    padding: 0 22px;
  }
  .rail-caption {
    margin: 22px 22px 12px;
  }
  .sidebar nav {
    flex-direction: row;
    overflow: auto;
    padding: 0 10px;
  }
  .sidebar nav a {
    flex: none;
    border-left: 0;
    border-bottom: 3px solid transparent;
    min-height: 48px;
    padding: 12px;
  }
  .sidebar nav a.current {
    border-left: 0;
    border-bottom-color: var(--amber);
  }
  .nav-index {
    display: none;
  }
  .rail-footer {
    padding: 12px 22px;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #b4c2b420;
    margin: 0;
  }
  .rail-footer .muted {
    margin-right: auto;
  }
  .rail-logout {
    margin: 0;
  }
  .main {
    padding: 26px 18px 65px;
  }
  .topbar {
    padding: 0 20px;
    height: 44px;
    font-size: 9px;
  }
  .connection {
    font-size: 9px;
  }
  .metric-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 0;
  }
  .metric-strip > div {
    padding: 0 18px;
  }
  .metric-strip > div:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }
  .metric-strip strong {
    font-size: 28px;
  }
  .stage-layout,
  .inbox-layout {
    grid-template-columns: 1fr;
  }
  .stage-rail {
    display: flex;
    flex-direction: row;
    overflow: auto;
    border-left: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 12px;
  }
  .stage-rail button {
    min-width: 190px;
    max-width: 240px;
    flex: none;
  }
  .message-list {
    max-height: 300px;
    overflow: auto;
  }
  .paper,
  .panel,
  .dispatch {
    padding: 22px 20px;
  }
  .paper h2 {
    font-size: 21px;
  }
  .dispatch h2 {
    font-size: 23px;
  }
  .dispatch-heading {
    flex-wrap: wrap;
  }
  .section-label {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .bot-strip {
    flex-wrap: wrap;
  }
  .recipient-list {
    grid-template-columns: 1fr;
  }
  .access {
    display: block;
  }
  .access-story {
    padding: 25px 28px;
  }
  .access-copy {
    margin-top: 38px;
  }
  .access-copy h2 {
    font-size: 34px;
    letter-spacing: -1.5px;
    margin-bottom: 14px;
  }
  .access-copy h2 br {
    display: none;
  }
  .access-copy h2 br:after {
    content: ' ';
  }
  .access-copy p:last-child {
    font-size: 14px;
    max-width: 360px;
    margin-bottom: 0;
  }
  .access-story footer {
    margin-top: 25px;
    font-size: 10px;
  }
  .signal-art {
    width: 360px;
    height: 360px;
    right: -70px;
    top: 0;
  }
  .access-right {
    padding: 28px;
  }
  .access-tabs {
    margin-bottom: 30px;
  }
  .access-form h1 {
    font-size: 24px;
  }
  .access-footer {
    padding-top: 28px;
  }
  .modal {
    padding: 24px 18px;
    max-height: calc(100dvh - 24px);
  }
  .modal > header {
    gap: 10px;
  }
  .modal header h2 {
    font-size: 19px;
  }
  .modal header .quiet {
    padding: 5px;
  }
  .organizer-action {
    padding: 22px;
  }
  .page-heading h1 {
    font-size: 25px;
    letter-spacing: -0.8px;
  }
  .page-heading .eyebrow {
    font-size: 10px;
  }
  .two-fields {
    gap: 12px;
  }
  th,
  td {
    padding: 14px 12px;
  }
  .row-actions {
    min-width: 160px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
}
