/* Cuentas de Obra — concreto, acero y amarillo de seguridad */
:root {
  --bg: #E4E6E3;
  --paper: #FAFAF8;
  --ink: #1E2528;
  --steel: #5B676D;
  --line: #C9CECB;
  --line-soft: #DDE1DE;
  --safety: #F5B800;
  --safety-soft: #FFF1C4;
  --paid: #2E6B4A;
  --topay: #3D6E8F;
  --ded: #B4382A;
  --radius: 6px;
  --font: "Archivo", "Roboto Flex", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --hazard: repeating-linear-gradient(-45deg, var(--safety) 0 6px, var(--ink) 6px 12px);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.5;
  font-variant-numeric: tabular-nums;
  padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
}
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
h1, h2, h3 { font-stretch: 80%; line-height: 1.15; margin: 0 0 .5rem; letter-spacing: -.005em; }
h1 { font-size: clamp(1.6rem, 4.5vw, 2.25rem); font-weight: 800; }
h2 { font-size: 1.15rem; font-weight: 750; margin-top: .25rem; }
h3 { font-size: 1rem; font-weight: 700; margin-top: 1rem; }
p { margin: 0 0 .75rem; }
small { font-size: .82rem; }
code, pre { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .85rem; }
pre { background: var(--bg); padding: .75rem; border-radius: var(--radius); overflow-x: auto; }
.muted { color: var(--steel); }
.neg { color: var(--ded); }
.ic { width: 20px; height: 20px; flex: none; }
:focus-visible { outline: 3px solid var(--safety); outline-offset: 2px; }

/* ---------- Estructura ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 1rem clamp(.9rem, 3vw, 1.75rem) 2rem; }
.wrap.narrow { max-width: 760px; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1rem;
  background: var(--ink); color: #fff; padding: calc(.55rem + env(safe-area-inset-top, 0px)) clamp(.9rem, 3vw, 1.75rem) .55rem;
}
.brand { color: #fff; text-decoration: none; font-weight: 800; font-stretch: 80%; font-size: 1.1rem; display: flex; align-items: center; gap: .6rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.brand-mark { width: 22px; height: 22px; border-radius: 3px; background: var(--hazard); flex: none; display: inline-block; }
.brand-mark.big { width: 56px; height: 56px; border-radius: 8px; }
.topnav { display: none; gap: .15rem; margin-left: auto; }
.topnav a { color: #C8D0D3; text-decoration: none; display: flex; align-items: center; gap: .4rem; padding: .45rem .6rem; border-radius: var(--radius); font-size: .92rem; }
.topnav a:hover { color: #fff; background: rgba(255,255,255,.07); }
.topnav a.on { color: #fff; box-shadow: inset 0 -3px 0 var(--safety); border-radius: 0; }
.me { margin-left: auto; display: flex; gap: .8rem; font-size: .88rem; align-items: center; }
.me a { color: #C8D0D3; text-decoration: none; }
.me a:hover { color: #fff; }
.me .logout { display: none; }
.bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--paper); border-top: 1px solid var(--line); padding: .3rem .25rem calc(.3rem + env(safe-area-inset-bottom, 0px));
}
.bottomnav a { display: flex; flex-direction: column; align-items: center; gap: .1rem; text-decoration: none; color: var(--steel); font-size: .7rem; padding: .3rem 0; }
.bottomnav a:only-child { grid-column: span 5; }
.bottomnav .bn-main { color: var(--ink); font-weight: 700; }
.bottomnav .bn-main .ic { background: var(--safety); color: var(--ink); width: 40px; height: 40px; padding: 9px; border-radius: 50%; margin-top: -18px; border: 3px solid var(--paper); box-sizing: content-box; }
.foot { text-align: center; color: var(--steel); font-size: .75rem; padding: 1rem 0 1.5rem; }

@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .topnav { display: flex; }
  .me { margin-left: 1rem; }
  .me .logout { display: inline; }
  .bottomnav { display: none; }
}

/* ---------- Encabezado de página ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem 1rem; margin: .5rem 0 1.25rem; }
.page-head h1 { margin: 0; }
.page-head .sub { color: var(--steel); margin: .25rem 0 0; }
.page-head .sub a { color: var(--steel); }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px;
  padding: .55rem 1rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper);
  color: var(--ink); font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { border-color: var(--steel); }
.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-primary:hover { background: #33403F; }
.btn-accent { background: var(--safety); border-color: var(--safety); color: var(--ink); }
.btn-ghost { background: transparent; }
.btn-danger { background: var(--ded); border-color: var(--ded); color: #fff; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link-danger { background: none; border: 0; padding: .25rem 0; color: var(--ded); font: inherit; font-size: .85rem; cursor: pointer; text-decoration: underline; }
.small-link { font-size: .85rem; color: var(--steel); }
.chip { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: .35rem .8rem; font: inherit; font-size: .88rem; cursor: pointer; min-height: 36px; }
.chip:hover { border-color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .75rem; }

/* ---------- Mensajes ---------- */
.flash { padding: .7rem .9rem; border-radius: var(--radius); margin: 0 0 .9rem; border-left: 4px solid; background: var(--paper); }
.flash-ok { border-color: var(--paid); }
.flash-error { border-color: var(--ded); }
.flash-warn { border-color: var(--safety); }
.callout { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; justify-content: space-between; background: var(--safety-soft); border: 1px solid var(--safety); padding: .9rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; }
.note { background: var(--bg); padding: .6rem .8rem; border-radius: var(--radius); }
.empty { background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.empty p { color: var(--steel); max-width: 52ch; margin: 0 auto 1rem; }
.tag { font-style: normal; font-size: .72rem; font-weight: 600; background: var(--bg); color: var(--steel); padding: .05rem .4rem; border-radius: 3px; vertical-align: middle; }
.tag-ret { background: var(--safety-soft); color: #6B5200; }

/* ---------- Libro mayor (resumen principal) ---------- */
.ledger { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 1rem; }
.ledger-main { background: var(--ink); color: #fff; padding: 1.1rem 1.2rem 1.2rem; position: relative; }
.ledger-main::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--hazard); }
.ledger-main .k { display: block; color: #C8D0D3; font-size: .9rem; }
.ledger-main .v { display: block; font-size: clamp(2.1rem, 8vw, 3.2rem); font-weight: 800; font-stretch: 75%; line-height: 1.05; margin: .15rem 0 .2rem; }
.ledger-main .k2 { color: #C8D0D3; font-size: .88rem; }
.ledger-side { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.ledger-side div { background: var(--paper); padding: .75rem 1rem; }
.ledger-side dt { font-size: .8rem; color: var(--steel); }
.ledger-side dd { margin: 0; font-weight: 700; font-size: 1.05rem; }
.ledger-side dd small { font-weight: 400; color: var(--steel); }
@media (min-width: 760px) {
  .ledger { grid-template-columns: 1.1fr 1.4fr; }
  .ledger-side div { display: flex; flex-direction: column; justify-content: center; }
}

/* ---------- Barra de obra ---------- */
.obra-bar { display: flex; height: 14px; background: repeating-linear-gradient(90deg, #EEF0EE 0 9px, #E3E6E3 9px 10px); border-radius: 3px; overflow: hidden; border: 1px solid var(--line); }
.obra-bar .seg { height: 100%; }
.seg-paid, .sw-paid { background: var(--paid); }
.seg-topay, .sw-topay { background: var(--topay); }
.seg-ded, .sw-ded { background: var(--ded); }
.seg-ret, .sw-ret { background: var(--hazard); }
.sw-none { background: #EEF0EE; border: 1px solid var(--line); }
.bar-legend { list-style: none; padding: 0; margin: .7rem 0 .2rem; display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; font-size: .85rem; color: var(--steel); }
.bar-legend b { color: var(--ink); font-weight: 650; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: .35rem; vertical-align: -1px; }
.bar-panel .obra-bar { height: 22px; }
.bar-panel .hint { margin: .4rem 0 0; }

/* ---------- Paneles y bloques ---------- */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1rem; }
.panel > h2:not(:first-child), .form h2:not(:first-child) { margin-top: 1.4rem; }
.block { margin: 1.6rem 0; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.block-head a { font-size: .9rem; color: var(--steel); }
.h-sec { margin-top: 0; }
.two-col { display: grid; gap: 1rem; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; align-items: start; } }
.totals { font-size: .92rem; color: var(--steel); }
.totals b { color: var(--ink); }

/* ---------- Listas ---------- */
.rows { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 1rem; text-decoration: none; border-bottom: 1px solid var(--line-soft); }
.row:last-child { border-bottom: 0; }
.row:hover { background: #F3F4F2; }
.row-main { display: flex; flex-direction: column; min-width: 0; }
.row-main b { font-weight: 650; }
.row-main small, .row-num small { color: var(--steel); }
.row-main small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-num { text-align: right; font-weight: 700; display: flex; flex-direction: column; flex: none; }
.row-num small { font-weight: 400; }
.row-num.small { font-weight: 500; font-size: .9rem; }
.row-edit { display: block; padding: 0 1rem .6rem; font-size: .8rem; color: var(--steel); border-bottom: 1px solid var(--line-soft); margin-top: -.4rem; }

.contract-list { display: grid; gap: .6rem; }
@media (min-width: 760px) { .contract-list { grid-template-columns: repeat(2, 1fr); } }
.contract-item { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: .85rem 1rem; text-decoration: none; }
.contract-item:hover { border-color: var(--steel); }
.ci-top { display: flex; justify-content: space-between; gap: .75rem; margin-bottom: .55rem; }
.ci-top > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.ci-top small { color: var(--steel); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-pct { font-weight: 800; font-stretch: 75%; font-size: 1.45rem; line-height: 1; }
.ci-foot { display: flex; justify-content: space-between; gap: .5rem; font-size: .83rem; color: var(--steel); margin-top: .45rem; }

.menu-list { display: grid; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.menu-list a { display: flex; gap: .9rem; align-items: center; padding: .95rem 1rem; text-decoration: none; border-bottom: 1px solid var(--line-soft); }
.menu-list a:last-child { border-bottom: 0; }
.menu-list span { display: flex; flex-direction: column; }
.menu-list small { color: var(--steel); }

.plain { list-style: none; padding: 0; margin: 0 0 .75rem; }
.plain li { padding: .25rem 0; display: flex; justify-content: space-between; gap: 1rem; }
.log li { display: block; font-size: .88rem; color: var(--steel); }
.steps { padding-left: 1.2rem; margin: .5rem 0 1rem; }
.steps li { margin-bottom: .45rem; }

.kv { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0 0 1rem; font-size: .95rem; }
.kv dt { color: var(--steel); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.mono-num { font-weight: 700; letter-spacing: .03em; }

/* ---------- Tablas ---------- */
.table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 820px; }
.tbl th { text-align: left; font-weight: 600; color: var(--steel); font-size: .8rem; padding: .6rem .7rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: .6rem .7rem; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; }
.tbl tr.annulled td { color: var(--steel); text-decoration: line-through; }
.tbl tr.annulled td:last-child { text-decoration: none; }
.st { display: inline-block; font-size: .78rem; font-weight: 650; padding: .1rem .5rem; border-radius: 3px; }
.st-pendiente { background: #E3ECF3; color: var(--topay); }
.st-pagada { background: #E1EEE6; color: var(--paid); }
.st-anulada { background: #F5E2DF; color: var(--ded); }

/* ---------- Formularios ---------- */
.form .field, .field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .9rem; min-width: 0; }
.label { font-size: .88rem; font-weight: 600; }
.hint { color: var(--steel); font-size: .85rem; }
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem .7rem; min-height: 44px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--safety); outline-offset: 0; border-color: var(--ink); }
input[type=file] { font: inherit; font-size: .9rem; }
textarea { resize: vertical; }
.grid2, .grid3 { display: grid; gap: 0 1rem; }
@media (min-width: 640px) {
  .grid2 { grid-template-columns: 1fr 1fr; }
  .grid3 { grid-template-columns: 1fr 1fr 1fr; }
  .span2 { grid-column: span 2; }
}
.check { display: flex; gap: .6rem; align-items: flex-start; margin: .4rem 0 .9rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.form-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.filters input[type=search] { flex: 1 1 240px; width: auto; }
.filters select { width: auto; flex: 0 1 auto; }
.inline-form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .5rem 0; font-size: .9rem; }
.inline-form select { width: auto; }
.compact { margin-top: .75rem; }
.compact .field { margin-bottom: .6rem; }
.compact > input { margin-bottom: .6rem; }
.choice { border: 0; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.choice legend { font-size: .88rem; font-weight: 600; margin-bottom: .4rem; }
.choice label { display: flex; gap: .7rem; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; background: #fff; }
.choice label:has(input:checked) { border-color: var(--ink); box-shadow: inset 4px 0 0 var(--safety); }
.choice input { accent-color: var(--ink); margin-top: 4px; width: 18px; height: 18px; flex: none; }
.choice span { display: flex; flex-direction: column; }
.choice small { color: var(--steel); }

.upload-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.upload-actions .btn { min-height: 40px; font-size: .88rem; }
.upload-preview { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .3rem; }
.upload-preview:empty { display: none; }
.upload-preview .pv { width: 72px; height: 72px; border-radius: 4px; object-fit: cover; background: var(--bg); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: .7rem; color: var(--steel); text-align: center; overflow: hidden; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; margin: .5rem 0 1rem; }
.g-item { margin: 0; background: var(--bg); border-radius: 4px; overflow: hidden; }
.g-item img, .g-item video { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #000; }
.g-item figcaption { padding: .3rem .45rem; font-size: .78rem; color: var(--steel); display: flex; justify-content: space-between; gap: .4rem; align-items: center; }
.g-file { display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 4/3; text-decoration: none; font-size: .78rem; padding: .5rem; text-align: center; overflow-wrap: anywhere; }
.g-file span { font-weight: 800; font-size: 1.1rem; color: var(--ded); }

/* ---------- Formulario de cuenta de cobro ---------- */
.bf-grid { display: grid; gap: 1rem; }
@media (min-width: 960px) {
  .bf-grid { grid-template-columns: 1fr 360px; align-items: start; }
  .bf-summary { position: sticky; top: 76px; }
}
.pct-input { display: flex; align-items: center; gap: 1rem; }
.pct-input input[type=range] { flex: 1; accent-color: var(--ink); height: 32px; }
.pct-num { display: flex; align-items: baseline; gap: .2rem; }
.pct-num input { width: 6.5rem !important; font-size: 1.6rem !important; font-weight: 800; text-align: right; font-stretch: 80%; }
.pct-num span { font-size: 1.3rem; font-weight: 700; }
.ded-check { justify-content: space-between; border-bottom: 1px solid var(--line-soft); padding-bottom: .5rem; }
.ded-check span { flex: 1; }
.pay-now { border-top: 1px solid var(--line-soft); padding-top: .75rem; }

.receipt { background: var(--paper); border: 1px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.r-head { display: flex; justify-content: space-between; background: var(--ink); color: #fff; padding: .6rem 1rem; font-weight: 700; font-stretch: 85%; }
.receipt dl { margin: 0; padding: .4rem 1rem; }
.receipt dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px dashed var(--line); }
.receipt dt { color: var(--steel); }
.receipt dd { margin: 0; font-weight: 650; }
.receipt .ret dd { color: #6B5200; }
.receipt .ded dd { color: var(--ded); }
.receipt .net { border-bottom: 0; padding-top: .7rem; }
.receipt .net dt { color: var(--ink); font-weight: 700; }
.receipt .net dd { font-size: 1.9rem; font-weight: 800; font-stretch: 75%; line-height: 1; }
.r-after { background: var(--bg); padding: .7rem 1rem; font-size: .88rem; display: grid; gap: .3rem; }
.r-after div { display: flex; justify-content: space-between; gap: 1rem; }
.r-after span { color: var(--steel); }
.warn-msg { margin: .75rem 1rem 0; color: var(--ded); font-size: .9rem; font-weight: 600; }
.receipt > .btn { margin: 1rem; width: calc(100% - 2rem); min-height: 52px; font-size: 1.05rem; }

/* ---------- Documento (vista de la cuenta de cobro) ---------- */
.doc-sheet { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; border-top: 6px solid transparent; border-image: var(--hazard) 6 0 0 0 / 6px 0 0 0; }
.doc-sheet header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: .8rem; }
.doc-type { color: var(--steel); font-size: .88rem; }
.doc-sheet h2 { font-size: 1.6rem; margin: 0; }
.calc { width: 100%; border-collapse: collapse; margin: .5rem 0; }
.calc th { text-align: left; font-weight: 400; color: var(--steel); padding: .5rem 0; border-bottom: 1px solid var(--line-soft); }
.calc td { text-align: right; padding: .5rem 0; border-bottom: 1px solid var(--line-soft); font-weight: 600; white-space: nowrap; }
.calc .ret td { color: #6B5200; }
.calc .ded td { color: var(--ded); }
.calc .net th { color: var(--ink); font-weight: 700; }
.calc .net td { font-size: 1.6rem; font-weight: 800; font-stretch: 75%; border-bottom: 0; background: linear-gradient(transparent 55%, var(--safety-soft) 55%); }
.letters { font-size: .82rem; color: var(--steel); }
.doc-foot { margin-top: 1rem; padding-top: .7rem; border-top: 1px solid var(--line); font-size: .88rem; color: var(--steel); }
.doc-foot b { color: var(--ink); }
.pay-state { display: flex; justify-content: space-between; gap: 1rem; background: var(--bg); padding: .6rem .8rem; border-radius: var(--radius); }
.payment { border-bottom: 1px solid var(--line-soft); padding: .7rem 0; }
.payment header { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.payment header span { color: var(--steel); font-size: .88rem; }
.deduction { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--ded); border-radius: var(--radius); padding: .8rem 1rem; margin-bottom: .6rem; }
.deduction header { display: flex; justify-content: space-between; gap: 1rem; }
.deduction header div { display: flex; flex-direction: column; }
.deduction header small { color: var(--steel); }
.deduction header .neg { font-weight: 700; white-space: nowrap; }
.danger-zone summary, .howto summary, .mail-box summary { cursor: pointer; color: var(--steel); font-size: .9rem; padding: .4rem 0; }
.danger-zone { margin-top: .5rem; }
.update-entry { border-bottom: 1px solid var(--line-soft); padding: .5rem 0; }
.update-entry small { display: block; color: var(--steel); }
.roles { margin-top: 1rem; }

/* ---------- Entrada e instalador ---------- */
.login { max-width: 420px; margin: 6vh auto 0; }
.login-brand { text-align: center; margin-bottom: 1.25rem; }
.login-brand h1 { margin: .75rem 0 .2rem; }
.login-brand .sub { color: var(--steel); }
.apk-link { display: block; text-align: center; margin-top: 1rem; font-size: .9rem; }
.install-head { display: flex; gap: 1rem; align-items: center; margin: 1.5rem 0 1rem; }
.install-head h1 { margin: 0; }
.install-head .brand-mark { width: 48px; height: 48px; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: .4rem 0; border-bottom: 1px solid var(--line-soft); font-size: .92rem; }
.checks b { display: inline-block; min-width: 4.5rem; }
.checks .ok b { color: var(--paid); }
.checks .bad b { color: var(--ded); }
.checks .warn b { color: #8A6A00; }
.checks small { color: var(--steel); display: block; }

@media (prefers-reduced-motion: no-preference) {
  .flash { animation: drop .25s ease-out; }
  @keyframes drop { from { transform: translateY(-6px); opacity: 0; } }
}
@media print {
  .topbar, .bottomnav, .foot, .actions, form, details { display: none !important; }
  body { background: #fff; }
}
