/* Jurnal Pendidik Indonesia — LoA & payment system
   Paper and ink, taken from the journal letterhead: woven pattern band, Playfair titles,
   signature-ink navy for actions, LUNAS-stamp red for alerts. */
:root {
  --paper: #f4f2ed;
  --surface: #ffffff;
  --ink: #17181c;
  --text: #2b2d33;
  --muted: #6a6e78;
  --line: #e3dfd5;
  --line-strong: #cfc9bb;
  --navy: #263a75;
  --navy-deep: #1a2a5a;
  --navy-wash: #e9edf7;
  --red: #c8463f;
  --red-wash: #fbebe9;
  --amber: #a8670f;
  --amber-wash: #fbf0dc;
  --green: #2c7a4b;
  --green-wash: #e3f2e8;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", Consolas, Menlo, monospace;
  --r: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 15px; line-height: 1.55; color: var(--text); background: var(--paper); }
a { color: var(--navy); }
code, .mono { font-family: var(--mono); font-size: .92em; }
code { background: rgba(0,0,0,.06); padding: 1px 6px; border-radius: 4px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.break { word-break: break-all; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

/* ---------- letterhead band ---------- */

.band {
  background: #fff url("img/pattern.jpg") repeat-x left top / auto 100%;
  border-bottom: 1px solid var(--line-strong);
}
.band-inner {
  max-width: 1320px; margin: 0 auto;
  padding: 14px clamp(16px, 3vw, 32px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.band-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.band-brand > span { display: flex; flex-direction: column; }
.public .band-inner { justify-content: flex-start; gap: 14px; }
.band-emblem { width: 48px; height: 48px; flex: none; }
.band-title { font-family: var(--serif); font-weight: 700; font-size: clamp(19px, 2.4vw, 26px); line-height: 1.1; color: var(--ink); }
.band-sub { font-size: 13px; color: var(--muted); }
.band-nav { display: flex; gap: 6px; font-size: 14px; }
.band-nav a { text-decoration: none; color: var(--ink); padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.85); }
.band-nav a:hover { background: #fff; box-shadow: 0 0 0 1px var(--line-strong); }
.band-out { box-shadow: 0 0 0 1px var(--line-strong); }

.banner { max-width: 1320px; margin: 16px auto 0; padding: 10px 16px; border-radius: var(--r); background: var(--amber-wash); color: #6d4708; font-size: 14px; }

/* ---------- controls ---------- */

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.field { display: flex; flex-direction: column; gap: 5px; margin: 0 0 14px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink); }
.field > span em { font-style: normal; font-weight: 400; color: var(--muted); margin-left: 4px; }
input, textarea, select {
  font: inherit; color: var(--ink); width: 100%;
  padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff;
}
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(38,58,117,.14); }
input:disabled { background: #f5f4f0; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap;
  padding: 9px 16px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink);
}
.btn:hover { border-color: var(--ink); }
.btn-primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn-danger { background: #fff; border-color: var(--red); color: var(--red); }
.btn-danger:hover { background: var(--red); color: #fff; border-color: var(--red); }
.btn-quiet { border-color: transparent; color: var(--muted); }
.btn-ghost { background: transparent; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-block { width: 100%; padding: 12px 18px; font-size: 15px; }
.btn:disabled { opacity: .55; cursor: progress; }
.icon-btn { font: inherit; font-size: 24px; line-height: 1; width: 36px; height: 36px; border-radius: 8px; border: 0; background: transparent; cursor: pointer; color: var(--muted); }
.icon-btn:hover { background: var(--paper); color: var(--ink); }

.alert { padding: 11px 14px; border-radius: 8px; font-size: 14px; margin: 0 0 16px; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.alert-err { background: var(--red-wash); color: #8a2a24; }
.alert-warn { background: var(--amber-wash); color: #6d4708; }
.alert-info { background: var(--navy-wash); color: var(--navy-deep); }

.tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 4px; background: #efede7; color: var(--muted); vertical-align: 1px; }
.tag-fast { background: var(--navy-wash); color: var(--navy); }
.tag-red { background: var(--red-wash); color: var(--red); letter-spacing: .06em; }
.tag-green { background: var(--green-wash); color: var(--green); }

.status { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.status-baru { background: #efede7; color: #55585f; }
.status-tagihan { background: var(--amber-wash); color: var(--amber); }
.status-konfirmasi { background: var(--red-wash); color: var(--red); }
.status-lunas { background: var(--green-wash); color: var(--green); }
.status-batal { background: #efede7; color: var(--muted); text-decoration: line-through; }

/* ---------- dashboard ---------- */

.shell { max-width: 1320px; margin: 0 auto; padding: 22px clamp(16px, 3vw, 32px) 60px; }
.summary { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; margin-bottom: 18px; }

.pipeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.stage {
  position: relative; text-align: left; font: inherit; color: inherit; cursor: pointer;
  background: none; border: 0; border-right: 1px solid var(--line);
  padding: 18px 26px 18px 20px; display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.stage:last-child { border-right: 0; }
.stage:not(:last-child)::after {
  content: ""; position: absolute; right: -9px; top: 50%; z-index: 1; width: 16px; height: 16px; margin-top: -8px;
  background: var(--surface); border-top: 1px solid var(--line); border-right: 1px solid var(--line); transform: rotate(45deg);
}
.stage:hover { background: #faf9f6; }
.stage.is-active { background: var(--navy-wash); }
.stage.is-active::after { background: var(--navy-wash); }
.stage-n { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.stage-label { font-size: 13px; font-weight: 600; color: var(--ink); }
.stage strong { font-family: var(--serif); font-size: 38px; font-weight: 700; line-height: 1.05; color: var(--ink); }
.stage em { font-style: normal; font-size: 12px; color: var(--red); }
.stage-konfirmasi strong { color: var(--red); }
.stage-lunas strong { color: var(--green); }

.revenue { padding: 16px 18px 8px; display: flex; flex-direction: column; }
.revenue-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.revenue-head span { display: block; font-size: 12.5px; }
.revenue-head strong { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.rev-total { text-align: right; }
.rev-total b { font-size: 14px; color: var(--ink); }
.rev-chart svg { width: 100%; height: auto; display: block; margin-top: 4px; }
.rc-base { stroke: var(--line-strong); }
.rc-bar { fill: #c9d1e6; }
.rc-now { fill: var(--navy); }
.rc-val { font: 600 11px var(--sans); fill: var(--ink); text-anchor: middle; }
.rc-lbl { font: 11px var(--sans); fill: var(--muted); text-anchor: middle; }

.board { padding: 20px clamp(14px, 2vw, 24px) 8px; }
.board-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.board-head h1 { font-family: var(--serif); font-size: 26px; margin: 0; color: var(--ink); }
.board-tools { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 14px 0 6px; }
.board-tools input { max-width: 340px; border-radius: 999px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chipf { font: inherit; font-size: 13px; font-weight: 500; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; color: var(--text); cursor: pointer; }
.chipf:hover { border-color: var(--ink); }
.chipf.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.table-wrap { overflow-x: auto; }
.list { width: 100%; border-collapse: collapse; font-size: 14px; }
.list thead th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 14px 10px 0; border-bottom: 1.5px solid var(--ink); white-space: nowrap; }
.list tbody td { padding: 14px 14px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.list tbody tr { cursor: pointer; }
.list tbody tr:hover td, .list tbody tr.is-open td { background: #faf9f6; }
.list tbody td:first-child { padding-left: 8px; }
.c-id b { font-family: var(--mono); font-weight: 500; font-size: 13px; display: block; color: var(--ink); white-space: nowrap; }
.c-art { min-width: 280px; max-width: 560px; }
.c-title { color: var(--ink); font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.c-art small, .c-warn { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.c-warn { color: var(--red); }
.c-money { font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.c-date { white-space: nowrap; color: var(--muted); font-size: 13px; }
.empty { text-align: center; color: var(--muted); padding: 36px 0 !important; cursor: default; }

/* ---------- drawer ---------- */

.scrim { position: fixed; inset: 0; background: rgba(23,24,28,.28); z-index: 30; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 31;
  width: min(560px, 100vw); background: var(--surface);
  display: flex; flex-direction: column;
  box-shadow: -18px 0 40px -20px rgba(0,0,0,.35);
  transform: translateX(100%); transition: transform .2s ease;
}
.drawer.is-open { transform: none; }
.dr-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--line); background: #fff url("img/pattern.jpg") repeat-x left top / auto 100%; }
.dr-head > div { background: rgba(255,255,255,.9); padding: 4px 10px; border-radius: 8px; }
.dr-id { font-weight: 500; color: var(--ink); margin-right: 6px; }
.dr-body { flex: 1; overflow-y: auto; padding: 20px 22px 28px; }
.dr-title { font-family: var(--serif); font-size: 21px; line-height: 1.3; margin: 0 0 6px; color: var(--ink); }
.dr-authors { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.dr-sec { border-top: 1px solid var(--line); padding: 16px 0 4px; }
.dr-sec h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; font-weight: 600; }
.dr-foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); background: #faf9f6; }

.stepper { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0 0 18px; padding: 0; counter-reset: s; }
.stepper li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.stepper li::before { content: ""; position: absolute; top: 13px; left: -50%; right: 50%; height: 2px; background: var(--line); z-index: 0; }
.stepper li:first-child::before { display: none; }
.stepper li.done::before, .stepper li.now::before { background: var(--navy); }
.stepper i { position: relative; z-index: 1; font-style: normal; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: #fff; border: 2px solid var(--line-strong); color: var(--muted); }
.stepper li.done i { background: var(--navy); border-color: var(--navy); color: #fff; }
.stepper li.now i { border-color: var(--navy); color: var(--navy); box-shadow: 0 0 0 4px var(--navy-wash); }
.stepper li.now span { color: var(--ink); font-weight: 600; }
.cancelled { padding: 10px 14px; border-radius: 8px; background: #efede7; color: var(--muted); margin-bottom: 16px; font-size: 14px; }

.bill { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.bill > div { background: var(--paper); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; }
.bill span { font-size: 12px; color: var(--muted); }
.bill strong { font-family: var(--serif); font-size: 20px; color: var(--ink); }
.bill small { font-size: 12px; color: var(--muted); }

.kv { margin: 0 0 10px; display: grid; gap: 0; }
.kv > div { display: grid; grid-template-columns: 130px 1fr; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); font-size: 13px; }
.kv dd { margin: 0; min-width: 0; }

.proof { display: block; position: relative; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--paper); margin-bottom: 10px; }
.proof img { display: block; width: 100%; max-height: 360px; object-fit: contain; }
.proof span { position: absolute; right: 8px; bottom: 8px; background: rgba(23,24,28,.75); color: #fff; font-size: 12px; padding: 3px 9px; border-radius: 6px; }

.doc-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 10px; }
.doc {
  font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 14px 8px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: #fff;
}
.doc:hover { border-color: var(--navy); }
.doc i { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .06em; color: #fff; background: var(--red); padding: 3px 6px; border-radius: 3px; }
.doc small { font-weight: 400; color: var(--muted); font-size: 11.5px; }
.doc-preview { border-style: dashed; }
.doc-preview i { background: var(--muted); }

.timeline { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 12px 12px; font-size: 13.5px; }
.timeline li::before { content: ""; position: absolute; left: -20px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--navy); }
.timeline li:not(:first-child)::before { border-color: var(--line-strong); }
.timeline b { font-weight: 600; color: var(--ink); display: block; }
.timeline span { display: block; color: var(--muted); word-break: break-word; }
.timeline time { font-size: 12px; color: var(--muted); }

/* ---------- OJS pull ---------- */

.ojs-pull {
  display: grid; grid-template-columns: minmax(0, 220px) auto 1fr; gap: 6px 12px; align-items: end;
  padding: 14px 16px 12px; margin: -2px 0 18px; border-radius: 12px;
  background: var(--navy-wash); border: 1px solid #d3daee;
}
.ojs-pull .field { margin: 0; }
.ojs-pull .btn { height: 41px; }
.ojs-msg { margin: 0 0 10px; }
.ojs-ok { color: var(--green); font-weight: 600; }
.ojs-warn { color: var(--red); font-weight: 600; }

/* ---------- dialogs ---------- */

.dialog { border: 0; padding: 0; border-radius: 14px; width: min(480px, calc(100vw - 24px)); box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); color: var(--text); }
.dialog-wide { width: min(820px, calc(100vw - 24px)); }
.dialog::backdrop { background: rgba(23,24,28,.4); }
.dialog form { display: flex; flex-direction: column; max-height: calc(100vh - 40px); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px 10px 22px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { font-family: var(--serif); font-size: 21px; margin: 0; color: var(--ink); }
.dialog-body { padding: 18px 22px 6px; overflow-y: auto; }
.dialog-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); background: #faf9f6; }
.form-status { margin-right: auto; font-size: 13px; color: var(--muted); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 14px; align-items: start; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr 1.4fr 1fr; gap: 0 14px; }

.service { border: 0; padding: 0; margin: 4px 0 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.service legend { font-size: 13px; font-weight: 600; color: var(--ink); padding: 0; margin-bottom: 6px; }
.seg { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: flex; flex-direction: column; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: 10px; }
.seg small { color: var(--muted); font-size: 12.5px; }
.seg input:checked + span { border-color: var(--navy); background: var(--navy-wash); box-shadow: inset 0 0 0 1px var(--navy); }
.seg input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }
.is-off { opacity: .45; }
.total-box { background: var(--paper); border-radius: 10px; padding: 9px 14px; margin-top: 21px; display: flex; flex-direction: column; }
.total-box span { font-size: 12px; color: var(--muted); }
.total-box strong { font-family: var(--serif); font-size: 20px; color: var(--navy); }

.check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; cursor: pointer; font-size: 14.5px; }
.check:hover { border-color: var(--line-strong); }
.check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--navy); }
.check:has(input:checked) { border-color: var(--navy); background: var(--navy-wash); }
.check-inline { border: 0; padding: 4px 0; background: none !important; font-size: 13.5px; }

.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 60;
  max-width: min(620px, calc(100vw - 28px)); padding: 12px 18px; border-radius: 10px;
  background: var(--ink); color: #fff; font-size: 14.5px; cursor: pointer;
  box-shadow: 0 14px 40px -14px rgba(0,0,0,.6);
}
.toast-err { background: var(--red); }
.toast-busy::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 10px; vertical-align: -1px; border: 2px solid #fff; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- public pages (author form, verification) ---------- */

.public { min-height: 100vh; display: flex; flex-direction: column; }
.public-main { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 32px 18px 48px; }
.public-foot { background: #fff; border-top: 1px solid var(--line); text-align: center; padding: 8px 12px; }
.public-foot img { max-width: 720px; width: 100%; height: auto; display: inline-block; }

.intro { margin-bottom: 20px; }
.intro-kicker { font-size: 13px; font-weight: 600; color: var(--navy); margin: 0 0 6px; }
.intro h1 { font-family: var(--mono); font-weight: 500; font-size: 15px; color: var(--muted); margin: 0 0 4px; }
.intro-title { font-family: var(--serif); font-size: clamp(21px, 3.4vw, 28px); line-height: 1.3; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.intro-authors { margin: 0; color: var(--muted); }

.pay { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; margin-bottom: 18px; }
.pay > div { padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.pay-amount { background: var(--navy); color: #fff; }
.pay-amount span, .pay-amount small { color: #c7d0ea; font-size: 13px; }
.pay-amount strong { font-family: var(--serif); font-size: clamp(26px, 4vw, 34px); line-height: 1.15; }
.pay-bank span { font-size: 13px; color: var(--muted); }
.pay-bank strong { font-size: 22px; color: var(--ink); letter-spacing: .04em; }
.pay-bank small { color: var(--muted); margin-bottom: 8px; }

.commit-form { padding: 20px clamp(16px, 3vw, 28px) 24px; }
.commit-form h2 { font-family: var(--serif); font-size: 19px; color: var(--ink); margin: 20px 0 6px; }
.commit-form h2:first-of-type { margin-top: 0; }
.commit-form > .muted { margin: 0 0 12px; font-size: 14px; }
.drop { position: relative; display: flex; align-items: center; gap: 14px; padding: 18px; border: 2px dashed var(--line-strong); border-radius: 12px; cursor: pointer; background: #fcfbf8; margin-bottom: 14px; }
.drop:hover, .drop.has-file { border-color: var(--navy); background: var(--navy-wash); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-text { font-size: 14px; color: var(--muted); }
.drop-text strong { color: var(--ink); }
.drop-preview { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; margin-left: auto; border: 1px solid var(--line); }

.notice { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px clamp(18px, 3vw, 30px); }
.notice h1 { font-family: var(--serif); font-size: 26px; color: var(--ink); margin: 0 0 8px; line-height: 1.25; }
.notice-ok { border-top: 4px solid var(--green); }
.inline-form { display: flex; gap: 10px; align-items: flex-end; margin-top: 16px; }
.inline-form .field { flex: 1; margin: 0; }

.verdict { display: flex; gap: 18px; align-items: center; margin-bottom: 20px; }
.verdict h1 { font-family: var(--serif); font-size: clamp(24px, 4vw, 32px); margin: 0 0 4px; line-height: 1.2; }
.verdict p { margin: 0; color: var(--muted); }
.verdict-seal { flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; font-weight: 700; color: #fff; }
.verdict-valid .verdict-seal { background: var(--green); box-shadow: 0 0 0 6px var(--green-wash); }
.verdict-valid h1 { color: var(--green); }
.verdict-revoked .verdict-seal, .verdict-invalid .verdict-seal { background: var(--red); box-shadow: 0 0 0 6px var(--red-wash); }
.verdict-revoked h1, .verdict-invalid h1 { color: var(--red); }
.record { margin: 0; padding: 4px 22px; }
.record > div { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.record > div:last-child { border-bottom: 0; }
.record dt { color: var(--muted); font-size: 14px; }
.record dd { margin: 0; }
.record-title { font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1.35; }

/* ---------- sign-in ---------- */

body.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: var(--paper) url("img/pattern.jpg") repeat-x left top / auto 150px; }
.auth-card { width: 100%; max-width: 410px; padding: 30px 30px 26px; box-shadow: 0 24px 60px -30px rgba(0,0,0,.35); }
.auth-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 22px; }
.auth-brand img { width: 46px; height: 46px; }
.auth-brand strong { display: block; font-family: var(--serif); font-size: 18px; color: var(--ink); line-height: 1.15; }
.auth-brand span { font-size: 13px; color: var(--muted); }
.auth-card h1 { font-family: var(--serif); font-size: 26px; margin: 0 0 6px; color: var(--ink); }
.auth-card .muted { margin: 0 0 20px; }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .summary { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .pipeline { grid-template-columns: 1fr 1fr; }
  .stage { border-bottom: 1px solid var(--line); }
  .stage::after { display: none; }
  .stage strong { font-size: 30px; }
  .grid-2, .grid-3, .grid-4, .pay, .service, .ojs-pull { grid-template-columns: 1fr; }
  .ojs-msg { margin: 4px 0 0; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .total-box { margin: 0 0 14px; }
  .board-tools input { max-width: none; }
  .list thead { display: none; }
  .list, .list tbody, .list tr, .list td { display: block; width: 100%; }
  .list tbody tr { padding: 12px 6px; border-bottom: 1px solid var(--line); }
  .list tbody td { border: 0; padding: 2px 0 !important; min-width: 0; max-width: none; }
  .c-id b { display: inline; margin-right: 6px; }
  .kv > div { grid-template-columns: 1fr; gap: 0; }
  .doc-row { grid-template-columns: repeat(3, 1fr); }
  .band-nav a:first-child { display: none; }
  .inline-form { flex-direction: column; align-items: stretch; }
  .record > div { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .drawer { transition: none; }
  .toast-busy::before { animation: none; }
}
