:root {
  color-scheme: dark;
  --bg: #101b16;
  --sidebar: #111e18;
  --card: #172720;
  --raised: #1c3026;
  --edge: #2a3e33;
  --ink: #eef6e9;
  --muted: #a4b9aa;
  --dim: #91aa9a;
  --lime: #d5f789;
  --mint: #90e2b8;
  --gold: #f3cc87;
  --violet: #c6b8fa;
  --green: #a6e9a7;
  --red: #ffad9e;
  --radius: 19px;
  --ease: cubic-bezier(.22,.78,.22,1);
  font-family: "Segoe UI", Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2rem, 3.65vw, 3.28rem); letter-spacing: -.06em; line-height: 1.04; }
h2 { font-size: clamp(1.2rem, 1.85vw, 1.55rem); line-height: 1.15; letter-spacing: -.035em; }
h3 { font-size: .98rem; }
small { font-size: .74rem; }
.icon { flex: none; display: inline-block; vertical-align: middle; }
.layout { min-height: 100vh; display: grid; grid-template-columns: 229px minmax(0, 1fr); }
.sidebar { background: var(--sidebar); border-right: 1px solid #26392f; padding: 26px 15px 13px; height: 100dvh; position: sticky; top: 0; display: flex; flex-direction: column; gap: 26px; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; width: fit-content; margin: 1px 10px 8px; }
.brand img { width: 41px; height: 41px; display: block; }
.brand strong { font-size: 1.24rem; letter-spacing: -.062em; display: block; line-height: 1; }
.brand strong span { color: var(--lime); }
.brand small { display: block; color: #acc2b3; letter-spacing: .17em; font-weight: 720; margin-top: 6px; font-size: .57rem; }
.sidebar nav { display: grid; gap: 24px; }
.nav-group { display: grid; gap: 4px; }
.nav-label { color: var(--dim); font-size: .59rem; font-weight: 750; letter-spacing: .16em; padding: 0 11px 6px; }
.nav-link { border: 1px solid transparent; min-height: 43px; padding: 8px 9px; border-radius: 10px; display: flex; gap: 10px; align-items: center; color: #bacabe; font-size: .8rem; transition: background .18s, color .18s, border-color .18s; }
.nav-link > span { flex: 1; }
.nav-link:hover { color: var(--ink); background: #20332a; }
.nav-link.active { color: var(--lime); background: #293d29; border-color: #395334; font-weight: 680; }
.side-bottom { margin-top: auto; }
.side-note { border: 1px solid #2b4133; border-radius: 13px; padding: 13px 12px; background: linear-gradient(120deg,#1c3125,#16271f); margin: 0 4px 13px; }
.side-note span { color: #d6e6d4; font-weight: 650; font-size: .75rem; }
.side-note .icon { color: var(--lime); margin-right: 5px; }
.side-note p { color: var(--muted); font-size: .71rem; padding: 7px 0 0 26px; }
.profile { display: flex; align-items: center; gap: 8px; padding: 9px 4px; border-top: 1px solid var(--edge); }
.profile > div { min-width: 0; flex: 1; }
.profile strong { display: block; font-size: .74rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile small { color: var(--dim); font-size: .65rem; }
.avatar { background: #2b4633; color: var(--lime); border: 1px solid #3e5c43; border-radius: 50%; width: 32px; height: 32px; display: grid; place-items: center; font-weight: 700; font-size: .67rem; flex: none; }
.layout main { min-width: 0; }
.topbar { height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 clamp(19px, 3vw, 42px); border-bottom: 1px solid #27382e; }
.crumb, .topright, .topdate { display: flex; align-items: center; gap: 11px; color: var(--dim); font-size: .77rem; }
.crumb strong { color: var(--ink); font-weight: 650; }
.environment { display: inline-flex; align-items: center; gap: 7px; color: #b7d5bc; background: #1a3023; border: 1px solid #2e4835; padding: 6px 10px; white-space: nowrap; border-radius: 30px; font-size: .68rem; font-weight: 650; }
.environment i { width: 6px; height: 6px; border-radius: 50%; background: #a6e478; box-shadow: 0 0 11px #a5e17b64; }
.topdate { gap: 6px; white-space: nowrap; }
.menu-toggle, .scrim, .quick-nav { display: none !important; }
.content { padding: 25px clamp(19px,3vw,42px) 42px; max-width: 1600px; margin-inline: auto; animation: enter .25s var(--ease) both; }
@keyframes enter { from { opacity: .5; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.hero { overflow: hidden; position: relative; isolation: isolate; min-height: 270px; padding: 29px 35px; border: 1px solid #416044; border-radius: 23px; background: radial-gradient(ellipse at 77% 54%,#284a31 0,transparent 52%), linear-gradient(109deg,#233c2a 0,#1a3325 55%,#14271e 100%); }
.hero-copy { position: relative; z-index: 2; width: 56%; }
.hero-kicker { display: flex; align-items: center; gap: 8px; color: #c8e5b5; font-size: .61rem; font-weight: 760; letter-spacing: .14em; white-space: nowrap; }
.hero-kicker .icon { color: var(--lime); }
.hero-kicker i { width: 3px; height: 3px; border-radius: 50%; background: #b2d29f; }
.hero h1, .signin h1 { margin: 12px 0 11px; font-size: clamp(3rem,5.4vw,5.1rem); line-height: .88; font-weight: 770; letter-spacing: -.073em; }
.hero h1 em, .signin h1 em { color: var(--lime); font-style: normal; }
.hero p { color: #c2d5c4; font-size: .9rem; line-height: 1.4; margin: 15px 0 18px; max-width: 325px; }
.hero-art { pointer-events: none; position: absolute; right: 0; width: min(53%,530px); height: 118%; object-fit: contain; top: -9%; z-index: -1; animation: drift 7s ease-in-out infinite; }
.hero-index { position: absolute; right: 20px; bottom: 16px; letter-spacing: .17em; font-size: .56rem; color: #a6c2a3; }
@keyframes drift { 50% { transform: translateY(-5px) rotate(1deg); } }
.actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.btn, .icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 39px; padding: 7px 13px; border-radius: 9px; border: 1px solid transparent; font-weight: 680; font-size: .77rem; text-align: center; white-space: nowrap; transition: transform .17s var(--ease), background .17s, border-color .17s; }
.btn:active, .icon-btn:active { transform: scale(.97); }
.primary { background: var(--lime); color: #1b2d17; border-color: #d9f9a0; box-shadow: 0 3px 14px #bde57a19; }
.primary:hover { background: #e5fbb3; }
.secondary, .icon-btn { background: #1b2c23; color: #e3eee4; border-color: #354d3d; }
.secondary:hover, .icon-btn:hover { background: #2a4032; border-color: #4b6b51; }
.glass { color: #e5f0e3; border-color: #4a6c51; background: #33523b52; }
.glass:hover { background: #3d5e45; }
.text-btn, .bare { background: transparent; color: var(--muted); border-color: transparent; }
.text-btn:hover, .bare:hover { color: var(--lime); background: #263c2e; }
.danger { color: var(--red); background: #482922; border-color: #754e40; }
.danger:hover { background: #60332a; }
.icon-btn { padding: 0; min-width: 36px; min-height: 36px; }
.profile .icon-btn { min-width: 30px; min-height: 30px; }
.card { background: var(--card); border: 1px solid var(--edge); border-radius: var(--radius); min-width: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 16px 0; }
.stat { display: flex; flex-direction: column; align-items: flex-start; min-height: 129px; padding: 13px 15px 12px; text-align: left; transition: transform .18s var(--ease), background .18s, border-color .18s; }
.stat:hover { transform: translateY(-3px); background: #20342a; border-color: #496852; }
.stat-top { width: 100%; display: flex; justify-content: space-between; align-items: center; color: var(--dim); }
.stat strong { font-size: 1.9rem; line-height: 1; letter-spacing: -.06em; font-variant-numeric: tabular-nums; margin: 6px 0 3px; }
.stat > span:not(.stat-top) { font-weight: 690; font-size: .82rem; }
.stat > small { color: var(--dim); margin-top: 4px; font-size: .67rem; line-height: 1.3; }
.tile-icon { display: inline-grid; place-items: center; width: 37px; height: 37px; flex: none; border-radius: 11px; background: var(--tone-bg); color: var(--tone); border: 1px solid var(--tone-edge); }
.lime { --tone: var(--lime); --tone-bg: #2e4328; --tone-edge: #405635; }
.mint { --tone: var(--mint); --tone-bg: #234036; --tone-edge: #355548; }
.gold { --tone: var(--gold); --tone-bg: #463d27; --tone-edge: #594b32; }
.violet { --tone: var(--violet); --tone-bg: #39334c; --tone-edge: #4a405d; }
.green { --tone: var(--green); --tone-bg: #26422e; --tone-edge: #3b5741; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(240px,.43fr); gap: 14px; align-items: start; }
.section { padding: 17px 17px 18px; }
.section-head { display: flex; justify-content: space-between; gap: 13px; align-items: center; margin-bottom: 14px; }
.eyebrow { color: #a9c6ad; font-size: .62rem; font-weight: 750; letter-spacing: .15em; margin-bottom: 6px; line-height: 1.35; }
.text-link { color: var(--lime); display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: .73rem; white-space: nowrap; }
.text-link:hover { text-decoration: underline; }
.workflow-row { display: flex; align-items: center; gap: 9px; min-height: 63px; padding: 8px 0; border-top: 1px solid var(--edge); }
.workflow-row:hover strong { color: var(--lime); }
.workflow-row > span:nth-child(2) { flex: 1; }
.workflow-row strong, .order-row strong { font-size: .77rem; line-height: 1.24; display: block; }
.workflow-row small, .order-row small { display: block; color: var(--dim); margin-top: 4px; font-size: .66rem; line-height: 1.25; }
.workflow-row em { font-style: normal; color: var(--muted); font-size: .72rem; }
.workflow-row > .icon, .order-row > .icon { color: var(--dim); }
.workflow-footer { color: var(--dim); border-top: 1px solid var(--edge); display: flex; align-items: flex-start; gap: 7px; padding-top: 10px; font-size: .67rem; line-height: 1.45; }
.order-row, .list-caption { display: grid; grid-template-columns: minmax(140px,1.5fr) minmax(104px,1fr) minmax(113px,.8fr) minmax(48px,.4fr) 17px; gap: 9px; align-items: center; width: 100%; }
.order-row { text-align: left; padding: 11px 0; border: 0; border-top: 1px solid var(--edge); background: transparent; min-height: 67px; transition: background .16s; }
.order-row:hover { background: #22372b; }
.order-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.order-name > span:nth-child(2) { min-width: 0; }
.order-name strong, .order-row small { text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.order-name .tile-icon { width: 34px; height: 34px; }
.chip { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; padding: 3px 7px; border-radius: 30px; color: var(--tone); background: var(--tone-bg); border: 1px solid var(--tone-edge); font-size: .64rem; font-weight: 650; line-height: 1.25; white-space: nowrap; }
.chip i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: none; }
.row-progress { display: grid; gap: 4px; font-size: .66rem; color: var(--muted); }
.meter { display: block; height: 5px; width: 100%; border-radius: 10px; background: #2d4435; overflow: hidden; }
.meter i { display: block; width: var(--value); height: 100%; background: linear-gradient(90deg,#80c67c,#d3f78b); border-radius: inherit; transform-origin: left; animation: grow .38s var(--ease) both; }
@keyframes grow { from { transform: scaleX(.18); opacity: .55; } }
.order-preview .row-progress { display: none; }
.order-preview .order-row { grid-template-columns: minmax(114px,1.55fr) minmax(100px,1fr) minmax(104px,.76fr) 14px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin: 11px 0 22px; }
.page-heading p { color: var(--muted); margin-top: 9px; font-size: .88rem; line-height: 1.48; max-width: 700px; }
.list-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 15px; }
.monthbar { display: flex; gap: 5px; align-items: center; }
.monthbar .btn { min-height: 36px; }
.month-input { position: relative; display: inline-flex; align-items: center; min-height: 36px; gap: 6px; background: #1a2b23; border: 1px solid #354d3d; padding: 6px 9px; border-radius: 9px; color: var(--muted); font-size: .77rem; }
.month-input span::first-letter { text-transform: uppercase; }
.month-input input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.month-input input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.month-input:focus-within, .search:focus-within { outline: 2px solid var(--lime); outline-offset: 2px; }
.search { display: flex; align-items: center; gap: 7px; margin-left: auto; border: 1px solid #354d3d; background: #16271f; border-radius: 9px; color: var(--dim); padding: 0 9px; min-height: 38px; min-width: 175px; }
.search input { color: var(--ink); background: transparent; border: 0; width: 100%; padding: 8px 0; outline: 0; font-size: .78rem; }
.search input::placeholder { color: var(--dim); }
.segments { display: flex; flex-wrap: wrap; gap: 5px; width: fit-content; max-width: 100%; background: #15251d; border: 1px solid var(--edge); border-radius: 12px; padding: 4px; margin: 0 0 13px; }
.segments button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; background: transparent; border: 1px solid transparent; color: var(--muted); min-height: 36px; padding: 5px 11px; border-radius: 8px; font-size: .76rem; font-weight: 660; white-space: nowrap; }
.segments button:hover { color: var(--ink); background: #22372b; }
.segments button[aria-pressed="true"] { background: #30472e; color: var(--lime); border-color: #435e3a; }
.result-list { padding: 0 15px; }
.list-caption { padding: 12px 0; font-size: .66rem; font-weight: 700; color: var(--dim); }
.role-banner { display: flex; align-items: center; gap: 11px; padding: 13px 15px; border: 1px solid #3b5943; background: linear-gradient(105deg,#243e2c,#192e24); border-radius: 14px; margin-bottom: 15px; }
.role-banner strong { font-size: .88rem; }
.role-banner p { font-size: .75rem; color: var(--muted); margin-top: 4px; }
.empty { min-height: 156px; padding: 24px 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.empty p { color: var(--muted); font-size: .78rem; max-width: 34ch; line-height: 1.5; }
.detail .text-btn { margin-left: -9px; }
.detail-meta { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr auto; align-items: center; gap: 12px; padding: 13px; margin-bottom: 15px; }
.detail-meta > div { min-width: 0; display: flex; gap: 8px; align-items: center; }
.detail-meta strong { display: block; font-size: .82rem; margin-top: 3px; overflow-wrap: anywhere; }
.detail-meta small { color: var(--dim); }
.detail-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(230px,.48fr); gap: 13px; }
.detail-aside { display: grid; align-content: start; gap: 13px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 11px 0; }
.facts { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1fr); align-items: start; gap: 9px 10px; font-size: .76rem; }
.facts dt { color: var(--dim); }
.facts dd { margin: 0; overflow-wrap: anywhere; text-align: right; }
.note, .notice { border-radius: 9px; padding: 9px 10px; margin: 10px 0; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .77rem; background: #20352a; color: #c2d4c6; border: 1px solid #355143; }
.notice { white-space: normal; }
.mini-finance .facts { margin-bottom: 0; }
.summary-stage, .finance-stage { display: grid; grid-template-columns: 37px minmax(0,1fr) auto 18px; gap: 9px; align-items: center; min-height: 60px; padding: 7px 0; width: 100%; border: 0; border-top: 1px solid var(--edge); background: transparent; text-align: left; }
.summary-stage:hover { color: var(--lime); }
.summary-stage strong, .finance-stage strong { display: block; font-size: .82rem; margin-bottom: 6px; }
.summary-stage em { font-style: normal; font-size: .75rem; color: var(--dim); }
.percent { color: var(--lime); font-size: 1.55rem; }
.task-meter { margin: 2px 0 14px; }
.task-meter .meter { height: 7px; }
.task-meter small { display: block; color: var(--dim); margin-top: 6px; }
.task-group { margin: 17px 0; }
.task-group h3 { color: #c1d7c7; margin: 0 0 6px; }
.task { min-height: 45px; position: relative; display: grid; grid-template-columns: 23px minmax(0,1fr) auto; align-items: start; gap: 9px; padding: 9px 4px; border-top: 1px solid var(--edge); cursor: pointer; }
.task:hover { background: #1e3228; }
.task input { position: absolute; width: 23px; height: 23px; top: 8px; left: 3px; opacity: 0; margin: 0; cursor: inherit; }
.task input:focus-visible + .tick { outline: 2px solid var(--lime); outline-offset: 3px; }
.task:has(input:disabled) { opacity: .62; cursor: not-allowed; }
.tick { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 6px; border: 1px solid #4b6a55; background: #13241b; color: transparent; }
.task input:checked + .tick { background: var(--lime); color: #1a3019; border-color: var(--lime); animation: check .23s var(--ease); }
@keyframes check { 50% { transform: scale(1.17); } }
.task strong { display: block; font-size: .81rem; line-height: 1.42; }
.task.done strong { color: #b0c3b6; }
.task small { display: block; color: var(--muted); margin-top: 2px; font-size: .72rem; line-height: 1.45; }
.task .task-audit { color: #a9d4a1; font-size: .63rem; }
.optional { font-size: .64rem; color: var(--dim); padding-top: 3px; }
.report-area { margin-bottom: 9px; }
.private-page { min-height: 67vh; display: grid; place-items: center; }
.access-card { max-width: 440px; width: 100%; padding: 28px; background: linear-gradient(130deg,#203728,#172720); }
.access-card .tile-icon { width: 49px; height: 49px; margin-bottom: 17px; }
.access-card h1 { font-size: 2.28rem; }
.access-card > p { color: var(--muted); line-height: 1.5; margin: 10px 0 16px; }
.access-card form > .btn { margin-top: 10px; }
.money-card { padding: 12px; display: grid; gap: 5px; align-content: start; }
.money-card small, .money-card > span:last-child { color: var(--dim); }
.money-card > span:last-child { font-size: .68rem; line-height: 1.4; }
.money-card strong { font-size: clamp(1.1rem,1.9vw,1.65rem); letter-spacing: -.045em; white-space: nowrap; }
.finance-grid { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 13px; margin: 13px 0; }
.donut-wrap { display: grid; grid-template-columns: minmax(110px,.74fr) minmax(0,1fr); align-items: center; gap: 16px; }
.donut { width: min(100%,166px); aspect-ratio: 1; padding: 15%; border-radius: 50%; background: var(--segments); margin: auto; display: grid; place-items: center; position: relative; }
.donut > div { position: absolute; inset: 14%; background: var(--card); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut small { color: var(--dim); letter-spacing: .1em; font-size: .52rem; }
.donut strong { font-size: clamp(.64rem,1.35vw,1.02rem); margin-top: 3px; }
.legend > div { display: grid; grid-template-columns: 9px minmax(0,1fr) auto; gap: 5px; align-items: start; padding: 7px 0; border-top: 1px solid var(--edge); font-size: .71rem; }
.legend i { width: 7px; height: 7px; margin-top: 3px; border-radius: 50%; background: var(--swatch); }
.legend small { display: block; color: var(--dim); margin-top: 2px; font-size: .63rem; }
.finance-stage { grid-template-columns: 37px minmax(0,1fr) auto; }
.finance-stage small { color: var(--dim); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .79rem; text-align: left; }
th { color: var(--dim); font-weight: 650; font-size: .68rem; white-space: nowrap; }
th, td { padding: 10px 8px; border-top: 1px solid var(--edge); }
td:not(:first-child) { white-space: nowrap; }
td small { display: block; color: var(--dim); margin-top: 3px; }
td .meter { max-width: 110px; margin-top: 5px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--lime); font-weight: 650; text-align: left; }
.link-btn:hover { text-decoration: underline; }
.positive { color: var(--mint); }
.negative { color: var(--red); }
.budget-hero { background: linear-gradient(115deg,#2b462d,#1b3026); border-color: #446448; padding: 19px; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.budget-hero h2 { color: var(--lime); font-size: clamp(1.8rem,4vw,3.1rem); margin: 2px 0 7px; }
.budget-hero p, .budget-hero small { color: var(--muted); font-size: .73rem; }
.budget-hero > div:last-child { display: grid; justify-items: start; gap: 6px; }
.budget-table { margin-top: 13px; }
.budget-table th:first-child { width: 36%; }
.loading { min-height: 75vh; display: grid; justify-items: center; align-content: center; gap: 9px; padding: 16px; }
.loading img { width: 50px; }
.loading p { color: var(--muted); }
.signin { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(300px,1fr); gap: 28px; min-height: 100vh; align-items: center; max-width: 940px; margin: auto; padding: 25px; }
.signin .brand { margin-left: 0; }
.signin > div { position: relative; isolation: isolate; min-height: 340px; }
.signin img[src="/hero.svg"] { position: absolute; bottom: -43px; left: 2px; width: 100%; z-index: -1; opacity: .65; }
.signin p { color: var(--muted); margin: 16px 0; font-size: .86rem; }
.signin .section { padding: 23px; }
.signin h2 { margin-bottom: 10px; }
dialog { width: min(530px,calc(100vw - 24px)); max-height: min(90dvh,780px); padding: 0; border: 1px solid #46634f; border-radius: 17px; color: var(--ink); background: var(--card); box-shadow: 0 24px 85px #020805bf; }
dialog.wide { width: min(700px,calc(100vw - 24px)); }
dialog[open] { animation: appear .19s var(--ease) both; }
dialog::backdrop { background: #040d09bc; backdrop-filter: blur(3px); }
@keyframes appear { from { opacity: 0; transform: translateY(8px) scale(.985); } }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 16px; background: #1c3026; border-bottom: 1px solid var(--edge); position: sticky; top: 0; z-index: 2; }
.dialog-body { padding: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.field { display: grid; gap: 5px; font-size: .77rem; color: #c6d7ca; min-width: 0; }
.field input, .field select, .field textarea { display: block; background: #11221a; border: 1px solid #3a5845; border-radius: 8px; min-height: 42px; width: 100%; padding: 7px 9px; color: var(--ink); min-width: 0; }
.field textarea { resize: vertical; }
.field input::placeholder { color: #819b8a; }
.span-all, .form-footer, .form-error { grid-column: 1/-1; }
.form-section { padding-top: 8px; margin-top: 5px; border-top: 1px solid var(--edge); color: var(--lime); }
.form-note { color: var(--muted); font-size: .74rem; line-height: 1.5; }
.form-footer { display: flex; justify-content: flex-end; align-items: center; gap: 7px; margin-top: 10px; }
.form-error { color: var(--red); font-size: .77rem; line-height: 1.45; }
.form-error:empty { display: none; }
.access-card .form-error { margin-top: 9px; }
.inline-check { display: flex; align-items: center; gap: 5px; color: #d5e4d6; font-size: .78rem; }
.inline-check input { accent-color: var(--lime); width: 17px; height: 17px; }
.pick-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; }
.pick { display: flex; align-items: center; gap: 5px; min-height: 37px; padding: 4px 6px; border: 1px solid #375441; background: #1b2d23; border-radius: 8px; color: #c1d5c6; font-size: .71rem; cursor: pointer; }
.pick:has(input:checked) { border-color: #5b7546; background: #293f2a; color: var(--lime); }
.pick input { accent-color: var(--lime); flex: none; }
.person-row { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 5px 0; border-bottom: 1px solid var(--edge); font-size: .84rem; }
.person-list { margin-bottom: 12px; }
.account-actions { margin-top: 11px; border-top: 1px solid var(--edge); padding-top: 10px; }
.toasts { position: fixed; right: 14px; bottom: 15px; display: grid; gap: 6px; z-index: 10; max-width: min(420px,calc(100vw - 28px)); pointer-events: none; }
.toast { display: flex; gap: 8px; align-items: center; background: #2a4630; color: #e8f8dc; border: 1px solid #507252; border-radius: 10px; padding: 11px; box-shadow: 0 8px 30px #07120bbb; font-size: .82rem; animation: appear .2s var(--ease) both; }
.toast.error { background: #472d29; border-color: #744b40; color: #ffd4c8; }

@media (max-width: 1160px) {
  .layout { grid-template-columns: 205px minmax(0,1fr); }
  .dashboard-grid { grid-template-columns: minmax(0,1fr) minmax(208px,.48fr); }
  .order-preview .order-row { grid-template-columns: minmax(120px,1.3fr) minmax(100px,.9fr) 13px; }
  .order-preview .order-status { display: none; }
}
@media (max-width: 920px) {
  .layout { grid-template-columns: 184px minmax(0,1fr); }
  .sidebar { padding-inline: 9px; }
  .hero { padding-inline: 22px; }
  .dashboard-grid, .finance-grid { grid-template-columns: 1fr; }
  .order-preview .order-row { grid-template-columns: minmax(128px,1.35fr) minmax(90px,.95fr) minmax(94px,.72fr) 14px; }
  .order-preview .order-status { display: block; }
  .detail-meta { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: minmax(0,1fr); }
  .detail-aside { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 680px) {
  body { min-width: 0; }
  .layout { display: block; }
  .sidebar { display: none; position: fixed; inset: 0 auto 0 0; width: min(270px,86vw); z-index: 6; padding: 20px 13px; }
  .sidebar.open { display: flex; box-shadow: 8px 0 40px #020604b0; }
  .scrim { display: block !important; position: fixed; inset: 0; z-index: 5; width: 100%; background: #06100bc2; border: 0; }
  .menu-toggle { display: inline-flex !important; }
  .crumb-root, .crumb > .icon, .topdate { display: none; }
  .topbar { height: calc(55px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) max(12px,env(safe-area-inset-right)) 0 max(12px,env(safe-area-inset-left)); }
  .content { padding: 12px 11px calc(76px + env(safe-area-inset-bottom)); }
  .quick-nav { display: flex !important; position: fixed; z-index: 4; bottom: 0; inset-inline: 0; gap: 2px; background: #15251ef5; border-top: 1px solid #355143; padding: 5px 5px calc(5px + env(safe-area-inset-bottom)); }
  .quick-nav a { flex: 1; display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 44px; border-radius: 8px; color: var(--muted); font-size: .59rem; font-weight: 650; }
  .quick-nav a[aria-current="page"] { color: var(--lime); background: #2d432e; }
  .hero { min-height: 229px; padding: 17px; border-radius: 17px; }
  .hero h1 { font-size: clamp(2.8rem,11vw,4.2rem); }
  .hero-kicker { font-size: .52rem; letter-spacing: .1em; }
  .hero-copy { width: 81%; }
  .hero p { font-size: .78rem; margin-top: 10px; max-width: 222px; }
  .hero-art { width: 58%; right: -9%; opacity: .65; top: -7%; }
  .hero-index { display: none; }
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin: 10px 0; }
  .stat { min-height: 105px; padding: 9px; }
  .stat strong { font-size: 1.59rem; }
  .tile-icon { width: 33px; height: 33px; border-radius: 9px; }
  .section { padding: 11px; }
  .dashboard-grid { gap: 9px; }
  .order-row, .order-preview .order-row, .list-caption { grid-template-columns: minmax(0,1fr) minmax(87px,.53fr) 14px; gap: 6px; }
  .order-name .tile-icon { width: 29px; height: 29px; }
  .order-row .order-status, .order-preview .order-status { display: block; grid-column: 1; grid-row: 2; padding-left: 35px; }
  .order-row > .icon { grid-column: 3; grid-row: 1 / 3; }
  .order-row .row-progress, .list-caption span:nth-child(3), .list-caption span:nth-child(4) { display: none; }
  .order-name strong { white-space: normal; overflow-wrap: anywhere; }
  .page-heading { align-items: start; flex-direction: column; gap: 8px; margin-block: 10px 14px; }
  .page-heading h1 { font-size: clamp(1.85rem,9vw,2.75rem); overflow-wrap: anywhere; }
  .page-heading p { font-size: .8rem; }
  .search { margin-left: 0; flex: 1; }
  .monthbar { flex-wrap: wrap; }
  .result-list { padding-inline: 8px; }
  .detail-aside { grid-template-columns: 1fr; }
  .detail-meta { gap: 8px; padding: 9px; }
  .detail-meta small { font-size: .66rem; }
  .detail-meta strong { font-size: .76rem; }
  .signin { grid-template-columns: 1fr; align-content: center; gap: 12px; padding: 15px; }
  .signin > div { min-height: 184px; }
  .signin img[src="/hero.svg"] { right: 0; left: auto; width: 58%; bottom: 0; }
  .btn, .icon-btn, .segments button, .month-input, .monthbar .btn { min-height: 44px; }
  .icon-btn { min-width: 44px; }
  .field input, .field select, .field textarea, .search input { font-size: 16px; }
  .field input, .field select, .field textarea { min-height: 44px; }
  .money-card strong { white-space: normal; overflow-wrap: anywhere; }
  .stacked-table table, .stacked-table tbody, .stacked-table tr { display: block; }
  .stacked-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .stacked-table tr { padding: 9px 0; border-top: 1px solid var(--edge); }
  .stacked-table td { display: grid; grid-template-columns: minmax(100px,1fr) minmax(0,1.1fr); gap: 4px 8px; padding: 4px 0; border: 0; white-space: normal; overflow-wrap: anywhere; }
  .stacked-table td[data-label]::before { content: attr(data-label); color: var(--dim); }
  .stacked-table td:not([data-label]) { display: block; }
  .stacked-table td small { margin-top: 0; }
  .task { min-height: 48px; }
  .toasts { bottom: calc(65px + env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) {
  .hero-art { opacity: .4; }
  .hero-kicker { letter-spacing: .07em; }
  .form-grid { grid-template-columns: 1fr; }
  .budget-hero { align-items: start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
