:root {
  color-scheme: light;
  --nav: #122b27;
  --ink: #162d28;
  --muted: #536b63;
  --surface: #f3f6f1;
  --paper: #fff;
  --line: #dfe7df;
  --accent: #d6ee9f;
  --pill: #e7f1df;
  --danger: #8a4b17;
  --shadow: 0 16px 45px #26403412;
  font: 16px/1.5 "DM Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--surface); }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 3px solid #6fa175; outline-offset: 3px; }
svg { width: 19px; height: 19px; flex: none; }
h1, h2, p { margin: 0; }
h1, h2 { letter-spacing: -.04em; line-height: 1.13; }
h2 { font-size: 1.18rem; }
p { color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border: 1px solid transparent; border-radius: 10px; padding: .64rem .9rem; font-size: .89rem; font-weight: 700; color: var(--ink); white-space: nowrap; transition: background .18s ease, transform .18s ease; }
.btn:active { transform: translateY(1px); }
.primary { background: var(--accent); border-color: #cbe290; }
.primary:hover { background: #c8e582; }
.quiet, .mini { background: var(--paper); border-color: var(--line); }
.quiet:hover, .mini:hover { background: var(--pill); }
.mini { padding: .37rem .62rem; font-size: .79rem; }
.brand { display: flex; align-items: center; gap: .55rem; font-size: 1.09rem; font-weight: 800; white-space: nowrap; letter-spacing: -.04em; }
.brand b { font-weight: 550; }
.mark { display: block; flex: none; width: 42px; height: 42px; border-radius: 8px; object-fit: contain; }
.landing { min-height: 100vh; background: radial-gradient(ellipse at 84% 5%, #e0ebd5 0, transparent 53%), #f5f7f2; }
.site-head { width: min(1260px, 90%); margin: auto; height: 84px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #dce6d9; }
.hero { width: min(1260px, 90%); margin: auto; display: grid; grid-template-columns: 1fr .92fr; gap: clamp(2rem,6vw,6rem); align-items: center; padding: clamp(3.4rem,9vw,8rem) 0 clamp(3rem,7vw,6rem); }
.kicker { color: #3a6650; font-size: .85rem; font-weight: 750; margin-bottom: 1.3rem; }
.hero h1 { font-size: clamp(3.3rem,6.2vw,6rem); letter-spacing: -.078em; line-height: .97; max-width: 640px; }
.hero-detail { margin: 1.4rem 0 1.5rem; max-width: 530px; font-size: clamp(1rem,1.8vw,1.2rem); }
.hero-actions, .page-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.offer-line { margin-top: .95rem; font-size: .84rem; }
.offer-line strong { color: var(--ink); }
.hero-preview { padding: .8rem; background: var(--nav); border: 1px solid #223f38; border-radius: 23px; color: white; box-shadow: 0 30px 64px #1b3d3033; animation: enter .48s ease both; }
.preview-top { display: flex; align-items: center; justify-content: space-between; padding: .5rem .6rem .95rem; }
.preview-top .mark { width: 32px; height: 32px; border-radius: 6px; }
.live-dot { font-size: .75rem; color: #d3eac6; }
.preview-body { padding: 1.25rem; border-radius: 14px; background: #f4f7f1; color: var(--ink); }
.preview-body > p { font-size: .76rem; font-weight: 600; }
.preview-body h2 { font-size: clamp(1.15rem,2vw,1.85rem); margin: .25rem 0 .85rem; }
.preview-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .6rem; }
.preview-metrics > div, .preview-chart { padding: .7rem .65rem; background: #fff; border-radius: 9px; border: 1px solid var(--line); font-size: .73rem; color: var(--muted); }
.preview-metrics strong { display: block; color: var(--ink); font-size: clamp(.8rem,2vw,1.2rem); }
.preview-chart { margin: .65rem 0; }
.mini-bars { display: flex; align-items: end; gap: 7%; padding: .6rem .45rem 0; height: 90px; }
.mini-bars i, .bar { background: #84ac83; border-radius: 5px 5px 2px 2px; flex: 1; }
.mini-bars i:last-child, .bar-item:last-child .bar { background: #4d805f; }
.bar-track.negative .bar { background: #c17855; }
.preview-foot { display: flex; align-items: center; gap: .4rem; font-size: .72rem; color: var(--muted); }
.preview-foot svg { color: #51805c; width: 15px; }
.benefits { width: min(1260px,90%); margin: auto; padding: 1.25rem 0 3.5rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 2rem; }
.benefits svg { color: #4d805f; }
.benefits h2 { margin: .4rem 0; }
.benefits p { max-width: 320px; font-size: .9rem; }
.workspace { display: grid; grid-template-columns: 235px minmax(0,1fr); min-height: 100vh; }
aside { background: var(--nav); color: #f2f7ef; position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; padding: 1.3rem .85rem .8rem; min-height: 0; }
aside .brand { padding-left: .45rem; }
.org { display: flex; align-items: center; gap: .65rem; padding: .65rem; background: #234039; border-radius: 11px; margin: 1.45rem 0 1.05rem; }
.org > span, .avatar { display: grid; place-items: center; background: #dcecd3; border-radius: 9px; width: 30px; height: 30px; color: #325540; font-weight: 800; flex: none; }
.org div, .profile div { min-width: 0; }
.org strong, .profile strong, .org small, .profile small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.org strong, .profile strong { font-size: .78rem; }
.org small { color: #bdd2c6; font-size: .66rem; }
aside nav { display: grid; align-content: start; gap: .2rem; overflow-y: auto; }
.nav-item { display: flex; align-items: center; gap: .65rem; justify-content: flex-start; color: #cfdfd5; padding: .53rem .65rem; width: 100%; text-align: left; font: inherit; font-size: .81rem; font-weight: 600; border: 1px solid transparent; border-radius: 8px; background: transparent; }
.nav-item:hover { background: #244039; }
.nav-item.selected { background: var(--accent); color: var(--ink); }
.nav-item svg { width: 17px; height: 17px; }
.sidebar-foot { margin-top: auto; padding-top: .65rem; }
.top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 66px; padding: .5rem clamp(1rem,2.8vw,2.65rem); background: var(--paper); border-bottom: 1px solid var(--line); }
.top-main, .profile { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.top-main > .mark { display: none; }
.top-main > span { font-size: .85rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile small { color: var(--muted); font-size: .69rem; }
.top [data-action="menu"] { display: none; }
.work-main { max-width: 1520px; margin: auto; padding: 1.6rem clamp(1rem,2.8vw,2.65rem) 3rem; animation: enter .25s ease both; }
.page-title { display: flex; align-items: end; gap: .85rem; justify-content: space-between; margin-bottom: 1.2rem; }
.page-title h1 { font-size: clamp(1.72rem,3vw,2.6rem); }
.page-title p { font-size: .87rem; margin-top: .35rem; }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .75rem; margin-bottom: 1rem; }
.metric, .panel { background: var(--paper); border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 5px 14px #314c3608; }
.metric { padding: .85rem .9rem; }
.metric-top { display: flex; gap: .4rem; align-items: center; justify-content: space-between; font-size: .78rem; font-weight: 700; color: var(--muted); }
.metric-top svg { width: 27px; height: 27px; padding: 5px; background: var(--pill); color: #3f6e51; border-radius: 8px; }
.metric > strong { display: block; font-size: clamp(.92rem,1.58vw,1.38rem); letter-spacing: -.045em; margin-top: .43rem; }
.metric small { color: var(--muted); font-size: .68rem; }
.panel { margin-bottom: 1rem; min-width: 0; }
.panel-title { display: flex; justify-content: space-between; gap: .6rem; align-items: center; padding: .92rem 1rem; }
.panel-title h2 { font-size: 1rem; }
.dash-grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: .9rem; }
.bar-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: .5rem; padding: 0 1.2rem .85rem; }
.bar-item { text-align: center; color: var(--muted); font-size: .73rem; }
.bar-item small { display: block; color: var(--ink); font-size: .65rem; }
.bar-track { height: 103px; background: repeating-linear-gradient(to top, #edf1eb 0 1px, transparent 1px 24px); display: flex; justify-content: center; align-items: end; }
.bar { max-width: 40px; min-width: 9px; width: 70%; }
.h0 { height: 0; }.h1 { height: 10%; }.h2 { height: 20%; }.h3 { height: 30%; }.h4 { height: 40%; }.h5 { height: 50%; }.h6 { height: 60%; }.h7 { height: 70%; }.h8 { height: 80%; }.h9 { height: 90%; }.h10 { height: 100%; }
.watch { padding: 0 1rem 1rem; }
.watch > div { display: flex; align-items: center; gap: .6rem; margin-bottom: .65rem; background: #f3f6ef; padding: .45rem .55rem; border-radius: 8px; }
.watch strong, .watch span { display: block; font-size: .74rem; }
.watch span { color: var(--muted); font-size: .66rem; }
.table-scroll { overflow-x: auto; }
table { width: 100%; text-align: left; border-collapse: collapse; font-size: .8rem; }
th, td { border-top: 1px solid var(--line); padding: .56rem 1rem; white-space: nowrap; }
th { color: var(--muted); background: #f7f9f6; font-size: .71rem; letter-spacing: .025em; }
td .btn + .btn { margin-left: .35rem; }
.tag { display: inline-block; border-radius: 30px; background: #edf0ed; color: #40534c; padding: .18rem .53rem; font-size: .7rem; font-weight: 750; }
.tag.success { background: #e1efdf; color: #2e663b; }
.tag.warn { background: #f8eddb; color: var(--danger); }
.empty { padding: 1rem; color: var(--muted); border-top: 1px solid var(--line); font-size: .85rem; }
.body-pad { padding: .65rem 1rem 1.1rem; }
.body-pad > * + * { margin-top: .65rem; }
.report-filter { max-width: 235px; margin-bottom: 1rem; }
.banner { padding: .65rem .85rem; background: #f9efd7; color: #704b16; border-radius: 10px; margin-bottom: 1rem; font-size: .83rem; }
dialog { width: min(680px, calc(100% - 1.5rem)); max-height: 90dvh; padding: 0; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); background: var(--paper); box-shadow: var(--shadow); }
dialog::backdrop { background: #10241c85; }
dialog header, dialog footer { padding: .9rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
dialog header { border-bottom: 1px solid var(--line); }
dialog footer { justify-content: end; border-top: 1px solid var(--line); }
.close { border: 0; color: var(--ink); font-size: 1.45rem; padding: 0 .45rem; border-radius: 6px; background: #eef3ec; }
.form-fields { display: grid; gap: .7rem; padding: 1rem; }
.payment-proof { display: block; max-width: 100%; max-height: 16rem; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; }
label { display: grid; gap: .28rem; color: var(--ink); font-size: .8rem; font-weight: 700; min-width: 0; }
input, select { display: block; width: 100%; min-width: 0; padding: .51rem .62rem; border: 1px solid #cedace; border-radius: 8px; background: #f9fbf8; color: var(--ink); }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; }
.line-item { display: grid; grid-template-columns: 1.35fr .5fr 1fr auto; gap: .55rem; align-items: end; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.line-item .close { margin-bottom: .2rem; }
.line-actions { display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.form-error { color: #ad3026; padding: 0 1rem; font-size: .82rem; }
.form-error:not(:empty) { padding-bottom: .7rem; }
#notice { position: fixed; bottom: 1.2rem; right: 1.2rem; padding: .65rem .95rem; max-width: calc(100% - 2.4rem); border-radius: 9px; background: var(--nav); color: white; opacity: 0; pointer-events: none; transition: opacity .2s; font-size: .84rem; }
#notice.visible { opacity: 1; }
#notice.error { background: #8b352b; }
@keyframes enter { from { opacity: .5; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1100px) { .workspace { grid-template-columns: 202px minmax(0,1fr); } .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 760px) {
  .site-head { height: 65px; }
  .hero, .benefits { grid-template-columns: 1fr; }
  .hero { gap: 1.7rem; padding-top: 2.5rem; }
  .hero-preview { max-width: 520px; }
  .benefits { gap: 1.2rem; }
  .workspace { display: block; }
  .top [data-action="menu"] { display: inline-flex; }
  .top-main > .mark { display: block; width: 30px; height: 30px; border-radius: 6px; }
  aside { position: fixed; top: 66px; left: 0; bottom: 0; width: min(265px,84vw); height: auto; z-index: 5; transform: translateX(-105%); visibility: hidden; transition: transform .2s, visibility .2s; }
  .menu-open aside { transform: translateX(0); visibility: visible; box-shadow: var(--shadow); }
  .top { position: sticky; top: 0; z-index: 6; }
  .work-main { padding-top: 1.1rem; }
  .page-title { align-items: flex-start; flex-direction: column; }
  .dash-grid { grid-template-columns: 1fr; gap: 0; }
  .bar-track { height: 90px; }
  .line-item { grid-template-columns: 1fr 1fr 35px; }
  .line-item label:first-child { grid-column: 1 / -1; }
}
@media (max-width: 415px) { .profile > div:last-child { display: none; } .preview-body { padding: .8rem; } .metric { padding: .65rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print {
  #app, #notice, dialog:not([open]), dialog button, dialog footer { display: none !important; }
  body, dialog { background: white; }
  dialog[open] { position: static; width: 100%; max-height: none; min-height: 0; margin: 0; border: 0; box-shadow: none; overflow: visible; }
  dialog::backdrop { background: transparent; }
  .table-scroll { overflow: visible; }
}
