/* Spectrum Site Log — phone first.
 *
 * Built for an installer on a roof: 16px minimum on inputs (smaller and iOS zooms the page
 * on focus), 44px tap targets, high contrast for sunlight. Brand tokens verbatim from the
 * app this replaces: navy #1F233C, navy deep #2A3050, cyan #3AC3E9, charcoal #494949,
 * brand gradient 135deg navy→navy deep with a 4px cyan stripe beneath, Roboto/Lato.
 */

:root {
  --navy:   #1F233C;
  --navy-2: #2A3050;
  --cyan:   #3AC3E9;
  --ink:    #494949;
  --muted:  #6b7085;
  --line:   #e2e5ee;
  --bg:     #f4f6fa;
  --card:   #ffffff;
  --ok:     #158b52;
  --warn:   #a86a00;
  --bad:    #b3261e;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 Roboto, Lato, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  padding-bottom: env(safe-area-inset-bottom);
  -webkit-tap-highlight-color: transparent;
}
h1 { font-size: 1.5rem; margin: 0 0 .2rem; color: var(--navy); }
h2 { font-size: 1.05rem; margin: 0 0 .6rem; color: var(--navy); }
a  { color: var(--navy); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny  { font-size: .75rem; }
.bad   { color: var(--bad) !important; }
.min0  { min-width: 0; }
.center { text-align: center; }
.pre   { white-space: pre-wrap; word-break: break-word; }
.req   { color: var(--bad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------------------------------------------------------------- chrome */

.brand-gradient { background: linear-gradient(135deg, #1F233C, #2A3050); }
.accent-stripe  { background: var(--cyan); height: 4px; width: 100%; }

.topbar { position: sticky; top: 0; z-index: 20; background: linear-gradient(135deg, #1F233C, #2A3050); color: #fff; padding-top: env(safe-area-inset-top); }
.topbar-in { max-width: 760px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .6rem 1rem; }
.topbar-left { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.topbar .brand img { height: 30px; width: auto; display: block; }
.topbar .back { color: #fff; text-decoration: none; font-size: 1.4rem; line-height: 1; padding: .3rem .5rem; border-radius: 8px; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.topbar .back:active { background: rgba(255,255,255,.12); }
.topbar-title { min-width: 0; }
.topbar-title .t { font-weight: 700; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-title .s { font-size: .78rem; color: rgba(255,255,255,.8); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-nav { display: flex; gap: .35rem; flex: none; }
.topbar-nav a { color: #fff; text-decoration: none; font-size: .78rem; font-weight: 700; padding: .45rem .7rem; border-radius: 8px; background: rgba(255,255,255,.12); min-height: 34px; display: inline-flex; align-items: center; }
.topbar-nav a:active { background: rgba(255,255,255,.22); }
/* On a phone the header is tight: Sign out lives on Your account, and the home page's
   title is redundant next to the logo. */
@media (max-width: 520px) {
  .topbar-nav a.signout { display: none; }
  .topbar .brand + .topbar-title { display: none; }
}

.wrap { max-width: 760px; margin: 0 auto; padding: 1rem 1rem 3rem; }
.wrap.wide { max-width: 900px; }

/* ---------------------------------------------------------------- pieces */

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; margin: 0 0 .8rem; }
.cardtitle { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 .4rem; }
.cardtitle-row { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .4rem; }
.cardtitle-row .cardtitle { margin: 0; }

.banner { padding: .7rem .85rem; border-radius: 12px; margin: 0 0 .8rem; font-size: .92rem; }
.banner.ok   { background: #e7f5ee; border: 1px solid #b9e0cc; color: #0d5c37; }
.banner.warn { background: #fdf3e0; border: 1px solid #eccf9a; color: #7a4d00; }
.banner.bad  { background: #fdeceb; border: 1px solid #f0bdb9; color: #8c1d16; }
.banner.info { background: rgba(58,195,233,.1); border: 1px solid rgba(58,195,233,.4); color: var(--navy); font-size: .85rem; margin-top: .5rem; }

.pill { display: inline-block; padding: .1rem .5rem; border-radius: 999px; font-size: .72rem; font-weight: 600; vertical-align: middle; margin-left: .3rem; }
.pill.ok   { background: #e7f5ee; color: #0d5c37; }
.pill.warn { background: #fdf3e0; color: #7a4d00; }
.pill.bad  { background: #fdeceb; color: #8c1d16; }
.pill.muted{ background: #eef0f6; color: var(--muted); }
.pill.cyan { background: rgba(58,195,233,.2); color: var(--navy); }

.stage { display: inline-flex; align-items: center; border-radius: 999px; padding: .15rem .65rem; font-size: .74rem; font-weight: 500; white-space: nowrap; flex: none;
         background: #eef0f6; color: var(--navy); border: 1px solid var(--line); }
.stage.cyan { background: var(--cyan); color: var(--navy); border-color: transparent; }
.stage.navy { background: var(--navy); color: #fff; border-color: transparent; }
.stage.muted { color: var(--muted); }

.empty { color: var(--muted); padding: .6rem 0; font-size: .92rem; }
.hint  { color: var(--muted); font-size: .8rem; margin: .35rem 0 .6rem; }
.greet { margin: 0 0 1rem; }

.listhead { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 1.4rem 0 .5rem; font-weight: 700; }
.listhead.bad { color: var(--bad); }
.listhead-row { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.listhead-row .listhead { margin-bottom: .4rem; }

.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .25rem; margin: 0 0 .8rem; }
.tabs.five { grid-template-columns: repeat(5, 1fr); }
.tabs a { text-align: center; text-decoration: none; font-size: .8rem; font-weight: 700; color: var(--muted); padding: .55rem .3rem; border-radius: 9px; min-height: 40px; display: flex; align-items: center; justify-content: center; }
.tabs a.on { background: var(--navy); color: #fff; }

/* ---------------------------------------------------------------- CTA + cards */

.cta { display: block; text-decoration: none; color: #fff; background: linear-gradient(135deg, #1F233C, #2A3050); border-radius: 18px; padding: 1.2rem 1.3rem; box-shadow: 0 8px 20px rgba(31,35,60,.25); }
.cta:active { transform: scale(.99); }
.cta-title { display: block; font-size: 1.15rem; font-weight: 700; }
.cta-sub   { display: block; font-size: .85rem; color: rgba(255,255,255,.8); }

.cardlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.jobcard, .rcard {
  display: flex; align-items: flex-start; justify-content: space-between; gap: .7rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .8rem .9rem; text-decoration: none; color: var(--ink); min-height: 60px;
}
.jobcard:active, .rcard:active { background: #eef2fa; }
.jobcard:hover { border-color: var(--cyan); }
.jobcard-main, .rcard-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.jobcard-name, .rcard-name { font-weight: 700; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jobcard-sub, .rcard-sub { font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rcard-meta { font-size: .76rem; color: var(--muted); margin-top: .15rem; }
.rcard-excerpt { font-size: .8rem; color: var(--ink); opacity: .85; margin-top: .3rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rcard.blocking { border-color: var(--bad); background: #fff6f5; }
.chev { color: var(--muted); font-size: 1.3rem; line-height: 1; align-self: center; }
.rrow { position: relative; }
.rrow-actions { display: flex; justify-content: flex-end; gap: .2rem; padding: 0 .4rem; }
.rrow-actions form { display: flex; gap: .2rem; }

/* ---------------------------------------------------------------- forms */

.field { display: block; margin: 0 0 .9rem; }
.field > span, .lbl { display: block; font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: .3rem; }
.field > span .muted { font-weight: 400; }
.fieldhead { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .3rem; }
.fieldhead > span { font-size: .85rem; font-weight: 600; color: var(--navy); }
.grid2 { display: grid; grid-template-columns: 1fr; gap: 0 .8rem; }
@media (min-width: 560px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid2 .span2 { grid-column: 1 / -1; } }

input[type=text], input[type=tel], input[type=email], input[type=password], input[type=search],
input[type=number], input[type=date], input:not([type]), textarea, select {
  width: 100%; padding: .7rem .7rem; border: 1px solid var(--line); border-radius: 11px;
  background: #fff; color: #222; font-size: 16px; font-family: inherit; min-height: 46px;
}
textarea { resize: vertical; line-height: 1.45; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--cyan); outline-offset: 1px; border-color: var(--cyan); }
input.search { margin-bottom: .6rem; }
input.panels { width: 5.2rem; min-height: 40px; padding: .4rem .5rem; text-align: center; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .3rem; min-height: 46px; padding: .6rem 1.1rem;
       border: 1px solid var(--navy); border-radius: 11px; background: #fff; color: var(--navy); font-size: .95rem; font-weight: 700;
       text-decoration: none; cursor: pointer; font-family: inherit; }
.btn.primary { background: linear-gradient(135deg, #1F233C, #2A3050); color: #fff; border-color: transparent; }
.btn.primary:hover { opacity: .95; }
.btn.ghost   { border-color: var(--line); color: var(--navy); font-weight: 600; background: var(--card); }
.btn.danger  { border-color: var(--bad); color: var(--bad); }
.btn.wide    { width: 100%; }
.btn.small   { min-height: 38px; padding: .4rem .8rem; font-size: .85rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.linkbtn { background: none; border: 0; color: var(--navy); font: inherit; font-size: .85rem; font-weight: 700; text-decoration: underline; cursor: pointer; padding: .4rem .2rem; min-height: 40px; }
.linkbtn.bad { color: var(--bad); }
.iconbtn { background: none; border: 0; font-size: 1rem; cursor: pointer; padding: .3rem; min-height: 40px; min-width: 40px; color: var(--muted); }
.iconbtn:hover { color: var(--bad); }
.micbtn { display: inline-flex; align-items: center; gap: .3rem; border: 1px solid var(--cyan); background: rgba(58,195,233,.12); color: var(--navy);
          border-radius: 9px; padding: .35rem .6rem; font-size: .78rem; font-weight: 700; cursor: pointer; font-family: inherit; min-height: 34px; }
.micbtn.rec { border-color: var(--bad); background: #fdeceb; color: var(--bad); }
.micbtn:disabled { opacity: .5; }

.check { display: inline-flex; align-items: center; gap: .35rem; font-size: .9rem; margin: 0 .4rem 0 0; }
.check input { width: auto; min-height: 0; }
.inline { display: inline; }
.inlineform { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-end; }
.inlineform .grow { flex: 1 1 10rem; margin: 0; }
.quickrow { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .6rem; }
.quickrow.right { justify-content: flex-end; }
.quickrow form { display: inline; }
.subform { border-top: 1px solid var(--line); margin-top: .7rem; padding-top: .7rem; }

/* ---------------------------------------------------------------- contact card */

.contact-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; }
.contact-side { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; flex: none; }
.contact-name { font-weight: 700; color: var(--navy); overflow: hidden; text-overflow: ellipsis; }
.contact-person { font-size: .92rem; }
.contact-phones { margin-top: .4rem; font-size: .95rem; }
.contact-phones a { font-weight: 600; }
.contact-edit { margin-top: .8rem; border-top: 1px solid var(--line); padding-top: .8rem; }
.backbar { display: flex; align-items: center; gap: .4rem; min-height: 46px; margin: 0 0 .6rem; padding: .4rem .8rem .4rem .5rem; background: var(--card);
           border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; }
.backbar-arrow { font-size: 1.5rem; line-height: 1; color: var(--muted); }

/* ---------------------------------------------------------------- report form */

.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.checklist .card { margin: 0; padding: .7rem .8rem; }
.checkhead { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .5rem; font-weight: 500; }
.states { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; }
.state { position: relative; display: block; }
.state input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.state span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; padding: .3rem .2rem; border: 1px solid var(--line);
              border-radius: 9px; font-size: .74rem; font-weight: 700; color: var(--muted); cursor: pointer; user-select: none; }
.state input:checked + span { border-color: var(--cyan); background: rgba(58,195,233,.15); color: var(--navy); }
.state input:focus-visible + span { outline: 2px solid var(--cyan); }

.switchrow { display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.switchrow .lbl { margin: 0; font-size: 1rem; }
.switchrow input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch { width: 46px; height: 26px; border-radius: 999px; background: #cfd4e2; position: relative; transition: background .15s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switchrow input:checked + .switch { background: var(--navy); }
.switchrow input:checked + .switch::after { transform: translateX(20px); }
#issuebox { margin-top: .8rem; }
.sevs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin-bottom: .6rem; }
.sev { position: relative; }
.sev input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sev span { display: flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid var(--line); border-radius: 9px; font-size: .78rem; font-weight: 700; color: var(--muted); cursor: pointer; text-align: center; }
.sev.minor     input:checked + span { border-color: var(--navy); background: rgba(31,35,60,.1); color: var(--navy); }
.sev.attention input:checked + span { border-color: var(--cyan); background: rgba(58,195,233,.15); color: var(--navy); }
.sev.blocking  input:checked + span { border-color: var(--bad); background: #fdeceb; color: var(--bad); }

.savebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: .6rem 1rem calc(1.2rem + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(0,0,0,.1); }
.savebar-inner { max-width: 760px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.savebar .btn { min-width: 9rem; }
.savebar-spacer { height: calc(5rem + env(safe-area-inset-bottom)); }
.savestate { font-size: .8rem; color: var(--muted); }
.savestate.ok   { color: var(--ok); }
.savestate.bad  { color: var(--bad); font-weight: 700; }
.savestate.busy { color: var(--muted); }

/* ---------------------------------------------------------------- photos */

.gallery { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.gallery li { position: relative; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; background: #eef0f6; }
.gdl, .gdel { position: absolute; bottom: 6px; right: 6px; background: rgba(0,0,0,.65); color: #fff; border: 0; border-radius: 8px; padding: .25rem .45rem; font-size: .85rem; text-decoration: none; cursor: pointer; line-height: 1.2; }
.gdel { top: 6px; bottom: auto; background: rgba(179,38,30,.9); }
.gallery form { display: contents; }

.uploads { list-style: none; margin: .6rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.upl { display: flex; align-items: center; gap: .6rem; padding: .4rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.upl-thumb { width: 44px; height: 44px; border-radius: 8px; overflow: hidden; background: #eef0f6; flex: none; }
.upl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.upl-meta { flex: 1; min-width: 0; }
.upl-name { display: block; font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upl-state { display: block; font-size: .78rem; color: var(--muted); }
.upl.going .upl-state { color: #12657f; }
.upl.done  .upl-state { color: var(--ok); }
.upl.wait  .upl-state { color: var(--warn); }
.upl.bad   .upl-state { color: var(--bad); }

/* ---------------------------------------------------------------- report view */

.facts { margin: 0; }
.facts dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; margin-top: .6rem; }
.facts dd { margin: .15rem 0 0; }
.checkview { list-style: none; margin: 0; padding: 0; }
.checkview li { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .3rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.checkview li:last-child { border-bottom: 0; }
.statesel { width: auto; min-height: 36px; padding: .3rem .5rem; font-size: .8rem; font-weight: 700; }
.statesel.done, .statepill.done { border-color: var(--navy); color: var(--navy); }
.statesel.in_progress, .statepill.in_progress { border-color: var(--cyan); color: var(--navy); }
.statepill { font-size: .78rem; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; padding: .2rem .5rem; }
.issue.blocking { border-color: var(--bad); background: #fff6f5; }
.issue.attention { border-color: var(--cyan); }

/* ---------------------------------------------------------------- expenses / financials */

.expform .exprow { display: flex; flex-direction: column; gap: 0; }
@media (min-width: 560px) { .expform .exprow { flex-direction: row; gap: .8rem; } .expform .amt { width: 9rem; } .expform .grow { flex: 1; } }
.tablecard { padding: 0; overflow: hidden; }
.exptable, .fintable { width: 100%; border-collapse: collapse; font-size: .9rem; }
.exptable th, .fintable th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #f7f8fb; padding: .5rem .8rem; }
.exptable td, .fintable td { padding: .55rem .8rem; border-top: 1px solid var(--line); vertical-align: top; }
.exptable .amt { white-space: nowrap; width: 7rem; }
.exptable .act { width: 2.5rem; text-align: right; }
.exptable tfoot td { background: #f7f8fb; }
.fintable .r { text-align: right; white-space: nowrap; }
.fintable .rowlink { cursor: pointer; }
.fintable .rowlink:hover { background: #f4f6fa; }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; gap: .5rem; }
.stats4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; margin-bottom: .8rem; }
@media (min-width: 640px) { .stats4 { grid-template-columns: repeat(4, 1fr); } }
.stat { margin: 0; }
.statlbl { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.statval { font-size: 1.15rem; font-weight: 700; color: var(--navy); }

/* ---------------------------------------------------------------- admin */

.filters { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; align-items: center; }
@media (min-width: 720px) { .filters { grid-template-columns: repeat(4, 1fr); } }
.filters select, .filters input { min-height: 42px; }
.userhead { display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.userbtns { display: flex; flex-wrap: wrap; gap: .35rem; }
.userbtns form { display: contents; }
.grid { width: 100%; border-collapse: collapse; font-size: .85rem; display: block; overflow-x: auto; }
.grid th, .grid td { text-align: left; padding: .45rem .4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.grid th { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }

/* ---------------------------------------------------------------- login + 2FA */

.loginwrap { max-width: 380px; margin: 0 auto; padding: 2.5rem 1.4rem; text-align: center; }
.loginlogo { width: 190px; height: auto; margin-bottom: 1rem; }
.loginform { text-align: left; margin-top: 1.4rem; }
.loginnote { font-size: .78rem; color: var(--muted); margin-top: 1.2rem; }
.mfa-steps { text-align: left; padding-left: 1.2rem; font-size: .92rem; }
.mfa-steps li { margin: .5rem 0; }
.mfa-tap { margin: .5rem 0 .3rem; }
.mfa-qr { display: flex; justify-content: center; margin: .8rem 0; }
.mfa-qr img, .mfa-qr canvas { border: 8px solid #fff; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.mfa-manual { text-align: left; font-size: .9rem; margin: .6rem 0; }
.mfa-key { display: block; font-size: 1.05rem; letter-spacing: .08em; margin: .4rem 0; word-break: break-all; }
.mfa-code { font-size: 1.6rem !important; letter-spacing: .3em; text-align: center; }
.mfa-cancel { margin-top: .6rem; }

/* ---------------------------------------------------------------- dark */

@media (prefers-color-scheme: dark) {
  :root { --ink: #e6e9f2; --muted: #9aa3ba; --line: #333a52; --bg: #14172a; --card: #1c2038; }
  h1, h2, a, .contact-name, .jobcard-name, .rcard-name, .field > span, .lbl, .fieldhead > span, .statval, .linkbtn { color: #e6e9f2; }
  .btn { background: var(--card); color: #dfe4f2; border-color: #3a4160; }
  .btn.ghost { color: #dfe4f2; }
  .btn.primary { background: var(--cyan); color: #10131f; }
  input[type=text], input[type=tel], input[type=email], input[type=password], input[type=search], input[type=number], input[type=date],
  input:not([type]), textarea, select { background: #121524; color: var(--ink); border-color: #3a4160; }
  .stage { background: #262b45; color: #e6e9f2; }
  .stage.cyan { color: var(--navy); }
  .state span, .sev span, .statepill { background: #171b30; }
  .state input:checked + span, .sev.attention input:checked + span { color: #e6e9f2; }
  .tabs a.on { background: var(--cyan); color: #10131f; }
  .rcard.blocking, .issue.blocking { background: #331715; }
  .exptable th, .fintable th, .exptable tfoot td { background: #171b30; }
  .banner.ok   { background: #10301f; border-color: #1d5c39; color: #8fe0b4; }
  .banner.warn { background: #33280f; border-color: #6b5316; color: #e9c67a; }
  .banner.bad  { background: #331715; border-color: #6d2723; color: #f0a49e; }
  .banner.info { color: #e6e9f2; }
  .upl { background: var(--card); }
  .micbtn { color: #e6e9f2; }
  .switch { background: #3a4160; }
  .statesel.done, .statesel.in_progress, .statepill.done, .statepill.in_progress { color: #e6e9f2; }
  .pill.cyan { color: #7fdcf5; }
  .stage.cyan { color: #10131f; }
}
