/* =====================================================================
   STATIX DISPATCH — dispatch.css
   "Modern intel dispatch console": deep charcoal, off-white type,
   one volt-cyan accent, system sans + mono kickers/readouts only.
   Zero external dependencies. No webfonts, no frameworks.
   ===================================================================== */

:root {
  --bg:        #0b0e14;
  --bg-raised: #10151d;
  --bg-sunken: #07090d;
  --text:      #e9edf3;
  --muted:     #a3adbd;
  --faint:     #6b7484;
  --accent:    #4ade80;
  --accent-dim: rgba(74, 222, 128, 0.08);
  --accent-line: rgba(74, 222, 128, 0.28);
  --border:    rgba(160, 200, 220, 0.10);
  --amber:     #ffb224;
  --red:       #ff5d5d;
  --radius:    8px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* faint console glow — barely there, nothing noisy */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 480px at 50% -120px, rgba(74, 222, 128, 0.06), transparent 70%);
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3, h4 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-top: 0; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }

p { margin: 0 0 1rem; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.1em 0.4em;
}

img { max-width: 100%; height: auto; }

/* ---------- accessibility ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #04121a;
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 14, 20, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text);
}
.brand:hover { text-decoration: none; }

.brand-logo {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4), 0 6px 20px rgba(0,0,0,0.5);
  object-fit: cover;
  flex: none;
}

.brand-right { margin-left: auto; }
.brand-right .brand-text { text-align: right; align-items: flex-end; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-name { font-weight: 800; font-size: 1.12rem; letter-spacing: 0.02em; white-space: nowrap; }
.brand-name em { font-style: normal; font-weight: 350; letter-spacing: 0.24em; margin-left: 0.1em; color: var(--muted); }
.brand-tag { font-size: 0.72rem; color: var(--faint); }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: block;
  position: relative;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease;
}
.site-nav a:hover { color: var(--text); background: rgba(255,255,255,0.05); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--accent); background: transparent; }
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.15rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(74, 222, 128, 0.15));
}

/* ---------- hero ---------- */
.hero {
  padding: 4.5rem 0 3rem;
  text-align: left;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  max-width: 16ch;
  margin-bottom: 1.1rem;
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--accent) 20%, #c9f7dd 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.hero .lede {
  font-size: 1.22rem;
  color: var(--muted);
  max-width: 56ch;
  line-height: 1.7;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}
.kicker-bar {
  display: inline-block;
  width: 1.6rem;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  flex: none;
  opacity: 0.8;
}

.readout {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--faint);
  margin-top: 1.6rem;
}
.readout strong { color: var(--accent); font-weight: 600; }
.readout .sep { margin: 0 0.6rem; opacity: 0.5; }

/* page hero for inner pages */
.page-hero { padding: 3.5rem 0 2rem; }
.page-hero h1 { margin-bottom: 0.9rem; }
.page-hero .lede { color: var(--muted); max-width: 62ch; font-size: 1.14rem; line-height: 1.7; }

/* ---------- sections & cards ---------- */
section.block { padding: 3rem 0; }
section.block + section.block { border-top: 1px solid var(--border); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 1.6rem;
}

.card {
  position: relative;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem;
  transition: border-color 0.18s ease;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.4rem;
  right: 1.4rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.card:hover { border-color: rgba(160, 200, 220, 0.22); }
.card:hover::before { opacity: 0.8; }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.9rem; }
.card p:last-child { margin-bottom: 0; }

.panel {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem;
  margin-top: 1.6rem;
}

.note { color: var(--muted); font-size: 0.95rem; }
.desc { color: var(--muted); }

/* ---------- wire bar pills ---------- */
.wirebar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}
.wirebar a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.7rem 1.3rem;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.wirebar a::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  opacity: 0.9;
}
.wirebar a:hover {
  border-color: var(--accent-line);
  background: var(--accent-dim);
  text-decoration: none;
  color: var(--accent);
}

/* ---------- link lists ---------- */
.link-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.link-list li {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.3rem;
  font-size: 0.98rem;
  transition: border-color 0.18s ease;
}
.link-list li:hover { border-color: rgba(160, 200, 220, 0.22); }
.link-list a.outbound { font-weight: 650; }
.link-list .desc { font-size: 0.92rem; }
.license {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  padding: 0.1rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted);
  vertical-align: 0.12em;
  margin-left: 0.5rem;
  white-space: nowrap;
}
.lic-pd    { color: var(--accent); border-color: var(--accent-line); }
.lic-free  { color: var(--text); }
.lic-open  { color: var(--muted); }
.lic-mixed { color: var(--amber); border-color: rgba(255, 178, 36, 0.3); }

/* ---------- weather ---------- */
.wx-controls { display: flex; gap: 0.9rem; flex-wrap: wrap; align-items: flex-end; margin: 1.2rem 0 0.6rem; }
.wx-controls .btn { margin-top: 0; }
.wx-field { display: flex; flex-direction: column; gap: 0.35rem; }
.wx-field label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.wx-field input {
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  font-size: 1rem;
  font-family: var(--mono);
  width: 10.5rem;
}
.wx-field input:focus { outline: none; border-color: var(--accent-line); }
.wx-status { font-family: var(--mono); font-size: 0.82rem; color: var(--faint); min-height: 1.5em; margin: 0.4rem 0 0; }
.wx-status.error { color: var(--red); }
.wx-status.ok { color: var(--accent); }
.wx-current {
  display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap;
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.1rem 1.3rem; margin: 1rem 0;
}
.wx-temp { font-size: 2.6rem; font-weight: 750; line-height: 1; }
.wx-temp small { font-size: 1.1rem; font-weight: 400; color: var(--muted); }
.wx-now p { margin: 0.15rem 0; color: var(--muted); font-size: 0.95rem; }
.wx-now p strong { color: var(--text); }
.wx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.8rem; margin: 1rem 0 0; }
.wx-day {
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.85rem 0.95rem;
}
.wx-day h4 { margin: 0 0 0.3rem; font-size: 0.95rem; }
.wx-day img { width: 52px; height: 52px; }
.wx-day .t { font-size: 1.25rem; font-weight: 700; }
.wx-day p { margin: 0.25rem 0 0; font-size: 0.85rem; color: var(--muted); }
.wx-alert {
  border: 1px solid rgba(255, 178, 36, 0.4); border-left-width: 4px;
  background: rgba(255, 178, 36, 0.06);
  border-radius: var(--radius); padding: 0.9rem 1.1rem; margin: 0.8rem 0;
}
.wx-alert h4 { margin: 0 0 0.3rem; color: var(--amber); font-size: 1rem; }
.wx-alert p { margin: 0.3rem 0; font-size: 0.9rem; color: var(--muted); }
.wx-radar img { max-width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--radius); }

/* ---------- timing desk reports ---------- */
.report-head .dateline { font-family: var(--mono); font-size: 0.82rem; color: var(--faint); letter-spacing: 0.04em; margin-top: 0.6rem; }
.report-hero { margin: 1.6rem 0; }
.report-hero img { width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--radius); display: block; }
.report-hero figcaption { font-size: 0.85rem; color: var(--faint); margin-top: 0.5rem; }
.prose h2 { font-size: 1.15rem; margin: 1.8rem 0 0.6rem; }
.prose h2 .k { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--accent); display: block; margin-bottom: 0.25rem; }
.prose ul { margin: 0.6rem 0 0; padding-left: 1.3rem; }
.prose li { margin-bottom: 0.55rem; color: var(--muted); }
.prose li strong { color: var(--text); }
.prose .fine { font-size: 0.9rem; color: var(--faint); border-top: 1px solid var(--border); margin-top: 2rem; padding-top: 1rem; }
.article-nav { display: flex; justify-content: space-between; gap: 1rem; margin: 2.2rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--border); }
.article-nav a { font-weight: 600; }
/* ---------- homepage featured report ---------- */
.feature-report {
  display: grid; grid-template-columns: 320px 1fr; gap: 1.4rem; align-items: center;
  background: var(--bg-raised); border: 1px solid var(--accent-line);
  border-radius: var(--radius); padding: 1.3rem; margin: 0 0 1.8rem;
}
.feature-report img { width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--border); display: block; }
.feature-report .kicker { margin-bottom: 0.4rem; }
.feature-report h2 { margin: 0 0 0.5rem; font-size: 1.45rem; }
.feature-report h2 a { color: var(--text); }
.feature-report h2 a:hover { color: var(--accent); }
.feature-report p { margin: 0.4rem 0; color: var(--muted); font-size: 0.96rem; }
.feature-report .conv { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--accent); }
@media (max-width: 760px) { .feature-report { grid-template-columns: 1fr; } }

.columns-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .columns-2 { grid-template-columns: 1fr; } }

/* ---------- signal feed ---------- */
.feed-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  flex: none;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.feed-item {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.8rem;
  transition: border-color 0.18s ease;
}
.feed-item:hover { border-color: rgba(160, 200, 220, 0.22); }
.feed-item .meta {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}
.src {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-line);
  border-radius: 6px;
  padding: 0.15rem 0.5rem;
}
.ts {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--faint);
}
.feed-item h3, .feed-item h4 { margin: 0.15rem 0 0.35rem; font-size: 1.05rem; }
.feed-item h3 a, .feed-item h4 a { color: var(--text); }
.feed-item h3 a:hover, .feed-item h4 a:hover { color: var(--accent); }
.excerpt { color: var(--muted); font-size: 0.93rem; margin: 0; }
.feed-item.signal-lost { opacity: 0.65; border-style: dashed; }
.feed-item.signal-lost .src { color: var(--amber); background: rgba(255,178,36,0.08); border-color: rgba(255,178,36,0.3); }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #04121a;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 10px;
  padding: 0.8rem 1.6rem;
  margin-top: 1.1rem;
  border: none;
  cursor: pointer;
  transition: filter 0.18s ease, transform 0.18s ease;
}
.btn:hover { text-decoration: none; filter: brightness(1.07); transform: translateY(-1px); }

/* ---------- search ---------- */
.search-shell {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.search-shell .field { margin: 1.6rem 0 1.2rem; text-align: left; }
.search-shell label.field-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
#q {
  width: 100%;
  font: inherit;
  font-size: 1.15rem;
  color: var(--text);
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.3rem;
  transition: border-color 0.18s ease;
}
#q:hover { border-color: rgba(255, 255, 255, 0.14); }
#q:focus { border-color: var(--accent-line); outline: 2px solid var(--accent); outline-offset: 2px; }
#q::placeholder { color: var(--faint); }

.segmented {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.6rem;
  border: none;
  margin: 0 0 1.4rem;
  padding: 0;
}
.segmented legend {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.7rem;
  padding: 0;
}
.segmented label {
  display: block;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 0.6rem;
  background: var(--bg-raised);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
  text-align: center;
}
.segmented label:hover { border-color: rgba(255, 255, 255, 0.16); transform: translateY(-1px); }
.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.segmented .eng-name { display: block; font-weight: 700; font-size: 0.95rem; }
.segmented .eng-note { display: block; font-size: 0.75rem; color: var(--faint); margin-top: 0.25rem; line-height: 1.4; }
.segmented label:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-dim);
  box-shadow: 0 0 0 1px var(--accent) inset;
}
.segmented label:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.steps { margin: 1rem 0 0; padding-left: 1.3rem; }
.steps li { margin-bottom: 0.7rem; color: var(--muted); }
.steps li strong { color: var(--text); }

/* ---------- tables ---------- */
table.see-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.95rem;
}
.see-table caption {
  text-align: left;
  padding-bottom: 0.6rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.see-table th, .see-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
}
.see-table thead th {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  border-bottom: 1px solid var(--border);
}
.see-table tbody th { font-weight: 650; width: 32%; }
.see-table td code { display: inline-block; margin-bottom: 0.35rem; word-break: break-all; }
.see-table td p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* ---------- stamps / callouts ---------- */
.stamp {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--amber);
  border: 1px solid rgba(255, 178, 36, 0.4);
  background: rgba(255, 178, 36, 0.07);
  border-radius: 6px;
  padding: 0.25rem 0.6rem;
  margin-bottom: 0.8rem;
}
.alert-tag { color: var(--red); }

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  padding: 2rem 0;
  color: var(--faint);
  font-size: 0.85rem;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(74, 222, 128, 0.5), transparent);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  align-items: center;
  justify-content: space-between;
}
.footer-row a { color: var(--muted); }
.footer-row a:hover { color: var(--accent); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .header-inner { flex-direction: column; align-items: stretch; gap: 0.8rem; }
  .brand-right { order: -1; align-self: flex-end; }
  .site-nav ul { gap: 0.1rem; }
  .site-nav a { padding: 0.4rem 0.55rem; font-size: 0.82rem; }
  .hero { padding: 3rem 0 2rem; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .card-grid { grid-template-columns: 1fr; }
  .panel { padding: 1.25rem; }
  .see-table thead { display: none; }
  .see-table tr { display: block; margin-bottom: 1rem; border: 1px solid var(--border); border-radius: 10px; }
  .see-table td, .see-table tbody th { display: block; width: auto; border-bottom: none; padding: 0.6rem 1rem; }
  .see-table tbody th { padding-bottom: 0; color: var(--accent); font-size: 0.85rem; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .live-dot { animation: none; }
  *, *::before, *::after { transition: none !important; }
}

/* ---------- print ---------- */
@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  body::before { display: none; }
  .site-header, .site-footer, .wirebar, .btn, #signal-preview, #signal-river { display: none; }
  .card, .panel, .feed-item, .link-list li { box-shadow: none; border-color: #ccc; background: #fff; }
  a { color: #000; }
  .kicker, .src, .ts { color: #444; }
}

/* X corner button — fixed, terminal-styled */
.x-corner {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 50;
  display: inline-block;
  padding: 6px 11px;
  background: #10151d;
  border: 1px solid #4ade80;
  color: #4ade80;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 1px;
  text-decoration: none;
  opacity: 0.7;
}
.x-corner:hover, .x-corner:focus {
  opacity: 1;
  background: #4ade80;
  color: #0b0e14;
}
@media print {
  .x-corner { display: none; }
}

/* ---------- field tools ---------- */
.tool-area {
  width: 100%;
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  min-height: 180px;
  resize: vertical;
}
.tool-area:focus { outline: none; border-color: var(--accent-line); }
.tool-row { display: flex; gap: 0.6rem; align-items: stretch; flex-wrap: wrap; }
.tool-link {
  flex: 1 1 320px;
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--accent);
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
}
.tool-pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  font-family: var(--mono);
  font-size: 0.92rem;
  max-height: 60vh;
  overflow: auto;
}
.btn-small { padding: 0.8rem 1.1rem; margin-top: 0; }
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent-line);
}
.btn:disabled { opacity: 0.5; cursor: wait; transform: none; }

/* ---------- pastebin: typable code ---------- */
.tool-code {
  font-family: var(--mono);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--accent);
  background: var(--bg-sunken);
  border: 1px dashed var(--accent-line);
  border-radius: var(--radius);
  padding: 1rem 1.4rem;
  display: inline-block;
  margin: 0.4rem 0 0.2rem;
  user-select: all;
}
