/* APC Deleanu 3 — shared styles. Sizes are in rem so the reader's own text-size
   setting is respected; html[data-text="mare"] (the A+ button) enlarges everything. */
:root {
  --paper: #f5f7f6;
  --card: #ffffff;
  --ink: #1d2733;
  --muted: #4a545e;        /* 7.2:1 on paper */
  --concrete: #c9d0d6;
  --line: #dde3e7;
  --line-strong: #7d8893;  /* field and control borders, 3:1 on paper */
  --green: #286e50;        /* buttons, 6.1:1 with white text */
  --green-dark: #1f5a40;   /* links, hover */
  --on-green: #ffffff;
  --green-tint: #e7f2ec;
  --pin: #f2c94c;
  --pin-tint: #fff7de;
  --danger: #a3261e;
  --bar-accent: #286e50;
  --bar-muted: #8a949e;
  --radius: 8px;
  --radius-lg: 12px;
  /* fonts already installed on the reader's device (no web fonts: no request leaves the site);
     all of them have ș, ț with comma below and Cyrillic */
  --serif: "PT Serif", "Noto Serif", Georgia, "Times New Roman", serif;
  --sans: "PT Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #151b21; --card: #1d252d; --ink: #e8edf1; --muted: #b6c0ca;
    --concrete: #3a4550; --line: #2c3640; --line-strong: #6f7d8a;
    --green: #5bb58b; --green-dark: #7dcaa4; --on-green: #0f1f17; --green-tint: #1f3a2e;
    --pin-tint: #2c2715; --danger: #ff8a80; --bar-accent: #5bb58b; --bar-muted: #6f7a85;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
/* texts with a date: data-until="…" disappears at that moment, data-from="…" appears then (site.js) */
.expired { display: none !important; }
::placeholder { color: #66707a; opacity: 1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) ::placeholder { color: #98a3ae; } }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; font-size: 100%; scroll-behavior: smooth; }
html[data-text="mare"] { font-size: 118.75%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.55; }
[id] { scroll-margin-top: 1rem; }
a { color: var(--green-dark); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--pin); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; }
h1 { font-size: clamp(2rem, 6vw, 3rem); margin: .3rem 0 .6rem; letter-spacing: -.01em; }
h2 { font-size: 1.55rem; margin: 0 0 .7rem; }
h3 { font-size: 1.2rem; margin: 1.2rem 0 .4rem; }
p { max-width: 68ch; }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 1rem; }
.nw { white-space: nowrap; }
.more { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -.22em; }

/* show one language at a time (the official document text is never hidden) */
html[lang="ro"] [lang="ru"]:not(html),
html[lang="ru"] [lang="ro"]:not(html):not(.doc-body) { display: none !important; }

/* top bar */
.topbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem .75rem; padding: .6rem 0; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; color: var(--ink); text-decoration: none; padding: .55rem 0; }
.tools { display: flex; align-items: center; gap: .5rem; }
.tbtn { min-width: 2.75rem; height: 2.75rem; padding: 0 .7rem; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--card); color: var(--ink); font: 700 1rem var(--sans); cursor: pointer; }
.tbtn[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.lang { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--card); }
.lang button:first-child { border-radius: 999px 0 0 999px; }
.lang button:last-child { border-radius: 0 999px 999px 0; }
.lang button { min-width: 2.75rem; height: 2.75rem; padding: 0 .75rem; border: 0; background: transparent; color: var(--ink); font: 700 1rem var(--sans); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; padding: .65rem 1.25rem; border: 2px solid var(--green); border-radius: 999px; background: var(--green); color: var(--on-green); font: 700 1rem/1.2 var(--sans); text-decoration: none; text-align: center; cursor: pointer; }
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn.ghost { background: var(--card); color: var(--green-dark); border-color: var(--green); }
.btn.ghost:hover { background: var(--green-tint); }
.btn.block { display: flex; width: 100%; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1rem; }
.actions a:not(.btn) { display: inline-flex; align-items: center; min-height: 2.75rem; }
@media (max-width: 640px) { .actions .btn, .card .btn { width: 100%; } }
.linkbtn { background: none; border: 0; padding: .5rem 0; min-height: 2.75rem; color: var(--green-dark); font: inherit; text-decoration: underline; text-underline-offset: .15em; cursor: pointer; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.1rem; }
section { padding: 2rem 0; border-top: 1px solid var(--line); }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
@media (max-width: 700px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }

/* hero: the building */
.hero { padding: .3rem 0 1.5rem; }
.hero .addr { color: var(--muted); margin: 0 0 1.1rem; }
.facade { width: 100%; height: auto; display: block; }
.facade .wall { fill: var(--concrete); }
.facade .mine { fill: var(--green); opacity: .35; }
.facade .win { fill: var(--paper); }
.facade .door { fill: var(--green); }
.facade .ground { stroke: var(--ink); stroke-width: 2; }
.scari { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); list-style: none; margin: .4rem 0 0; padding: 0; text-align: center; }
.scari li { font-weight: 700; color: var(--muted); padding: .15rem 0; border-radius: 999px; }
.scari li.mine { background: var(--green); color: var(--on-green); }
.scari .w { font-weight: 400; }
@media (max-width: 520px) { .scari .w { display: none; } }

/* vote notice */
.notice { background: var(--pin-tint); border: 1px solid var(--pin); border-left-width: 6px; border-radius: var(--radius-lg); padding: 1.1rem 1.2rem 1.2rem; margin: 0 0 1.5rem; }
.notice h2 { font-size: 1.35rem; margin: .6rem 0 .5rem; }
.notice p { margin: .4rem 0 0; }
.notice .stakes { font-weight: 700; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .8rem; border-radius: 1.25rem; background: var(--card); border: 1px solid var(--pin); font-weight: 700; }
.notice .after, .notice.is-over .before { display: none; }
.notice.is-over .after { display: block; }
.notice.is-over .actions.after { display: flex; }
.meter-wrap { margin-top: 1rem; }
.meter { position: relative; height: .75rem; background: var(--card); border: 1px solid var(--line-strong); border-radius: 999px; margin: .5rem 0 .3rem; }
.meter .fill { position: absolute; inset: 0 auto 0 0; background: var(--green); border-radius: 999px; }
.meter .mark { position: absolute; top: -.35rem; bottom: -.35rem; width: 3px; background: var(--ink); }

/* task tiles */
.tiles h2 { font-size: 1.3rem; }
.tiles ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; list-style: none; margin: 0; padding: 0; }
@media (max-width: 480px) { .tiles ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 760px) { .tiles ul { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; min-height: 5.5rem; height: 100%; padding: .75rem .4rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--ink); text-decoration: none; font-weight: 700; text-align: center; line-height: 1.25; overflow-wrap: anywhere; hyphens: auto; }
.tile .ic { width: 1.9rem; height: 1.9rem; color: var(--green); }
.tile:hover { border-color: var(--green); background: var(--green-tint); }
.tiles { margin-bottom: 1.5rem; }

/* my apartment */
.field label { display: block; font-weight: 700; margin-bottom: .35rem; }
.field input, .field select { font: 700 1.35rem var(--sans); height: 3.25rem; width: 11ch; max-width: 100%; padding: .4rem .7rem; border: 2px solid var(--line-strong); border-radius: var(--radius); background: var(--paper); color: var(--ink); }
.hint { color: var(--muted); font-size: 1rem; margin: .4rem 0 0; }
.result { margin-top: .9rem; }
.result .who { font-weight: 700; margin: 0; }
.result .big { font-family: var(--serif); font-weight: 700; font-size: 2.2rem; line-height: 1.15; margin: .3rem 0 0; }
.result .big small { font-family: var(--sans); font-weight: 400; font-size: 1.05rem; color: var(--muted); }
.result .split { color: var(--muted); margin: .25rem 0 0; }
.result .err { color: var(--danger); font-weight: 700; margin: 0; }
.result .plus { font-weight: 700; margin: .35rem 0 0; }
.result .bill { list-style: none; margin: .6rem 0 0; padding: .5rem 0 0; border-top: 1px dashed var(--line-strong); display: grid; gap: .45rem; }
.result .bill li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem; align-items: baseline; }
.result .bill .grp { display: block; color: var(--muted); font-size: .95rem; }
.result .bill .val { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.field-next { margin-top: 1rem; }
.ap-pick { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .6rem; }
.ap-pick[hidden] { display: none; }
.ap-pick .q { font-weight: 700; margin-right: .2rem; }
.ap-pick button { min-width: 3.5rem; min-height: 2.75rem; padding: 0 1rem; border: 2px solid var(--green); border-radius: 999px; background: var(--card); color: var(--green-dark); font: 700 1.05rem var(--sans); cursor: pointer; }
.ap-pick button[aria-pressed="true"] { background: var(--green); color: var(--on-green); }
details.alt { margin-top: 1rem; border-top: 1px dashed var(--line-strong); padding-top: .5rem; }
details.alt summary { cursor: pointer; min-height: 2.75rem; display: flex; align-items: center; color: var(--green-dark); text-decoration: underline; text-underline-offset: .15em; }
details.alt .field { margin-top: .5rem; }

/* where the money goes: one hue for the repair fund, grey for the rest; every value labelled */
.money h3 { margin-top: 0; }
.money .sub { color: var(--muted); margin: 0 0 .8rem; }
.money ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.money li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .15rem .75rem; align-items: baseline; }
.money .lbl { min-width: 0; }
.money .val { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.money .bar { grid-column: 1 / -1; height: .75rem; border-radius: 0 4px 4px 0; background: var(--bar-muted); min-width: 3px; }
.money li.key .bar { background: var(--bar-accent); }
.money li.key .lbl { font-weight: 700; }

/* Viber */
.tip { background: var(--green-tint); border-radius: var(--radius); padding: .7rem .9rem; margin: .8rem 0 1rem; max-width: none; }
.viber { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: start; }
.viber h3 { margin: 0 0 .25rem; }
.viber p { margin: 0 0 .8rem; color: var(--muted); }
.viber .qr { width: 112px; height: 112px; padding: 6px; background: #fff; border-radius: 6px; border: 1px solid var(--line); }
.viber .qr img, .viber .qr canvas { width: 98px !important; height: 98px !important; display: block; }
.qr-toggle { display: none; }
@media (max-width: 640px) {
  .viber { grid-template-columns: minmax(0, 1fr); }
  .viber .qr { display: none; order: 2; }
  .viber.show-qr .qr { display: block; width: 13rem; height: 13rem; margin: .2rem auto 0; }
  .viber.show-qr .qr img { width: 100% !important; height: 100% !important; }
  .qr-toggle { display: inline-flex; }
}
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: 1rem; }
.share .status { color: var(--muted); margin: 0; }

/* documents list */
.docs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; }
.doc-link { display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; min-height: 3.5rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--ink); text-decoration: none; }
.doc-link:hover { border-color: var(--green); }
.doc-link > .ic { color: var(--green); width: 1.6rem; height: 1.6rem; }
.doc-link .txt { flex: 1; min-width: 0; }
.doc-link .t { display: block; font-weight: 700; font-size: 1.1rem; color: var(--green-dark); text-decoration: underline; text-underline-offset: .15em; }
.doc-link .d { display: block; color: var(--muted); }
.doc-link .go { color: var(--muted); }

/* payments and scam warning */
.paylist { margin: .3rem 0 0; padding-left: 1.2rem; max-width: 68ch; }
.paylist li { margin: .45rem 0; }
.warn { display: flex; gap: .8rem; align-items: flex-start; background: var(--pin-tint); border: 1px solid var(--pin); border-radius: var(--radius-lg); padding: 1rem; margin-top: 1rem; }
.warn .ic { color: var(--danger); width: 1.6rem; height: 1.6rem; margin-top: .1rem; }
.warn p { margin: .2rem 0 0; }

/* emergencies */
.calls { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.call { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) auto; grid-template-areas: "dot txt num"; align-items: center; gap: .15rem .8rem; padding: .7rem 1rem; min-height: 3.75rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--ink); text-decoration: none; }
.call:hover { border-color: var(--green); }
.call .dot { grid-area: dot; display: flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--green-tint); color: var(--green-dark); }
.call .dot .ic { width: 1.5rem; height: 1.5rem; }
.call .txt { grid-area: txt; }
.call .what { display: block; font-weight: 700; }
.call .who { display: block; color: var(--muted); font-size: 1rem; }
.call .num { grid-area: num; font-weight: 700; font-size: 1.25rem; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--green-dark); }
@media (max-width: 480px) {
  .call { grid-template-columns: 2.75rem minmax(0, 1fr); grid-template-areas: "dot num" "dot txt"; }
  .call .dot { align-self: start; }
  .call .num { font-size: 1.4rem; line-height: 1.2; }
}

/* who runs the association: the General Assembly elects the three bodies grouped below it */
.org { display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; }
.org .box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: .9rem 1rem; }
.org .box h3 { margin: 0 0 .2rem; font-size: 1.1rem; }
.org .box p { margin: 0; color: var(--muted); }
.org .box.top { border-color: var(--green); background: var(--green-tint); }
.org .arrow { display: flex; align-items: center; justify-content: center; gap: .4rem; color: var(--muted); font-weight: 700; text-align: center; }
.org .elected { display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; padding: .6rem; border: 2px dashed var(--line-strong); border-radius: var(--radius-lg); }
@media (min-width: 760px) {
  .org .elected { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
  .org .arrow.side { flex-direction: column; font-size: 1rem; }
  .org .arrow.side .ic { transform: rotate(-90deg); }
}

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.25rem; padding: .6rem 0; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .15s; color: var(--green); }
.faq details[open] summary .ic { transform: rotate(90deg); }
.faq details > div { padding: 0 0 1rem; }
.faq details p { margin: 0 0 .5rem; }

footer { padding: 1.75rem 0 5rem; color: var(--muted); font-size: 1rem; border-top: 1px solid var(--line); }
footer p { margin: .3rem 0; }
footer a { display: inline-flex; align-items: center; min-height: 2.75rem; }

/* back to top */
.to-top { position: fixed; right: 1rem; bottom: 1rem; z-index: 10; display: inline-flex; align-items: center; gap: .35rem; min-height: 3rem; padding: 0 1.1rem; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 700; text-decoration: none; opacity: 0; visibility: hidden; transform: translateY(.5rem); transition: opacity .2s, transform .2s, visibility .2s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }

/* document pages */
.crumbs { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem; margin: .2rem 0 .4rem; }
.crumbs a { display: inline-flex; align-items: center; gap: .35rem; min-height: 2.75rem; }
.doc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.4rem 1.3rem; margin-bottom: 2.5rem; overflow-wrap: break-word; }
.doc h2 { margin-top: 2rem; }
.doc h2:first-child { margin-top: 0; }
.doc table { border-collapse: collapse; width: 100%; font-size: 1rem; display: block; overflow-x: auto; }
.doc th, .doc td { border: 1px solid var(--line); padding: .45rem .5rem; text-align: left; vertical-align: top; overflow-wrap: normal; }
.doc td[style*="right"], .doc th[style*="right"] { white-space: nowrap; font-variant-numeric: tabular-nums; }
/* too wide for the screen: each row becomes a small card with labelled values (set by site.js) */
.doc table.stack { overflow: visible; }
.doc table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.doc table.stack tbody, .doc table.stack tr, .doc table.stack td { display: block; }
.doc table.stack tr { border: 1px solid var(--line); border-radius: var(--radius); padding: .55rem .8rem; margin: 0 0 .6rem; background: var(--card); }
.doc table.stack td { display: flex; justify-content: space-between; gap: 1rem; border: 0; padding: .15rem 0; }
.doc table.stack td:first-child { display: block; padding-bottom: .3rem; font-weight: 700; }
.doc table.stack td[data-label]::before { content: attr(data-label); color: var(--muted); font-weight: 400; white-space: normal; }
.doc ol > li > ul { list-style: none; padding-left: .9rem; }
.doc blockquote { margin: 0 0 1rem; padding: .7rem 1rem; border-left: 5px solid var(--pin); background: var(--paper); }
.doc blockquote p { margin: 0; }
.summary { border: 1px solid var(--green); background: var(--green-tint); border-radius: var(--radius-lg); padding: 1rem 1.1rem; margin: 0 0 1.25rem; }
.summary h3 { margin: 0 0 .5rem; }
.summary ul { margin: .3rem 0 0; padding-left: 1.2rem; }
.summary li { margin: .35rem 0; }
.summary p { margin: .4rem 0; }
.facts { background: var(--pin-tint); border: 1px solid var(--pin); border-radius: var(--radius-lg); padding: .9rem 1.1rem; margin: 0 0 1.25rem; }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.facts li:first-child { font-size: 1.15rem; }
.regbox { font-size: 1rem; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: .7rem .9rem; margin: 0 0 1.25rem; }
.regbox p { margin: 0; }
.doc-cover { text-align: center; color: var(--muted); margin: 0 0 1.5rem; }
.doc-cover p { margin: .2rem auto; }
.doc-cover strong { color: var(--ink); font-family: var(--serif); font-size: 1.2rem; }
.toc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: .9rem 1.1rem; margin: 0 0 1.5rem; }
.toc > p { margin: 0 0 .3rem; font-weight: 700; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0; break-inside: avoid; }
.toc a { display: block; padding: .65rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .toc ul { columns: 2; column-gap: 2rem; } }
.doc .money { margin: 1.5rem 0; }
@media (max-width: 640px) {
  .doc { background: transparent; border: 0; padding: 0; }
  .doc th, .doc td { padding: .4rem .35rem; }
}

/* repairs calculator */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.1rem; margin-bottom: 1rem; }
.panel h2 { font-size: 1.35rem; }
.works { list-style: none; margin: 0; padding: 0; }
.works li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.works li:last-child { border-bottom: 0; }
.works .scope { display: block; color: var(--muted); font-size: 1rem; }
.works .sum { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.works li.total { border-top: 2px solid var(--ink); border-bottom: 0; font-weight: 700; }
details.panel > summary { cursor: pointer; font-weight: 700; font-family: var(--serif); font-size: 1.2rem; min-height: 2.75rem; display: flex; align-items: center; gap: .5rem; list-style: none; }
details.panel > summary::-webkit-details-marker { display: none; }
details.panel > summary .ic { color: var(--green); transition: transform .15s; }
details.panel[open] > summary .ic { transform: rotate(90deg); }
details.panel[open] > summary { margin-bottom: .6rem; }
.work { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: .8rem; margin-bottom: .7rem; display: grid; grid-template-columns: minmax(0, 1fr) 9rem 9rem; gap: .6rem .8rem; align-items: end; }
.work label, .row label { display: block; font-weight: 700; font-size: 1rem; margin-bottom: .25rem; }
.work input[type=text], .work input[type=number], .work select, .row input { width: 100%; font: 1rem var(--sans); min-height: 2.75rem; padding: .4rem .6rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--paper); color: var(--ink); }
.work input[type=number], .row input[type=number] { text-align: right; }
.work .opts { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.check { display: inline-flex; align-items: center; gap: .6rem; min-height: 2.75rem; font-weight: 700; cursor: pointer; }
.check input { width: 1.5rem; height: 1.5rem; accent-color: var(--green); }
.del { display: inline-flex; align-items: center; gap: .35rem; min-height: 2.75rem; padding: 0 .9rem; border: 1px solid var(--danger); border-radius: 999px; background: transparent; color: var(--danger); font: 700 1rem var(--sans); cursor: pointer; }
@media (max-width: 640px) { .work { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .work .name { grid-column: 1 / -1; } }
.row { display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: end; margin-top: 1rem; }
.row > div { flex: 1 1 12rem; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin-top: 1rem; }
.stats div { background: var(--paper); border-radius: var(--radius); padding: .7rem .8rem; }
.stats .k { display: block; color: var(--muted); font-size: 1rem; }
.stats .v { display: block; font-weight: 700; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .stats { grid-template-columns: minmax(0, 1fr); } }
.tbl { width: 100%; border-collapse: collapse; font-size: 1rem; }
.tbl th, .tbl td { padding: .5rem .45rem; border-bottom: 1px solid var(--line); text-align: left; }
.tbl th { position: sticky; top: 0; background: var(--card); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl-wrap { max-height: 70vh; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.tbl tr.mine td { background: var(--green-tint); font-weight: 700; }

/* suggestions page */
.msg label { display: block; font-weight: 700; margin-bottom: .35rem; }
.msg textarea { display: block; width: 100%; min-height: 11rem; padding: .6rem .7rem; border: 2px solid var(--line-strong); border-radius: var(--radius); background: var(--paper); color: var(--ink); font: 1.0625rem/1.5 var(--sans); resize: vertical; }
.msg-under { display: flex; justify-content: space-between; align-items: baseline; gap: .3rem 1rem; flex-wrap: wrap; }
.msg-under .count { font-variant-numeric: tabular-nums; white-space: nowrap; }
.msg .trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.msg button[disabled] { opacity: .6; cursor: wait; }
#msg-status p { margin: .8rem 0 0; }
#msg-status .err { color: var(--danger); font-weight: 700; }
#msg-status .err .note { display: block; margin-top: .3rem; color: var(--muted); font-weight: 400; }
#msg-status .wait { color: var(--muted); }
.panel.sent { border-color: var(--green); background: var(--green-tint); }
.panel.sent p { margin: 0 0 .6rem; }
.msg-info { margin-bottom: 2rem; }

/* print */
@media print {
  :root { --paper: #fff; --card: #fff; --ink: #000; --muted: #333; --line: #bbb; --line-strong: #999; --green: #000; --green-dark: #000; --green-tint: #fff; --pin-tint: #fff; }
  body { font-size: 11pt; }
  .tools, .tiles, .to-top, .no-print, .actions, .qr-toggle, .share, .crumbs, details.alt { display: none !important; }
  section, .card, .notice, .summary, .facts, .toc, .panel { break-inside: avoid; }
  h2, h3 { break-after: avoid; }
  .doc { border: 0; padding: 0; }
  .viber .qr { display: block !important; }
  a { color: #000; }
  .call .num { color: #000; }
  /* keep the bars and the building drawing even when "background graphics" is off */
  .money .bar, .meter, .meter .fill, .facade, .scari li.mine, .doc blockquote { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .money .bar { background: #777; }
  .money li.key .bar { background: #111; }
  .doc table.stack tr { break-inside: avoid; }
}

/* very large system text sizes: long words and addresses wrap instead of pushing the page sideways */
.btn, .warn a, .doc-link .t, #dues-out p, #ap-info, .call .who { overflow-wrap: anywhere; }
