:root { --ink: #16211b; --muted: #5d6b63; --line: #dfe5e1; --bg: #f5f7f6; --card: #fff; --brand: #12703a; --brand-ink: #fff; --bad: #a4262c; --bad-bg: #fdecec; --ok-bg: #e7f4ec; --warn-bg: #fff5d9; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--brand); }
h1 { font-size: 1.5rem; line-height: 1.25; margin: 0 0 .25rem; }
h2 { font-size: 1.1rem; margin: 0 0 .75rem; }
.muted { color: var(--muted); }
.shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--card); border-right: 1px solid var(--line); padding: 1.25rem 1rem; display: flex; flex-direction: column; gap: 1rem; }
.brand { font-weight: 700; font-size: 1.15rem; text-decoration: none; color: var(--ink); }
.brand small { display: block; font-weight: 400; font-size: .85rem; color: var(--muted); overflow-wrap: anywhere; }
.side nav { display: grid; gap: .15rem; }
.side nav a { padding: .55rem .7rem; border-radius: 8px; text-decoration: none; color: var(--ink); }
.side nav a:hover { background: var(--bg); }
.side nav a[aria-current] { background: var(--ok-bg); color: var(--brand); font-weight: 600; }
.side form { margin-top: auto; }
main { padding: 2rem; max-width: 1080px; width: 100%; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1.25rem; margin-bottom: 1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.grid .card { margin: 0; }
.btn { display: inline-block; border: 1px solid var(--brand); background: var(--brand); color: var(--brand-ink); border-radius: 8px; padding: .6rem 1.1rem; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; min-height: 44px; }
.btn.alt { background: transparent; color: var(--brand); }
.btn.plain { border-color: var(--line); background: transparent; color: var(--ink); font-weight: 400; }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #7cc79a; outline-offset: 2px; }
.row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.row.between { justify-content: space-between; }
.note { border-radius: 10px; padding: .8rem 1rem; margin-bottom: 1rem; background: var(--ok-bg); }
.note.bad { background: var(--bad-bg); color: var(--bad); }
.note.warn { background: var(--warn-bg); }
.bar { background: #1f2a5a; color: #fff; padding: .6rem 1rem; display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: center; }
.bar button { background: #fff; color: #1f2a5a; border: 0; border-radius: 6px; padding: .4rem .8rem; font: inherit; cursor: pointer; }
.field { margin-bottom: 1.1rem; }
.field > label, .field > .label { display: block; font-weight: 600; margin-bottom: .3rem; }
.field small { display: block; color: var(--muted); margin-top: .25rem; }
.field .err { color: var(--bad); font-weight: 600; margin-top: .25rem; }
input:not([type=checkbox]):not([type=color]):not([type=file]), select, textarea { width: 100%; font: inherit; color: inherit; padding: .6rem .7rem; border: 1px solid #b9c4bd; border-radius: 8px; background: #fff; }
input[type=color] { width: 72px; height: 44px; padding: 2px; border: 1px solid #b9c4bd; border-radius: 8px; background: #fff; }
textarea { min-height: 120px; resize: vertical; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .3rem .8rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; padding: .2rem 0; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--brand); }
.wizard { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.steps a { display: flex; gap: .6rem; padding: .4rem .6rem; border-radius: 8px; text-decoration: none; color: var(--ink); }
.steps a[aria-current] { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; }
.steps .mark { width: 1.2em; flex: none; color: var(--brand); text-align: center; }
progress { width: 100%; height: 10px; accent-color: var(--brand); }
table { width: 100%; border-collapse: collapse; }
td, th { text-align: left; padding: .55rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.scroll { overflow-x: auto; }
.logo { max-width: 220px; max-height: 90px; display: block; margin-bottom: .5rem; }
.center { max-width: 420px; margin: 8vh auto; padding: 0 1rem; }
@media (max-width: 820px) {
  .shell { display: block; }
  .side { border-right: 0; border-bottom: 1px solid var(--line); padding: .8rem 1rem; gap: .6rem; }
  .side nav { display: flex; overflow-x: auto; }
  .side nav a { white-space: nowrap; }
  .side form { margin: 0; }
  main { padding: 1.25rem 1rem; }
  .wizard { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .steps { display: flex; overflow-x: auto; }
  .steps a { white-space: nowrap; }
}
h3 { font-size: 1rem; margin: 0 0 .75rem; }
.linkcard { display: block; color: inherit; text-decoration: none; }
.linkcard:hover { border-color: var(--brand); }
.mailbody { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--bg); border-radius: 8px; padding: .8rem 1rem; }
.mail { border-left: 3px solid var(--line); padding: .3rem 0 .3rem .8rem; margin-bottom: .6rem; }
.mail.in { border-color: var(--brand); }
.mail summary { cursor: pointer; }
.err { color: var(--bad); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1rem; }
.num { font-size: 1.7rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 1rem; overflow-x: auto; }
.board .card { padding: .8rem; margin-bottom: .6rem; }
.badge { background: var(--bad); color: #fff; border-radius: 99px; padding: 0 .5em; font-size: .8rem; }
.bar.demo { background: #6b4a00; }
.bar.demo button { color: #6b4a00; }
