/* FieldLedger: local system fonts, no external assets or framework dependencies. */
:root {
  --forest: #183e34; --forest-deep: #102d26; --green: #2f6652; --sage: #dce8d8;
  --paper: #f5f4ee; --surface: #fffefa; --ink: #24372f; --muted: #647168;
  --line: #dcded3; --amber: #8a6019; --amber-bg: #fbefd3; --rust: #a34630;
  --rust-bg: #f8e8e1; --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-family: var(--sans); color: var(--ink); background: var(--paper); font-size: 15px;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
a { color: var(--green); text-underline-offset: 3px; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
:focus-visible { outline: 3px solid #c19341; outline-offset: 3px; }
[hidden] { display: none !important; }
svg { flex-shrink: 0; }
.icon { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.skip-link { position: fixed; left: 14px; top: -60px; padding: 12px; background: var(--surface); z-index: 100; }
.skip-link:focus { top: 14px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(28px, 3.1vw, 40px); font-weight: 600; line-height: 1.13; letter-spacing: -1.4px; margin-bottom: 12px; }
h2 { font-size: 20px; font-weight: 600; letter-spacing: -.4px; margin-bottom: 8px; }
h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
p { line-height: 1.6; margin-bottom: 12px; }
.muted { color: var(--muted); }
.small { font-size: 12px; line-height: 1.6; }
.mono, .amount, .reference { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.eyebrow { font: 11px/1.6 var(--mono); letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.reference { font-size: 11px; letter-spacing: .3px; }
.positive { color: var(--green); }
.negative { color: var(--rust); }
.flex { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.stack { display: grid; gap: 20px; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 232px; background: var(--forest); color: #eaf0e7; display: flex; flex-direction: column; padding: 31px 18px 20px; z-index: 30; }
.brand { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 12px; padding: 0 11px 28px; }
.brand img { width: 43px; height: 43px; border: 1px solid #638173; border-radius: 10px; }
.wordmark { font-size: 17px; font-weight: 650; line-height: 1.1; letter-spacing: 2.2px; }
.wordmark span { display: block; }
.sidebar .eyebrow { color: #afc2b4; padding: 0 13px; font-size: 10px; }
.nav-list { display: grid; gap: 5px; }
.nav-link { display: flex; align-items: center; gap: 13px; color: #c9d7ca; padding: 12px 13px; border-radius: 5px; text-decoration: none; font-size: 13px; font-weight: 500; transition: background .16s, color .16s; }
.nav-link:hover { background: #ffffff0c; color: white; }
.nav-link.active { background: #edf2de; color: var(--forest); }
.nav-count { font: 10px var(--mono); margin-left: auto; border: 1px solid currentColor; border-radius: 3px; padding: 2px 5px; }
.sidebar-foot { margin-top: auto; padding: 26px 12px 0; }
.sidebar-foot p { font-size: 12px; color: #b5c9b9; line-height: 1.65; }
.rail-rule { height: 1px; background: #68837680; margin-bottom: 18px; }
.private-note { display: flex; gap: 7px; font: 10px var(--mono); letter-spacing: .6px; text-transform: uppercase; }
.workspace { margin-left: 232px; min-height: 100vh; }
.topbar { height: 73px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 0 38px; background: var(--surface); gap: 16px; }
.topbar-title { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 9px; }
.topbar-title strong { color: var(--ink); font-weight: 500; }
.topbar-actions { display: flex; gap: 15px; align-items: center; }
.owner-chip { display: flex; gap: 8px; align-items: center; font-size: 12px; }
.avatar { width: 29px; height: 29px; background: #e8ecdf; display: grid; place-items: center; border-radius: 50%; font-family: var(--mono); font-size: 11px; }
.mobile-bar { display: none; }
.source-banner { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 12px 38px; border-bottom: 1px solid #e3d2a3; background: var(--amber-bg); color: #725321; font-size: 12px; }
.source-banner.imported { background: #e8eee0; border-color: #cdd9c4; color: var(--forest); }
.source-banner.empty { background: #eeefe8; border-color: var(--line); color: var(--muted); }
.banner-label { font-weight: 650; display: flex; align-items: center; gap: 8px; }
.banner-description { opacity: .9; }
.banner-link { color: inherit; font-weight: 600; white-space: nowrap; }
main.content { padding: 33px 38px 52px; max-width: 1640px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; margin-bottom: 29px; }
.page-head p { margin-bottom: 0; max-width: 660px; font-size: 14px; }
.page-head .eyebrow { margin-bottom: 9px; }
.page-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding-top: 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 15px; min-height: 40px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--ink); text-decoration: none; font-size: 12px; font-weight: 600; line-height: 1.35; transition: background .15s, border-color .15s; }
.btn:hover:not(:disabled) { background: #ecefe4; border-color: #b6c2b1; }
.btn.primary { background: var(--forest); border-color: var(--forest); color: #fffefa; }
.btn.primary:hover:not(:disabled) { background: var(--green); }
.btn.danger { color: var(--rust); border-color: #dcb6a7; background: #fffaf7; }
.btn.subtle { background: transparent; border-color: transparent; color: var(--muted); }
.btn.compact { min-height: 32px; padding: 6px 10px; font-size: 11px; }
.btn.full { width: 100%; }
.icon-btn { width: 36px; min-width: 36px; padding: 6px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border: 1px solid var(--line); background: var(--surface); border-radius: 7px; margin-bottom: 25px; overflow: hidden; }
.kpi { padding: 24px 23px 21px; border-right: 1px solid var(--line); }
.kpi:last-child { border-right: 0; }
.kpi-label { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; margin-bottom: 17px; }
.kpi-value { font: 500 clamp(24px,2.55vw,35px)/1.12 var(--mono); letter-spacing: -1.6px; overflow-wrap: anywhere; margin-bottom: 12px; }
.kpi-note { font-size: 11px; color: var(--muted); line-height: 1.5; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.panel-pad { padding: 23px; }
.panel-head { padding: 20px 23px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.panel-head h2, .panel-head h3 { margin: 0; }
.panel-head .small { margin: 4px 0 0; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); gap: 23px; align-items: start; }
.two-col { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 23px; align-items: start; }
.editor-grid { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(285px,.9fr); gap: 23px; align-items: start; }
.section-gap { margin-top: 24px; }
.badge { display: inline-block; padding: 4px 8px; border-radius: 4px; background: #eceee6; color: #526052; font: 10px/1.2 var(--mono); letter-spacing: .15px; white-space: nowrap; }
.badge.good { color: #28523e; background: #e2ebda; }
.badge.warn { color: var(--amber); background: var(--amber-bg); }
.badge.risk { color: var(--rust); background: var(--rust-bg); }
.badge.outline { border: 1px solid var(--line); background: transparent; }
.notice { background: #ecefe5; border-left: 3px solid #9aa88b; padding: 13px 16px; font-size: 12px; line-height: 1.65; border-radius: 0 4px 4px 0; }
.notice.warn { background: var(--amber-bg); border-color: #c6a155; color: #755723; }
.notice.risk { background: var(--rust-bg); border-color: var(--rust); color: #813c2c; }
.notice p:last-child { margin-bottom: 0; }
.warning-list { display: grid; gap: 8px; margin-bottom: 20px; }
.source-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font: 11px var(--mono); color: var(--muted); padding-top: 12px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
th { font: 10px/1.5 var(--mono); letter-spacing: .8px; text-transform: uppercase; color: var(--muted); background: #f7f8f1; padding: 12px 18px; white-space: nowrap; border-bottom: 1px solid var(--line); }
td { padding: 16px 18px; border-bottom: 1px solid #e7e8df; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f7f8f2; }
td strong { font-size: 12px; font-weight: 600; }
.cell-sub { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; max-width: 320px; overflow-wrap: anywhere; }
.align-right { text-align: right; }
.nowrap { white-space: nowrap; }
.table-foot { padding: 13px 23px; font: 10px/1.6 var(--mono); color: var(--muted); border-top: 1px solid var(--line); }
.toolbar { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 16px 23px; border-bottom: 1px solid var(--line); }
.search-box { position: relative; max-width: 340px; width: 100%; }
.search-box .icon { position: absolute; left: 11px; top: 11px; color: var(--muted); width: 17px; }
.search-box input { padding-left: 37px; background: #f9f9f4; }
.empty-state { padding: 40px 25px; text-align: center; }
.empty-state .empty-icon { display: grid; place-items: center; width: 49px; height: 49px; border-radius: 50%; background: #eaf0e2; color: var(--green); margin: 0 auto 18px; }
.empty-state h2 { font-size: 21px; }
.empty-state p { color: var(--muted); font-size: 13px; max-width: 530px; margin: 0 auto 21px; }
.empty-actions { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }
.ledger-list { margin: 0; }
.ledger-row { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.ledger-row:last-child { border-bottom: 0; }
.ledger-row.total { font-weight: 650; font-size: 16px; border-top: 2px solid var(--forest); margin-top: 6px; padding-top: 18px; }
.ledger-row dd { margin: 0; font-family: var(--mono); }
.ledger-row dt { max-width: 65%; }
.chart { padding: 23px; display: grid; gap: 19px; }
.chart-row { display: grid; grid-template-columns: 90px minmax(0,1fr) 105px; gap: 12px; align-items: center; font-size: 11px; }
.chart-track { height: 25px; background: #ecefe5; border-radius: 2px; overflow: hidden; }
.chart-bar { height: 100%; background: var(--green); min-width: 0; }
.chart-bar.cost { background: #b6be9b; }
.chart-bar.risk { background: #b96b4f; }
.chart-caption { font-size: 11px; color: var(--muted); padding: 0 23px 19px; }
.proposal-mini { padding: 16px 23px; border-bottom: 1px solid var(--line); }
.proposal-mini:last-child { border-bottom: 0; }
.proposal-mini h3 { font-size: 13px; line-height: 1.5; margin: 8px 0; }
.proposal-mini p { font-size: 12px; color: var(--muted); margin-bottom: 9px; }
.rule-callout { display: flex; align-items: flex-start; gap: 12px; padding: 16px 0 0; }
.rule-callout .icon { color: var(--green); margin-top: 3px; }
label, .field-label { display: block; font-size: 12px; font-weight: 550; margin-bottom: 7px; }
input, select, textarea { display: block; width: 100%; border: 1px solid #cbd1c3; border-radius: 4px; padding: 10px 11px; color: var(--ink); background: white; min-height: 41px; }
input:focus, select:focus, textarea:focus { border-color: var(--green); }
textarea { resize: vertical; line-height: 1.65; min-height: 94px; }
input[type=file] { padding: 8px; font-size: 12px; background: #f8f9f3; }
input[type=checkbox] { width: 17px; height: 17px; min-height: 0; accent-color: var(--forest); }
input[type=number] { font-family: var(--mono); }
.field { margin-bottom: 18px; }
.field-help { display: block; margin-top: 7px; font-size: 11px; line-height: 1.5; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 17px; }
.form-grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.form-grid .span-all { grid-column: 1/-1; }
fieldset { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
legend { font-size: 14px; font-weight: 650; margin-bottom: 15px; width: 100%; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-top: 8px; }
.form-error { color: var(--rust); background: var(--rust-bg); padding: 10px 13px; font-size: 12px; border-radius: 4px; margin-bottom: 15px; }
.line-item { border: 1px solid var(--line); border-radius: 5px; padding: 17px; background: #f9faf4; margin-bottom: 13px; }
.line-item .field { margin-bottom: 12px; }
.line-item .form-grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.line-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.line-head .eyebrow { margin: 0; }
.estimate-result { position: sticky; top: 23px; }
.result-value { font: 35px/1.3 var(--mono); letter-spacing: -1.5px; margin: 7px 0 20px; }
.result-note { font-size: 11px; color: var(--muted); }
.draft-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.75; margin: 17px 0; }
pre.payload { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; margin: 12px 0; padding: 15px; background: #f0f2e9; border: 1px solid var(--line); border-radius: 4px; max-height: 370px; overflow: auto; font: 11px/1.8 var(--mono); }
.details-block { border-top: 1px solid var(--line); padding: 15px 0 0; margin-top: 15px; }
summary { cursor: pointer; font-size: 12px; color: var(--green); font-weight: 600; padding: 4px 0; }
.proposal-card { padding: 24px; }
.proposal-card + .proposal-card { border-top: 1px solid var(--line); }
.proposal-meta { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.proposal-card h2 { overflow-wrap: anywhere; }
.evidence-list { margin: 10px 0; padding-left: 20px; font-size: 12px; line-height: 1.7; }
.proposal-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.hash-value { font: 10px/1.65 var(--mono); overflow-wrap: anywhere; color: var(--muted); }
.memory-card { padding: 21px 23px; border-bottom: 1px solid var(--line); }
.memory-card:last-child { border: 0; }
.memory-card h3 { margin-top: 10px; }
.memory-card p { font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.import-card { padding: 22px; }
.import-card p { font-size: 12px; color: var(--muted); }
.import-card .reference { display: block; overflow-wrap: anywhere; margin: 10px 0 16px; color: var(--muted); }
.integration-card { padding: 18px 23px; border-bottom: 1px solid var(--line); }
.integration-card p { font-size: 12px; margin: 10px 0 0; color: var(--muted); }
.budget-big { display: flex; align-items: baseline; gap: 7px; margin: 16px 0; }
.budget-big strong { font: 34px var(--mono); letter-spacing: -1.5px; }
.chat-launch { position: fixed; bottom: 24px; right: 25px; z-index: 40; box-shadow: 0 5px 22px #143d3420; }
.chat-drawer { position: fixed; inset: 0 0 0 auto; z-index: 65; width: min(430px,100%); background: var(--surface); box-shadow: -14px 0 50px #14271e26; display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.chat-head { padding: 22px; border-bottom: 1px solid var(--line); }
.chat-head h2 { margin: 0; }
.chat-messages { flex: 1; overflow-y: auto; padding: 21px; display: flex; flex-direction: column; gap: 16px; }
.chat-message { padding: 15px; border: 1px solid var(--line); background: #f4f6ee; border-radius: 6px; }
.chat-message.user { background: #e6eedf; margin-left: 25px; }
.chat-message .draft-text { margin: 7px 0 0; }
.chat-message .eyebrow { margin: 0; }
.chat-sources { font-size: 11px; margin-top: 11px; line-height: 1.7; color: var(--muted); }
.chat-form { padding: 18px 21px; border-top: 1px solid var(--line); }
.chat-form textarea { min-height: 78px; max-height: 180px; font-size: 13px; }
.chat-form .form-actions { justify-content: space-between; }
.scrim { position: fixed; inset: 0; background: #142d254d; z-index: 60; border: 0; border-radius: 0; }
dialog { border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); padding: 0; width: min(660px,calc(100% - 30px)); max-height: 90vh; box-shadow: 0 18px 70px #122c2540; }
dialog::backdrop { background: #10271e80; }
.dialog-body { padding: 26px; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.dialog-head h2 { margin-bottom: 0; }
.dialog-footer { padding: 17px 26px; border-top: 1px solid var(--line); display: flex; gap: 9px; justify-content: flex-end; background: #f4f5ee; }
.toast-stack { position: fixed; right: 22px; top: 18px; width: min(420px,calc(100% - 36px)); display: grid; gap: 9px; z-index: 120; }
.toast { display: flex; align-items: flex-start; gap: 10px; background: var(--forest); color: white; border: 1px solid #51715e; padding: 14px 16px; font-size: 12px; line-height: 1.5; border-radius: 5px; box-shadow: 0 5px 20px #14291c20; overflow-wrap: anywhere; }
.toast.error { background: #833b2c; border-color: #b16651; }
.toast button { border: 0; background: transparent; color: inherit; padding: 0 2px; margin-left: auto; font-size: 20px; }
.startup { padding: 11vh 25px; max-width: 750px; margin: auto; text-align: center; }
.startup img { margin-bottom: 24px; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); }
.login-story { background: var(--forest); color: #f2f2e5; padding: clamp(35px,6vw,85px); display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-story:after { content: ''; position: absolute; bottom: 140px; right: -55px; width: 240px; height: 240px; border: 1px solid #6d8a73; transform: rotate(45deg); opacity: .23; box-shadow: 28px 28px 0 0 #49685070, 55px 55px 0 0 #49685040; pointer-events: none; }
.login-story .brand { padding: 0; align-self: flex-start; }
.login-story h1 { max-width: 540px; font-size: clamp(38px,4.5vw,62px); line-height: 1.07; letter-spacing: -2.3px; margin: 60px 0 25px; }
.login-story p { color: #c0d0bb; max-width: 440px; font-size: 15px; }
.login-story .eyebrow { color: #baccab; }
.login-bottom { border-top: 1px solid #658371; padding-top: 23px; margin-top: 50px; }
.login-form-area { display: flex; align-items: center; justify-content: center; padding: 40px; }
.login-card { max-width: 365px; width: 100%; }
.login-card h2 { font-size: 30px; letter-spacing: -1px; margin-bottom: 12px; }
.login-card > p { font-size: 13px; margin-bottom: 28px; }
.login-card .field { margin-bottom: 21px; }
.login-card .notice { margin-top: 24px; }
.noscript { margin: 20px; padding: 20px; border: 1px solid var(--rust); background: var(--rust-bg); }
@media (min-width: 1550px) { main.content { padding-top: 42px; } .kpi { padding: 28px; } }
@media (max-width: 1200px) {
  .sidebar { width: 204px; padding-inline: 13px; } .workspace { margin-left: 204px; }
  main.content { padding: 28px 26px 45px; } .topbar, .source-banner { padding-inline: 26px; }
  .overview-grid { grid-template-columns: minmax(0,1.4fr) minmax(270px,1fr); }
  .kpi { padding: 21px 17px; } .kpi-value { font-size: 28px; }
  .editor-grid { grid-template-columns: minmax(0,1.4fr) minmax(260px,1fr); }
}
@media (max-width: 1000px) {
  .overview-grid, .editor-grid { grid-template-columns: 1fr; }
  .estimate-result { position: static; } .kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .kpi:nth-child(2) { border-right: 0; } .kpi:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .two-col { gap: 17px; } .page-head { flex-direction: column; gap: 14px; }
  .banner-description { display: none; } .topbar-actions { gap: 7px; }
  .chart-row { grid-template-columns: 78px minmax(0,1fr) 92px; }
}
@media (max-width: 760px) {
  .sidebar { display: none; } .workspace { margin-left: 0; }
  .topbar { height: 65px; padding: 0 18px; } .topbar-title { display: none; }
  .mobile-bar { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; }
  .mobile-bar img { width: 31px; height: 31px; } .mobile-bar select { min-height: 35px; padding: 7px; max-width: 210px; border-color: transparent; background: var(--surface); font-weight: 600; font-size: 13px; }
  .owner-chip { display: none; } .topbar-actions .refresh-label { display: none; }
  .source-banner { padding: 11px 18px; font-size: 11px; }
  main.content { padding: 26px 18px 90px; } h1 { font-size: 31px; }
  .page-head { margin-bottom: 23px; } .page-head p { font-size: 13px; }
  .two-col { grid-template-columns: 1fr; }
  .panel-head { padding: 18px; } .panel-pad, .proposal-card { padding: 19px; }
  .toolbar { padding: 13px 18px; flex-wrap: wrap; } .search-box { max-width: 100%; }
  .kpi { padding: 20px 16px; } .kpi-value { font-size: 27px; } .kpi-label { font-size: 11px; margin-bottom: 13px; }
  .kpi-note { font-size: 10px; } .kpi-grid { margin-bottom: 18px; }
  td, th { padding-left: 15px; padding-right: 15px; } .table-foot { padding: 12px 18px; }
  .login-shell { grid-template-columns: 1fr; } .login-story { padding: 27px; }
  .login-story h1 { margin: 30px 0 15px; font-size: 37px; max-width: 420px; }
  .login-bottom { display: none; } .login-story p { margin-bottom: 0; font-size: 13px; }
  .login-form-area { padding: 34px 25px 45px; } .login-story:after { bottom: -100px; }
  .chat-launch { bottom: 17px; right: 18px; } .toast-stack { top: 10px; right: 12px; }
}
@media (max-width: 430px) {
  .form-grid, .form-grid.three { grid-template-columns: 1fr; }
  .line-item .form-grid.three { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .line-item .form-grid.three .field:last-child { grid-column: 1/-1; }
  .kpi-value { font-size: 24px; } .kpi { padding: 18px 13px; }
  .page-actions .btn { font-size: 11px; padding-inline: 11px; }
  .chart { padding: 18px; } .chart-row { grid-template-columns: 62px minmax(0,1fr) 82px; gap: 7px; font-size: 10px; }
  .dialog-body { padding: 20px; } .dialog-footer { padding: 15px 20px; }
}
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
