@font-face { font-family: "Comfortaa"; src: url("fonts/comfortaa.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Quicksand"; src: url("fonts/quicksand.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

:root { color-scheme: dark; }
html, body { margin: 0; min-height: 100%; background: #0E1013; color: #E6E8EB; }
#aguia-root { min-height: 100%; }
.ag-noscript { padding: 24px; font-family: system-ui, sans-serif; }

.ag {
  --bg: #0E1013; --surface: #15181D; --surface-2: #1B1F25; --surface-3: #232830; --field: #101317;
  --line: rgba(255, 255, 255, .07); --line-2: rgba(255, 255, 255, .14);
  --text: #E6E8EB; --muted: #959CA7; --faint: #6E7682;
  --accent: #C9A85C; --accent-2: #B39246; --accent-ink: #17130A; --accent-soft: rgba(201, 168, 92, .13);
  --ok: #43BF83; --in: #43BF83; --out: #E0705F; --bad: #E0705F; --warn: #E3A642; --info: #8FA3BF;
  --display: "Comfortaa", "Quicksand", "Segoe UI", system-ui, sans-serif;
  --sans: "Quicksand", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --top-h: 56px; --gut: 16px; --cut: 8px; --cut-lg: 14px; --ease: cubic-bezier(.2, .8, .2, 1);
  --folder: polygon(0 0, 42% 0, calc(42% + 14px) 14px, 100% 14px, 100% 100%, 0 100%);
  --hex: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  --dia: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; position: relative; isolation: isolate;
  color: var(--text); background: var(--bg); font-family: var(--sans); font-size: 15px; font-weight: 500; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-wrap: anywhere;
}
@media (min-width: 760px) { .ag { --gut: 32px; } }

.ag *, .ag *::before, .ag *::after { box-sizing: border-box; }
.ag, .ag * {
  --oct: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
  --notch: polygon(0 0, calc(100% - var(--cut-lg)) 0, 100% var(--cut-lg), 100% 100%, var(--cut-lg) 100%, 0 calc(100% - var(--cut-lg)));
}
:where(.ag) button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:where(.ag) :is(input, select, textarea) {
  font: inherit; font-size: 15px; color: var(--text); background: var(--field); border: 1px solid var(--line-2);
  border-radius: 0; padding: 9px 11px; width: 100%; min-height: 42px;
}
.ag textarea { min-height: 0; resize: vertical; }
.ag :is(input, select, textarea):focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.ag input[type="checkbox"] { width: 18px; min-height: 0; height: 18px; padding: 0; accent-color: var(--accent); flex: none; }
.ag input[type="date"], .ag input[type="month"] { color-scheme: dark; }
.ag select option { background: var(--surface-2); color: var(--text); }
.ag input:disabled, .ag select:disabled { opacity: .5; }
:where(.ag) a { color: var(--accent); text-underline-offset: 3px; }
.ag :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
:where(.ag) :is(h1, h2, h3, h4) { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: 0; }
:where(.ag) h1 { font-size: 22px; }
:where(.ag) h2 { font-size: 17px; }
:where(.ag) h3 { font-size: 15px; }
:where(.ag) p { margin: 0; }
.ag .ag-muted { color: var(--muted); }
.ag .ag-faint { color: var(--faint); font-size: 13px; }
.ag .ag-ok { color: var(--ok); }
.ag .ag-warn { color: var(--warn); }
.ag .ag-err { color: var(--bad); }
.ag .neg { color: var(--bad); }
.ag .ag-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ag .ag-grow { flex: 1; min-width: 0; }
.ag .ag-gap-b { margin-bottom: 12px; }
.ag .ag-gap-t { margin-top: 12px; }
.ag-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.ag-i { display: inline-flex; width: 18px; height: 18px; flex: none; }
.ag-i svg, .ag-ti svg, .ag-folder-i svg, .ag-x svg { width: 100%; height: 100%; display: block; }

.ag-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ag-bg i { position: absolute; display: block; background: #171B21; opacity: .55; animation: ag-float 70s ease-in-out infinite alternate; will-change: transform; }
.ag-bg i:nth-child(1) { width: 260px; height: 260px; left: -70px; top: 12%; clip-path: var(--hex); }
.ag-bg i:nth-child(2) { width: 120px; height: 120px; right: 8%; top: 9%; clip-path: var(--dia); animation-duration: 58s; animation-delay: -12s; }
.ag-bg i:nth-child(3) { width: 340px; height: 340px; right: -120px; top: 46%; clip-path: var(--oct); --cut: 100px; animation-duration: 84s; }
.ag-bg i:nth-child(4) { width: 70px; height: 70px; left: 30%; top: 72%; clip-path: var(--hex); background: #1E1A12; animation-duration: 64s; animation-delay: -30s; }
.ag-bg i:nth-child(5) { width: 160px; height: 160px; left: 52%; top: -50px; clip-path: var(--hex); animation-duration: 92s; animation-delay: -40s; }
.ag-bg i:nth-child(6) { width: 54px; height: 54px; left: 12%; top: 54%; clip-path: var(--dia); background: #1E1A12; animation-duration: 50s; }
.ag-bg i:nth-child(7) { width: 200px; height: 200px; left: 64%; bottom: -80px; clip-path: var(--dia); animation-duration: 76s; animation-delay: -20s; }
@keyframes ag-float { from { transform: translate3d(0, 0, 0) rotate(0deg); } to { transform: translate3d(40px, -60px, 0) rotate(28deg); } }

.ag-top {
  position: sticky; top: 0; z-index: 20; height: var(--top-h); display: flex; align-items: center; gap: 6px;
  padding: 0 var(--gut); background: #0E1013; border-bottom: 1px solid var(--line);
}
.ag-brand { display: flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; margin-right: 10px; }
.ag-brand b { font-family: var(--display); font-size: 16px; }
.ag-logo { display: block; width: 30px; height: 30px; }
.ag-logo svg { width: 100%; height: 100%; display: block; }
.ag-searchbox {
  display: flex; align-items: center; gap: 10px; width: min(380px, 40vw); height: 36px; padding: 0 12px; color: var(--muted);
  background: var(--surface); clip-path: var(--oct); --cut: 6px; transition: background .2s, color .2s;
}
.ag-searchbox:hover { background: var(--surface-2); color: var(--text); }
.ag-searchbox:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.ag-searchbox-t { flex: 1; text-align: left; }
.ag kbd { font-family: var(--sans); font-size: 12px; padding: 0 6px; border: 1px solid var(--line-2); color: var(--faint); }
.ag-top-b { position: relative; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.ag-top-b:hover, .ag-top-b[aria-pressed="true"] { color: var(--text); background: var(--surface); }
.ag-top-b .ag-i { width: 20px; height: 20px; }
.ag-quick {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; margin: 0 4px;
  background: var(--accent); color: var(--accent-ink); clip-path: var(--hex); transition: background .2s, transform .2s var(--ease);
}
.ag-quick:hover { background: #D8B96E; transform: rotate(30deg); }
.ag-quick:focus-visible { outline: none; background: var(--text); }
.ag-bell-n {
  position: absolute; top: 3px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px; font-size: 11px; font-weight: 700; line-height: 17px;
  text-align: center; color: #fff; background: var(--bad); clip-path: var(--oct); --cut: 4px;
}
.ag-bell-n[hidden] { display: none; }
@media (max-width: 640px) {
  .ag-brand b, .ag-searchbox-t, .ag-searchbox kbd { display: none; }
  .ag-brand { margin-right: 0; }
  .ag-searchbox { width: 38px; padding: 0; justify-content: center; background: none; }
  .ag-top { gap: 2px; }
}

.ag-view:focus-visible { outline: none; }
.ag-view { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 22px var(--gut) 90px; outline: none; }
.ag-page.ag-enter { animation: ag-rise .32s var(--ease); }
@keyframes ag-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ag-loading { color: var(--muted); padding: 18px 0; }
.ag-loading::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 10px; background: var(--accent); clip-path: var(--dia); animation: ag-spin 1s linear infinite; }
@keyframes ag-spin { to { transform: rotate(360deg); } }

.ag-head { margin-bottom: 20px; }
.ag-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--faint); }
.ag-crumbs a { color: var(--muted); text-decoration: none; }
.ag-crumbs a:hover { color: var(--accent); }
.ag-crumbs [aria-current] { color: var(--text); }
.ag-title { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.ag-ti { width: 26px; height: 26px; color: var(--accent); flex: none; }
.ag-star { width: 32px; height: 32px; padding: 6px; color: var(--faint); }
.ag-star:hover, .ag-star.on { color: var(--accent); }
.ag-tabs { display: flex; gap: 4px; margin-top: 16px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.ag-tabs::-webkit-scrollbar { display: none; }
.ag-tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 10px; white-space: nowrap; color: var(--muted); text-decoration: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .2s, border-color .2s;
}
.ag-tab:hover { color: var(--text); }
.ag-tab.on { color: var(--text); border-bottom-color: var(--accent); }
.ag-tab.on .ag-i { color: var(--accent); }
.ag-count {
  display: inline-block; min-width: 20px; height: 20px; padding: 0 6px; font-size: 11.5px; font-weight: 700; line-height: 20px; text-align: center;
  color: var(--accent-ink); background: var(--warn); clip-path: var(--oct); --cut: 5px;
}
.ag-count[hidden] { display: none; }

.ag-home { display: flex; flex-direction: column; gap: 22px; }
.ag-ind { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.ag-ind-i { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--surface); clip-path: var(--notch); }
.ag-ind-i .ag-q { font-size: 13px; color: var(--muted); }
.ag-ind-i .ag-a { font-family: var(--display); font-size: 21px; font-variant-numeric: tabular-nums; }
.ag-ind-i small { color: var(--faint); font-size: 12.5px; }
.ag-pins { display: flex; flex-wrap: wrap; gap: 8px; }
.ag-pin {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; color: var(--text); text-decoration: none;
  background: var(--surface-2); clip-path: var(--oct); --cut: 7px; transition: background .2s;
}
.ag-pin:hover { background: var(--surface-3); }
.ag-pin .ag-i { color: var(--accent); width: 16px; height: 16px; }
.ag-pin.qa { background: var(--accent-soft); }
.ag-pin:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.ag-folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.ag-folder {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "i . c" "n n n" "d d d"; gap: 4px 10px;
  min-height: 150px; padding: 26px 18px 18px; color: var(--text); text-decoration: none; background: var(--surface);
  clip-path: var(--folder); transition: background .2s, transform .25s var(--ease);
}
.ag-folder:hover { background: var(--surface-2); transform: translateY(-3px); }
.ag-folder:focus-visible { outline: none; background: var(--surface-3); }
.ag-folder-tab { position: absolute; left: 0; top: 0; width: 42%; height: 4px; background: var(--accent); opacity: .65; }
.ag-folder-i { grid-area: i; width: 30px; height: 30px; color: var(--accent); }
.ag-folder .ag-count { grid-area: c; align-self: start; }
.ag-folder-n { grid-area: n; margin-top: 14px; font-family: var(--display); font-size: 16px; }
.ag-folder-d { grid-area: d; color: var(--muted); font-size: 13.5px; }
.ag-folders.sub .ag-folder { min-height: 130px; }
@media (max-width: 520px) { .ag-folders { grid-template-columns: 1fr 1fr; gap: 10px; } .ag-folder { min-height: 128px; padding: 24px 12px 14px; } .ag-folder-d { font-size: 12.5px; } }

.ag-stack { display: flex; flex-direction: column; gap: 18px; }
.ag-sec { padding: 18px 20px; background: var(--surface); clip-path: var(--notch); }
.ag-h { margin-bottom: 12px; }
.ag-sub { margin: 14px 0 8px; font-size: 13px; color: var(--muted); font-family: var(--sans); font-weight: 600; }
.ag-card { padding: 16px 18px; background: var(--surface); clip-path: var(--notch); min-width: 0; }
.ag-card > h3 { margin-bottom: 12px; }
.ag-card.dim { opacity: .55; }
.ag-card.accent { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--accent); }
.ag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.ag-cols { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 900px) { .ag-cols { grid-template-columns: 1fr 1fr; } }
.ag-trio { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 980px) { .ag-trio { grid-template-columns: 5fr 4fr 3.6fr; } }
.ag-figure { margin: 0; min-width: 0; }
.ag-figure figcaption { margin-bottom: 10px; }
.ag-figure figcaption p { font-size: 13px; }
.ag-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.ag-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ag-filters > input, .ag-filters > select { width: auto; flex: 1 1 150px; min-width: 0; }
.ag-inl { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.ag-inl input, .ag-inl select { width: auto; min-width: 120px; }

.ag-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 16px; font-weight: 700;
  color: var(--text); background: var(--surface-3); clip-path: var(--oct); text-decoration: none; white-space: nowrap;
  transition: background .2s, color .2s, transform .15s var(--ease);
}
.ag-btn:hover { background: #2C323B; }
.ag-btn:active { transform: translateY(1px); }
.ag-btn:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.ag-btn.primary { background: var(--accent); color: var(--accent-ink); }
.ag-btn.primary:hover { background: #D8B96E; }
.ag-btn.primary:focus-visible { box-shadow: inset 0 0 0 2px var(--accent-ink); }
.ag-btn.danger { background: rgba(224, 112, 95, .16); color: #F0998B; }
.ag-btn.danger:hover { background: rgba(224, 112, 95, .28); }
.ag-btn.ghost { background: transparent; color: var(--muted); }
.ag-btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.ag-btn.sm { min-height: 32px; padding: 0 11px; font-size: 13.5px; --cut: 6px; }
.ag-btn:disabled { opacity: .45; cursor: default; transform: none; }
.ag-btn.on { background: var(--accent-soft); color: var(--accent); }
.ag-link { color: var(--accent); font-weight: 600; padding: 6px 0; margin-top: 8px; display: inline-block; }
.ag-link:hover { text-decoration: underline; }
.ag-x { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 8px; color: var(--muted); flex: none; }
.ag-x:hover { color: var(--text); background: var(--surface-2); }
.ag-x.sm { width: 30px; height: 30px; padding: 8px; }
.ag-x:disabled { opacity: .35; cursor: default; background: none; }
.ag-seg { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.ag-mnav { display: inline-flex; align-items: center; gap: 4px; }
.ag-mnav-t { min-width: 150px; text-align: center; font-weight: 700; }

.ag-badge {
  display: inline-block; padding: 1px 9px; font-size: 12px; font-weight: 700; line-height: 20px; white-space: nowrap;
  color: var(--muted); background: var(--surface-3); clip-path: var(--oct); --cut: 5px;
}
.ag-badge.ok { color: var(--ok); background: rgba(67, 191, 131, .13); }
.ag-badge.warn { color: var(--warn); background: rgba(227, 166, 66, .14); }
.ag-badge.err { color: var(--bad); background: rgba(224, 112, 95, .15); }
.ag-badge.teal { color: var(--accent); background: var(--accent-soft); }
.ag-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.ag-kpi { padding: 14px 16px; background: var(--surface); clip-path: var(--notch); }
.ag-q { color: var(--muted); font-size: 13px; }
.ag-a { font-family: var(--display); font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; margin: 2px 0; }
.ag-note { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.ag-bar { height: 6px; background: var(--surface-3); overflow: hidden; margin: 8px 0 4px; }
.ag-bar i { display: block; height: 100%; background: var(--accent); transition: width .5s var(--ease); }
.ag-bar i.ok { background: var(--ok); }
.ag-bar i.warn { background: var(--warn); }
.ag-bar i.err { background: var(--bad); }
.ag-empty { padding: 22px 8px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ag-error { padding: 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; color: var(--bad); background: rgba(224, 112, 95, .08); clip-path: var(--notch); }
.ag-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 4px 0 14px; }
.ag-fig dt { color: var(--muted); font-size: 13px; }
.ag-fig dd { margin: 2px 0 0; font-family: var(--display); font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ag-fig dd small { display: block; font-family: var(--sans); font-size: 12.5px; font-weight: 500; color: var(--faint); }
.ag-big { font-family: var(--display); font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ag-big small { display: block; font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--muted); }
.ag-bullets { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }
.ag-bullets li { margin: 3px 0; }

.ag-list { display: flex; flex-direction: column; }
.ag-item { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.ag-item:last-child { border-bottom: 0; }
.ag-item.dim { opacity: .55; }
.ag-item.block { display: block; }
.ag-item .t { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; }
.ag-item .t small { color: var(--muted); font-size: 13px; }
.ag-item .v { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ag-item-note { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; white-space: pre-wrap; }
.ag-acts { margin-top: 12px; gap: 6px; }
.ag-rows { list-style: none; margin: 10px 0 0; padding: 0; }
.ag-rows li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ag-rows li b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ag-dues { list-style: none; margin: 0; padding: 0; }
.ag-due { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.ag-due .t { display: flex; flex-direction: column; min-width: 0; }
.ag-due .t small { color: var(--muted); font-size: 12.5px; }
.ag-due .v { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ag-due.over .ag-date { background: rgba(224, 112, 95, .18); color: var(--bad); }
.ag-date { display: flex; flex-direction: column; align-items: center; width: 42px; padding: 4px 0; line-height: 1.1; background: var(--surface-3); clip-path: var(--oct); --cut: 6px; }
.ag-date b { font-size: 16px; }
.ag-date small { font-size: 11px; color: var(--muted); text-transform: uppercase; }
@media (max-width: 460px) { .ag-due { grid-template-columns: auto 1fr auto; } .ag-due .ag-btn { grid-column: 2 / -1; justify-self: end; } }
.ag-goals { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ag-goals small { color: var(--muted); font-size: 12.5px; }
.ag-budget { margin: 8px 0 14px; }
.ag-order { margin: 10px 0 0; padding-left: 20px; color: var(--muted); font-size: 14px; }

.ag-ico { display: inline-flex; width: 16px; height: 16px; flex: none; color: var(--info); }
.ag-ico svg { width: 100%; height: 100%; display: block; }
.ag-ico.ok { color: var(--ok); }
.ag-ico.warn { color: var(--warn); }
.ag-ico.bad { color: var(--bad); }
.ag-ico.lg { width: 22px; height: 22px; }
.ag-attn { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ag-attn li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; background: var(--surface-2); clip-path: var(--oct); }
.ag-attn li.bad { box-shadow: inset 3px 0 0 var(--bad); }
.ag-attn li.warn { box-shadow: inset 3px 0 0 var(--warn); }
.ag-attn li .ag-ico { margin-top: 3px; }
.ag-attn li p { color: var(--muted); font-size: 13.5px; }
.ag-alerts { display: flex; flex-direction: column; gap: 8px; }
.ag-alert { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; background: var(--surface-2); clip-path: var(--oct); }
.ag-alert > div { display: flex; flex-direction: column; }
.ag-alert span { color: var(--muted); font-size: 13.5px; }
.ag-alert .ag-ico { margin-top: 3px; }

.ag-pulse-state { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.ag-pulse.is-ok .ag-pulse-state { color: var(--ok); }
.ag-pulse.is-warn .ag-pulse-state { color: var(--warn); }
.ag-pulse.is-bad .ag-pulse-state { color: var(--bad); }
.ag-reasons { list-style: none; margin: 14px 0 6px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ag-reasons li { display: flex; gap: 10px; align-items: flex-start; }
.ag-reasons li .ag-ico { margin-top: 3px; }
.ag-reasons li p { color: var(--muted); font-size: 13.5px; }
.ag-reasons li.more { display: none; }
.ag-pulse.open .ag-reasons li.more { display: flex; }
.ag-rule { margin-top: 10px; color: var(--muted); font-size: 13.5px; }
.ag-rule summary, .ag-guide summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.ag-rule p { margin-top: 6px; }
.ag-guide { padding: 12px 0; border-bottom: 1px solid var(--line); }
.ag-guide dl { margin: 10px 0 0; }
.ag-guide dt { font-weight: 700; margin-top: 8px; }
.ag-guide dd { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.ag-tips { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.ag-tip-card { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; background: var(--surface-2); clip-path: var(--oct); }
.ag-tip-card p { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.ag-tip-card .ag-ico { margin-top: 3px; }
.ag-goaltip { padding: 10px 12px; background: var(--surface-2); box-shadow: inset 3px 0 0 var(--accent); margin: 10px 0; }
.ag-goaltip p { margin-top: 4px; }
.ag-debt-notes { margin-top: 8px; padding: 8px 10px; background: var(--surface-2); font-size: 13.5px; white-space: pre-wrap; }
.ag-dup { padding: 12px 14px; background: var(--surface-2); clip-path: var(--oct); }

.ag-chartbox { position: relative; touch-action: pan-y; }
.ag-chartbox:focus-visible { outline-offset: 6px; }
.ag-chart { display: block; overflow: visible; }
.ag-chart text { font-family: var(--sans); font-size: 12px; fill: var(--faint); }
.ag-chart text.lbl { fill: var(--text); font-size: 12.5px; font-weight: 600; }
.ag-chart text.cur { fill: var(--text); font-weight: 700; }
.ag-chart text.zl { fill: var(--bad); }
.ag-chart .grid { stroke: rgba(255, 255, 255, .06); stroke-width: 1; }
.ag-chart .zero { stroke: var(--bad); stroke-width: 1; opacity: .6; }
.ag-chart .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: miter; }
.ag-chart.warn .line { stroke: var(--warn); }
.ag-chart .area { fill: var(--accent); opacity: .08; }
.ag-chart.warn .area, .ag-chart.warn .dot { fill: var(--warn); }
.ag-chart .dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.ag-chart .cross { stroke: rgba(255, 255, 255, .22); stroke-width: 1; }
.ag-chart .bar-in { fill: var(--in); }
.ag-chart .bar-out { fill: var(--out); }
.ag-chart g { transition: opacity .15s; }
.ag-chart g.dim { opacity: .3; }
.ag-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ag-draw 1.2s var(--ease) .15s forwards; }
@keyframes ag-draw { to { stroke-dashoffset: 0; } }
.ag-tip {
  position: absolute; left: 0; top: 0; z-index: 3; transform: translate(var(--tx, 0), var(--ty, 0)); pointer-events: none;
  display: flex; flex-direction: column; gap: 2px; min-width: 150px; max-width: 250px; padding: 9px 11px;
  background: #0B0D10; border: 1px solid var(--line-2); font-size: 13px; line-height: 1.4;
}
.ag-tip[hidden] { display: none; }
.ag-tip b { font-weight: 700; }
.ag-tip-item { color: var(--muted); }
.ag-tip-row i, .ag-legend-dots i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; clip-path: var(--dia); }
.ag-tip-row i.in, .ag-legend-dots i.in { background: var(--in); }
.ag-tip-row i.out, .ag-legend-dots i.out { background: var(--out); }
.ag-legend-dots { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.ag-cats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ag-cats li { display: grid; grid-template-columns: minmax(0, 1fr) auto 3.2em; gap: 3px 12px; align-items: baseline; font-size: 14px; }
.ag-cats .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-cats .v { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ag-cats .p { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.ag-cats .b { grid-column: 1 / -1; height: 6px; background: var(--surface-3); overflow: hidden; }
.ag-cats .b i { display: block; height: 100%; width: var(--w, 0); background: var(--out); }
.ag-cats .b.in i { background: var(--in); }

.ag-scroll { overflow-x: auto; }
.ag-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ag-table th, .ag-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.ag-table th { color: var(--muted); font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.ag-table .nw { white-space: nowrap; }
.ag-table td.num, .ag-table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ag-table tbody tr:hover td { background: rgba(255, 255, 255, .025); }
.ag-table tr.dim td { opacity: .5; }
.ag-table .actions { white-space: nowrap; text-align: right; }
.ag-table .actions > * { vertical-align: middle; margin-left: 4px; }
.ag-table .ck { width: 32px; }
.ag-table small { display: block; }
.ag-table-host { padding: 6px 12px 10px; }
.ag-pager { padding-top: 10px; }
@media (max-width: 760px) { .ag-table .opt { display: none; } }
.ag-doc-table input, .ag-doc-table select { min-height: 34px; padding: 5px 7px; font-size: 13.5px; min-width: 110px; }
.ag-doc-table input.num { text-align: right; min-width: 90px; }
.ag-doc-table tr.done { opacity: .55; }
.ag-issue { display: block; color: var(--warn); }
.ag-batch {
  position: sticky; top: calc(var(--top-h) + 8px); z-index: 5; display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  padding: 10px 14px; background: var(--surface-3); clip-path: var(--oct);
}
.ag-batch[hidden] { display: none; }

.ag-form { display: grid; grid-template-columns: 1fr; gap: 12px 14px; }
@media (min-width: 620px) { .ag-form { grid-template-columns: 1fr 1fr; } }
.ag-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ag-field[hidden] { display: none; }
.ag-field > label { font-size: 13px; color: var(--muted); font-weight: 600; }
.ag-field.full, .ag-more { grid-column: 1 / -1; }
.ag-check { flex-direction: row; align-items: center; gap: 10px; cursor: pointer; padding: 6px 0; }
.ag-more { justify-self: start; margin-top: 0; }

.ag-overlay {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0, 0, 0, 0); transition: background .22s;
}
.ag-overlay.on { background: rgba(4, 5, 7, .72); }
.ag-modal {
  width: 100%; max-height: 92vh; overflow: auto; background: var(--surface); outline: none;
  clip-path: polygon(0 var(--cut-lg), var(--cut-lg) 0, calc(100% - var(--cut-lg)) 0, 100% var(--cut-lg), 100% 100%, 0 100%);
  transform: translateY(28px); opacity: 0; transition: transform .26s var(--ease), opacity .2s;
}
.ag-overlay.on .ag-modal { transform: none; opacity: 1; }
.ag-modal .mh { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 20px; background: var(--surface); border-bottom: 1px solid var(--line); }
.ag-modal .mh h3 { flex: 1; font-size: 16px; }
.ag-modal .mb { padding: 18px 20px; }
.ag-modal .mf { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding: 12px 20px 18px; border-top: 1px solid var(--line); }
@media (min-width: 720px) {
  .ag-overlay { align-items: center; padding: 24px; }
  .ag-modal { width: min(660px, 100%); clip-path: var(--notch); }
  .ag-modal.wide { width: min(960px, 100%); }
  .ag-overlay.pop { align-items: flex-start; justify-content: flex-end; padding: calc(var(--top-h) + 6px) var(--gut) 24px; }
  .ag-modal.pop { width: min(420px, 100%); }
  .ag-modal.wide-pop { width: min(720px, 100%); }
  .ag-overlay.search { align-items: flex-start; padding-top: 12vh; }
  .ag-modal.search { width: min(640px, 100%); }
}
.ag-menu { display: flex; flex-direction: column; gap: 4px; }
.ag-menu .ag-field { margin: 6px 0 8px; }
.ag-menu > .ag-row { margin-bottom: 6px; }
.ag-menu-i { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 10px; text-align: left; color: var(--text); text-decoration: none; }
.ag-menu-i:hover { background: var(--surface-2); }
.ag-menu-i .ag-i { color: var(--muted); }
.ag-menu-i.danger { color: #F0998B; }
.ag-qa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.ag-qa {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; text-align: center; font-size: 13.5px; font-weight: 600;
  background: var(--surface-2); clip-path: var(--oct); transition: background .2s;
}
.ag-qa:hover { background: var(--surface-3); }
.ag-qa:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.ag-qa .ag-i { width: 22px; height: 22px; color: var(--accent); }
.ag-fmenu { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px 18px; }
.ag-fmenu-g { display: flex; flex-direction: column; gap: 2px; }
.ag-fmenu-f { display: flex; align-items: center; gap: 8px; padding: 6px 0; color: var(--text); text-decoration: none; }
.ag-fmenu-f .ag-i { color: var(--accent); }
.ag-fmenu-f b { flex: 1; }
.ag-fmenu-s { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0 4px 26px; color: var(--muted); text-decoration: none; font-size: 14px; }
.ag-fmenu-f:hover b, .ag-fmenu-s:hover { color: var(--accent); }
.ag-notes { display: flex; flex-direction: column; gap: 16px; }
.ag-note-g h4 { font-family: var(--sans); font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 8px; }
.ag-note-i { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; padding: 10px 12px; margin-bottom: 6px; background: var(--surface-2); clip-path: var(--oct); }
.ag-note-i.bad { box-shadow: inset 3px 0 0 var(--bad); }
.ag-note-i.warn { box-shadow: inset 3px 0 0 var(--warn); }
.ag-note-i.read { opacity: .55; }
.ag-note-i p { color: var(--muted); font-size: 13.5px; }
.ag-note-i .ag-ico { margin-top: 3px; }
.ag-note-a { display: flex; gap: 4px; flex-wrap: wrap; width: 100%; justify-content: flex-end; }
.ag-search-in { font-size: 16px; min-height: 46px; }
.ag-results { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.ag-res-g h4 { font-family: var(--sans); font-size: 12px; color: var(--faint); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 4px; }
.ag-res { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; text-align: left; }
.ag-res:hover, .ag-res:focus-visible { background: var(--surface-2); outline: none; }
.ag-res .ag-i { color: var(--accent); }
.ag-res .t { display: flex; flex-direction: column; min-width: 0; }
.ag-res .t small { color: var(--muted); font-size: 12.5px; }

.ag-toasts { position: fixed; z-index: 70; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; width: min(440px, calc(100% - 32px)); }
.ag-toast {
  display: flex; align-items: center; gap: 12px; padding: 11px 16px; background: #22272F; clip-path: var(--oct);
  box-shadow: inset 3px 0 0 var(--ok); animation: ag-rise .25s var(--ease);
}
.ag-toast span { flex: 1; }
.ag-toast.error { box-shadow: inset 3px 0 0 var(--bad); }
.ag-toast.warning { box-shadow: inset 3px 0 0 var(--warn); }
.ag-toast .ag-link { margin: 0; padding: 0; }

.ag-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.ag-cal .wd { padding: 4px 0; text-align: center; font-size: 12px; color: var(--faint); text-transform: uppercase; }
.ag-cal .d {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-height: 74px; padding: 6px 7px; text-align: left;
  background: var(--surface-2); clip-path: var(--oct); --cut: 6px; transition: background .15s;
}
.ag-cal .d:hover { background: var(--surface-3); }
.ag-cal .d:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.ag-cal .d b { font-size: 13px; }
.ag-cal .d small { font-size: 11px; color: var(--out); font-variant-numeric: tabular-nums; }
.ag-cal .d small.ag-ok { color: var(--ok); }
.ag-cal .d.today b { color: var(--accent); }
.ag-cal .d.sel { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.ag-cal .dots { display: flex; flex-wrap: wrap; gap: 3px; }
.ag-cal .dots i, .ag-evt, .ag-legend-dots i.evt { display: inline-block; width: 8px; height: 8px; clip-path: var(--dia); background: var(--muted); flex: none; }
.ag-calwrap { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 14px; }
@media (min-width: 980px) { .ag-calwrap { grid-template-columns: 7fr 4fr; } }
.ag-calwrap .ag-daylist .ag-sub { margin-top: 0; }
:is(.ag-cal .dots i, .ag-evt, .ag-legend-dots i).in { background: var(--in); }
:is(.ag-cal .dots i, .ag-evt, .ag-legend-dots i).out { background: var(--out); }
:is(.ag-cal .dots i, .ag-evt, .ag-legend-dots i).inst { background: var(--warn); }
:is(.ag-cal .dots i, .ag-evt, .ag-legend-dots i).invoice { background: #B07CE0; }
:is(.ag-cal .dots i, .ag-evt, .ag-legend-dots i).rec { background: var(--info); }
:is(.ag-cal .dots i, .ag-evt, .ag-legend-dots i).goal { background: var(--accent); }
@media (max-width: 520px) { .ag-cal .d { min-height: 52px; padding: 4px; } .ag-cal .d small { display: none; } }

.ag-ccard-wrap { display: flex; flex-direction: column; gap: 4px; }
.ag-ccard {
  position: relative; width: 100%; max-width: 340px; aspect-ratio: 1.586; padding: 14px 16px; color: #fff; margin-bottom: 10px;
  display: flex; flex-direction: column; justify-content: space-between; background: #2A3240; clip-path: var(--notch); --cut-lg: 18px;
}
.ag-ccard.b-mastercard { background: #2E3036; }
.ag-ccard.b-visa { background: #1D3A86; }
.ag-ccard.b-elo { background: #232323; }
.ag-ccard.b-amex { background: #2A6AA8; }
.ag-ccard.b-hipercard { background: #A8122B; }
.ag-ccard-top { display: flex; align-items: center; }
.ag-ccard-top .chip { width: 34px; height: 26px; background: #CDB46F; clip-path: var(--oct); --cut: 5px; }
.ag-ccard-top .brand svg { height: 24px; width: auto; display: block; }
.ag-ccard-num { font-family: ui-monospace, Consolas, monospace; font-size: 17px; letter-spacing: 1.5px; }
.ag-ccard-name { font-size: 13px; opacity: .85; text-transform: uppercase; letter-spacing: .6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) { .ag-ccard { max-width: none; } }
.ag-cat-i { width: 28px; text-align: center; font-size: 18px; }

.ag-drop {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 16px; text-align: center; cursor: pointer; color: var(--muted);
  background: var(--surface); clip-path: var(--notch); box-shadow: inset 0 0 0 1px var(--line-2); transition: background .2s, box-shadow .2s;
}
.ag-drop b { color: var(--text); }
.ag-drop .ag-i { width: 28px; height: 28px; color: var(--accent); }
.ag-drop:hover, .ag-drop.over { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--accent); }
.ag-drop:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }

.ag-hawk { display: flex; flex-direction: column; gap: 10px; }
.ag-chat {
  padding: 14px; min-height: 340px; max-height: calc(100vh - 330px); overflow-y: auto; display: flex; flex-direction: column; gap: 8px;
  background: var(--surface); clip-path: var(--notch);
}
.ag-msg { max-width: min(560px, 88%); padding: 9px 12px; background: var(--surface-3); align-self: flex-start; white-space: pre-wrap; clip-path: var(--oct); --cut: 6px; }
.ag-msg.me { align-self: flex-end; background: var(--accent); color: var(--accent-ink); }
.ag-msg .ag-btn { margin-top: 6px; }
.ag-msg-btns { gap: 6px; }
.ag-chat-input { display: flex; align-items: flex-end; gap: 8px; padding: 10px; background: var(--surface); clip-path: var(--oct); }
.ag-chat-input textarea { flex: 1; }
@media (max-width: 640px) { .ag-chat { max-height: calc(100vh - 290px); } }
.ag-review { display: flex; flex-direction: column; gap: 12px; }
.ag-review-pick { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ag-review-pick input { width: 80px; min-height: 32px; padding: 4px 8px; }
.ag-review-item { padding: 12px 14px; background: var(--surface-2); clip-path: var(--oct); display: flex; flex-direction: column; gap: 8px; }

.ag.solo { align-items: center; justify-content: center; }
.ag.solo .ag-main { width: 100%; display: flex; justify-content: center; padding: 24px var(--gut); }
.ag-welcome { width: min(460px, 100%); display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 32px 26px; text-align: center; background: var(--surface); clip-path: var(--notch); --cut-lg: 20px; }
.ag-welcome-logo { width: 72px; height: 72px; }
.ag-welcome-logo svg { width: 100%; height: 100%; display: block; }
.ag-welcome p { color: var(--muted); }
.ag-legal { margin-top: 6px; }

.ag-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 30; width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent-ink); background: var(--accent); clip-path: var(--hex); transition: background .2s;
}
.ag-fab:hover { background: #D8B96E; }
.ag-fab:focus-visible { outline: none; background: var(--text); }
.ag-fab-i { width: 22px; height: 22px; display: inline-flex; }
.ag-fab-i svg { width: 100%; height: 100%; }

.ag-modal .sp {
  --bg-deep: var(--field); --surface: var(--surface-2); --surface-2: var(--surface-2); --line: var(--line-2);
  --text: #E6E8EB; --muted: #959CA7; --gold: #C9A85C; --gold-2: #D8B96E; --ok: #43BF83; --warn: #E3A642; --bad: #E0705F;
}
.ag-modal .sp .sp-btn.primary { color: #17130A; }
.ag-modal .sp .sp-btn:hover { background: var(--surface-3, #232830); }

@media (prefers-reduced-motion: reduce) {
  .ag-bg i, .ag-page.ag-enter, .ag-toast, .ag-loading::after { animation: none !important; }
  .ag-overlay, .ag-modal, .ag-chart g, .ag-folder, .ag-quick, .ag-bar i { transition: none !important; }
  .ag-draw { animation: none; stroke-dashoffset: 0; }
}
@media (max-width: 520px) {
  .ag-ind, .ag-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ag-ind-i, .ag-kpi { padding: 12px; }
  .ag-ind-i .ag-a, .ag-kpi .ag-a { font-size: 16px; }
  .ag-sec, .ag-card { padding: 14px; }
}
