:root {
  --bg: #F6F5F3;
  --surface: #FFFFFF;
  --fg: #2B2C2E;
  --muted: #6B6C70;
  --line: #E4E2DE;
  --red: #D03025;
  --red-ink: #FFFFFF;
  --red-soft: #FBE9E7;
  --graphite: #58595B;
  --ok: #2E7D4F;
  --ok-soft: #E3F1E8;
  --warn: #A86A00;
  --warn-soft: #FBF0D9;
  --font-display: "Nunito", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;
  --radius: 16px;
  --pill: 999px;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 15px; line-height: 1.5; padding-inline: 16px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.2; margin: 0; text-wrap: balance; }
h1 { font-size: 26px; } h2 { font-size: 20px; } h3 { font-size: 16px; }
p { margin: 0; }
.wrap { max-width: 720px; margin-inline: auto; padding-block: 20px 56px; display: flex; flex-direction: column; gap: 20px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand { font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: .01em; }
.brand b { color: var(--red); }
.parties { font-size: 12px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.who { font-size: 13px; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.link { background: none; border: 0; color: var(--red); font: inherit; font-weight: 700; cursor: pointer; padding: 4px 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { border: 1px solid var(--line); background: var(--surface); color: var(--fg); border-radius: var(--pill); padding: 9px 18px; font: 700 14px var(--font-body); cursor: pointer; }
.tab[aria-selected="true"] { background: var(--graphite); color: var(--bg); border-color: var(--graphite); }
.tab .n { margin-left: 6px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tab[aria-selected="true"] .n { color: inherit; opacity: .8; }
.btn { border: 0; background: var(--red); color: var(--red-ink); border-radius: var(--pill); padding: 12px 24px; font: 800 15px var(--font-display); cursor: pointer; }
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn.small { padding: 7px 14px; font-size: 13px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
label.f { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 13px; color: var(--graphite); min-width: 0; }
input[type=text], input[type=email], input[type=tel], select, textarea {
  font: 400 15px var(--font-body); color: var(--fg); background: var(--bg); border: 1px solid var(--line);
  border-radius: calc(var(--radius) * .75); padding: 11px 13px; width: 100%; min-width: 0;
}
textarea { resize: vertical; min-height: 72px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--red); }
.hint { font-size: 13px; color: var(--muted); }
.docs { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.doc { display: flex; align-items: center; justify-content: space-between; gap: 10px 12px; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.doc:first-child { border-top: 0; }
.doc .name { font-weight: 600; flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }
.doc .tag { font-size: 12px; color: var(--muted); display: block; font-weight: 400; }
.pill { font-size: 12px; font-weight: 800; padding: 4px 11px; border-radius: var(--pill); white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.pend { background: var(--warn-soft); color: var(--warn); }
.pill.neutral { background: var(--bg); color: var(--graphite); border: 1px solid var(--line); }
.pill.red { background: var(--red-soft); color: var(--red); }
.file { position: relative; display: inline-block; }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file:focus-within .btn { outline: 3px solid var(--red); outline-offset: 2px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.demand { display: flex; flex-direction: column; gap: 12px; cursor: pointer; text-align: left; font: inherit; color: inherit; width: 100%; }
.demand:hover { border-color: var(--graphite); }
.meta { font-size: 13px; color: var(--muted); display: flex; gap: 6px 16px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.bar { display: flex; gap: 4px; }
.bar i { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.bar i.done { background: var(--graphite); }
.bar i.now { background: var(--red); }
.stagetxt { font-size: 13px; font-weight: 700; color: var(--graphite); margin-top: 6px; }
.stagetxt b { color: var(--red); }
.badge-ex { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border: 1px dashed var(--muted); border-radius: var(--pill); padding: 2px 8px; }
.notice { background: var(--warn-soft); color: var(--fg); border-radius: calc(var(--radius) * .75); padding: 12px 14px; font-size: 13px; }
.proto { font-size: 12px; color: var(--muted); text-align: center; }
.empty { text-align: center; padding: 28px 8px; color: var(--muted); }
.ok-box { background: var(--ok-soft); border-radius: calc(var(--radius) * .75); padding: 14px 16px; font-weight: 700; display: flex; flex-direction: column; gap: 4px; }
.ok-box span { font-weight: 400; font-size: 13px; }
.party { border: 1px solid var(--line); border-radius: calc(var(--radius) * .75); padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.sub { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ownerhead { display: flex; align-items: baseline; gap: 8px 12px; flex-wrap: wrap; }

.adm { display:grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap:10px; align-items:end; }
.msg { font-size:13px; color: var(--red); }
.progress { font-size:13px; color: var(--muted); }
