@layer base, shell, components, pages, responsive;
@layer base {
  :root { color-scheme:light; --ink:#1e2e29; --muted:#617169; --line:#e0e7e3; --canvas:#f4f7f5; --paper:#fff; --green:#14634e; --green-dark:#0d4939; --soft:#e5f2ea; --amber:#8a581d; --red:#ad3d36; --radius:12px; --shadow:0 18px 65px #173b2929; font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif; font-synthesis:none; }
  *{box-sizing:border-box} body{margin:0;background:var(--canvas);color:var(--ink);font-size:14px;line-height:1.6;-webkit-font-smoothing:antialiased} button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:var(--green);text-underline-offset:4px}button{color:inherit}h1,h2,h3,p{margin:0}h1{font-size:28px;font-weight:650;letter-spacing:-.025em;line-height:1.35}h2{font-size:17px;font-weight:600}h3{font-size:15px;font-weight:600}svg{display:block}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #83b7a3;outline-offset:3px}::selection{background:#bbdfcf;color:#143b2c}input,textarea{caret-color:var(--green)}::-webkit-scrollbar{width:7px;height:7px}::-webkit-scrollbar-thumb{background:#c3cec7;border-radius:10px}::-webkit-scrollbar-track{background:transparent}[hidden]{display:none!important}.num{font-variant-numeric:tabular-nums;letter-spacing:.005em}.muted{color:var(--muted)}.tiny{font-size:12px}.sr-only{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;left:20px;top:-70px;z-index:20;background:white;padding:12px}.skip-link:focus{top:10px}
}
@layer shell {
  .shell{display:grid;grid-template-columns:218px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;background:#fcfdfc;border-right:1px solid var(--line);padding:28px 16px 18px;display:flex;flex-direction:column}.brand{display:flex;gap:10px;align-items:center;padding:0 10px 28px;color:var(--green-dark);font-size:17px;font-weight:650;letter-spacing:-.03em}.brand-mark{background:var(--green);color:white;width:32px;height:34px;border-radius:9px;display:grid;place-items:center;flex-shrink:0}.brand-mark svg{width:23px;height:23px}.workspace{margin:0 8px 25px;padding:11px 12px;background:#edf3ef;border-radius:8px;display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#42574c}.workspace .dot{width:6px;height:6px;background:var(--green);border-radius:50%}.nav-caption{font-size:11px;color:#6b7a73;margin:0 13px 9px}.nav-group{display:grid;gap:5px}.nav-item{display:flex;align-items:center;text-align:left;gap:12px;background:none;border:0;border-radius:8px;padding:12px 14px;color:#5a6b61;font-weight:500;width:100%;line-height:20px}.nav-item svg{width:18px;height:18px;flex:none}.nav-item:hover{background:#f0f4f1;color:var(--green)}.nav-item.active{background:var(--soft);color:var(--green);font-weight:650}.nav-count{margin-left:auto;background:var(--green);color:white;min-width:21px;text-align:center;border-radius:5px;font-size:11px}.sidebar-bottom{margin-top:auto}.demo-note{padding:18px 12px;border-top:1px solid var(--line);margin-top:24px;font-size:11px;color:var(--muted);line-height:1.8}.demo-note strong{display:block;color:#485c50;font-weight:500;font-size:12px;margin-bottom:5px}.profile{display:flex;gap:10px;align-items:center;padding:12px;border-top:1px solid var(--line);font-size:12px}.profile span:last-child{display:block;color:var(--muted);font-size:11px}.avatar{height:34px;width:34px;border-radius:50%;display:grid;place-items:center;background:#e6ece8;color:var(--green);font-weight:600;flex:none}.main-shell{min-width:0}.topbar{height:72px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 36px;background:#ffffffd9;gap:15px}.breadcrumb{font-size:12px;color:var(--muted);display:flex;gap:10px;align-items:center}.breadcrumb strong{font-weight:500;color:var(--ink)}.top-tools{display:flex;align-items:center;gap:16px}.demo-pill{color:#866025;background:#faf0dd;border:1px solid #eddfbf;border-radius:5px;padding:3px 7px;font-size:10px;font-weight:600;white-space:nowrap}.role-switch{display:flex;padding:3px;background:#edf1ee;border-radius:7px;gap:2px}.role-switch button{background:none;border:0;padding:5px 12px;font-size:12px;color:var(--muted);border-radius:5px}.role-switch button.active{background:white;color:var(--green);box-shadow:0 1px 3px #253c2012;font-weight:600}.topbar select{max-width:150px;font-size:12px;padding:5px 24px 5px 8px;min-height:32px}.main-content{max-width:1550px;padding:32px 36px 24px;margin:auto}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:27px}.page-heading p{font-size:13px;color:var(--muted);margin-top:8px}.heading-actions{display:flex;gap:10px;align-items:center}.date-label{display:flex;gap:8px;align-items:center;color:#52675b;font-size:12px;white-space:nowrap}.footer{display:flex;justify-content:space-between;gap:15px;margin-top:25px;color:#607266;font-size:11px}.mobile-menu{display:none}
}
@layer components {
  .icon{width:18px;height:18px;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #ced9d1;border-radius:7px;background:white;padding:9px 14px;font-size:12px;font-weight:550;min-height:38px;white-space:nowrap}.button:hover{background:#f3f7f4;border-color:#aabdaf}.button.primary{background:var(--green);border-color:var(--green);color:white}.button.primary:hover{background:var(--green-dark)}.button.danger{color:var(--red);border-color:#e5ccc8}.button.small{padding:5px 10px;min-height:30px;font-size:12px}.button svg{width:15px;height:15px}.icon-button{border:0;background:transparent;padding:7px;border-radius:6px;color:var(--muted);display:grid;place-items:center}.icon-button:hover{background:#edf3ef}.text-button{background:none;border:0;padding:4px 0;color:var(--green);font-size:12px;font-weight:550;text-decoration:none}.text-button:hover{text-decoration:underline;text-underline-offset:4px}.sheet{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.sheet-head{display:flex;justify-content:space-between;align-items:center;padding:21px 24px;gap:16px}.sheet-head p{font-size:12px;color:var(--muted);margin-top:3px}.divider{height:1px;background:var(--line)}.tag{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:500;border-radius:5px;padding:3px 8px;white-space:nowrap;line-height:20px}.tag::before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.tag.pending,.tag.unsettled{background:#fcf1dc;color:#8c5a1b}.tag.approved{background:#eaf1fd;color:#365f9a}.tag.paid,.tag.settled,.tag.connected{background:#e8f4ec;color:#276641}.tag.rejected,.tag.cancelled{background:#f3eeec;color:#796359}.client-cell{display:flex;align-items:center;gap:11px}.client-icon{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;font-size:14px;font-weight:600;flex:none;background:#e8f2ec;color:#39735a}.client-icon.blue{background:#eaf0f8;color:#486b95}.client-icon.orange{background:#f7eee5;color:#976942}.cell-title{font-weight:550;color:#2f4036}.cell-sub{font-size:11px;color:var(--muted);margin-top:2px}.table-scroll{overflow:auto}.data-table{width:100%;border-collapse:collapse;text-align:left;font-size:12px;white-space:nowrap}.data-table th{padding:12px 24px;color:#617169;background:#fafcfb;border-block:1px solid var(--line);font-size:11px;font-weight:500}.data-table td{padding:17px 24px;border-bottom:1px solid #edf1ee}.data-table tbody tr:last-child td{border-bottom:0}.data-table tbody tr:hover{background:#fbfdfb}.data-table .right{text-align:right}.data-table .amount{font-weight:600;font-size:13px}.table-foot{padding:14px 24px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;font-size:11px;color:var(--muted)}.empty{text-align:center;padding:65px 20px;color:var(--muted)}.empty h3{color:var(--ink);margin:12px 0 5px}.empty svg{margin:auto;width:28px;height:28px}.empty p{font-size:12px;margin-bottom:15px}.filters{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:0 24px 20px}.search-box{display:flex;align-items:center;border:1px solid var(--line);background:white;border-radius:7px;padding:0 10px;gap:7px}.search-box input{border:0;min-height:36px;width:185px;padding:5px 0;outline:none}.search-box:focus-within{outline:2px solid #83b7a3;outline-offset:1px}.search-box svg{width:16px;color:var(--muted)}input,select,textarea{color:var(--ink);border:1px solid #ced9d1;border-radius:7px;padding:9px 11px;background:white;min-height:39px;max-width:100%}input::placeholder,textarea::placeholder{color:#728078}select{cursor:pointer}textarea{resize:vertical;min-height:82px}label.field{display:grid;gap:7px;font-size:12px;color:#4e6456;margin-bottom:18px}.field small{color:var(--muted);font-size:11px}.field input,.field textarea,.field select{width:100%}.field-pair{display:grid;grid-template-columns:1fr 1fr;gap:15px}.tabs{display:flex;gap:25px;border-bottom:1px solid var(--line);padding:0 24px;margin-bottom:22px;overflow:auto}.tabs button{border:0;border-bottom:2px solid transparent;background:none;padding:15px 0 13px;color:var(--muted);font-size:12px;white-space:nowrap;display:flex;gap:8px;align-items:center}.tabs button.active{color:var(--green);border-color:var(--green);font-weight:600}.tabs .count{font-size:10px;border-radius:4px;background:#eef2ef;padding:0 5px;line-height:18px}.tabs button.active .count{background:var(--soft)}.notice{display:flex;align-items:flex-start;gap:9px;padding:13px 16px;border-radius:8px;background:#edf4f0;color:#496252;font-size:12px;line-height:1.75}.notice svg{width:16px;margin-top:3px}.notice.warn{background:#faf2e4;color:#805a24}.notice p{max-width:75ch}.error{color:#a43731;background:#fff0ed;padding:10px 12px;font-size:12px;border-radius:6px;margin-bottom:16px}.summary-strip{display:grid;grid-template-columns:repeat(4,1fr);background:white;border:1px solid var(--line);border-radius:var(--radius);padding:25px 0;margin-bottom:25px}.stat{padding:0 25px;min-width:0}.stat:not(:last-child){border-right:1px solid var(--line)}.stat-label{font-size:12px;color:var(--muted);margin-bottom:10px;display:flex;align-items:center;gap:6px}.stat-value{font-size:28px;line-height:1.25;font-weight:600;letter-spacing:-.02em;color:#273a2e}.stat-value small{font-size:16px;font-weight:450;margin-right:3px;color:#637668}.stat-foot{font-size:11px;color:var(--muted);margin-top:12px}.stat-foot strong{font-weight:500;color:var(--green)}#toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%,15px);opacity:0;pointer-events:none;background:#1c3d2e;color:white;padding:12px 22px;border-radius:8px;box-shadow:0 10px 30px #243b2926;font-size:13px;z-index:40;transition:opacity .2s,transform .2s;max-width:90vw}#toast.visible{opacity:1;transform:translate(-50%,0)}dialog{border:0;padding:0;border-radius:16px;box-shadow:var(--shadow);width:min(560px,calc(100vw - 28px));max-height:calc(100dvh - 48px);color:var(--ink);overflow:auto}dialog::backdrop{background:#132d2459}dialog[open]{animation:arrive .22s cubic-bezier(.2,.7,.2,1)}.dialog-head{display:flex;align-items:center;justify-content:space-between;padding:24px 26px 18px;border-bottom:1px solid var(--line)}.dialog-head h2{font-size:19px}.dialog-body{padding:23px 26px}.dialog-footer{display:flex;gap:10px;justify-content:flex-end;padding:18px 26px;border-top:1px solid var(--line);background:#fafcfb;flex-wrap:wrap}.dialog-total{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.dialog-total strong{font-size:30px;font-weight:600}.details{display:grid;grid-template-columns:110px minmax(0,1fr);font-size:12px;gap:12px;margin:20px 0 24px}.details dt{color:var(--muted)}.details dd{margin:0;overflow-wrap:anywhere}.timeline{margin-top:14px}.timeline-item{display:grid;grid-template-columns:12px 1fr;gap:12px;padding-bottom:19px;position:relative;font-size:12px}.timeline-item::before{content:"";width:7px;height:7px;border-radius:50%;background:#478367;margin-top:6px}.timeline-item:not(:last-child)::after{content:"";position:absolute;top:17px;bottom:0;left:3px;width:1px;background:var(--line)}.timeline-item p{color:var(--muted);font-size:11px}.check-line{display:flex;align-items:flex-start;gap:9px;font-size:12px;margin:16px 0;color:#4d6255}.check-line input{width:16px;min-height:16px;accent-color:var(--green);margin-top:3px;flex-shrink:0}.rule-preview{padding:16px;background:#f4f7f5;border-radius:8px;font-size:12px;margin:16px 0}.rule-preview strong{color:var(--green);font-size:17px}.code-id{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}.activity{padding:0 24px 20px}.activity-row{display:flex;gap:14px;align-items:start;padding:18px 0;border-bottom:1px solid var(--line)}.activity-row:last-child{border:0}.activity-row p{font-size:12px}.activity-row .time{margin-left:auto;white-space:nowrap;font-size:11px;color:var(--muted)}@keyframes arrive{from{opacity:.65;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
}
@layer pages {
  .overview-grid{display:grid;grid-template-columns:minmax(0,1fr) 282px;gap:22px;margin-bottom:24px}.chart-sheet .sheet-head{padding-bottom:12px}.legend{display:flex;align-items:center;gap:16px;font-size:11px;color:var(--muted);padding:0 24px}.legend span{display:flex;align-items:center;gap:7px}.legend i{height:7px;width:7px;background:var(--green);border-radius:2px}.legend span:nth-child(2) i{background:#bdcfc1}.chart-box{height:226px;margin:10px 18px 0;position:relative}.chart-box svg{width:100%;height:100%;overflow:visible}.chart-grid{stroke:#e8eeea;stroke-width:1;stroke-dasharray:3 4}.chart-label{fill:#617169;font-size:10px;font-family:inherit}.chart-line{fill:none;stroke:var(--green);stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}.chart-line-secondary{fill:none;stroke:#becfc4;stroke-width:2;stroke-dasharray:4 5}.chart-fill{fill:#eaf4ee}.chart-point{fill:var(--green);stroke:white;stroke-width:2}.chart-footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);margin-top:16px;padding:13px 24px;font-size:11px;color:var(--muted)}.task-panel{background:#eaf2ec;border-color:#dce7de}.task-panel .sheet-head{padding-bottom:12px}.task-line{padding:18px 22px;border-top:1px solid #d8e3da;display:flex;align-items:center;justify-content:space-between;gap:8px}.task-line p{font-size:12px;color:#627868}.task-line strong{display:block;font-size:25px;font-weight:600;color:#294f39;margin-top:2px}.task-line strong small{font-size:11px;color:#61796a;font-weight:400;margin-left:6px}.task-line button{border:1px solid #b6cbbb;background:transparent;border-radius:50%;width:31px;height:31px;display:grid;place-items:center;color:#45694f}.task-line button:hover{background:#dceade}.task-panel .task-end{padding:16px 22px;font-size:11px;color:#587361;display:flex;gap:8px}.task-end svg{width:16px}.section-gap{margin-bottom:24px}.wallet-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);gap:24px;margin-bottom:25px}.balance-panel{background:#164f3d;color:white;padding:29px;border-radius:12px;min-height:240px;display:flex;flex-direction:column;align-items:flex-start}.balance-panel p{color:#c0dac9;font-size:12px}.balance-panel .balance-number{font-size:43px;font-weight:550;letter-spacing:-.025em;margin:12px 0 18px;line-height:1.3}.balance-panel .button{background:#ecf5ee;border:0;color:#164f3d}.balance-panel .balance-bottom{display:flex;justify-content:space-between;width:100%;align-items:center;margin-top:auto}.balance-note{padding:25px}.balance-note h3{margin-bottom:16px}.balance-note ol{padding-left:20px;margin:0;color:#607064;font-size:12px}.balance-note li{padding:5px 0}.mini-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:25px;margin:22px 0}.mini-stats p{font-size:12px;color:var(--muted)}.mini-stats strong{font-weight:600;font-size:21px;display:block;margin-top:5px}.report-summary{padding:16px 24px;display:flex;gap:30px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}.report-summary strong{color:var(--ink);margin-left:9px}.brand-form{padding:24px;max-width:600px}.step-list{display:flex;gap:0;margin:20px 0 24px}.step-list span{flex:1;font-size:11px;border-bottom:2px solid #dce4de;padding:8px 0;color:var(--muted)}.step-list span.done{border-color:var(--green);color:var(--green)}.rule-list{display:grid;gap:10px;margin:20px 0}.rule-entry{border-top:1px solid var(--line);padding-top:10px;display:flex;justify-content:space-between;font-size:12px;gap:10px}.page-info{margin-bottom:24px}.audit-tools{padding:20px 24px;border-bottom:1px solid var(--line)}
}
@layer responsive {
  .icon-button.mobile-menu{display:none}
  @media(min-width:1500px){.main-content{padding:40px 48px}.overview-grid{grid-template-columns:minmax(0,1fr) 310px}.chart-box{height:260px}}
  @media(max-width:1150px){.shell{grid-template-columns:190px minmax(0,1fr)}.sidebar{padding-inline:10px}.brand{font-size:15px;gap:7px}.topbar{padding:0 24px}.main-content{padding:27px 24px}.overview-grid{grid-template-columns:minmax(0,1fr) 235px;gap:16px}.stat{padding:0 18px}.stat-value{font-size:24px}.data-table th,.data-table td{padding-inline:18px}.sheet-head{padding-inline:20px}}
  @media(max-width:900px){.shell{grid-template-columns:168px minmax(0,1fr)}.brand{font-size:14px;padding-inline:4px}.brand-mark{width:27px;height:30px}.nav-item{padding:11px 10px;font-size:12px;gap:9px}.main-content{padding:25px 20px}.topbar{padding:0 20px}.overview-grid{grid-template-columns:1fr}.task-panel{display:grid;grid-template-columns:repeat(3,1fr)}.task-panel .sheet-head{grid-column:1/-1;padding-block:15px}.task-panel .task-end{display:none}.task-line{padding:15px}.task-line strong{font-size:21px}.stat{padding:0 14px}.stat-value{font-size:21px}.stat-label,.stat-foot{font-size:10px}.page-heading{align-items:flex-start}h1{font-size:25px}.top-tools{gap:8px}.breadcrumb{display:none}.topbar{justify-content:flex-end}.wallet-grid{grid-template-columns:1fr}.footer{flex-wrap:wrap}}
  @media(max-width:650px){.shell{display:block}.sidebar{display:none;position:fixed;width:240px;left:0;z-index:9;box-shadow:var(--shadow)}.shell.menu-open .sidebar{display:flex}.shell.menu-open::after{content:"";position:fixed;inset:0;background:#142c224d;z-index:8}.icon-button.mobile-menu{display:grid;margin-right:auto}.topbar{height:auto;min-height:65px;padding:12px 16px;flex-wrap:wrap;gap:8px}.top-tools{gap:8px;flex-wrap:wrap;justify-content:flex-end}.topbar select{max-width:115px}.role-switch button{padding:5px 9px;font-size:11px}.main-content{padding:24px 16px}.page-heading{gap:14px;flex-wrap:wrap;margin-bottom:22px}.page-heading p{font-size:12px;max-width:34ch}h1{font-size:25px}.heading-actions{width:100%;justify-content:space-between}.summary-strip{grid-template-columns:repeat(2,1fr);padding:0;margin-bottom:20px}.stat{padding:19px 18px}.stat:nth-child(2){border-right:0}.stat:nth-child(-n+2){border-bottom:1px solid var(--line)}.stat-value{font-size:26px}.stat-label{font-size:12px}.stat-foot{font-size:10px;margin-top:8px}.sheet-head{padding:18px 16px}.sheet-head h2{font-size:16px}.chart-box{height:205px;margin-inline:10px}.chart-footer{padding-inline:16px}.legend{padding-inline:16px;gap:12px}.task-panel{grid-template-columns:1fr}.task-line{padding:14px 18px}.task-line strong{font-size:21px}.task-line>div{display:flex;align-items:center;gap:18px}.task-line strong{margin:0}.task-panel .sheet-head{padding-block:18px}.tabs{padding:0 16px;gap:23px}.filters{padding-inline:16px;gap:9px}.filters .search-box{width:100%}.search-box input{width:100%}.filters select{max-width:100%;flex:1;font-size:12px}.data-table th,.data-table td{padding:13px 16px}.table-foot{padding-inline:16px;gap:10px}.date-label{font-size:11px}.mini-stats{gap:12px}.mini-stats strong{font-size:17px}.mini-stats p{font-size:11px}.balance-panel{padding:24px}.balance-panel .balance-number{font-size:37px}.balance-bottom{gap:10px;flex-wrap:wrap}.balance-bottom p{font-size:11px}.dialog-body{padding:20px}.dialog-head{padding:19px 20px}.dialog-footer{padding:16px 20px}.field-pair{grid-template-columns:1fr;gap:0}.details{grid-template-columns:85px 1fr}.report-summary{flex-wrap:wrap;gap:10px 22px;padding-inline:16px}.activity{padding-inline:16px}.activity-row{flex-wrap:wrap}.activity-row .time{margin-left:0;width:100%;padding-left:48px}.demo-note{margin-top:16px}.footer{font-size:10px}.notice{padding:12px}.topbar .demo-pill{font-size:9px}.chart-sheet .sheet-head{flex-wrap:wrap}.chart-sheet .sheet-head select{min-height:30px;padding:4px 8px;font-size:11px}}
  @media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
}

@layer components {
  .table-hint{display:none}
  .table-scroll:focus-visible{outline:3px solid #83b7a3;outline-offset:-3px}
}
@layer pages {
  .login-shell{min-height:100vh;display:grid;place-items:center;padding:32px;background:radial-gradient(circle at 20% 10%,#e0eee6 0,transparent 34%),var(--canvas)}
  .login-card{width:min(430px,100%);background:var(--paper);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);padding:36px}
  .login-brand{padding:0 0 30px}.login-card h1{font-size:25px}.login-card>div>p{color:var(--muted);margin:7px 0 26px}.login-card form{display:grid}.login-button{width:100%;margin-top:3px;margin-bottom:18px}
  .chart-plot{position:absolute;inset:20px 15px 35px 43px}
  .chart-y-axis{position:absolute;top:14px;bottom:29px;left:0;display:flex;flex-direction:column;justify-content:space-between;font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}
  .chart-x-axis{position:absolute;left:40px;right:10px;bottom:0;height:22px;display:flex;justify-content:space-between;font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}
  .chart-line,.chart-line-secondary,.chart-grid{vector-effect:non-scaling-stroke}
}
@layer responsive {
  @media(max-width:900px){.table-hint{display:block;font-size:11px;color:var(--muted);padding:9px 18px;border-top:1px solid var(--line);background:#fafcfb}}
  @media(max-width:650px){.login-shell{padding:18px}.login-card{padding:28px 22px;border-radius:14px}}
}
@layer pages {
  .account-actions{display:flex;justify-content:flex-end;align-items:center;gap:18px}
  .account-actions .danger-text{color:var(--red)}
  .account-next{margin-top:18px}
  .account-loading{padding:24px;color:var(--muted);font-size:12px;border-top:1px solid var(--line)}
  .account-confirm{font-size:14px;line-height:1.8;overflow-wrap:anywhere}
  .credential-details{grid-template-columns:78px minmax(0,1fr);margin-bottom:3px}
  .credential-password{font-size:14px;letter-spacing:.015em;font-variant-numeric:tabular-nums;word-break:break-all;user-select:all;color:var(--green-dark)}
  @media(max-width:650px){.account-actions{gap:12px}.credential-details{grid-template-columns:68px minmax(0,1fr)}}
  .rule-start{justify-self:start;margin-top:2px}
  .field-pair>.field{align-self:start}
}

@layer pages {
  .xd-merchant{min-height:100vh;background:#f5f7f5;color:#24332b}
  .xd-topbar{height:62px;background:#fff;border-bottom:1px solid #e2e9e4;display:flex;align-items:center;gap:17px;padding:0 30px;box-shadow:0 2px 8px #1e3d2c09}
  .xd-topbar strong{font-size:17px;font-weight:650;white-space:nowrap}.xd-header-spacer{flex:1}.xd-app-label{font-size:12px;color:#5a6d60;background:#eef4ef;padding:5px 10px;border-radius:5px;white-space:nowrap}.xd-user{font-size:13px;white-space:nowrap}.xd-logout{border:0;background:none;color:#537765;font-size:12px;padding:7px}.xd-logout:hover{text-decoration:underline}
  .xd-menu-button{border:0;background:transparent;color:#4b6656;padding:6px;display:grid;place-items:center;border-radius:4px}.xd-menu-button:hover{background:#eff5f0}.xd-menu-button svg{width:21px;height:21px}
  .xd-body{display:flex;align-items:stretch;min-height:calc(100vh - 62px)}.xd-sidebar{display:none;width:185px;flex:none;background:#fff;border-right:1px solid #e2e9e4;padding:17px 10px}.xd-merchant.menu-open .xd-sidebar{display:block}.xd-sidebar p{font-size:12px;color:#7a8980;padding:12px 15px}.xd-sidebar button{width:100%;display:flex;gap:11px;align-items:center;border:0;background:none;padding:11px 13px;text-align:left;border-radius:5px;font-size:13px;color:#43584a}.xd-sidebar button:hover,.xd-sidebar button.active{background:#e9f3ec;color:#176149}.xd-sidebar button svg{width:16px;height:16px}
  .xd-main{width:100%;min-width:0;padding:0 20px 30px;max-width:1540px;margin:0 auto}.xd-crumb{height:43px;display:flex;align-items:center;justify-content:space-between;color:#819086;font-size:12px;padding:0 5px}.xd-crumb button{display:flex;gap:3px;align-items:center;border:0;background:none;color:#4f6758;font-size:12px}.xd-crumb button svg{width:12px;transform:rotate(90deg)}
  .xd-surface{background:#fff;border:1px solid #e5eae6;border-radius:4px;padding:22px 25px 10px;box-shadow:0 1px 3px #233e2a09}.xd-filters{display:flex;align-items:center;gap:14px 25px;flex-wrap:wrap;padding:1px 0 24px}.xd-filters label{font-size:12px;display:flex;align-items:center;gap:13px;white-space:nowrap}.xd-filters input,.xd-filters select{height:34px;min-height:34px;border-radius:3px;border-color:#d5ded7;font-size:12px;padding:4px 8px}.xd-filters select{width:174px}.xd-date-range{display:flex;align-items:center;gap:7px;border:1px solid #d5ded7;border-radius:3px;padding:0 4px}.xd-date-range input{border:0;width:130px;padding-inline:2px}.xd-date-range span{color:#8b9a8f}.xd-filters .button{min-height:34px;border-radius:3px;padding:5px 15px}.xd-filter-note{color:#92a097;font-size:11px}
  .xd-section-title{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:0 0 16px}.xd-section-title h2{font-size:17px;font-weight:650;color:#25382b}.xd-section-title span{color:#668071;font-size:12px}.xd-legend{display:flex;justify-content:center;align-items:center;gap:15px;position:relative;flex-wrap:wrap;min-height:34px}.xd-legend button{background:none;border:0;color:#8c9990;display:flex;align-items:center;gap:6px;font-size:11px;padding:5px 0}.xd-legend button.active{color:#45594b}.xd-legend i{width:13px;height:7px;border-radius:2px;background:#c6cfc9;display:inline-block}.xd-legend i.pull{background:#879c90}.xd-legend i.exposure{background:#d3a248}.xd-legend i.clicks{background:#5c7fb0}.xd-legend i.ecpm{background:#64ad86}.xd-legend i.income{background:#c9e3d4}.xd-legend button:not(.active) i{background:#c6cfc9}.xd-legend .xd-download-icon{position:absolute;right:2px;color:#7d9685}.xd-legend .xd-download-icon svg{width:17px;height:17px}
  .xd-chart-scroll{width:100%;overflow-x:auto}.xd-chart{display:block;width:100%;min-width:660px;height:342px}.xd-chart text{fill:#88978d;font-size:11px;font-family:inherit}.xd-table-title{margin:16px 0 17px}.xd-table-title .button{min-height:34px;border-radius:3px}.xd-table-scroll{overflow-x:auto}.xd-data-table{border-collapse:collapse;width:100%;white-space:nowrap;font-size:12px;color:#5b695f}.xd-data-table th,.xd-data-table td{border:1px solid #e0e8e2;text-align:left;padding:11px 13px;font-weight:400}.xd-data-table th{background:#fafcfb;color:#536557}.xd-data-table tbody tr:hover{background:#f7faf7}.xd-data-table .xd-income{font-weight:600;color:#176149}.xd-no-data{text-align:center!important;padding:45px!important;color:#93a098}.xd-pagination{display:flex;align-items:center;justify-content:flex-end;gap:11px;padding:19px 0;color:#7c8980;font-size:12px}.xd-pagination span:first-child{margin-right:5px}.xd-pagination select{min-height:29px;height:29px;padding:3px 7px;font-size:12px;border-radius:3px}.xd-pagination button{border:1px solid #dce5de;background:white;border-radius:3px;min-width:28px;height:28px}.xd-pagination button:hover:not(:disabled){border-color:#91b59d;color:#14634e}.xd-disclaimer{border-top:1px solid #edf1ee;color:#8a988e;font-size:11px;padding:12px 0 4px}.xd-subpage{background:#fff;border:1px solid #e5eae6;border-radius:4px;padding:25px}.xd-subheading{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.xd-subheading h1{font-size:22px}.xd-subpage .sheet{border-radius:4px}.xd-subpage .wallet-grid{margin-bottom:20px}
  @media(max-width:760px){.xd-topbar{padding:0 14px;gap:9px}.xd-topbar strong{font-size:14px}.xd-app-label{display:none}.xd-user{max-width:90px;overflow:hidden;text-overflow:ellipsis}.xd-main{padding:0 10px 20px}.xd-surface{padding:16px 13px 6px}.xd-filters{gap:11px;padding-bottom:20px}.xd-filters label{width:100%;justify-content:space-between}.xd-filters select{width:min(250px,70%)}.xd-date-range{width:min(290px,75%);justify-content:space-between}.xd-date-range input{width:44%;font-size:11px}.xd-section-title{align-items:start}.xd-section-title span{max-width:180px;text-align:right}.xd-legend{justify-content:flex-start;padding-right:25px;gap:5px 13px}.xd-chart{height:295px}.xd-subpage{padding:15px}.xd-merchant.menu-open .xd-sidebar{position:fixed;z-index:12;top:62px;bottom:0;box-shadow:12px 0 25px #1e3a2920}.xd-merchant.menu-open .xd-main::before{content:"";position:fixed;inset:62px 0 0;background:#173a2733;z-index:11}}
}

@layer components {
  dialog:has(#request-form),#invoice-info{width:min(720px,calc(100vw - 28px))}
  #request-form .dialog-body{max-height:calc(100dvh - 220px);overflow-y:auto;overscroll-behavior:contain}
  .withdrawal-intro{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px;flex-wrap:wrap}
  .withdrawal-intro p{color:var(--red);font-size:13px;flex:1;min-width:220px}
  .withdrawal-intro .text-button{display:flex;align-items:center;gap:5px;white-space:nowrap}
  .withdrawal-intro svg{width:15px;height:15px}
  .invoice-address{margin-bottom:22px;overflow-wrap:anywhere}
  .withdrawal-balance{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin-bottom:22px;padding-bottom:18px;border-bottom:1px solid var(--line)}
  .withdrawal-balance>span{font-size:13px;color:var(--muted)}
  .withdrawal-balance strong{font-size:25px;font-weight:600;color:var(--green-dark)}
  .withdrawal-balance small{font-size:12px;color:var(--muted);flex-basis:100%}
  .invoice-options{border:0;padding:0;margin:22px 0;display:grid;gap:11px;min-width:0}
  .invoice-options legend{font-size:13px;font-weight:600;margin-bottom:12px}
  .invoice-options label{display:flex;gap:9px;align-items:flex-start;font-size:13px;cursor:pointer;line-height:1.8}
  .invoice-options input{width:16px;height:16px;min-height:16px;padding:0;margin:4px 0 0;accent-color:var(--green);flex-shrink:0}
  .invoice-option-rate{color:var(--green)}
  #no-invoice-value{color:var(--red);font-variant-numeric:tabular-nums}
  .withdrawal-payout{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:6px 12px;border-block:1px solid var(--line);padding:17px 0;margin:22px 0}
  .withdrawal-payout>span{font-size:13px}
  .withdrawal-payout strong{font-size:23px;color:var(--green-dark);font-weight:600}
  .withdrawal-payout small{grid-column:1/-1;font-size:12px;color:var(--muted)}
  .wallet-cycle{margin-bottom:21px;line-height:1.8}
  .wallet-equation{margin-top:15px;line-height:1.8}
  #invoice-info .dialog-body{max-height:calc(100dvh - 235px);overflow-y:auto;overscroll-behavior:contain}
  .invoice-notice{font-size:13px;line-height:1.85;overflow-wrap:anywhere}
  .invoice-notice>p{margin-bottom:9px}
  .invoice-company{margin-top:4px}
  .invoice-section{margin-top:20px}
  .invoice-reference-table{width:100%;border-collapse:collapse;font-size:13px;margin:12px 0 20px}
  .invoice-reference-table th,.invoice-reference-table td{text-align:left;border-bottom:1px solid var(--line);padding:12px 10px;vertical-align:top}
  .invoice-reference-table th{background:var(--canvas);font-weight:600}
  .invoice-reference-table th:last-child,.invoice-reference-table td:last-child{width:100px;white-space:nowrap}
  .invoice-warning{color:var(--red);font-weight:600;margin-top:8px}
  .invoice-reference-note{font-size:12px;color:var(--muted);margin-right:auto;align-self:center}
  @media(max-width:600px){
    #request-form .dialog-head,#invoice-info .dialog-head{padding:18px}
    #request-form .dialog-body,#invoice-info .dialog-body{padding:18px;max-height:calc(100dvh - 208px)}
    #request-form .dialog-footer,#invoice-info .dialog-footer{padding:14px 18px}
    .withdrawal-intro{gap:10px}
    .withdrawal-intro p{flex-basis:100%;min-width:0}
    .invoice-options label{font-size:12px}
    .invoice-reference-table th,.invoice-reference-table td{padding:10px 7px;font-size:12px}
    .invoice-reference-table th:last-child,.invoice-reference-table td:last-child{width:68px}
    .balance-bottom{flex-wrap:wrap;gap:14px}
  }
}
