:root{color-scheme:light;--bg: #f6f5fd;--panel: #ffffff;--panel-soft: #fbfaff;--ink: #1e1c23;--muted: rgba(30, 28, 35, .6);--muted-light: rgba(30, 28, 35, .35);--line: rgba(30, 28, 35, .08);--line-strong: rgba(30, 28, 35, .14);--accent: #9e7efc;--accent-deep: #7457e8;--accent-soft: rgba(158, 126, 252, .14);--accent-faint: rgba(158, 126, 252, .08);--danger: #ff5041;--shadow: 0 10px 28px rgba(54, 45, 96, .08);--shadow-soft: 0 4px 14px rgba(54, 45, 96, .06);font-family:Inter,-apple-system,system-ui,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Arial,sans-serif}*{box-sizing:border-box}body{margin:0;min-width:0;color:var(--ink);background:radial-gradient(circle at 18% 0%,rgba(158,126,252,.12),transparent 28%),linear-gradient(180deg,#fbfaff 0%,var(--bg) 42%)}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,input:focus-visible,select:focus-visible,.tooltip:focus-visible{outline:3px solid rgba(158,126,252,.22);outline-offset:2px}.app{display:grid;grid-template-columns:224px minmax(0,1fr);grid-template-rows:60px minmax(0,1fr);min-height:100vh}.global-header{position:sticky;top:0;z-index:40;grid-column:1 / -1;height:60px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;gap:16px;background:linear-gradient(0deg,#f6f5fdf5,#f6f5fdf5),#fff;border-bottom:1px solid var(--line);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.global-brand{display:flex;align-items:center;gap:8px;color:var(--ink);font-size:20px;line-height:28px;font-weight:780;white-space:nowrap}.brand-mark{min-width:32px;width:38px;height:32px;display:grid;place-items:center;border-radius:8px;color:#fff;background:linear-gradient(145deg,var(--accent),#c1adff);box-shadow:0 8px 18px #9e7efc40;font-size:12px;font-weight:860}.sidebar{position:sticky;top:60px;grid-row:2;height:calc(100vh - 60px);padding:14px 12px;overflow:auto;border-right:1px solid var(--line);background:#ffffff38}.nav-block{margin-top:22px}.nav-block:first-child{margin-top:0}.nav-caption{margin:0 10px 8px;color:var(--muted-light);font-size:12px;line-height:18px}.nav-main,.nav-button{width:100%;min-height:40px;border:0;border-radius:8px;padding:0 12px;display:flex;align-items:center;gap:10px;color:#1e1c23cc;background:transparent;text-align:left;font-size:14px}.nav-main{margin-bottom:4px;color:#1e1c23b8;background:transparent;font-weight:700;box-shadow:none}.nav-main:hover{background:#ffffffad}.nav-main.active{color:var(--accent-deep);background:#fff;font-weight:760;box-shadow:var(--shadow-soft)}.nav-button:hover{background:#ffffffad}.nav-button.active{color:var(--accent-deep);background:var(--accent-soft);font-weight:760}.role-nav{min-height:36px}.role-nav.active{color:#fff;background:var(--accent);box-shadow:0 8px 18px #9e7efc38}.main{grid-row:2;min-width:0;width:min(100%,1760px);padding:22px 28px 42px}.topbar{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:16px}.eyebrow{margin-bottom:4px;color:var(--accent-deep);font-size:13px;line-height:20px;font-weight:760}h1{margin:0;color:var(--ink);font-size:26px;line-height:34px;letter-spacing:0}.topbar p{margin:6px 0 0;color:var(--muted);font-size:14px;line-height:22px}.app-switch{min-height:38px;border:1px solid var(--line);border-radius:9999px;padding:3px;display:inline-flex;align-items:center;gap:2px;background:#ffffffd1;box-shadow:var(--shadow-soft)}.app-switch button{min-width:72px;height:30px;border:0;border-radius:9999px;padding:0 12px;color:var(--muted);background:transparent;font-size:13px;font-weight:720}.app-switch button.active{color:#fff;background:var(--accent);box-shadow:0 6px 14px #9e7efc33}.ghost-button,.primary{min-height:34px;border-radius:9999px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:14px}.ghost-button{border:0;padding:0 14px;color:var(--accent-deep);background:#302e380d}.ghost-button:hover{background:#9e7efc1f}.primary{border:0;padding:0 16px;color:#fff;background:var(--accent);box-shadow:0 6px 14px #9e7efc33;font-weight:760}.primary:hover{background:var(--accent-deep)}.query-spinner{animation:query-spin .8s linear infinite}.query-result{position:relative}.query-result.is-loading{min-height:72px}.query-result.is-loading>:not(.query-loading){opacity:.38;pointer-events:none;-webkit-user-select:none;user-select:none}.query-loading{position:absolute;top:0;right:0;bottom:0;left:0;z-index:20;min-height:72px;display:flex;align-items:center;justify-content:center;gap:8px;color:var(--accent-deep);background:#fbfaffb3;-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px);font-size:13px;font-weight:720}@keyframes query-spin{to{transform:rotate(360deg)}}.toolbar{margin:12px 0;padding:12px;border:1px solid var(--line);border-radius:16px;display:flex;flex-wrap:nowrap;align-items:end;gap:10px;overflow-x:auto;background:#ffffffeb;box-shadow:var(--shadow-soft)}.toolbar.compact{padding:10px 12px}.field{display:grid;gap:6px;color:#1e1c23a3;font-size:13px;line-height:18px}.field input,.field select{height:36px;min-width:120px;border:1px solid var(--line);border-radius:10px;padding:0 11px;color:var(--ink);background:#fff}.field input:hover,.field select:hover,.search-input:hover{border-color:#9e7efc5c}.date-input{cursor:pointer}.search-input{height:36px;min-width:190px;border:1px solid var(--line);border-radius:10px;display:flex;align-items:center;gap:8px;padding:0 11px;color:var(--muted-light);background:#fff}.search-input.wide{min-width:260px}.search-input input{min-width:0;width:100%;height:32px;border:0;padding:0}.realtime-panel{margin:10px 0 18px;border:1px solid rgba(116,87,232,.22);border-radius:16px;padding:16px;background:linear-gradient(135deg,#9e7efc1f,#fffffff5 42%),#fff;box-shadow:var(--shadow)}.realtime-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}.realtime-title{display:flex;align-items:center;gap:8px}.realtime-title h2,.history-section-head h2,.export-modal h2{margin:0;color:var(--ink);font-size:18px;line-height:26px}.realtime-head p,.history-section-head p,.export-modal p{margin:5px 0 0;color:var(--muted);font-size:13px;line-height:20px}.realtime-note{color:#1e1c23b8!important}.realtime-filters{margin:0 0 14px;border-top:1px solid rgba(116,87,232,.12);border-bottom:1px solid rgba(116,87,232,.12);padding:12px 0;display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px}.realtime-filter-copy{min-width:190px;margin-right:4px;display:grid;align-self:center;gap:2px}.realtime-filter-copy strong{color:#1e1c23db;font-size:14px;line-height:20px}.realtime-filter-copy span{color:var(--muted);font-size:12px;line-height:18px}.realtime-filters .field select{min-width:180px;max-width:300px}.realtime-filters .realtime-clear{min-height:36px}.status-dot{width:8px;height:8px;margin-top:6px;border-radius:50%;background:#21b26f;box-shadow:0 0 0 4px #21b26f1f;flex:0 0 auto}.live-badge{height:22px;border-radius:9999px;padding:0 8px;display:inline-flex;align-items:center;color:#15905a;background:#21b26f1f;font-size:12px;line-height:20px;font-weight:760}.realtime-grid{display:grid;grid-template-columns:repeat(2,minmax(180px,280px));gap:10px}.realtime-card{min-height:76px;border:1px solid rgba(30,28,35,.07);border-radius:12px;padding:12px;background:#ffffffd6}.realtime-card-label{display:flex;align-items:center;gap:5px}.realtime-card-label>span{color:var(--muted);font-size:12px;line-height:18px}.realtime-card-label .tooltip{color:#1e1c2359}.realtime-card-label em{margin-left:2px;border-radius:9999px;padding:1px 6px;color:#15905a;background:#21b26f1f;font-size:11px;line-height:18px;font-style:normal;font-weight:760}.realtime-card strong{display:flex;align-items:baseline;gap:5px;margin-top:7px;color:var(--ink);font-size:22px;line-height:28px;font-variant-numeric:tabular-nums}.realtime-card small{color:var(--muted);font-size:12px;font-weight:600}.link-button{height:28px;border:0;border-radius:9999px;padding:0 10px;color:var(--accent-deep);background:#9e7efc1a;font-size:12px;font-weight:720}.link-button:hover{color:#fff;background:var(--accent)}.history-section-head{margin:18px 0 8px;display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.history-notice{margin:10px 0 14px;border:1px solid rgba(158,126,252,.16);border-radius:12px;padding:10px 12px;color:#1e1c23ad;background:#ffffffd1;font-size:13px;line-height:20px}.history-notice.live{color:#15724c;background:#21b26f14;border-color:#21b26f2e}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;display:grid;place-items:center;padding:24px;background:#1e1c2347;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.export-modal{width:min(560px,100%);border:1px solid rgba(30,28,35,.08);border-radius:16px;padding:18px;background:#fff;box-shadow:0 24px 70px #362d6038}.export-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.export-modal-body{margin-top:18px;display:grid;grid-template-columns:1fr 1fr;gap:12px}.export-modal-tip{margin-top:14px;border-radius:12px;padding:10px 12px;color:#1e1c23b3;background:#9e7efc14;font-size:13px;line-height:20px}.export-modal-actions{margin-top:18px;display:flex;justify-content:flex-end;gap:8px}.section-title{margin:20px 0 10px;display:flex;align-items:center;justify-content:space-between;gap:12px}.section-title h2{margin:0;color:var(--ink);font-size:18px;line-height:26px}.table-export{min-height:32px;flex:0 0 auto}.table-shell{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--panel);box-shadow:var(--shadow)}.table-scroll{overflow:auto}table{width:100%;min-width:max-content;border-collapse:separate;border-spacing:0}th,td{height:48px;border-bottom:1px solid var(--line);padding:0 14px;white-space:nowrap;text-align:left;font-size:14px;vertical-align:middle}th{position:sticky;top:0;z-index:2;color:#1e1c239e;background:#fbfaff;font-weight:760}th>span{display:inline-flex;align-items:center;gap:5px}th.sortable{cursor:pointer}th.sortable:hover{color:var(--accent-deep)}td{color:#1e1c23e0;background:#fff}tbody tr:hover td{background:#f6f5fd80}.total-row td{position:sticky;top:48px;z-index:1;border-bottom:1px solid rgba(158,126,252,.22);color:var(--accent-deep);background:#f7f3ff;font-weight:780}.right{text-align:right;font-variant-numeric:tabular-nums;min-width:132px}.sort-mark{color:var(--accent-deep);font-style:normal}.tooltip{position:relative;display:inline-flex;color:#1e1c2359;cursor:help}.tooltip:hover{color:var(--accent-deep)}.tooltip-layer{position:fixed;z-index:9999;width:min(320px,calc(100vw - 32px));transform:translate(-50%);border:1px solid rgba(158,126,252,.24);border-radius:12px;padding:10px 12px;color:#1e1c23db;background:#fff;box-shadow:0 10px 30px #362d6024;white-space:normal;line-height:1.55;font-size:13px;font-weight:500;pointer-events:none}.pager{min-height:48px;padding:0 14px;display:flex;align-items:center;justify-content:flex-end;gap:12px;color:var(--muted);background:#fbfaff;font-size:13px}.page-size,.page-buttons{display:flex;align-items:center;gap:8px}.page-size label{display:inline-flex;align-items:center;gap:6px}.page-size select{height:32px;border:1px solid var(--line);border-radius:9999px;padding:0 24px 0 10px;color:#1e1c23c7;background:#fff}.pager button{height:32px;border:0;border-radius:9999px;padding:0 12px;color:#1e1c23b8;background:#302e380d}.pager button.active{color:#fff;background:var(--accent)}.operation-cell{position:sticky;right:0;z-index:3;min-width:98px;width:98px;box-shadow:-1px 0 0 var(--line)}td.operation-cell{background:#fff}.total-row td.operation-cell{background:#f7f3ff}.text-action{height:30px;border:0;border-radius:9999px;padding:0 12px;color:var(--accent-deep);background:#9e7efc1f;font-weight:720}.text-action:hover{color:#fff;background:var(--accent)}.empty-cell{height:120px;color:var(--muted);text-align:center}.person,.location{display:grid;gap:2px;line-height:20px}.person strong,.location strong{color:#1e1c23eb;font-weight:700}.person small,.location small{color:var(--muted);font-size:12px;line-height:18px}.prototype-controller{min-width:0;display:flex;align-items:center;justify-content:flex-end;gap:8px;color:var(--muted);font-size:12px}.prototype-controller label{white-space:nowrap}.prototype-controller select{width:min(310px,30vw);height:34px;border:1px solid var(--line-strong);border-radius:8px;padding:0 32px 0 10px;color:var(--ink);background:#fff}.app-context-chip,.permission-chip{min-height:24px;border-radius:9999px;padding:2px 9px;display:inline-flex;align-items:center;white-space:nowrap;font-size:12px;font-weight:760}.app-context-chip{color:var(--accent-deep);background:var(--accent-soft)}.permission-chip{color:#15724c;background:#21b26f1a}.permission-chip.authorized{color:#8a4c00;background:#fff1d8}.sidebar-context{margin:24px 4px 4px;border:1px solid var(--line);border-radius:8px;padding:10px;display:grid;gap:4px;background:#ffffffb3}.sidebar-context span,.sidebar-context small{color:var(--muted);font-size:11px;line-height:17px}.sidebar-context strong{font-size:13px;line-height:19px}.current-context{min-width:230px;border:1px solid var(--line);border-radius:8px;padding:9px 11px;display:flex;align-items:center;gap:9px;background:#ffffffd1;box-shadow:var(--shadow-soft)}.current-context svg{color:var(--accent-deep);flex:0 0 auto}.current-context div{min-width:0;display:grid}.current-context strong,.current-context span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.current-context strong{font-size:13px;line-height:20px}.current-context span{color:var(--muted);font-size:11px;line-height:17px}.context-notice{margin:0 0 14px;border:1px solid rgba(158,126,252,.2);border-radius:8px;padding:9px 12px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#1e1c23c2;background:#f8f5ff;font-size:13px;line-height:20px}.context-notice.prototype{border-color:#d0801438;background:#fff8ea}.context-notice button{border:0;padding:3px 6px;color:var(--muted);background:transparent;font-size:12px}.scope-note{margin:8px 0 10px;border-left:3px solid var(--accent);padding:7px 10px;color:var(--muted);background:#9e7efc0f;font-size:13px;line-height:20px}.preserved-page{min-height:330px;border:1px solid var(--line);border-radius:8px;padding:32px;display:grid;grid-template-columns:48px minmax(0,1fr);gap:18px;background:#fff;box-shadow:var(--shadow)}.preserved-page-icon{width:48px;height:48px;border-radius:8px;display:grid;place-items:center;color:var(--accent-deep);background:var(--accent-soft)}.preserved-label{color:var(--accent-deep);font-size:12px;font-weight:760}.preserved-page h2{margin:5px 0 8px;font-size:20px;line-height:28px}.preserved-page p{max-width:780px;margin:0;color:var(--muted);font-size:14px;line-height:23px}.preserved-rules{margin-top:22px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.preserved-rules div{border:1px solid var(--line);border-radius:8px;padding:12px;display:grid;gap:5px;background:var(--panel-soft)}.preserved-rules strong{font-size:13px}.preserved-rules span{color:var(--muted);font-size:12px;line-height:19px}.revenue-page,.settlement-page{display:grid;gap:16px}.account-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.account-card{min-height:118px;border:1px solid var(--line);border-radius:8px;padding:16px;display:grid;align-content:center;gap:7px;background:#fff;box-shadow:var(--shadow-soft)}.account-card.accent{border-color:#9e7efc3d;background:#f8f5ff}.account-card-icon{color:var(--accent-deep)}.account-card>span,.account-card>small{color:var(--muted);font-size:12px}.account-card>strong{display:flex;align-items:baseline;gap:5px;font-size:24px;line-height:32px}.account-card>strong small{color:var(--muted);font-size:12px}.account-card .account-time{font-size:17px;line-height:26px}.revenue-overview-panel,.account-flow-panel,.settlement-detail{border:1px solid var(--line);border-radius:8px;padding:16px;background:#fff;box-shadow:var(--shadow-soft)}.revenue-section-head,.settlement-intro{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.revenue-section-head h2,.settlement-intro h2{margin:0;font-size:18px;line-height:26px}.revenue-section-head p,.settlement-intro p{margin:4px 0 0;color:var(--muted);font-size:13px;line-height:20px}.period-switch{border:1px solid var(--line);border-radius:8px;padding:3px;display:flex;gap:2px;background:var(--panel-soft)}.period-switch button{min-width:62px;height:30px;border:0;border-radius:6px;color:var(--muted);background:transparent;font-size:12px}.period-switch button.active{color:#fff;background:var(--accent)}.period-caption{margin-top:14px;color:var(--muted);font-size:12px}.income-metric-grid{margin-top:8px;display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}.income-metric{min-height:76px;border:1px solid var(--line);border-radius:8px;padding:11px;display:grid;align-content:center;gap:6px;background:var(--panel-soft)}.income-metric span{color:var(--muted);font-size:12px}.income-metric strong{font-size:19px;line-height:27px;font-variant-numeric:tabular-nums}.revenue-table-wrap{margin-top:14px;overflow:auto;border:1px solid var(--line);border-radius:8px}.revenue-table{min-width:760px}.revenue-table th,.revenue-table td{height:44px;font-size:13px}.account-flow-query{margin-top:14px;display:flex;align-items:flex-end;gap:10px}.account-flow-query label{display:grid;gap:5px;color:var(--muted);font-size:12px}.account-flow-query input{height:36px;border:1px solid var(--line);border-radius:8px;padding:0 10px;color:var(--ink);background:#fff}.settlement-intro{border:1px solid var(--line);border-radius:8px;padding:16px;background:#fff}.settlement-detail-head{justify-content:flex-start;align-items:center}.settlement-detail-head .back-button{flex:0 0 auto}.settlement-income-table{min-width:980px}.settlement-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.settlement-summary>div{min-height:90px;border:1px solid var(--line);border-radius:8px;padding:14px;display:grid;align-content:center;gap:7px;background:#fff}.settlement-summary span{color:var(--muted);font-size:12px}.settlement-summary strong{font-size:16px}.status-chip{border-radius:9999px;padding:4px 8px;display:inline-flex;font-size:12px}.status-chip.warning{color:#8a4c00;background:#fff1d8}.settlement-modules{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.settlement-modules>div{border:1px solid var(--line);border-radius:8px;padding:14px;display:grid;gap:5px;background:#fff}.settlement-modules strong{font-size:13px}.settlement-modules span{color:var(--muted);font-size:12px;line-height:19px}@media(max-width:760px){body{min-width:0}.app{grid-template-columns:1fr;grid-template-rows:auto auto minmax(0,1fr)}.global-header{position:static;height:auto;padding:12px 14px;align-items:flex-start;flex-direction:column}.prototype-controller{width:100%;justify-content:flex-start;flex-wrap:wrap}.prototype-controller select{width:100%}.sidebar{position:static;grid-row:auto;height:auto;border-right:0;border-bottom:1px solid var(--line);background:#ffffff5c}.main{grid-row:auto;padding:18px 14px 32px}.topbar,.realtime-head,.pager,.revenue-section-head,.settlement-intro{align-items:stretch;flex-direction:column}.realtime-grid,.export-modal-body,.account-summary,.settlement-summary,.settlement-modules,.preserved-rules{grid-template-columns:1fr}.realtime-filters{align-items:stretch;flex-direction:column}.realtime-filter-copy,.realtime-filters .field,.realtime-filters .field select,.realtime-filters .search-input,.realtime-filters .primary,.realtime-filters .ghost-button{width:100%;max-width:none}.current-context{min-width:0;width:100%}.account-flow-query{align-items:stretch;flex-direction:column}.preserved-page{padding:20px;grid-template-columns:1fr}}
