/* MissionAlly design tokens (Brand board v1) */
:root {
  --pine: #2F5D50; --pine-ink: #244a40; --pine-wash: #E3EEE9;
  --marigold: #E9A23B; --marigold-wash: #FBEBD0;
  --bark: #2B2420; --bark-soft: #5b504a;
  --paper: #FBF7F0; --linen: #F3ECE1; --card: #FFFFF9; --line: #E7DED2;
  --red: #A32A1D; --red-wash: #F8DEDA;
  --blue: #25507A; --blue-wash: #DCE9F5;
  --plum: #7A3A74; --plum-wash: #F2E1F0;
  --r: 12px;
  --font-head: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { font-size: 17px; }
body { margin: 0; background: var(--paper); color: var(--bark); font-family: var(--font-body); line-height: 1.5; font-variant-numeric: tabular-nums; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 750; line-height: 1.15; margin: 0 0 .5rem; }
h1 { font-size: 1.9rem; } h2 { font-size: 1.35rem; } h3 { font-size: 1.1rem; font-weight: 650; }
a { color: var(--pine); font-weight: 600; }
a:hover { color: var(--pine-ink); }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; border-radius: 6px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.25rem 0; }
.muted { color: var(--bark-soft); } .small { font-size: .88rem; } .center { text-align: center; }
.mono { font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace; font-weight: 600; letter-spacing: .03em; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--bark-soft); margin: 0 0 .75rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* wordmark */
.wordmark { font-family: var(--font-head); font-weight: 750; font-size: 1.6rem; letter-spacing: -.02em; }
.wordmark .ally { color: var(--pine); }
.wordmark .org { font-size: .6em; font-weight: 600; color: var(--bark-soft); letter-spacing: 0; }

/* controls */
label { display: block; font-weight: 700; margin: 1rem 0 .3rem; font-size: .95rem; }
label.check { display: flex; gap: .6rem; align-items: center; font-weight: 500; margin: 1rem 0; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input:not([type]), select, textarea {
  width: 100%; padding: .65rem .8rem; border: 1px solid #cfc3b3; border-radius: 10px; background: #fff; color: var(--bark); font: inherit;
}
textarea { min-height: 6rem; resize: vertical; }
input[type=checkbox] { width: 1.15rem; height: 1.15rem; accent-color: var(--pine); }
.btn { display: inline-block; text-align: center; font: inherit; font-weight: 700; padding: .65rem 1.1rem; border-radius: 10px; border: 1px solid #cfc3b3; background: var(--card); color: var(--bark); cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--linen); color: var(--bark); }
.btn.primary { background: var(--pine); border-color: var(--pine); color: #fff; }
.btn.primary:hover { background: var(--pine-ink); color: #fff; }
.btn.warm { background: var(--marigold); border-color: var(--marigold); color: var(--bark); }
.btn.danger { border-color: var(--red); color: var(--red); }
.btn.block { display: block; width: 100%; margin-top: 1rem; }
.btn.small { padding: .35rem .7rem; font-size: .88rem; }
.btn[disabled], .btn.disabled { opacity: .5; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--pine); text-decoration: underline; cursor: pointer; }
.row { display: flex; gap: .75rem; } .row > * { flex: 1; }
.code-input { font-size: 1.6rem; text-align: center; letter-spacing: .4em; font-family: ui-monospace, Consolas, monospace; }

/* cards, alerts */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem; box-shadow: 0 6px 24px rgba(43, 36, 32, .05); }
.alert { padding: .7rem .9rem; border-radius: 10px; margin: .75rem 0; font-weight: 500; }
.alert.bad { background: var(--red-wash); color: var(--red); }
.alert.ok { background: var(--pine-wash); color: var(--pine-ink); }
.alert.warn { background: var(--marigold-wash); color: #6b4510; }

/* auth pages */
.auth-body { background: var(--linen); min-height: 100vh; display: flex; flex-direction: column; align-items: center; }
.auth-brand { display: flex; align-items: center; gap: .75rem; padding: 2rem 1rem 1rem; }
.auth-main { width: 100%; display: flex; justify-content: center; padding: 1rem; flex: 1; }
.auth-card { width: 100%; max-width: 440px; align-self: flex-start; } .auth-card.wide { max-width: 520px; }
.auth-foot { padding: 1.5rem 1rem; color: var(--bark-soft); font-size: .9rem; text-align: center; }
.codes { list-style: none; padding: 0; margin: 1rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.codes li { background: var(--linen); border-radius: 10px; padding: .7rem; text-align: center; }

/* app shell */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: var(--linen); border-right: 1px solid var(--line); padding: 1.25rem 1rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.lockup { display: flex; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.teamcard { display: flex; gap: .6rem; align-items: center; background: #fff; border-radius: 12px; padding: .5rem .6rem; margin-bottom: 1.25rem; }
.teamcard .teamline { display: block; font-size: .78rem; color: var(--bark-soft); }
.team-tile { display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px; flex: none; }
.team-tile .team-logo { height: var(--h); width: auto; max-width: calc(var(--h) * 4); object-fit: contain; display: block; }
.team-tile.h36 { --h: 36px; } .team-tile.h64 { --h: 64px; } .team-tile.h28 { --h: 28px; }
.team-initials { display: inline-flex; align-items: center; justify-content: center; width: var(--h); height: var(--h); border-radius: 8px; font-weight: 800; font-size: calc(var(--h) * .42); color: #fff; }
.team-initials.tone-pine { background: var(--pine); } .team-initials.tone-gold { background: var(--marigold); color: var(--bark); }
.wt-mark { margin-left: 1rem; display: inline-flex; vertical-align: middle; }
.print-head { display: flex; gap: 1rem; align-items: flex-start; }
.logo-preview { object-fit: contain; border: 1px solid var(--line, #ddd); border-radius: 8px; padding: 4px; background: #fff; }
.lockup .wordmark { font-size: 1.05rem; line-height: 1; display: block; }
.teamcard .teamname { font-size: .92rem; color: var(--bark-soft); font-weight: 600; display: block; }
.nav { list-style: none; padding: 0; margin: 0; }
.nav a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .55rem .75rem; border-radius: 10px; text-decoration: none; color: var(--bark); font-weight: 600; }
.nav a:hover { background: #e9dfd0; }
.nav a[aria-current=page] { background: var(--pine); color: #fff; }
.nav .count { background: var(--marigold); color: var(--bark); border-radius: 99px; padding: 0 .5rem; font-size: .78rem; font-weight: 700; }
.side-foot { margin-top: 2rem; font-size: .88rem; color: var(--bark-soft); }
.main { padding: 1.75rem 2rem 3rem; max-width: 1200px; width: 100%; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.page-head p { margin: 0; color: var(--bark-soft); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; }
.tile .label { font-size: .85rem; font-weight: 700; color: var(--bark-soft); }
.tile .num { font-family: var(--font-head); font-weight: 750; font-size: 2.2rem; line-height: 1.1; }
.tile .sub { font-size: .85rem; color: var(--bark-soft); }
.section { margin-bottom: 2rem; }
table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--bark-soft); background: var(--linen); padding: .6rem .8rem; }
td { padding: .65rem .8rem; border-top: 1px solid var(--line); vertical-align: top; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.toolbar { display: flex; gap: .75rem; flex-wrap: wrap; align-items: end; margin-bottom: 1rem; }
.toolbar label { margin: 0 0 .2rem; } .toolbar select, .toolbar input { width: auto; min-width: 10rem; }

/* badges: every state has a shape and a word */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .1rem .6rem; border-radius: 99px; font-size: .82rem; font-weight: 700; background: var(--linen); color: var(--bark); white-space: nowrap; }
.badge.open { background: var(--marigold-wash); color: #6b4510; }
.badge.answered { background: var(--blue-wash); color: var(--blue); }
.badge.closed, .badge.good { background: var(--pine-wash); color: var(--pine-ink); }
.badge.deferred { background: #ece6dc; color: var(--bark-soft); }
.badge.reopened { background: var(--plum-wash); color: var(--plum); }
.badge.high, .badge.bad { background: var(--red-wash); color: var(--red); }
.badge.medium, .badge.warn { background: var(--marigold-wash); color: #6b4510; }
.badge.low { background: #ece6dc; color: var(--bark-soft); }
.badge.vote { background: var(--bark); color: #fff; }
.badge.dashed { background: transparent; border: 1px dashed #b9ab98; color: var(--bark-soft); }

.empty { background: var(--card); border: 1px dashed #cfc3b3; border-radius: 14px; padding: 2rem; text-align: center; color: var(--bark-soft); }
.figure-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--bark-soft); margin-left: .3rem; }

dialog { border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem; max-width: 520px; width: 92vw; background: var(--card); color: var(--bark); }
dialog::backdrop { background: rgba(43, 36, 32, .45); }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .nav { display: flex; flex-wrap: wrap; gap: .25rem; }
  .main { padding: 1.25rem 1rem 2rem; }
}
@media print {
  .side, .no-print { display: none !important; }
  .shell { display: block; } .main { padding: 0; max-width: none; }
  body { background: #fff; }
}

/* home, lists */
.home-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.25rem; align-items: start; }
@media (max-width: 960px) { .home-grid { grid-template-columns: 1fr; } }
.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap; padding: .7rem 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.list .area { margin-left: auto; }
.card.section h2 { margin-bottom: .6rem; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: .1rem .75rem; padding: .35rem 0; }
.kv .figure-label { grid-column: 2; text-align: right; margin: 0; }
.tile-bad { background: #FDF4F2; border-color: #E8B8B0; }

/* site administration */
.platform-body { background: var(--paper); }
.platform-bar { background: var(--bark); color: #fff; display: flex; justify-content: space-between; align-items: center; padding: .9rem 2rem; }
.platform-bar .brandline { display: flex; align-items: center; gap: .75rem; }
.wordmark.light { color: #fff; font-size: 1.3rem; }
.pill { background: #4a3d2f; color: var(--marigold); border-radius: 99px; padding: .15rem .8rem; font-weight: 700; font-size: .88rem; }
.link-btn.light { color: var(--marigold); }
.platform-main { max-width: 1180px; margin: 0 auto; padding: 2rem 1.25rem 3rem; }
.notice-lock { background: var(--linen); border-radius: 12px; padding: 1rem 1.25rem; margin: 0 0 1.25rem; }
.chip { display: inline-block; background: var(--pine-wash); color: var(--pine-ink); border-radius: 6px; padding: 0 .5rem; font-size: .85rem; font-weight: 700; margin: 0 .15rem .25rem 0; }
.chip.off { background: transparent; border: 1px dashed #b9ab98; color: var(--bark-soft); }
td.actions details { margin-bottom: .4rem; }
td.actions summary { cursor: pointer; font-weight: 700; color: var(--pine); }
td.actions form input, td.actions form select { margin: .25rem 0; width: 100%; }
.danger-text { color: var(--red); }
details.create { position: relative; } details.create summary { list-style: none; }
details.create .create-form { position: absolute; right: 0; z-index: 5; width: min(92vw, 380px); margin-top: .5rem; }

/* punch list */
.tiles.six { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.tile-blue { background: var(--blue-wash); border-color: #b9d0e8; }
.waiting { background: #F1F6FB; border: 1px solid #b9d0e8; border-radius: 14px; padding: 1rem 1.25rem; margin-bottom: 1.25rem; }
.waiting-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: baseline; }
.waiting-head h2 { color: var(--blue); margin: 0; } .waiting-head span { color: var(--blue); font-size: .9rem; }
.waiting-row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; background: var(--card); border-radius: 10px; padding: .6rem .8rem; margin-top: .6rem; }
.grow { flex: 1; min-width: 12rem; }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .75rem; }
.chip-link { text-decoration: none; border: 1px solid #cfc3b3; border-radius: 99px; padding: .3rem .9rem; background: var(--card); color: var(--bark); font-weight: 600; }
.chip-link.on { background: var(--bark); color: #fff; border-color: var(--bark); }
.seg { display: inline-flex; border: 1px solid #cfc3b3; border-radius: 10px; overflow: hidden; }
.seg button { border: 0; background: var(--card); padding: .65rem 1rem; font: inherit; font-weight: 700; cursor: pointer; }
.seg button.on { background: var(--bark); color: #fff; }
.group { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 1.25rem; overflow: hidden; }
.group-head { background: var(--linen); padding: .7rem 1rem; } .group-head h2 { margin: 0; font-size: 1.1rem; }
details.item { border-top: 1px solid var(--line); }
details.item > summary { list-style: none; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; padding: .7rem 1rem; cursor: pointer; }
details.item > summary::-webkit-details-marker { display: none; }
details.item > summary::before { content: '\25B8'; color: var(--bark-soft); }
details.item[open] > summary::before { content: '\25BE'; }
.item-title { flex: 1; min-width: 12rem; font-weight: 600; }
.item-body { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.5rem; padding: .5rem 1.25rem 1.25rem; }
.card.item-body { padding: 1.25rem; }
@media (max-width: 860px) { .item-body { grid-template-columns: 1fr; } }
.item-body h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--bark-soft); margin: .8rem 0 .2rem; }
.prewrap { white-space: pre-wrap; margin: .2rem 0; }
blockquote.motion { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin: .8rem 0; padding: .7rem 1rem; }
.actions-row { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.history { border-left: 1px solid var(--line); padding-left: 1.25rem; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 .9rem 1.4rem; }
.timeline li::before { content: ''; position: absolute; left: 0; top: .3rem; width: .8rem; height: .8rem; border-radius: 50%; border: 2px solid var(--bark-soft); background: var(--card); }
.timeline li.ev-answered::before { background: var(--blue); border-color: var(--blue); }
.timeline li.ev-closed::before { background: var(--pine); border-color: var(--pine); }
.timeline li.ev-reopened::before { background: var(--marigold); border-color: var(--marigold); }
.timeline li.ev-deferred::before { background: #b9ab98; border-color: #b9ab98; }
.dialog-actions { display: flex; gap: .6rem; justify-content: flex-end; margin-top: 1rem; }
.note { background: var(--blue-wash); color: var(--blue); border-radius: 10px; padding: .6rem .8rem; font-size: .9rem; } .note:empty { display: none; }
.form-narrow { max-width: 640px; }

/* tabs, bank */
.tabs { display: flex; gap: 1.25rem; border-bottom: 1px solid var(--line); margin: 0 0 1.25rem; flex-wrap: wrap; }
.tabs a { text-decoration: none; color: var(--bark-soft); padding: .5rem .1rem; border-bottom: 3px solid transparent; font-weight: 700; }
.tabs a[aria-current=page] { color: var(--bark); border-bottom-color: var(--marigold); }
.banner { display: flex; justify-content: space-between; gap: 1rem; align-items: center; border: 1px solid #E8B8B0; }
.bad-text { color: var(--red); }
table.plain { border: 0; border-radius: 0; background: transparent; }
table.plain th { background: transparent; border-bottom: 1px solid var(--line); }
td.barcell { width: 30%; } .bar { display: block; height: .7rem; border-radius: 99px; background: var(--pine); }
.bulkbar { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; background: var(--linen); border-radius: 10px; padding: .6rem .9rem; margin-bottom: .75rem; }
.bulkbar select { width: auto; } .check.inline { margin: 0; }
table.tx tr.reversed td { color: var(--bark-soft); } .strike { text-decoration: line-through; }
table.tx tr.unvalidated td { background: #FDF4F2; }
details.inline summary { cursor: pointer; } details.inline[open] summary { font-weight: 700; }
.record-form { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; margin: .5rem 0; } .record-form input { max-width: 18rem; }
.crumbs { color: var(--bark-soft); margin: 0 0 .5rem; }
li.result { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.hidden { display: none; }

/* teach this layout */
.setup-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 1.25rem; align-items: start; margin-bottom: 1.25rem; }
@media (max-width: 960px) { .setup-grid { grid-template-columns: 1fr; } }
.setup-grid aside .card { margin-bottom: 1rem; }
.pager { display: flex; gap: .6rem; align-items: center; margin-bottom: .75rem; }
.pagewrap { position: relative; background: #e6dfd2; padding: .75rem; border-radius: 12px; overflow: auto; }
.pagewrap img { display: block; width: 100%; height: auto; background: #fff; }
#bands { position: absolute; left: .75rem; top: .75rem; right: .75rem; bottom: .75rem; pointer-events: none; }
.band { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--c) 18%, transparent); border: 2px solid var(--c); border-radius: 6px; }
.band-tag { position: absolute; top: -1.35rem; left: 0; background: var(--c); color: #fff; font-size: .75rem; font-weight: 700; padding: 0 .4rem; border-radius: 6px; white-space: nowrap; }
.handle { position: absolute; top: 45%; width: 14px; height: 48px; margin-top: -24px; background: var(--c); border-radius: 6px; cursor: ew-resize; pointer-events: auto; touch-action: none; }
.handle.min { left: -8px; } .handle.max { right: -8px; }
.band-row { align-items: center; margin: .3rem 0; } .inline-label { display: flex; gap: .4rem; align-items: center; margin: 0; font-weight: 500; }
.checks { list-style: none; margin: 0; padding: 0; }
.check { display: grid; grid-template-columns: 2rem 1fr auto; gap: .6rem; align-items: center; padding: .6rem 0; border-top: 1px solid var(--line); }
.check .mark { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; color: #fff; font-weight: 700; }
.check.good .mark { background: var(--pine); } .check.bad .mark { background: var(--red); }
.check-account { font-weight: 700; padding-top: .6rem; }
.checks-head { display: flex; justify-content: space-between; align-items: center; }
#advice { background: #FDF4F2; border-color: #E8B8B0; }

/* budget */
.yearbar { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: flex-start; margin-bottom: 1rem; }
.yearbar-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.seg-links { display: inline-flex; flex-wrap: wrap; border: 1px solid #cfc3b3; border-radius: 10px; overflow: visible; background: var(--card); position: relative; }
.seg-links > a, .seg-links > details > summary { padding: .65rem 1rem; font-weight: 700; text-decoration: none; color: var(--bark); cursor: pointer; list-style: none; display: block; }
.seg-links > a.on { background: var(--bark); color: #fff; border-radius: 9px; }
details.newyear { position: relative; } details.newyear .card { position: absolute; z-index: 6; width: min(92vw, 360px); margin-top: .4rem; }
.banner-draft { border: 2px dashed var(--marigold); background: #FFF9EE; border-radius: 12px; padding: .8rem 1rem; margin-bottom: 1rem; }
.banner-approved { border: 1px solid #b7d3c8; background: var(--pine-wash); border-radius: 12px; padding: .8rem 1rem; margin-bottom: 1rem; }
.section-head { display: flex; justify-content: space-between; align-items: center; }
.budget-table td.num, .budget-table th.num { white-space: nowrap; }
tr.declined td { color: var(--bark-soft); } tr.over td { background: #FDF4F2; } tr.subtotal td { font-weight: 700; border-top: 2px solid var(--line); }
.money-input { width: 8rem; text-align: right; } .money-input.nofigure { border-style: dashed; } .money-input.err { border-color: var(--red); background: #FDF4F2; }
.inline-edit { margin: 0; } td.actions { white-space: nowrap; } td.actions details { display: block; }
tr.subhead td { background: var(--linen); } input.pct { width: 5.5rem; text-align: right; }

/* walkthrough: dark, large, high contrast */
body.wt { background: var(--bark); color: var(--paper); font-size: 22px; }
.wt-bar { display: flex; justify-content: space-between; align-items: center; padding: 1rem 2.5rem; color: #e5dccf; font-size: .8em; }
.wt-brand { display: inline-flex; gap: .6rem; align-items: center; } .wt-exit { color: var(--marigold); }
.slide { padding: 1rem 2.5rem 3rem; max-width: 1600px; margin: 0 auto; }
.slide[hidden] { display: none; }
.slide h1 { font-size: 3.2rem; margin: .2rem 0 1rem; color: #fff; }
.wt-eyebrow { color: #cfc3b3; text-transform: uppercase; letter-spacing: .08em; font-size: .7em; font-weight: 700; margin: 0; }
.wt-headrow { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-end; }
.wt-big { display: flex; gap: 2rem; } .wt-big span, .wt-tiles span { display: block; font-size: .7em; color: #cfc3b3; }
.wt-big strong, .wt-tiles strong { font-family: var(--font-head); font-size: 2.2rem; }
.wt-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin: 1rem 0 2rem; }
.accent { color: var(--marigold); }
.wt-table { width: 100%; border: 0; background: transparent; border-collapse: collapse; color: inherit; }
.wt-table th { background: transparent; color: #cfc3b3; border-bottom: 2px solid #5b504a; font-size: .7em; }
.wt-table td { border-top: 1px solid #4a3f39; padding: .9rem .6rem; font-size: 1.05em; }
.wt-table tr.over td { background: #3d2a25; } .wt-table tr.total td { font-weight: 700; border-top: 2px solid #8a7d72; }
.wt-table .muted, .wt-table .wt-spent .muted { color: #cfc3b3; }
.wt-bar-track { display: inline-block; width: 9rem; height: .8rem; background: #4a3f39; border-radius: 99px; vertical-align: middle; margin-right: .5rem; overflow: hidden; }
.wt-bar-fill { display: block; height: 100%; background: var(--marigold); } .wt-bar-fill.over { background: #ff9d8f; }
.wt-tag { font-size: .65em; border: 1px solid #8a7d72; border-radius: 99px; padding: 0 .5rem; color: #e5dccf; }
.wt-note { background: #3a302a; border-radius: 12px; padding: .8rem 1.2rem; font-size: .85em; }
.wt-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; } .wt-cols h2 { color: var(--marigold); font-size: 1.1rem; margin-top: 1.2rem; } .wt-cols ul { padding-left: 1.2rem; font-size: .95em; }
.wt-foot { text-align: center; color: #cfc3b3; font-size: .7em; padding: 1rem; }
body.wt:not(.js) .slide { page-break-after: always; border-bottom: 1px solid #4a3f39; }
@media print {
  body.wt { background: #fff; color: #000; font-size: 13pt; }
  .slide { padding: 0; page-break-after: always; } .slide h1 { color: #000; font-size: 26pt; }
  .wt-table td, .wt-table th { border-color: #999; color: #000; } .wt-table th, .wt-eyebrow, .wt-big span, .wt-tiles span, .wt-table .muted { color: #444; }
  .accent { color: #000; } .wt-bar-track { background: #ddd; } .wt-bar-fill { background: #555; } .wt-note { background: #eee; } .wt-cols h2 { color: #000; }
  tr.over td { background: #eee !important; }
}
@media (max-width: 760px) { .wt-cols { grid-template-columns: 1fr; } .slide h1 { font-size: 2.2rem; } }

/* team and families */
.seasonbar { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; margin-bottom: .75rem; }
.legend { display: flex; gap: .5rem; flex-wrap: wrap; } .legend .badge { text-decoration: none; }
.settings-line { margin-bottom: 1rem; } .settings-line summary { cursor: pointer; color: var(--bark-soft); font-weight: 700; }
.family { margin-bottom: 1.25rem; } .family-head { display: flex; gap: 1rem; align-items: baseline; flex-wrap: wrap; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: .5rem; margin-bottom: .75rem; }
.family-head h2 { margin: 0; }
.person { display: grid; grid-template-columns: minmax(220px, 1fr) 2.2fr; gap: 1.25rem; padding: .9rem 0; border-top: 1px solid var(--line); }
.person:first-of-type { border-top: 0; }
@media (max-width: 860px) { .person { grid-template-columns: 1fr; } }
.chipgrid { display: flex; flex-wrap: wrap; gap: .5rem; }
.docchip { font: inherit; text-align: left; cursor: pointer; border-radius: 10px; padding: .4rem .7rem; border: 1px solid var(--line); background: var(--pine-wash); color: var(--pine-ink); }
.docchip strong { display: block; font-size: .85rem; } .docchip span { font-size: .85rem; }
.docchip.warning { background: var(--marigold-wash); border-color: var(--marigold); color: #6b4510; }
.docchip.expired { background: var(--red); border-color: var(--red); color: #fff; }
.docchip.missing { background: transparent; border: 1px dashed #b9ab98; color: var(--bark-soft); }
.setbanner { background: var(--linen); border-radius: 12px; padding: .9rem 1rem; margin-top: .75rem; }
.setbanner.bad { background: #FDF0EE; color: var(--red); font-weight: 700; }
.setbanner-head { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.timeline-bar { position: relative; height: 4px; background: #b9ab98; border-radius: 4px; margin: 1.1rem .6rem .6rem; }
.tl-dot { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--bark-soft); }
.tl-dot.gov { background: var(--pine); } .tl-dot.end { background: var(--marigold); border-radius: 3px; }
.tl-labels { display: flex; justify-content: space-between; font-size: .82rem; font-weight: 700; }
fieldset { border: 0; padding: 0; margin: .6rem 0; }
.grow { flex: 1; }

/* donors, fundraising */
.nomargin { margin: 0; }
.stackbar { display: flex; height: 1.1rem; border-radius: 99px; overflow: hidden; background: #e6dfd2; margin: .6rem 0; }
.seg-named { background: var(--pine); } .seg-unmatched { background: repeating-linear-gradient(45deg, var(--marigold), var(--marigold) 6px, #f2c677 6px, #f2c677 12px); } .seg-interest { background: var(--bark); }
.dot { display: inline-block; width: .7rem; height: .7rem; border-radius: 2px; } .dot.named { background: var(--pine); } .dot.unmatched { background: var(--marigold); } .dot.interest { background: var(--bark); }
details.donor { border-top: 1px solid var(--line); } details.donor > summary, details.req > summary { list-style: none; display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; padding: .8rem .2rem; cursor: pointer; }
details.donor > summary::-webkit-details-marker, details.req > summary::-webkit-details-marker { display: none; }
.d-name { flex: 2; min-width: 10rem; } .d-rel { flex: 1.4; min-width: 7rem; color: var(--bark-soft); } .d-status { flex: 1; min-width: 6rem; } .d-total { flex: 1; text-align: right; font-weight: 700; }
details.donor.lapsed > summary { color: var(--bark-soft); }
.donor-body, .req-body { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.5rem; padding: .25rem .2rem 1.2rem; }
@media (max-width: 860px) { .donor-body, .req-body { grid-template-columns: 1fr; } }
.inline-form { display: inline; }
details.req { border-top: 1px solid var(--line); } .req-main { flex: 1; min-width: 12rem; display: flex; flex-direction: column; }
.badge.stage-received { background: var(--pine-wash); color: var(--pine-ink); } .badge.stage-sent, .badge.stage-acknowledged { background: var(--blue-wash); color: var(--blue); }
.badge.stage-drafted { background: #ece6dc; color: var(--bark-soft); } .badge.stage-opportunity { background: transparent; border: 1px dashed #b9ab98; color: var(--bark-soft); } .badge.stage-declined { background: #ece6dc; color: var(--bark-soft); }
.tile-warn { background: #FFF9EE; border-color: var(--marigold); }
.giftbox { background: var(--pine-wash); border-radius: 12px; padding: .8rem 1rem; margin: .8rem 0; }
label.check.done { text-decoration: line-through; color: var(--bark-soft); }
.legend-line { margin: .3rem 0; }

/* contacts */
.cardgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.contact h3 { margin: 0; } .contact dl { display: grid; grid-template-columns: max-content 1fr; gap: .15rem .8rem; margin: .6rem 0; }
.contact dt { color: var(--bark-soft); font-size: .85rem; font-weight: 700; } .contact dd { margin: 0; overflow-wrap: anywhere; }

/* documents */
.quota { min-width: 220px; } .quota-bar { display: block; height: .5rem; background: #e6dfd2; border-radius: 99px; overflow: hidden; margin-bottom: .25rem; } .quota-bar span { display: block; height: 100%; background: var(--pine); }
.dropzone { border: 2px dashed #cfc3b3; border-radius: 14px; padding: 1rem 1.25rem; background: var(--card); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: end; margin-bottom: 1rem; }
.filepick { display: block; margin-top: .5rem; }
.ftype { display: inline-grid; place-items: center; min-width: 2.6rem; height: 2.2rem; border-radius: 8px; color: #fff; font-size: .7rem; font-weight: 700; background: var(--bark-soft); }
.ft-pdf { background: #A32A1D; } .ft-jpg, .ft-png { background: #25507A; } .ft-md, .ft-txt { background: var(--pine); } .ft-csv, .ft-xlsx { background: #5b7a2f; } .ft-docx { background: #3a5d9e; }
.preview-img { max-width: 100%; border-radius: 10px; border: 1px solid var(--line); } .preview-pdf { width: 100%; height: 70vh; border: 1px solid var(--line); border-radius: 10px; }
.preview-text { white-space: pre-wrap; background: var(--linen); padding: 1rem; border-radius: 10px; max-height: 60vh; overflow: auto; }

/* agenda */
.status-row { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.yearchips { display: flex; gap: .6rem; flex-wrap: wrap; align-items: flex-start; }
.yearchip { border-radius: 12px; padding: .6rem .9rem; text-align: center; font-weight: 700; background: var(--linen); }
.yearchip.ok { background: var(--pine-wash); color: var(--pine-ink); } .yearchip.miss { background: var(--red); color: #fff; } .yearchip.open { background: var(--marigold-wash); color: #6b4510; border: 1px solid var(--marigold); }
.agenda-head { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; } .agenda-head h2 { margin: .5rem 0; }
.agenda-sec { border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; margin: .75rem 0; background: var(--card); }
.agenda-sec.removed { opacity: .55; } .agenda-sec header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 1px dashed var(--line); } .agenda-sec h3 { margin: 0 0 .3rem; }
.sec-actions { display: flex; gap: .6rem; } .sec-actions form { margin: 0; }
.agenda-item { padding: .35rem 0; border-top: 1px dotted var(--line); } .agenda-sec textarea { min-height: 3rem; margin-top: .5rem; }
body.printdoc { background: #fff; color: #000; font-family: Georgia, 'Times New Roman', serif; }
.printpage { max-width: 7.5in; margin: 0 auto; padding: .75in .5in; line-height: 1.45; }
.print-head { border-bottom: 2px solid #000; margin-bottom: 1rem; } .print-org { font-variant: small-caps; letter-spacing: .08em; margin: 0; } .printpage h1 { font-family: inherit; font-size: 1.8rem; margin: .2rem 0; } .print-date { font-size: 1.1rem; margin: 0 0 .6rem; }
.print-sec h2 { font-family: inherit; font-size: 1.15rem; margin: 1rem 0 .2rem; } .print-sec ul { margin: .2rem 0 .2rem 1.2rem; } .print-flag { font-style: italic; margin: 0; } .print-note { border-left: 3px solid #999; padding-left: .6rem; margin: .4rem 0; white-space: pre-wrap; }
.print-foot { border-top: 1px solid #999; margin-top: 2rem; padding-top: .4rem; font-size: .85rem; color: #444; }
@media print { .printpage { padding: 0; max-width: none; } .print-sec { break-inside: avoid; } }

/* ai */
.confirm-card { max-width: 760px; } .confirm-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.sentbox { background: #F7EFE6; border-radius: 12px; padding: .8rem 1rem; margin: 1rem 0; } .sentbox h3 { margin: 0 0 .3rem; }
.keptbox { background: var(--pine-wash); border-radius: 12px; padding: .8rem 1rem; margin: 1rem 0; } .keptbox p { margin: .2rem 0 0; }
.sizeline { display: flex; justify-content: space-between; font-weight: 700; margin-top: 1rem; }
.draft-area { width: 100%; min-height: 20rem; font-size: .95rem; }
code { background: var(--linen); border-radius: 5px; padding: 0 .3rem; }

/* settings hub */
.settings-grid { display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; align-items: start; }
@media (max-width: 860px) { .settings-grid { grid-template-columns: 1fr; } }
.settings-nav { display: flex; flex-direction: column; gap: .25rem; } .settings-nav a { text-decoration: none; padding: .5rem .8rem; border-radius: 10px; color: var(--bark); font-weight: 600; }
.settings-nav a[aria-current=page] { background: var(--bark); color: #fff; } .settings-nav a:hover { background: var(--linen); }

/* Site admin teams table: the actions cell wraps and stacks its fields instead of clipping them. */
.table-scroll { overflow-x: auto; max-width: 100%; }
td.actions { white-space: normal; min-width: 16rem; max-width: 22rem; }
td.actions form { display: flex; flex-direction: column; gap: .3rem; }
td.actions form input, td.actions form select { min-width: 0; max-width: 100%; box-sizing: border-box; text-overflow: ellipsis; }
