/* ============================================================
   EthioPSP portal design system
   Near-monochrome navy/white base; color reserved for status.
   ============================================================ */
:root {
  --sidebar: #101828;
  --sidebar-hover: rgba(255, 255, 255, .06);
  --sidebar-ink: #98a2b3;
  --sidebar-ink-strong: #e4e9f0;
  --sidebar-active: rgba(70, 120, 220, .28);
  --bg: #f6f7f9;
  --card: #ffffff;
  --ink: #101828;
  --ink-2: #344054;
  --muted: #667085;
  --faint: #98a2b3;
  --brand: #16a34a;
  --brand-dark: #15803d;
  --brand-soft: #e8f6ee;
  --primary: #1f4fd8;
  --primary-dark: #1a41b0;
  --primary-soft: #eaf0ff;
  --ok: #067647;
  --ok-soft: #e6f4ec;
  --ok-dot: #17b26a;
  --warn: #b54708;
  --warn-soft: #fdf1e2;
  --warn-dot: #f79009;
  --bad: #b42318;
  --bad-soft: #fbeae9;
  --bad-dot: #f04438;
  --info: #175cd3;
  --info-soft: #eaf1fd;
  --info-dot: #2e90fa;
  --line: #e7eaf0;
  --line-strong: #d0d5dd;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-md: 0 2px 6px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 40px rgba(16, 24, 40, .14);
  --font: "Inter", "Segoe UI", "Noto Sans Ethiopic", system-ui, -apple-system, sans-serif;
  --font-mono: "SF Mono", ui-monospace, "JetBrains Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
::selection { background: rgba(31, 79, 216, .15); }

/* Scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #cdd4de; border-radius: 6px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background-color: #aeb8c6; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- App shell ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 248px;
  flex-shrink: 0;
  background: var(--sidebar);
  color: var(--sidebar-ink);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar .logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 1.15rem 1.15rem .9rem;
  color: #fff;
  font-weight: 750;
  font-size: 1rem;
  letter-spacing: .01em;
}
.logo-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), #22c55e 65%, #6ee7a0);
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: .9rem;
  box-shadow: inset 0 -6px 12px rgba(0, 0, 0, .18);
}
.env-pill {
  margin: 0 1.15rem .35rem;
  padding: .3rem .6rem;
  border-radius: 999px;
  background: rgba(247, 144, 9, .16);
  color: #fdb022;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  width: fit-content;
}
.env-pill.live { background: rgba(23, 178, 106, .16); color: #3ccb7f; }

.side-nav { display: flex; flex-direction: column; padding: .4rem .7rem 1rem; gap: 1px; flex: 1; }
.side-nav .section-label {
  font-size: .66rem; text-transform: uppercase; letter-spacing: .12em;
  color: #5d6b81; padding: 1rem .7rem .35rem; font-weight: 650;
}
.side-nav a {
  display: flex; align-items: center; gap: .6rem;
  color: var(--sidebar-ink);
  padding: .48rem .7rem;
  border-radius: 7px;
  font-size: .875rem;
  font-weight: 480;
  text-decoration: none;
  position: relative;
}
.side-nav a:hover { background: var(--sidebar-hover); color: var(--sidebar-ink-strong); text-decoration: none; }
.side-nav a.active { background: var(--sidebar-active); color: #fff; font-weight: 600; }
.side-nav .icon { width: 18px; text-align: center; opacity: .8; font-style: normal; }
.side-nav .count {
  margin-left: auto;
  background: var(--bad-dot);
  color: #fff;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0 5px;
}
.sidebar-footer {
  padding: .9rem 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, .07);
  font-size: .74rem;
  color: #5d6b81;
  line-height: 1.5;
}

.content { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* ---------- Topbar ---------- */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .7rem 1.75rem;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 58px;
}
.topbar h1 { font-size: 1.05rem; font-weight: 650; }
.topbar-right { display: flex; gap: .9rem; align-items: center; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-soft), #dbe6ff);
  color: var(--primary-dark);
  display: grid; place-items: center; font-weight: 700; font-size: .85rem;
  border: 1px solid #ccd9f5;
}
.merchant-chip { display: flex; align-items: center; gap: .6rem; }
.merchant-chip .name { font-weight: 600; font-size: .86rem; }
.merchant-chip .email { color: var(--muted); font-size: .74rem; }

/* ---------- Badges (dot style) ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  padding: .2rem .62rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 620;
  letter-spacing: .01em;
  white-space: nowrap;
  border: 1px solid transparent;
}
.badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.badge.no-dot::before { display: none; }
.badge.success { background: var(--ok-soft); color: var(--ok); border-color: #bfe3cf; }
.badge.success::before { background: var(--ok-dot); }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: #f5dcb8; }
.badge.warn::before { background: var(--warn-dot); }
.badge.danger { background: var(--bad-soft); color: var(--bad); border-color: #f2c1bd; }
.badge.danger::before { background: var(--bad-dot); }
.badge.info { background: var(--info-soft); color: var(--info); border-color: #c1d6f7; }
.badge.info::before { background: var(--info-dot); }
.badge.neutral { background: #f2f4f7; color: var(--muted); border-color: var(--line-strong); }
.badge.neutral::before { background: var(--faint); }

/* ---------- Page & panels ---------- */
.page { padding: 1.4rem 1.75rem 3.5rem; max-width: 1240px; width: 100%; margin: 0 auto; animation: pageIn .18s ease; }
.page > section { scroll-margin-top: 80px; }
@keyframes pageIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.15rem;
  overflow: hidden;
}
.panel-head {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .9rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.panel-head h2 { font-size: .95rem; }
.panel-head .sub { color: var(--muted); font-size: .8rem; margin: .12rem 0 0; font-weight: 400; }
.panel-head .head-actions { display: flex; gap: .5rem; align-items: center; }
.panel-body { padding: 1.15rem 1.25rem; }
.panel-body.flush { padding: 0; }

/* ---------- KPI cards ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: .9rem;
  margin-bottom: 1.15rem;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: .95rem 1.15rem 1rem;
  display: flex; flex-direction: column; gap: .3rem;
  position: relative;
  overflow: hidden;
}
.stat-card .label { color: var(--muted); font-size: .78rem; font-weight: 550; }
.stat-card .value { font-size: 1.65rem; font-weight: 720; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-card .value .unit { font-size: .85rem; font-weight: 600; color: var(--muted); margin-left: .25rem; }
.stat-card .trend { font-size: .75rem; color: var(--muted); display: flex; align-items: center; gap: .3rem; }
.stat-card .trend.up { color: var(--ok); }
.stat-card .trend.down { color: var(--bad); }
.stat-card.highlight { border-top: 3px solid var(--brand); }
.stat-card.alert { border-top: 3px solid var(--bad-dot); }
.stat-card a { position: absolute; inset: 0; }

/* ---------- Chart ---------- */
.chart-panel .panel-body { padding: .75rem 1.25rem 1rem; }
.chart-wrap { width: 100%; height: 190px; position: relative; }
.chart-wrap svg { width: 100%; height: 100%; display: block; }
.chart-tip {
  position: absolute;
  pointer-events: none;
  background: var(--sidebar);
  color: #fff;
  font-size: .74rem;
  padding: .35rem .6rem;
  border-radius: 6px;
  transform: translate(-50%, -130%);
  white-space: nowrap;
  opacity: 0;
  transition: opacity .1s;
  z-index: 5;
}
.chart-legend { display: flex; gap: 1.25rem; padding: .3rem .1rem 0; color: var(--muted); font-size: .76rem; }
.chart-legend b { color: var(--ink); font-weight: 650; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

/* ---------- Topbar nav toggle & mobile drawer ---------- */
.topbar-left { display: flex; align-items: center; gap: .7rem; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: .3rem .55rem;
  font-size: 1rem;
  line-height: 1;
  color: var(--ink-2);
  cursor: pointer;
}
.nav-backdrop { display: none; }

@media (max-width: 940px) {
  .grid-2 { grid-template-columns: 1fr; }
  .topbar { padding: .7rem 1rem; }
  .page { padding: 1rem 1rem 3rem; }
  .nav-toggle { display: inline-flex; }
  .sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    z-index: 60;
    transform: translateX(-100%);
    transition: transform .2s ease;
    box-shadow: var(--shadow-lg);
  }
  body.nav-open .sidebar { transform: translateX(0); }
  body.nav-open .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(16, 24, 40, .45);
    z-index: 50;
  }
}

/* ---------- Forms ---------- */
.stack { display: grid; gap: .8rem; }
.inline-form { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; }
.field { display: grid; gap: .3rem; }
label, .field-label { font-size: .8rem; font-weight: 570; color: var(--ink-2); display: grid; gap: .3rem; }
input, select, button, textarea { font: inherit; }
input, select, textarea {
  background: #fff;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: .52rem .7rem;
  width: 100%;
  transition: border-color .12s, box-shadow .12s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31, 79, 216, .14);
}
input[readonly] { background: #f6f7f9; color: var(--muted); }
input::placeholder { color: var(--faint); }
.hint { color: var(--muted); font-size: .78rem; margin: .45rem 0 0; line-height: 1.5; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink-2);
  border-radius: var(--radius-sm);
  padding: .5rem 1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: .84rem;
  white-space: nowrap;
  box-shadow: var(--shadow);
  transition: background .12s, border-color .12s, box-shadow .12s, transform .05s;
}
.btn:hover { background: #f8fafc; border-color: #b9c2cf; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(31, 79, 216, .2); }
.btn.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.btn.primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn.brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.brand:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn.danger { background: #fff; border-color: #f2c1bd; color: var(--bad); }
.btn.danger:hover { background: var(--bad-soft); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); box-shadow: none; }
.btn.ghost:hover { color: var(--ink); background: #eef1f5; }
.btn.small { padding: .32rem .68rem; font-size: .78rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .84rem; }
th, td { text-align: left; padding: .62rem 1.25rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
th {
  color: var(--muted);
  font-weight: 620;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  background: #fafbfc;
  position: sticky;
  top: 0;
}
tbody tr { transition: background .08s; }
tbody tr:hover { background: #f8fafd; }
tbody tr:last-child td { border-bottom: none; }
td.mono, .mono { font-family: var(--font-mono); font-size: .78rem; }
td .row-actions { display: flex; gap: .65rem; align-items: center; opacity: .75; }
tbody tr:hover .row-actions { opacity: 1; }
.empty-row td { color: var(--muted); text-align: center; padding: 2.2rem 1rem; }
.empty-state {
  text-align: center;
  padding: 2.6rem 1rem;
  color: var(--muted);
}
.empty-state .glyph { font-size: 1.6rem; display: block; margin-bottom: .5rem; opacity: .5; }
.empty-state b { color: var(--ink-2); display: block; margin-bottom: .2rem; font-size: .92rem; }

.muted { color: var(--muted); font-size: .88rem; }
.amount { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Table toolbar (search + filters) */
.table-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  align-items: center;
  padding: .75rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: #fcfdfe;
}
.table-toolbar .search {
  position: relative;
  flex: 1 1 220px;
  max-width: 340px;
}
.table-toolbar .search input { padding-left: 2.1rem; }
.table-toolbar .search::before {
  content: "⌕";
  position: absolute;
  left: .7rem; top: 50%;
  transform: translateY(-54%);
  color: var(--faint);
  font-size: 1.05rem;
}
.filter-chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: .3rem .8rem;
  font-size: .76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .1s;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Copyable values */
.copy {
  cursor: pointer;
  border-bottom: 1px dashed transparent;
}
.copy:hover { border-bottom-color: var(--faint); }
.copy.copied { color: var(--ok); }

/* ---------- Flash / toasts ---------- */
.flash {
  padding: .8rem 1.1rem;
  border-radius: 10px;
  margin-bottom: 1.1rem;
  font-size: .88rem;
  border: 1px solid transparent;
  word-break: break-word;
}
.flash.info { background: var(--ok-soft); color: var(--ok); border-color: #bfe3cf; }
.flash.error, .error { background: var(--bad-soft); color: var(--bad); border-color: #f2c1bd; }
p.error { padding: .7rem 1rem; border-radius: 8px; font-size: .86rem; }

.toast-zone {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  z-index: 100;
  max-width: min(430px, calc(100vw - 2rem));
}
.toast {
  background: var(--sidebar);
  color: #f4f7fb;
  border-radius: 10px;
  padding: .8rem 2.4rem .8rem 1rem;
  font-size: .84rem;
  line-height: 1.45;
  box-shadow: var(--shadow-lg);
  position: relative;
  border-left: 3px solid var(--ok-dot);
  word-break: break-word;
  animation: toastIn .18s ease;
}
.toast.error { border-left-color: var(--bad-dot); }
.toast .close {
  position: absolute;
  top: .4rem; right: .55rem;
  background: none; border: none;
  color: #93a2b8; cursor: pointer;
  font-size: .95rem; line-height: 1;
  padding: .2rem;
}
.toast .close:hover { color: #fff; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Meta grids & timelines ---------- */
.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: .9rem 1.1rem;
  margin: 0;
}
.meta-grid dt { font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 0 0 .22rem; font-weight: 620; }
.meta-grid dd { margin: 0; font-weight: 600; font-size: .86rem; word-break: break-all; }

.timeline-list { list-style: none; margin: 0; padding: 0; }
.timeline-list li {
  position: relative;
  padding: 0 0 1.1rem 1.65rem;
}
.timeline-list li::before {
  content: "";
  position: absolute;
  left: 6px; top: .35rem;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--primary);
}
.timeline-list li::after {
  content: "";
  position: absolute;
  left: 11px; top: 1.15rem; bottom: -.1rem;
  width: 1px;
  background: var(--line-strong);
}
.timeline-list li:last-child::after { display: none; }
.timeline-list .tl-title { font-weight: 620; font-size: .86rem; }
.timeline-list .tl-meta { color: var(--muted); font-size: .76rem; margin-top: .1rem; }

/* ---------- Auth ---------- */
.auth-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh;
  background: var(--bg);
}
.auth-brand-panel {
  background:
    radial-gradient(800px 480px at 90% -10%, rgba(34, 197, 94, .25), transparent 55%),
    radial-gradient(700px 480px at -10% 110%, rgba(31, 79, 216, .3), transparent 55%),
    var(--sidebar);
  color: #e4e9f0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem 3rem;
}
.auth-brand-panel .brand { color: #fff; font-size: 1.1rem; }
.auth-brand-panel h2 { font-size: 1.7rem; line-height: 1.3; color: #fff; max-width: 26rem; letter-spacing: -.02em; }
.auth-brand-panel .points { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: .7rem; color: #b8c3d4; font-size: .9rem; }
.auth-brand-panel .points li { display: flex; gap: .6rem; align-items: baseline; }
.auth-brand-panel .points li::before { content: "✓"; color: #3ccb7f; font-weight: 700; }
.auth-brand-panel .fineprint { color: #5d6b81; font-size: .78rem; }
.auth-form-panel { display: grid; place-items: center; padding: 2rem 1.25rem; }
.auth-card {
  width: min(410px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
}
.auth-card h1 { font-size: 1.35rem; margin: .3rem 0 1.1rem; }
.brand {
  font-weight: 750;
  letter-spacing: .01em;
  color: var(--ink);
  margin: 0 0 .25rem;
  display: flex; align-items: center; gap: .5rem;
}
.auth-footer { margin-top: 1.25rem; text-align: center; font-size: .85rem; color: var(--muted); }
@media (max-width: 860px) {
  .auth-body { grid-template-columns: 1fr; }
  .auth-brand-panel { display: none; }
}

/* ---------- Hosted checkout / pay pages ---------- */
.checkout-body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 1.25rem;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(34, 197, 94, .1), transparent 55%),
    radial-gradient(700px 420px at 0% 100%, rgba(31, 79, 216, .08), transparent 50%),
    var(--bg);
}
.checkout-card {
  width: min(460px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.checkout-card h1 { font-size: 1.3rem; }
.pay-head {
  padding: 1.4rem 1.75rem 1.2rem;
  background: linear-gradient(180deg, #fafcff, #fff);
  border-bottom: 1px solid var(--line);
}
.pay-head .brand { margin-bottom: .8rem; }
.pay-amount { font-size: 2rem; font-weight: 760; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pay-amount .cur { font-size: 1rem; color: var(--muted); font-weight: 600; margin-left: .3rem; }
.pay-sub { color: var(--muted); font-size: .82rem; margin-top: .25rem; }
.pay-body { padding: 1.4rem 1.75rem 1.6rem; }
.pay-footer {
  padding: .85rem 1.75rem;
  border-top: 1px solid var(--line);
  background: #fafbfc;
  color: var(--faint);
  font-size: .74rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .8rem;
}
.pay-footer .lock::before { content: "🔒"; margin-right: .35rem; font-size: .72rem; }
.status { margin-top: 1rem; font-weight: 600; }

/* Payment method selector */
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
}
.method-grid label {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: .6rem .4rem;
  display: grid;
  justify-items: center;
  gap: .25rem;
  cursor: pointer;
  font-size: .74rem;
  font-weight: 600;
  color: var(--ink-2);
  text-align: center;
  transition: all .1s;
  user-select: none;
}
.method-grid label .m-icon { font-size: 1.15rem; }
.method-grid input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.method-grid label:hover { border-color: var(--primary); }
.method-grid label.on {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-dark);
  box-shadow: 0 0 0 1px var(--primary);
}

/* ---------- Misc ---------- */
.webhook-payload {
  max-width: 460px;
  max-height: 200px;
  overflow: auto;
  margin: .4rem 0 0;
  padding: .6rem .75rem;
  background: var(--sidebar);
  color: #d9e4f2;
  border-radius: 8px;
  font-size: .72rem;
  font-family: var(--font-mono);
  white-space: pre-wrap;
  word-break: break-word;
}
details summary { cursor: pointer; }
details summary::-webkit-details-marker { display: none; }
details summary::before { content: "▸ "; color: var(--faint); }
details[open] summary::before { content: "▾ "; }

.tag {
  display: inline-block;
  background: #f2f4f7;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--ink-2);
  font-size: .7rem;
  font-weight: 600;
  padding: .1rem .42rem;
  font-family: var(--font-mono);
}

.deadline-soon { color: var(--bad); font-weight: 650; }
.deadline-ok { color: var(--muted); }

kbd {
  background: #f2f4f7;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: .05rem .4rem;
  font-size: .72rem;
  font-family: var(--font-mono);
}
