:root {
  --navy: #1B3A5C; --navy2: #14293F; --teal: #1C7293; --amber: #E8A33D;
  --red: #B3372B; --green: #2E7D5B; --bg: #F5F7FA; --ink: #212934;
  --mut: #5A6478; --line: #DDE3EC; --card: #FFFFFF;
}
* { box-sizing: border-box; margin: 0; }
body { font: 16px/1.6 "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  background: var(--bg); color: var(--ink); }
.wrap { max-width: 640px; margin: 0 auto; padding: 0 1.1rem; }

.civic { background: var(--navy); color: #fff; padding: 1rem 0; margin-bottom: 1.6rem; }
.civic .wrap { display: flex; align-items: center; gap: .9rem; }
.crest { width: 46px; height: 46px; border-radius: 8px; background: var(--amber);
  color: var(--navy); font-weight: 800; font-size: 1.15rem; display: grid; place-items: center;
  flex-shrink: 0; }
.civic h1 { font-size: 1.15rem; font-weight: 700; }
.civic p { font-size: .85rem; color: #B9C6DC; }
.proto { margin-left: auto; font-size: .6rem; letter-spacing: .12em; font-weight: 700;
  background: #2E4A6B; color: #C7D3E3; padding: .2rem .5rem; border-radius: 4px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 1.5rem; margin-bottom: 1.2rem; box-shadow: 0 1px 3px rgba(27,58,92,.06); }
.hidden { display: none; }
h2 { font-size: 1.3rem; color: var(--navy); margin-bottom: .35rem; }
.lede { color: var(--mut); font-size: .92rem; margin-bottom: 1rem; }
.fine { font-size: .78rem; color: var(--mut); margin-top: .9rem; }

label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink);
  margin-bottom: .9rem; }
input, select, textarea { display: block; width: 100%; font: inherit; font-weight: 400;
  margin-top: .3rem; padding: .7rem .8rem; border: 1px solid #C8D1DE; border-radius: 8px;
  background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(28,114,147,.28);
  border-color: var(--teal); }
input::placeholder, textarea::placeholder { color: #9AA5B5; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }

.btn { display: block; width: 100%; font: inherit; font-weight: 700; border: 0;
  border-radius: 9px; padding: .8rem; cursor: pointer; margin-top: .3rem; }
.btn.primary { background: var(--teal); color: #fff; font-size: 1.02rem; }
.btn.primary:hover { background: #17607C; }
.btn.primary:disabled { background: #9BB6C2; cursor: default; }
.btn.ghost { background: #fff; color: var(--teal); border: 1.5px solid var(--teal); }
.btn.danger { background: #fff; color: var(--red); border: 1.5px solid var(--red); }
.btn.link { background: none; color: var(--teal); text-decoration: underline;
  font-weight: 600; padding: .5rem; width: auto; font-size: .88rem; }

.msg { font-size: .9rem; margin-top: .8rem; min-height: 1.2rem; }
.msg.bad { color: var(--red); background: #FBEFED; border-left: 4px solid var(--red);
  padding: .6rem .8rem; border-radius: 0 8px 8px 0; }
.msg.ok { color: #1D5C42; background: #EDF6F1; border-left: 4px solid var(--green);
  padding: .6rem .8rem; border-radius: 0 8px 8px 0; }
.msg.info { color: #17495E; background: #EAF3F7; border-left: 4px solid var(--teal);
  padding: .6rem .8rem; border-radius: 0 8px 8px 0; }

.tickethead { display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1rem; margin-bottom: 1rem; }
.tickethead h2 { font-family: "Courier New", monospace; letter-spacing: .04em; }
.chip { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .06em;
  padding: .2rem .55rem; border-radius: 999px; color: #fff; background: var(--mut);
  margin-bottom: .3rem; }
.chip.ISSUED { background: var(--teal); }
.chip.PAID { background: var(--green); }
.chip.PAST_DUE { background: var(--red); }
.chip.DISPUTED, .chip.REDUCED { background: var(--amber); color: var(--navy); }
.chip.VOID, .chip.DISMISSED { background: var(--mut); }
.chip.UPHELD { background: var(--navy); }

.facts { border-top: 1px solid var(--line); }
.facts > div { display: flex; justify-content: space-between; gap: 1rem;
  padding: .6rem 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--mut); font-size: .88rem; }
.facts dd { font-weight: 600; text-align: right; }

.amounts { margin: 1.2rem 0 .6rem; border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; }
.amounts .row { display: flex; justify-content: space-between; padding: .6rem .9rem;
  font-size: .92rem; border-bottom: 1px solid var(--line); }
.amounts .row:last-child { border-bottom: 0; }
.amounts .row.total { background: #EDF6F1; font-weight: 800; font-size: 1.25rem;
  color: #1D5C42; padding: .9rem; }
.amounts .row.strike span:last-child { text-decoration: line-through; color: var(--mut); }
.amounts .row.save { color: var(--green); font-weight: 600; }
.amounts .row.warnrow { background: #FCF3EA; color: #8A5A16; }
.deadline { font-size: .84rem; color: var(--mut); padding: .1rem .9rem .7rem; }
.deadline b { color: var(--red); }

.actions { display: flex; flex-direction: column; gap: .5rem; margin-top: 1rem; }
.ledger-wrap { margin-top: 1.2rem; }
.ledger-wrap summary { cursor: pointer; font-size: .88rem; color: var(--teal); font-weight: 600; }
table { width: 100%; border-collapse: collapse; font-size: .85rem; margin-top: .6rem; }
th { text-align: left; color: var(--mut); font-size: .72rem; text-transform: uppercase;
  letter-spacing: .05em; padding: .4rem; border-bottom: 2px solid var(--line); }
td { padding: .45rem .4rem; border-bottom: 1px solid var(--line); }
td:last-child, th:last-child { text-align: right; }

.hosted-banner { background: #EAF3F7; border: 1px solid #BBD7E4; border-radius: 9px;
  padding: .8rem .9rem; font-size: .85rem; color: #17495E; margin-bottom: 1rem; }
.hosted-banner strong { display: block; margin-bottom: .2rem; }
.paying-for { background: var(--bg); border-radius: 8px; padding: .7rem .9rem;
  margin-bottom: 1.1rem; font-size: .95rem; }

.receipt-top { text-align: center; margin-bottom: 1.2rem; }
.tick { width: 58px; height: 58px; border-radius: 50%; background: var(--green); color: #fff;
  font-size: 1.9rem; display: grid; place-items: center; margin: 0 auto .6rem; }

.foot { color: var(--mut); font-size: .8rem; padding-bottom: 2rem; }
.foot p { margin-bottom: .3rem; }
.foot a { color: var(--teal); }

@media print {
  .civic, .foot, .actions, .btn { display: none !important; }
  .card { border: 0; box-shadow: none; }
}

/* Synthetic-profile banner (config.js adds it when jurisdiction.synthetic) */
.pk-demo-banner { background: repeating-linear-gradient(45deg, #FDECC8, #FDECC8 12px, #F9DDA4 12px, #F9DDA4 24px);
  color: #5A3A00; font-weight: 700; font-size: .82rem; text-align: center; padding: .45rem 1rem;
  border-bottom: 2px solid #D9822B; font-family: system-ui, sans-serif; }

/* v0.9.0: one-factor lookup — ticket list and "confirm the other detail" box */
.results { display: grid; gap: .6rem; }
.results .pick { display: flex; justify-content: space-between; gap: 1rem; width: 100%;
  text-align: left; padding: .8rem 1rem; border: 1px solid #d0d5dd; border-radius: 8px;
  background: #fff; cursor: pointer; font: inherit; }
.results .pick:hover { border-color: #888; }
.results .pick small { display: block; color: #666; }
.confirm { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #e4e7ec; }
.amounts .fine { margin: 0; padding: .6rem 1rem; }
