:root {
  color-scheme: light;
  --ink: #17332d;
  --text: #293e36;
  --muted: #62736a;
  --line: #dce5df;
  --canvas: #f4f7f3;
  --green: #12644d;
  --green-soft: #e8f2eb;
  --amber: #805800;
  --red: #983c34;
  font: 15px/1.55 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--text); }
a { color: var(--green); text-underline-offset: 3px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid #b47a05; outline-offset: 4px; }
p { margin: 0 0 14px; }
h1, h2, h3 { color: var(--ink); line-height: 1.25; }
h1 { margin: 0 0 12px; font-size: clamp(26px, 3.5vw, 34px); font-weight: 690; letter-spacing: -.8px; }
h2 { margin: 0; font-size: 20px; font-weight: 670; letter-spacing: -.3px; }
h3 { margin: 0 0 7px; font-size: 15px; font-weight: 650; }
ul { padding-left: 22px; }
li + li { margin-top: 7px; }
form { margin: 0; }
small, .small { font-size: 12px; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; }
.break-anywhere { overflow-wrap: anywhere; word-break: normal; }
.nowrap { white-space: nowrap; }
.numeric { text-align: right; font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 18px; z-index: 100; padding: 13px 18px; border: 1px solid var(--green); border-radius: 8px; background: white; }
.skip-link:focus { top: 12px; }
.sidebar { position: fixed; top: 0; bottom: 0; width: 254px; padding: 29px 18px 20px; display: flex; flex-direction: column; overflow-y: auto; border-right: 1px solid var(--line); background: white; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-size: 23px; font-weight: 750; letter-spacing: -.8px; line-height: 1.1; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 40px; flex: 0 0 auto; border-radius: 10px; background: var(--green); color: white; font-size: 32px; font-weight: 800; letter-spacing: -2px; }
.brand small { display: block; margin-top: 8px; color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .14em; }
.company-chip { display: flex; align-items: flex-start; gap: 11px; margin: 33px 0 12px; padding: 14px 11px; border: 1px solid #e3ebe2; border-radius: 11px; background: #f6f8f4; font-size: 12px; }
.company-chip > div { min-width: 0; overflow-wrap: anywhere; }
.company-chip strong { display: block; font-weight: 650; }
.company-chip small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.company-icon { display: grid; place-items: center; width: 29px; height: 29px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--green); font-weight: 750; }
.company-switcher { margin-bottom: 8px; font-size: 12px; }
summary { cursor: pointer; padding: 9px 8px; color: var(--green); border-radius: 6px; }
.company-switcher ul { list-style: none; margin: 6px 0 12px; padding: 0 8px; }
.company-switcher a { display: block; padding: 6px 0; overflow-wrap: anywhere; }
.nav-section { margin: 22px 12px 9px; color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.nav-link { display: flex; gap: 12px; align-items: center; min-height: 45px; margin: 4px 0; padding: 10px 12px; border-radius: 9px; color: #526a5d; font-size: 14px; font-weight: 550; text-decoration: none; }
.nav-link:hover { background: #f3f6f1; }
.nav-link[aria-current="page"] { background: var(--green-soft); color: #0d6147; font-weight: 700; }
.nav-symbol { display: inline-block; width: 19px; flex: 0 0 auto; font-size: 18px; line-height: 1; text-align: center; }
.sidebar-note { display: flex; gap: 9px; margin-top: auto; padding: 22px 10px 0; border-top: 1px solid #eaf0e8; font-size: 11px; }
.sidebar-note small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.status-dot { display: inline-block; width: 6px; height: 6px; margin-top: 6px; flex: 0 0 auto; border-radius: 50%; background: #33956c; }
.workspace { margin-left: 254px; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 74px; padding: 14px 36px; border-bottom: 1px solid var(--line); background: #ffffffb8; }
.topbar-start, .account-actions { display: flex; align-items: center; gap: 14px; min-width: 0; }
.breadcrumb { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.breadcrumb > span { margin: 0 10px; color: #a2b0a4; }
.account-name { max-width: 180px; overflow-wrap: anywhere; color: var(--muted); font-size: 12px; }
.mobile-navigation { display: none; }
main { width: 100%; max-width: 1480px; margin: 0 auto; padding: 35px 36px; }
main:focus { outline: 0; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 22px; margin-bottom: 25px; }
.page-heading > div { min-width: 0; }
.page-heading .button { flex: 0 0 auto; margin-top: 5px; }
.eyebrow { margin: 0 0 9px; color: #647b62; font-size: 10px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; overflow-wrap: anywhere; }
.lead { max-width: 760px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.notice { margin: 0 0 24px; padding: 15px 17px; border: 1px solid #e9d7ac; border-radius: 11px; background: #fffaf0; color: #654e25; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.notice strong { margin-right: 4px; font-weight: 700; }
.info-notice { border-color: #d5e3d8; background: #edf5ef; color: #315f48; }
.error-notice { border-color: #e4b9b3; background: #fff4f1; color: var(--red); }
.error-code { display: block; margin-top: 5px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; gap: 8px; padding: 10px 15px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--green); font-size: 13px; line-height: 1.4; font-weight: 650; text-align: center; text-decoration: none; }
.button:hover { background: #f2f6f0; }
.button.primary { border-color: var(--green); background: var(--green); color: white; }
.button.primary:hover { background: #0c523e; }
.small-button { min-height: 36px; padding: 7px 11px; font-size: 12px; }
.full-width { width: 100%; }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.text-link { color: var(--green); font-size: 12px; font-weight: 650; white-space: nowrap; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.company-section + .company-section { margin-top: 38px; padding-top: 30px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 0 0 18px; }
.section-heading h2 { overflow-wrap: anywhere; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 23px; }
.kpi-card { min-width: 0; padding: 20px 19px 18px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.kpi-card h3 { color: var(--muted); font-size: 12px; font-weight: 600; }
.kpi-value { margin: 16px 0 11px; color: var(--ink); font-size: 32px; line-height: 1.1; font-weight: 680; letter-spacing: -.9px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kpi-foot { margin: 0; color: var(--muted); font-size: 11px; }
.panel { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: white; }
.panel-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding: 20px 22px; border-bottom: 1px solid #e9eee7; }
.panel-head h2 { font-size: 17px; }
.panel-head h3 { margin: 0; font-size: 16px; }
.panel-head p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.panel-content { padding: 23px 22px; }
.panel-content > :last-child { margin-bottom: 0; }
.panel-footer { padding: 16px 22px; border-top: 1px solid #e9eee7; background: #fbfdf9; }
.narrow-panel { max-width: 780px; }
.source-note { margin-top: 24px; }
.source-note .panel-content > h2 { margin-bottom: 11px; font-size: 17px; }
.source-note .panel-content > p { color: var(--muted); font-size: 13px; line-height: 1.75; }
.empty-state { padding: 31px 26px; }
.empty-state h2, .empty-state h3 { margin-bottom: 10px; }
.empty-state p { max-width: 700px; margin-bottom: 20px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.empty-state.compact-empty { padding: 23px; }
.empty-mark { display: grid; place-items: center; width: 45px; height: 45px; margin-bottom: 17px; border-radius: 12px; background: var(--green-soft); color: var(--green); font-size: 25px; }
.status-pill { display: inline-flex; align-items: center; max-width: 100%; padding: 5px 8px; border-radius: 5px; color: #3b6e4f; background: #eaf3e9; font-size: 11px; line-height: 1.4; font-weight: 650; }
.status-pill.warning { background: #fff2cf; color: var(--amber); }
.status-pill.danger { background: #fceeea; color: var(--red); }
.status-pill.neutral { background: #edf1ec; color: #586b5b; }
.table-wrap { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
th { padding: 13px 18px; border-bottom: 1px solid #e5ece2; background: #f9fcf7; color: #627764; font-size: 12px; font-weight: 600; white-space: nowrap; }
td { padding: 16px 18px; border-bottom: 1px solid #edf1e9; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfdf9; }
.table-action { display: inline-block; padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; text-decoration: none; }
.table-action:hover { background: #edf5ed; }
.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; padding: 17px; border-top: 1px solid var(--line); font-size: 13px; }
.section-note { margin: 18px 0 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin: 0 0 22px; }
.details-grid > div { min-width: 0; padding: 9px 0 13px; border-bottom: 1px solid #e9eee5; }
.details-grid .full-detail { grid-column: 1 / -1; }
dt { color: var(--muted); font-size: 12px; }
dd { margin: 5px 0 0; color: var(--ink); font-size: 14px; font-weight: 550; overflow-wrap: anywhere; }
.result-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin: 0 0 19px; }
.result-grid > div { min-width: 0; padding: 17px; border: 1px solid #e0e9dd; border-radius: 10px; background: #f7faf4; }
.result-grid dd { margin-top: 9px; color: var(--green); font-size: 28px; font-weight: 680; font-variant-numeric: tabular-nums; }
.source-list { margin: 0; padding-left: 22px; }
.source-list > li { padding: 0 0 10px 7px; }
.source-list > li + li { padding-top: 14px; border-top: 1px solid #e9eee5; }
.source-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 7px; }
.source-list .details-grid { margin-bottom: 0; }
.source-list .details-grid > div:last-child { border-bottom: 0; }
.stack-form { display: grid; gap: 20px; }
.field { min-width: 0; }
.field > label { display: block; margin-bottom: 8px; color: var(--ink); font-size: 14px; font-weight: 600; }
input:not([type="hidden"]) { display: block; width: 100%; min-width: 0; min-height: 45px; padding: 10px 12px; border: 1px solid #b9cbbf; border-radius: 8px; background: white; color: var(--ink); }
input:not([type="hidden"]):focus { border-color: var(--green); }
input[aria-invalid="true"] { border-color: var(--red); }
input[type="file"] { max-width: 100%; padding: 8px; font-size: 13px; }
input[type="file"]::file-selector-button { margin-right: 10px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 6px; background: #edf4ed; color: var(--green); font: inherit; font-weight: 600; cursor: pointer; }
.form-note { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.field-errors { margin-top: 8px; color: var(--red); font-size: 13px; }
.field-errors p { margin: 0 0 5px; }
.field-errors ul { margin: 0; padding-left: 20px; }
.upload-summary { padding: 18px 19px; border: 1px solid #e0e9dd; border-radius: 10px; background: #f8faf5; font-size: 13px; }
.upload-summary ul { margin: 10px 0 14px; }
.upload-summary p { margin: 0; color: var(--muted); }
.page-footer { width: 100%; max-width: 1480px; margin: 0 auto; padding: 0 36px 27px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.auth-layout { min-height: 100vh; background: #eff4ed; }
.auth-main { width: min(100%, 550px); padding: 52px 22px 28px; }
.auth-brand { margin: 0 0 31px 8px; }
.auth-card { padding: 31px; border: 1px solid #d7e2d6; border-radius: 17px; background: white; box-shadow: 0 15px 42px #17332d08; }
.auth-card h1 { font-size: 27px; }
.auth-card > .lead { margin-bottom: 25px; font-size: 14px; }
.auth-card .notice { margin-top: 20px; margin-bottom: 23px; }
.auth-card > .form-note { margin-top: 22px; padding-top: 19px; border-top: 1px solid #e9eee5; }
.auth-footer { max-width: 400px; margin: 23px auto 0; color: var(--muted); font-size: 12px; text-align: center; line-height: 1.7; }
@media (max-width: 1250px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar { padding-right: 26px; padding-left: 26px; }
  main { padding: 29px 26px; }
  .page-footer { padding-right: 26px; padding-left: 26px; }
  .result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .sidebar { display: none; }
  .workspace { margin-left: 0; }
  .mobile-navigation { display: block; flex: 0 0 auto; }
  .mobile-navigation > summary { padding: 8px 11px; border: 1px solid var(--line); background: white; font-size: 13px; font-weight: 600; }
  .mobile-panel { position: absolute; top: 72px; left: 16px; right: 16px; z-index: 30; max-height: calc(100vh - 92px); overflow-y: auto; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: 0 16px 50px #17332d25; }
  .mobile-panel .company-chip { margin-top: 0; }
  .topbar { gap: 12px; padding: 13px 20px; min-height: 72px; }
  .topbar-start { gap: 12px; }
  .account-actions { gap: 9px; }
  .account-name { max-width: 125px; }
  main { padding: 27px 20px; }
  .page-footer { padding-right: 20px; padding-left: 20px; }
}
@media (max-width: 600px) {
  .topbar { align-items: center; padding-right: 16px; padding-left: 16px; }
  .breadcrumb { display: none; }
  .account-name { max-width: 140px; font-size: 11px; }
  main { padding: 24px 16px; }
  .page-footer { padding-right: 16px; padding-left: 16px; }
  .page-heading { display: block; }
  .page-heading .button { margin-top: 17px; }
  .notice { padding: 13px 14px; font-size: 12px; }
  .section-heading { align-items: flex-start; }
  .section-heading h2 { font-size: 19px; }
  .kpi-grid { gap: 12px; }
  .kpi-card { padding: 17px 16px; }
  .kpi-card h3 { font-size: 11px; }
  .kpi-value { font-size: 30px; }
  .kpi-foot { font-size: 11px; }
  .panel-head, .panel-content { padding: 19px 17px; }
  .panel-footer { padding: 15px 17px; }
  .empty-state { padding: 26px 20px; }
  .details-grid { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .result-grid { gap: 11px; }
  .result-grid > div { padding: 15px 13px; }
  .result-grid dt { font-size: 11px; }
  .auth-main { padding-top: 30px; }
  .auth-card { padding: 25px 21px; }
  .auth-card h1 { font-size: 26px; }
  .button-row { align-items: stretch; }
  .button-row .button { flex: 1 1 auto; }
  th, td { padding-right: 14px; padding-left: 14px; }
}
@media (max-width: 390px) {
  .kpi-grid, .result-grid { grid-template-columns: minmax(0, 1fr); }
  .account-name { max-width: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
