/* Business registration tracker — shared styles for public pages and admin */
:root {
  --forest: #0F3D2E;
  --forest-2: #17563F;
  --forest-3: #E3EDE7;
  --brass: #A87A2A;
  --brass-dark: #7C5816;
  --brass-soft: #F5EBD7;
  --paper: #F2F5F3;
  --white: #FFFFFF;
  --ink: #16201B;
  --muted: #56655E;
  --line: #D2DCD6;
  --line-soft: #E6ECE8;
  --rust: #A5441B;   --rust-soft: #F9E5DB;
  --amber: #875F00;  --amber-soft: #F7EDCC;
  --red: #9C2D2D;    --red-soft: #F6DFDF;
  --ok: #1B6546;     --ok-soft: #DAEEE3;
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --r-sm: 4px;
  --r-md: 10px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 var(--sans); color: var(--ink); background: var(--paper); }
img { max-width: 100%; }
a { color: var(--forest-2); text-underline-offset: 2px; }
a:hover { color: var(--forest); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
code { background: var(--line-soft); padding: .1em .35em; border-radius: 3px; font-size: .9em; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: .5rem; background: var(--white); padding: .5rem 1rem; z-index: 50; }
.skip:focus { left: .5rem; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.mt { margin-top: 1.5rem; }
.mb { margin-bottom: 1.5rem; }
.nowrap { white-space: nowrap; }
.pre { white-space: normal; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Brand ---------- */
.brand { display: flex; align-items: center; gap: .75rem; color: var(--white); text-decoration: none; }
.brand:hover { color: var(--white); }
.brand strong { display: block; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; line-height: 1.2; }
.brand small { display: block; font-size: .78rem; opacity: .75; line-height: 1.3; }
.brand__seal {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 1rem; letter-spacing: .02em; color: #F0DBAE;
  border: 2px solid var(--brass);
  box-shadow: inset 0 0 0 3px var(--forest), inset 0 0 0 4px rgba(168, 122, 42, .55);
}
.brand__seal--dark { color: var(--brass-dark); background: var(--brass-soft); box-shadow: inset 0 0 0 3px var(--white), inset 0 0 0 4px rgba(168, 122, 42, .55); margin-bottom: 1rem; }

/* ---------- Public header / footer ---------- */
.site-header { background: var(--forest); color: var(--white); border-bottom: 1px solid rgba(255,255,255,.1); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .9rem; padding-bottom: .9rem; }
.site-nav { display: flex; gap: 1.25rem; }
.site-nav a { color: var(--white); text-decoration: none; white-space: nowrap; font-weight: 500; font-size: .95rem; opacity: .9; }
.site-nav a:hover { opacity: 1; text-decoration: underline; color: var(--white); }

.site-footer { background: var(--white); border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; padding: 2rem 0; }
.site-footer__inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.site-footer strong { color: var(--ink); }
.site-footer__note { max-width: 46ch; margin: 0; }

/* ---------- Hero + search ---------- */
.hero {
  background-color: var(--forest);
  /* faint ruled lines, like a register ledger */
  background-image: repeating-linear-gradient(180deg, transparent 0 35px, rgba(255,255,255,.045) 35px 36px);
  color: var(--white);
  padding: 3.25rem 0 3.75rem;
}
.hero h1 { color: var(--white); font-size: clamp(2rem, 4.6vw, 3.1rem); max-width: 18ch; margin-bottom: .4em; }
.hero__lead { max-width: 60ch; font-size: 1.05rem; color: rgba(255,255,255,.86); margin-bottom: 1.75rem; }
.search { display: flex; max-width: 740px; background: var(--white); border-radius: var(--r-md); padding: 6px; box-shadow: 0 12px 32px rgba(0,0,0,.28); }
.search:focus-within { outline: 3px solid var(--brass); outline-offset: 3px; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 1.12rem; padding: .85rem 1rem; }
.search input:focus { outline: none; }
.search button { border: 0; border-radius: 6px; background: var(--brass); color: var(--white); font: 600 1rem var(--sans); padding: 0 1.6rem; cursor: pointer; }
.search button:hover { background: var(--brass-dark); }

/* ---------- Results ---------- */
.results { padding-top: 2.5rem; padding-bottom: 4rem; }
.results__summary { color: var(--muted); margin-bottom: 1rem; }
.result-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.result__link {
  display: block; background: var(--white); color: inherit; text-decoration: none;
  border: 1px solid var(--line); border-left: 4px solid var(--forest-2); border-radius: var(--r-sm);
  padding: 1.25rem 1.4rem;
}
.result__link:hover { border-color: var(--forest-2); color: inherit; }
.result__link:hover .result__name { text-decoration: underline; text-underline-offset: 3px; }
.result__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.result__name { font-size: 1.4rem; margin: 0; }
.result__stage { margin: .55rem 0 0; font-size: .92rem; color: var(--muted); }
.result__stage strong { color: var(--ink); font-weight: 600; }
mark { background: var(--brass-soft); color: inherit; padding: 0 .08em; border-radius: 2px; }

.meta { display: flex; flex-wrap: wrap; gap: .6rem 2.25rem; margin: .75rem 0 1.1rem; }
.meta dt { font-size: .8rem; color: var(--muted); }
.meta dd { margin: 0; font-weight: 500; }

.section-title { font-size: 1.6rem; }
.section-lead { color: var(--muted); max-width: 62ch; margin-bottom: 1.75rem; }
.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.4rem 2rem; counter-reset: stage; }
.stages li { counter-increment: stage; position: relative; padding-left: 2.9rem; }
.stages li::before {
  content: counter(stage); position: absolute; left: 0; top: -.1rem;
  width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 1.5px solid var(--forest-2);
  display: grid; place-items: center; font-family: var(--serif); font-weight: 700; color: var(--forest-2); background: var(--white);
}
.stages strong { display: block; margin-bottom: .15rem; }
.stages span { color: var(--muted); font-size: .93rem; }

.empty { background: var(--white); border: 1px dashed #B9C7BF; border-radius: var(--r-sm); padding: 2rem; max-width: 720px; }
.empty h1, .empty h2 { font-size: 1.4rem; }
.empty p:last-child { margin-bottom: 0; }

/* ---------- Status pills ---------- */
.pill { display: inline-block; font-size: .8rem; font-weight: 600; line-height: 1.4; padding: .22rem .7rem; border-radius: 999px; white-space: nowrap; }
.pill--lg { font-size: .9rem; padding: .3rem .85rem; }
.pill--active { background: var(--brass-soft); color: var(--brass-dark); }
.pill--registered { background: var(--ok-soft); color: var(--ok); }
.pill--query { background: var(--rust-soft); color: var(--rust); }
.pill--hold { background: var(--amber-soft); color: var(--amber); }
.pill--rejected { background: var(--red-soft); color: var(--red); }

.tag { display: inline-block; font-size: .74rem; font-weight: 600; padding: .08rem .45rem; border-radius: 3px; background: var(--line-soft); color: var(--muted); vertical-align: middle; }
.tag--ok { background: var(--ok-soft); color: var(--ok); }

/* ---------- Progress track (the register's signature element) ---------- */
.track { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.track li { min-width: 0; }
.track__bar { display: block; height: 8px; border-radius: 2px; background: #DDE5E0; }
.track .is-done .track__bar { background: var(--forest-2); }
.track .is-current .track__bar { background: var(--brass); }
.track--query .is-current .track__bar { background: var(--rust); }
.track--hold .is-current .track__bar { background: #C49A1F; }
.track--rejected .is-current .track__bar { background: var(--red); }
.track--registered .is-current .track__bar { background: var(--forest-2); }
.track--labelled .track__bar { height: 10px; }
.track__label { display: block; margin-top: .45rem; font-size: .76rem; line-height: 1.3; color: var(--muted); padding-right: .25rem; }
.track--labelled .is-current .track__label { color: var(--ink); font-weight: 600; }
.track--labelled .is-done .track__label { color: var(--forest-2); }

/* ---------- Public record page ---------- */
.record-hero { background: var(--white); border-bottom: 1px solid var(--line); padding: 1.75rem 0 2rem; }
.record-hero__head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.record-hero__head h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin: 0; }
.record-hero__track { margin-top: .5rem; }
.back { display: inline-block; font-size: .9rem; margin-bottom: .9rem; }
.back::before { content: "\2039\00a0"; }
.record-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.75rem; padding-top: 2rem; padding-bottom: 4rem; align-items: start; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 1.5rem; }
.panel h2 { font-size: 1.35rem; }

.timeline { list-style: none; margin: 1rem 0 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 1.5rem 2.6rem; }
.timeline li::before { content: ""; position: absolute; left: 12px; top: 28px; bottom: 2px; width: 2px; background: var(--line); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::before { display: none; }
.timeline li.is-done::before { background: var(--forest-2); }
.timeline__dot {
  position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: .78rem; font-weight: 700;
  border: 2px solid var(--line); background: var(--white); color: var(--muted);
}
.is-done .timeline__dot { background: var(--forest-2); border-color: var(--forest-2); color: var(--white); }
.is-current .timeline__dot { background: var(--brass); border-color: var(--brass); color: var(--white); box-shadow: 0 0 0 5px var(--brass-soft); }
.timeline--query .is-current .timeline__dot { background: var(--rust); border-color: var(--rust); box-shadow: 0 0 0 5px var(--rust-soft); }
.timeline--hold .is-current .timeline__dot { background: #C49A1F; border-color: #C49A1F; box-shadow: 0 0 0 5px var(--amber-soft); }
.timeline--rejected .is-current .timeline__dot { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 5px var(--red-soft); }
.timeline strong { display: block; line-height: 1.6; }
.timeline .is-todo strong { color: var(--muted); font-weight: 500; }
.timeline p { margin: .1rem 0 0; font-size: .92rem; color: var(--muted); }
.timeline .is-todo p { display: none; }
.timeline time { display: block; font-size: .82rem; color: var(--forest-2); margin-top: .2rem; font-weight: 500; }

.feed { list-style: none; margin: 0; padding: 0; }
.feed li { padding: .95rem 0; border-top: 1px solid var(--line-soft); }
.feed li:first-child { border-top: 0; padding-top: .25rem; }
.feed__meta { font-size: .8rem; color: var(--muted); margin-bottom: .15rem; }
.feed p { margin: .3rem 0 0; }
.callout { background: var(--brass-soft); border-left: 3px solid var(--brass); padding: .9rem 1rem; border-radius: 0 var(--r-sm) var(--r-sm) 0; margin-bottom: 1.25rem; }
.contact-box { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.contact-box p { margin: .3rem 0 0; font-size: .93rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  border: 1px solid var(--forest-2); background: var(--forest-2); color: var(--white);
  font: 600 .93rem/1.2 var(--sans); padding: .62rem 1.05rem; border-radius: var(--r-sm);
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--forest); border-color: var(--forest); color: var(--white); }
.btn--ghost { background: var(--white); color: var(--forest-2); border-color: var(--line); }
.btn--ghost:hover { background: var(--forest-3); color: var(--forest); border-color: #B9CBC0; }
.btn--danger { background: var(--white); color: var(--red); border-color: #E2C3C3; }
.btn--danger:hover { background: var(--red-soft); color: var(--red); border-color: var(--red); }
.btn--sm { padding: .36rem .7rem; font-size: .84rem; }
.btn--block { width: 100%; padding-top: .8rem; padding-bottom: .8rem; font-size: 1rem; }
.linklike { background: none; border: 0; padding: 0; font: inherit; font-size: .88rem; color: var(--forest-2); text-decoration: underline; cursor: pointer; }
.linklike--danger { color: var(--red); font-size: .8rem; }
form.inline, .inline { display: inline; }

/* ---------- Forms ---------- */
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.field input:not([type=checkbox]), .field select, .field textarea,
.filters input, .filters select, .inline-form input {
  width: 100%; font: inherit; font-size: .95rem; color: var(--ink); background: var(--white);
  padding: .6rem .75rem; border: 1px solid #BCC9C1; border-radius: var(--r-sm);
}
.field input:focus, .field select:focus, .field textarea:focus, .filters input:focus, .filters select:focus { outline: 2px solid var(--brass); outline-offset: 0; border-color: var(--brass); }
.field textarea { resize: vertical; min-height: 84px; }
.field .hint, .hint { font-size: .82rem; color: var(--muted); margin-top: .3rem; }
.check { display: flex !important; gap: .6rem; align-items: flex-start; font-weight: 500 !important; }
.check input { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--forest-2); flex: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: .75rem; }
.stack .btn { margin-top: .5rem; }

/* ---------- Flash messages ---------- */
.flash { padding: .8rem 1rem; border-radius: var(--r-sm); border: 1px solid; margin-bottom: 1rem; font-size: .95rem; }
.flash ul { margin: .4rem 0 0 1.1rem; padding: 0; }
.flash--success { background: var(--ok-soft); border-color: #B3D8C4; color: #134D34; }
.flash--error { background: var(--red-soft); border-color: #E3BDBD; color: #7A2020; }
.flash--warning { background: var(--amber-soft); border-color: #E8D594; color: #634600; }

/* ---------- Admin shell ---------- */
.admin-bar { background: var(--forest); color: var(--white); }
.admin-bar__inner { max-width: 1240px; margin: 0 auto; padding: .7rem 1.25rem; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.admin-bar .brand__seal { width: 40px; height: 40px; font-size: .9rem; }
.admin-nav { display: flex; gap: .2rem; flex: 1; flex-wrap: wrap; }
.admin-nav a { color: var(--white); opacity: .82; text-decoration: none; padding: .45rem .8rem; border-radius: var(--r-sm); font-weight: 500; font-size: .93rem; }
.admin-nav a:hover, .admin-nav a.is-active { opacity: 1; background: rgba(255,255,255,.12); color: var(--white); }
.admin-user { display: flex; gap: 1rem; align-items: center; font-size: .88rem; }
.admin-user span { opacity: .8; }
.admin-user a { color: var(--white); }
.admin-main { max-width: 1240px; margin: 0 auto; padding: 1.75rem 1.25rem 4rem; }

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.page-head h1 { font-size: 1.9rem; margin: 0; }
.page-head p { margin: .3rem 0 0; }
.page-head__actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: .7rem; margin-bottom: 1.1rem; }
.stat { display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); padding: .85rem 1rem; color: inherit; text-decoration: none; }
.stat b { display: block; font-family: var(--serif); font-size: 1.75rem; line-height: 1.1; }
.stat span { font-size: .86rem; color: var(--muted); }
.stat:hover { border-color: var(--forest-2); color: inherit; }
.stat.is-active { border-color: var(--forest-2); box-shadow: inset 0 -3px 0 var(--forest-2); }
.stat--warn b { color: var(--rust); }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); padding: .7rem; margin-bottom: 1rem; }
.filters input[type=search] { flex: 2 1 220px; width: auto; }
.filters select { flex: 1 1 130px; width: auto; min-width: 0; }
.filters .btn { flex: none; }

.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); }
.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
.data th { text-align: left; font-weight: 600; font-size: .8rem; color: var(--muted); background: #F8FAF9; padding: .7rem .9rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data td { padding: .8rem .9rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.data tbody tr:last-child td { border-bottom: 0; }
.data tbody tr:hover { background: #FAFCFB; }
.data .name { min-width: 220px; }
.data .name a { font-weight: 600; color: var(--ink); text-decoration: none; }
.data .name a:hover { text-decoration: underline; }
.data .sub { display: block; font-size: .8rem; color: var(--muted); }
.progress-cell { min-width: 170px; }
.progress-cell .track { margin: .35rem 0 .35rem; }
.progress-cell .track__bar { height: 6px; }
.actions { text-align: right; }
.actions > * + * { margin-left: .3rem; }

.pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.5rem; color: var(--muted); font-size: .9rem; }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 1.4rem; margin-bottom: 1.25rem; }
.card h2 { font-size: 1.25rem; }
.card--accent { border-top: 4px solid var(--brass); }
.status-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.status-row > div { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }

.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.split--even { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.split aside { position: sticky; top: 1rem; }
.details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1.5rem; margin: 0; }
.details dt { font-size: .8rem; color: var(--muted); }
.details dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

.inline-details { display: inline-block; }
.inline-details summary { list-style: none; }
.inline-details summary::-webkit-details-marker { display: none; }
.inline-form { display: flex; gap: .4rem; margin-top: .4rem; }
.inline-form input { width: 150px; padding: .35rem .5rem; }

/* ---------- Login / install ---------- */
.login-page {
  min-height: 100vh; margin: 0; display: grid; place-items: center; padding: 1.5rem;
  background-color: var(--forest);
  background-image: repeating-linear-gradient(180deg, transparent 0 35px, rgba(255,255,255,.045) 35px 36px);
}
.login-card { width: 100%; max-width: 420px; background: var(--white); border-radius: var(--r-md); padding: 2rem; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.login-card h1 { font-size: 1.6rem; margin-bottom: .2em; }
.login-card__foot { margin: 1.25rem 0 0; font-size: .88rem; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split aside { position: static; order: -1; }
  .record-body { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero { padding: 2.25rem 0 2.5rem; }
  .search input { font-size: 1rem; padding: .75rem .7rem; }
  .search button { padding: 0 1rem; }
  .result__head { flex-direction: column; gap: .5rem; }
  .result__link { padding: 1.1rem; }
  .meta { gap: .5rem 1.5rem; }
  .form-grid, .details { grid-template-columns: 1fr; }
  .brand small { display: none; }
  .site-nav { gap: .9rem; }
  .track--labelled .track__label { display: none; }
  .track--labelled .is-current .track__label { display: block; position: absolute; left: 0; right: 0; bottom: 0; }
  .track--labelled { position: relative; padding-bottom: 1.4rem; }
  .admin-user span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Documents & client portal (v2) ---------- */
.mt-sm { margin-top: .75rem; }
.upload-box { background: var(--paper); border: 1px dashed #B9C7BF; border-radius: var(--r-sm); padding: 1rem 1rem .25rem; }
.upload-box .btn { margin-bottom: .9rem; }
.upload-box input[type=file] { background: var(--white); }
.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-list li { display: flex; gap: .9rem; align-items: flex-start; padding: .85rem 0; border-top: 1px solid var(--line-soft); }
.doc-list li:first-child { border-top: 0; }
.doc-list__main { flex: 1; min-width: 0; }
.doc-list__title { display: block; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
a.doc-list__title { text-decoration: none; }
a.doc-list__title:hover { text-decoration: underline; }
.doc-list .sub { display: block; font-size: .8rem; color: var(--muted); margin-top: .15rem; }
.doc-list__actions { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.doc-badge {
  flex: none; width: 42px; height: 50px; border-radius: 3px 10px 3px 3px;
  display: grid; place-items: end center; padding-bottom: 7px;
  font-size: .66rem; font-weight: 700; letter-spacing: .03em;
  background: var(--forest-3); color: var(--forest-2); border: 1px solid #C5D7CC;
}
.doc-badge--pdf { background: #F7E3DE; color: #9A3320; border-color: #EBC6BC; }
.doc-badge--doc { background: #DFE8F4; color: #2C4F83; border-color: #C3D3E8; }
.doc-badge--xls { background: #DCEFE3; color: #1D6A40; border-color: #BBDCC7; }
.doc-badge--img { background: var(--brass-soft); color: var(--brass-dark); border-color: #E6D3AE; }
.access-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.access-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 0; border-top: 1px solid var(--line-soft); }
.access-list li:first-child { border-top: 0; }
.access-list a { color: var(--ink); text-decoration: none; }
.access-list a:hover { text-decoration: underline; }
.access-list .sub { display: block; font-size: .8rem; color: var(--muted); }
.empty-inline { color: var(--muted); background: var(--paper); padding: .75rem 1rem; border-radius: var(--r-sm); }
.disclosure { border-top: 1px solid var(--line); padding-top: .9rem; margin-top: .9rem; }
.disclosure summary { cursor: pointer; font-weight: 600; color: var(--forest-2); }
.inline-grid { display: flex; gap: .5rem; flex-wrap: wrap; }
.inline-grid select { flex: 1 1 240px; width: auto; font: inherit; font-size: .95rem; padding: .6rem .75rem; border: 1px solid #BCC9C1; border-radius: var(--r-sm); background: var(--white); }
.cred-box { border: 2px solid var(--brass); }
.cred-pass { font-size: 1.05rem; padding: .2em .5em; background: var(--brass-soft); color: var(--brass-dark); }
.cred-msg { width: 100%; margin-top: 1rem; font: .9rem/1.5 var(--sans); padding: .75rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); resize: vertical; }
.portal-main { padding-top: 2rem; padding-bottom: 4rem; min-height: 60vh; }
.portal-title { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.portal-reg { margin-bottom: 1.25rem; }
.portal-reg .meta { margin-bottom: 1.25rem; }
.narrow { max-width: 480px; }
@media (max-width: 640px) {
  .doc-list li { flex-wrap: wrap; }
  .doc-list__actions { width: 100%; justify-content: flex-start; padding-left: calc(42px + .9rem); }
  .access-list li { flex-direction: column; align-items: flex-start; }
}
