:root{--font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;--mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;--canvas: #f5f5f5;--surface: #ffffff;--surface-2: #fafafa;--surface-hover: #f5f5f5;--surface-active: #ebebeb;--border: #e6e6e6;--border-strong: #d4d4d4;--text: #1e1e1e;--text-2: #5e5e5e;--text-3: #8f8f8f;--accent: #0d99ff;--accent-hover: #0a87e3;--accent-soft: #e5f4ff;--accent-text: #007be5;--on-accent: #ffffff;--green: #14ae5c;--green-soft: #e3f6ec;--green-text: #0b8a46;--amber: #f5a623;--amber-soft: #fff4e0;--amber-text: #b26b00;--red: #f24822;--red-soft: #ffe9e3;--red-text: #d4361a;--purple: #9747ff;--purple-soft: #f1e8ff;--purple-text: #7a2fe0;--gray-soft: #efefef;--gray-text: #5e5e5e;--chart-1: #0d99ff;--chart-2: #9747ff;--chart-3: #14ae5c;--chart-4: #f5a623;--chart-5: #f24822;--chart-6: #1bc5c5;--grid: #ededed;--radius-sm: 4px;--radius: 6px;--radius-lg: 8px;--shadow-sm: 0 1px 2px rgba(0, 0, 0, .04);--shadow-pop: 0 2px 6px rgba(0, 0, 0, .06), 0 12px 32px rgba(0, 0, 0, .12);--focus: 0 0 0 2px var(--accent-soft), 0 0 0 1px var(--accent);--sidebar-w: 240px;--topbar-h: 48px;color-scheme:light}@media (prefers-color-scheme: dark){:root:not([data-theme=light]){--canvas: #1e1e1e;--surface: #2c2c2c;--surface-2: #262626;--surface-hover: #383838;--surface-active: #444444;--border: #3d3d3d;--border-strong: #4d4d4d;--text: #f5f5f5;--text-2: #b3b3b3;--text-3: #8a8a8a;--accent-soft: rgba(13, 153, 255, .16);--accent-text: #4db5ff;--green-soft: rgba(20, 174, 92, .16);--green-text: #3ccf7f;--amber-soft: rgba(245, 166, 35, .16);--amber-text: #ffbe4d;--red-soft: rgba(242, 72, 34, .16);--red-text: #ff7a5c;--purple-soft: rgba(151, 71, 255, .18);--purple-text: #b98aff;--gray-soft: #3a3a3a;--gray-text: #c4c4c4;--grid: #383838;--shadow-sm: none;--shadow-pop: 0 2px 6px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .5);color-scheme:dark}}:root[data-theme=dark]{--canvas: #1e1e1e;--surface: #2c2c2c;--surface-2: #262626;--surface-hover: #383838;--surface-active: #444444;--border: #3d3d3d;--border-strong: #4d4d4d;--text: #f5f5f5;--text-2: #b3b3b3;--text-3: #8a8a8a;--accent-soft: rgba(13, 153, 255, .16);--accent-text: #4db5ff;--green-soft: rgba(20, 174, 92, .16);--green-text: #3ccf7f;--amber-soft: rgba(245, 166, 35, .16);--amber-text: #ffbe4d;--red-soft: rgba(242, 72, 34, .16);--red-text: #ff7a5c;--purple-soft: rgba(151, 71, 255, .18);--purple-text: #b98aff;--gray-soft: #3a3a3a;--gray-text: #c4c4c4;--grid: #383838;--shadow-sm: none;--shadow-pop: 0 2px 6px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .5);color-scheme:dark}*,*:before,*:after{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;background:var(--canvas);color:var(--text);font-family:var(--font);font-size:13px;line-height:1.45;-webkit-font-smoothing:antialiased;font-feature-settings:"cv11","ss01"}a{color:var(--accent-text);text-decoration:none}a:hover{text-decoration:underline}h1,h2,h3,h4{margin:0;font-weight:600;letter-spacing:-.01em}h1{font-size:18px}h2{font-size:15px}h3{font-size:13px}code,.mono{font-family:var(--mono);font-size:12px}::selection{background:var(--accent-soft)}button{font:inherit}.shell{display:grid;grid-template-columns:var(--sidebar-w) 1fr;height:100vh}.sidebar{background:var(--surface);border-right:1px solid var(--border);display:flex;flex-direction:column;min-height:0}.sidebar-head{height:var(--topbar-h);display:flex;align-items:center;gap:10px;padding:0 14px;border-bottom:1px solid var(--border);flex-shrink:0}.logo{width:24px;height:24px;border-radius:6px;background:var(--text);color:var(--surface);display:grid;place-items:center;font-weight:700;font-size:12px}.brand{font-weight:600;font-size:13px;line-height:1.2;min-width:0}.brand small{display:block;color:var(--text-3);font-weight:400;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nav{flex:1;overflow-y:auto;padding:8px}.nav-section{padding:14px 8px 4px;font-size:11px;font-weight:600;color:var(--text-3)}.nav-item{display:flex;align-items:center;gap:9px;height:30px;padding:0 8px;border-radius:var(--radius);color:var(--text-2);font-weight:500;cursor:pointer;text-decoration:none!important;white-space:nowrap}.nav-item:hover{background:var(--surface-hover);color:var(--text)}.nav-item.active{background:var(--accent-soft);color:var(--accent-text)}.nav-item svg{flex-shrink:0}.nav-item .count{margin-left:auto;font-size:11px;color:var(--text-3)}.sidebar-foot{border-top:1px solid var(--border);padding:8px}.main{display:flex;flex-direction:column;min-width:0;min-height:0}.topbar{height:var(--topbar-h);background:var(--surface);border-bottom:1px solid var(--border);flex-shrink:0;display:flex;align-items:center;gap:12px;padding:0 16px}.crumbs{display:flex;align-items:center;gap:6px;color:var(--text-3);min-width:0}.crumbs b{color:var(--text);font-weight:600}.topbar .spacer{flex:1}.content{flex:1;overflow-y:auto;display:flex;flex-direction:column}.page{padding:20px 24px 24px;max-width:1480px;width:100%;margin:0 auto;flex:1}.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px;flex-wrap:wrap}.page-head p{margin:2px 0 0;color:var(--text-2)}.page-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.footer{border-top:1px solid var(--border);background:var(--surface);padding:10px 24px;font-size:12px;color:var(--text-3);display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.footer a{color:var(--text-2);font-weight:500}.impersonation{background:var(--purple-soft);color:var(--purple-text);padding:6px 16px;font-size:12px;display:flex;gap:12px;align-items:center;border-bottom:1px solid var(--border)}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);min-width:0}.card-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 16px;border-bottom:1px solid var(--border);min-height:46px}.card-head h2,.card-head h3{font-size:13px}.card-head .sub{color:var(--text-3);font-size:12px;font-weight:400}.card-body{padding:16px}.card-body.flush{padding:0}.grid{display:grid;gap:12px}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-6{grid-template-columns:repeat(6,minmax(0,1fr))}.span-2{grid-column:span 2}.stack{display:flex;flex-direction:column;gap:12px}.row{display:flex;align-items:center;gap:8px}.row.wrap{flex-wrap:wrap}.between{justify-content:space-between}.muted{color:var(--text-2)}.faint{color:var(--text-3)}.small{font-size:12px}.right{text-align:right}.nowrap{white-space:nowrap}.num{font-variant-numeric:tabular-nums}.divider{height:1px;background:var(--border);margin:12px 0}.stat{padding:14px 16px;display:flex;flex-direction:column;gap:6px}.stat-label{color:var(--text-2);font-size:12px;font-weight:500;display:flex;align-items:center;gap:6px}.stat-value{font-size:22px;font-weight:600;letter-spacing:-.02em;font-variant-numeric:tabular-nums;line-height:1.1}.stat-foot{font-size:12px;color:var(--text-3)}.stat.clickable{cursor:pointer}.stat.clickable:hover{background:var(--surface-2)}.kv{display:grid;grid-template-columns:140px 1fr;gap:8px 12px;font-size:13px}.kv dt{color:var(--text-3)}.kv dd{margin:0;min-width:0;overflow-wrap:anywhere}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:32px;padding:0 12px;border-radius:var(--radius);border:1px solid var(--border);background:var(--surface);color:var(--text);font-weight:500;font-size:13px;cursor:pointer;white-space:nowrap;transition:background .08s}.btn:hover{background:var(--surface-hover)}.btn:focus-visible{outline:none;box-shadow:var(--focus)}.btn:disabled{opacity:.5;cursor:not-allowed}.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}.btn.primary:hover{background:var(--accent-hover)}.btn.danger{color:var(--red-text)}.btn.danger.solid{background:var(--red);border-color:var(--red);color:#fff}.btn.ghost{border-color:transparent;background:transparent}.btn.ghost:hover{background:var(--surface-hover)}.btn.sm{height:26px;padding:0 8px;font-size:12px}.btn.icon{width:32px;padding:0}.btn.icon.sm{width:26px}.input,.select,.textarea{width:100%;height:32px;padding:0 10px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);color:var(--text);font:inherit;font-size:13px;outline:none}.textarea{height:auto;min-height:80px;padding:8px 10px;resize:vertical}.select{padding-right:28px;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238f8f8f' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center}.input:hover,.select:hover,.textarea:hover{border-color:var(--border-strong)}.input:focus,.select:focus,.textarea:focus{box-shadow:var(--focus);border-color:var(--accent)}.input::placeholder,.textarea::placeholder{color:var(--text-3)}.input-wrap{position:relative;display:flex;align-items:center}.input-wrap>svg{position:absolute;left:9px;color:var(--text-3);pointer-events:none}.input-wrap>.input{padding-left:30px}.field{display:flex;flex-direction:column;gap:5px;min-width:0}.field>label{font-size:12px;font-weight:500;color:var(--text-2)}.field .hint{font-size:11px;color:var(--text-3)}.field .error{font-size:11px;color:var(--red-text)}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px}.form-grid .full{grid-column:1 / -1}.form-section{font-size:11px;font-weight:600;color:var(--text-3);grid-column:1 / -1;padding-top:6px;border-top:1px solid var(--border);margin-top:4px}.form-section:first-child{border-top:0;padding-top:0;margin-top:0}.switch{display:inline-flex;align-items:center;gap:8px;cursor:pointer;-webkit-user-select:none;user-select:none;font-size:13px}.switch input{display:none}.switch .track{width:28px;height:16px;border-radius:8px;background:var(--border-strong);position:relative;transition:background .12s;flex-shrink:0}.switch .track:after{content:"";position:absolute;top:2px;left:2px;width:12px;height:12px;border-radius:50%;background:#fff;transition:transform .12s}.switch input:checked+.track{background:var(--accent)}.switch input:checked+.track:after{transform:translate(12px)}.segmented{display:inline-flex;background:var(--surface-active);border-radius:var(--radius);padding:2px;gap:2px}.segmented button{border:0;background:transparent;height:26px;padding:0 10px;border-radius:4px;color:var(--text-2);font-weight:500;cursor:pointer;font-size:12px}.segmented button.on{background:var(--surface);color:var(--text);box-shadow:0 1px 2px #00000014}.tabs{display:flex;gap:2px;border-bottom:1px solid var(--border);margin-bottom:16px;overflow-x:auto}.tabs button{border:0;background:none;height:36px;padding:0 12px;color:var(--text-2);font-weight:500;cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-1px;white-space:nowrap}.tabs button:hover{color:var(--text)}.tabs button.on{color:var(--text);border-bottom-color:var(--text)}.badge{display:inline-flex;align-items:center;gap:5px;height:20px;padding:0 7px;border-radius:10px;font-size:11px;font-weight:600;white-space:nowrap;background:var(--gray-soft);color:var(--gray-text)}.badge .dot{width:6px;height:6px;border-radius:50%;background:currentColor}.badge.green{background:var(--green-soft);color:var(--green-text)}.badge.amber{background:var(--amber-soft);color:var(--amber-text)}.badge.red{background:var(--red-soft);color:var(--red-text)}.badge.blue{background:var(--accent-soft);color:var(--accent-text)}.badge.purple{background:var(--purple-soft);color:var(--purple-text)}.live-dot{width:7px;height:7px;border-radius:50%;background:var(--green);display:inline-block;box-shadow:0 0 0 3px var(--green-soft)}.table-wrap{overflow-x:auto}.table{width:100%;border-collapse:collapse;font-size:13px}.table th{position:sticky;top:0;background:var(--surface-2);text-align:left;font-weight:500;color:var(--text-3);font-size:12px;height:34px;padding:0 12px;border-bottom:1px solid var(--border);white-space:nowrap;-webkit-user-select:none;user-select:none;z-index:1}.table th.sortable{cursor:pointer}.table th.sortable:hover{color:var(--text)}.table td{height:40px;padding:6px 12px;border-bottom:1px solid var(--border);vertical-align:middle}.table tr:last-child td{border-bottom:0}.table tbody tr:hover td{background:var(--surface-2)}.table tr.clickable{cursor:pointer}.table tr.selected td{background:var(--accent-soft)!important}.table .check{width:36px;padding-right:0}.table .actions{width:1%;white-space:nowrap;text-align:right}.cell-title{font-weight:500;color:var(--text)}.cell-sub{font-size:12px;color:var(--text-3)}.toolbar{display:flex;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid var(--border);flex-wrap:wrap}.toolbar .grow{flex:1;min-width:180px;max-width:320px}.pager{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 12px;border-top:1px solid var(--border);color:var(--text-2);font-size:12px}.bulkbar{display:flex;align-items:center;gap:8px;padding:8px 12px;background:var(--accent-soft);color:var(--accent-text);font-weight:500;border-bottom:1px solid var(--border);flex-wrap:wrap}.empty{padding:48px 16px;text-align:center;color:var(--text-3);display:flex;flex-direction:column;align-items:center;gap:8px}.empty svg{color:var(--border-strong)}.skeleton{background:linear-gradient(90deg,var(--surface-hover),var(--surface-active),var(--surface-hover));background-size:200% 100%;animation:sk 1.2s infinite;border-radius:4px;height:12px}@keyframes sk{0%{background-position:200% 0}to{background-position:-200% 0}}.spinner{width:14px;height:14px;border:2px solid var(--border-strong);border-top-color:var(--accent);border-radius:50%;animation:spin .7s linear infinite;display:inline-block}@keyframes spin{to{transform:rotate(360deg)}}.overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000052;display:flex;align-items:flex-start;justify-content:center;padding:8vh 16px 16px;z-index:50;overflow-y:auto}.modal{background:var(--surface);border-radius:var(--radius-lg);box-shadow:var(--shadow-pop);width:100%;max-width:560px;border:1px solid var(--border)}.modal.wide{max-width:820px}.modal.narrow{max-width:420px}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid var(--border)}.modal-head h2{font-size:14px}.modal-body{padding:16px;max-height:70vh;overflow-y:auto}.modal-foot{display:flex;justify-content:flex-end;gap:8px;padding:12px 16px;border-top:1px solid var(--border);background:var(--surface-2);border-radius:0 0 var(--radius-lg) var(--radius-lg)}.menu{position:absolute;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-pop);padding:4px;min-width:180px;z-index:40}.menu button,.menu a{display:flex;width:100%;align-items:center;gap:8px;height:30px;padding:0 8px;border:0;background:none;border-radius:4px;color:var(--text);cursor:pointer;text-align:left;font-size:13px;text-decoration:none}.menu button:hover,.menu a:hover{background:var(--accent);color:#fff}.menu .sep{height:1px;background:var(--border);margin:4px 0}.menu .danger{color:var(--red-text)}.toasts{position:fixed;bottom:16px;right:16px;display:flex;flex-direction:column;gap:8px;z-index:100}.toast{background:var(--text);color:var(--surface);padding:10px 14px;border-radius:var(--radius);box-shadow:var(--shadow-pop);font-size:13px;max-width:380px;display:flex;gap:8px;align-items:flex-start}.toast.error{background:var(--red);color:#fff}.alert{padding:10px 12px;border-radius:var(--radius);font-size:13px;display:flex;gap:8px;align-items:flex-start;border:1px solid transparent}.alert.info{background:var(--accent-soft);color:var(--accent-text)}.alert.warn{background:var(--amber-soft);color:var(--amber-text)}.alert.error{background:var(--red-soft);color:var(--red-text)}.alert.ok{background:var(--green-soft);color:var(--green-text)}.progress{height:6px;background:var(--surface-active);border-radius:3px;overflow:hidden}.progress>div{height:100%;background:var(--accent);border-radius:3px}.progress.warn>div{background:var(--amber)}.progress.danger>div{background:var(--red)}.code-block{background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius);padding:12px;font-family:var(--mono);font-size:12px;white-space:pre-wrap;overflow-x:auto;line-height:1.6}.chart-tip{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-pop);padding:8px 10px;font-size:12px}.chart-tip .t{color:var(--text-3);margin-bottom:4px}.legend{display:flex;gap:14px;font-size:12px;color:var(--text-2);flex-wrap:wrap}.legend i{display:inline-block;width:8px;height:8px;border-radius:2px;margin-right:6px}.auth{min-height:100vh;display:flex;flex-direction:column;background:var(--canvas)}.auth-main{flex:1;display:grid;place-items:center;padding:24px 16px}.auth-card{width:100%;max-width:380px}.auth-card .card-body{padding:24px}.auth h1{font-size:20px;margin-bottom:4px}.print-only{display:none}@media print{.sidebar,.topbar,.no-print,.footer.app-footer,.impersonation{display:none!important}.shell{display:block;height:auto}.content{overflow:visible}.print-only{display:block}body{background:#fff}.card{border:0;box-shadow:none}}.mobile-nav-toggle{display:none}@media (max-width: 1100px){.grid-4,.grid-6,.grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width: 820px){.shell{grid-template-columns:1fr}.sidebar{position:fixed;inset:0 auto 0 0;width:260px;z-index:60;transform:translate(-100%);transition:transform .15s}.sidebar.open{transform:none;box-shadow:var(--shadow-pop)}.mobile-nav-toggle{display:inline-flex}.page{padding:16px}.grid-2,.grid-3,.grid-4,.grid-6,.form-grid{grid-template-columns:1fr}.span-2{grid-column:auto}.kv{grid-template-columns:110px 1fr}.hide-sm{display:none}}.portal{min-height:100vh;display:flex;flex-direction:column;background:var(--canvas)}.portal-top{background:var(--surface);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:10}.portal-top .portal-inner{height:56px;display:flex;align-items:center;gap:20px}.portal-inner{max-width:1040px;width:100%;margin:0 auto;padding:0 16px}.portal-brand{display:flex;align-items:center;gap:10px;color:var(--text);text-decoration:none!important;min-width:0}.portal-brand .logo{flex-shrink:0}.portal-nav{display:flex;gap:2px;height:100%}.portal-nav a{display:flex;align-items:center;padding:0 12px;color:var(--text-2);font-weight:500;text-decoration:none!important;border-bottom:2px solid transparent;margin-bottom:-1px}.portal-nav a:hover{color:var(--text)}.portal-nav a.active{color:var(--text);border-bottom-color:var(--text)}.portal-signout{margin-left:auto}.portal-main{flex:1;padding:24px 0 32px}.portal-actions{display:flex;gap:8px;flex-wrap:wrap}@media (max-width: 640px){.portal-top .portal-inner{height:auto;flex-wrap:wrap;padding-top:8px;gap:8px}.portal-nav{order:3;width:100%;height:40px}.portal-signout{margin-left:auto}.portal-main{padding-top:16px}}.page-crumb{display:inline-flex;align-items:center;gap:4px;color:var(--text-3);font-size:12px;font-weight:500;margin-bottom:8px;text-decoration:none!important}.page-crumb:hover{color:var(--text)}.title-row{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}.wrap-anywhere{overflow-wrap:anywhere}.combo{position:relative}.combo-list,.picker-list{position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:30;margin:0;padding:4px;list-style:none;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-pop);max-height:260px;overflow-y:auto}.combo-list li,.picker-list li{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 8px;border-radius:4px;cursor:pointer}.combo-list li.active,.picker-list li.active,.picker-list li:hover{background:var(--accent-soft)}.combo-list li[aria-disabled=true]{cursor:default;background:none}.picker-selected{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 10px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface-2)}.thread{display:flex;flex-direction:column;gap:12px}.msg{border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);max-width:88%}.msg.mine{align-self:flex-end;background:var(--accent-soft);border-color:transparent}.msg.internal{background:var(--amber-soft);border:1px dashed var(--amber)}.msg-head{display:flex;align-items:center;gap:8px;padding:8px 12px 0;font-size:12px;color:var(--text-3);flex-wrap:wrap}.msg-head b{color:var(--text);font-weight:600}.msg-head .avatar{width:22px;height:22px;border-radius:50%;background:var(--surface-active);color:var(--text-2);display:grid;place-items:center;font-size:10px;font-weight:600}.msg-head .avatar.staff{background:var(--accent);color:#fff}.msg-body{padding:6px 12px 10px;white-space:pre-wrap;overflow-wrap:anywhere}.msg-system{display:flex;align-items:center;gap:10px;color:var(--text-3);font-size:12px}.msg-rule{flex:1;height:1px;background:var(--border)}.composer{border-top:1px solid var(--border);padding:12px 16px;display:flex;flex-direction:column;gap:8px;background:var(--surface-2);border-radius:0 0 var(--radius-lg) var(--radius-lg)}.readout-label{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--text-3);font-weight:500}.readout-value{font-size:22px;font-weight:600;letter-spacing:-.02em;font-variant-numeric:tabular-nums}.swatch{display:inline-block;width:8px;height:8px;border-radius:2px}.option-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}.option{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--border);border-radius:var(--radius);cursor:pointer;background:var(--surface);font-weight:500}.option:hover{border-color:var(--border-strong)}.option.on{border-color:var(--accent);box-shadow:var(--focus)}.option input{position:absolute;opacity:0;pointer-events:none}.gw-mark{width:28px;height:28px;border-radius:6px;background:var(--surface-active);color:var(--text);display:grid;place-items:center;font-size:11px;font-weight:700;flex-shrink:0}.invoice-doc{display:flex;flex-direction:column;gap:16px}.inv-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;padding-bottom:12px;border-bottom:1px solid var(--border)}.inv-title{font-size:20px;font-weight:700;letter-spacing:.08em;color:var(--text-3)}.inv-meta{grid-template-columns:110px 1fr}.inv-totals{display:grid;grid-template-columns:1fr auto;gap:6px 24px;margin-left:auto;min-width:260px;font-size:13px}.inv-totals .grand{font-weight:600;font-size:14px;padding-top:6px;border-top:1px solid var(--border)}.grid-5{grid-template-columns:repeat(5,minmax(0,1fr))}@media (max-width: 1100px){.grid-5{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (max-width: 820px){.grid-5{grid-template-columns:repeat(2,minmax(0,1fr))}}.ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.date-range{gap:6px}.date-range .input{width:140px}.kpi-inline{flex:1;max-width:520px;min-width:min(100%,320px)}.link-btn{border:0;background:none;padding:0;color:var(--accent-text);cursor:pointer;font:inherit;text-align:left}.link-btn:hover{text-decoration:underline}.plain-row{border:0;background:none;padding:4px 0;width:100%;cursor:pointer;color:inherit;font:inherit}.plain-row:hover b{color:var(--accent-text)}.sub-pick-list{border:1px solid var(--border);border-radius:var(--radius);max-height:220px;overflow-y:auto;padding:4px;background:var(--surface)}.sub-pick-list button{display:flex;width:100%;align-items:center;justify-content:space-between;gap:8px;padding:6px 8px;border:0;background:none;border-radius:4px;cursor:pointer;text-align:left;color:var(--text);font:inherit}.sub-pick-list button:hover,.sub-pick-list button:focus-visible{background:var(--accent-soft);outline:none}.line-items td{padding:4px 6px;height:auto}.line-items th{padding:0 6px}.mini-totals{display:grid;grid-template-columns:auto auto;gap:6px 16px;align-items:center;margin:0;font-size:13px}.mini-totals dt{color:var(--text-2);text-align:right}.mini-totals dd{margin:0;text-align:right;font-variant-numeric:tabular-nums}.doc-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}.print-credit{font-size:10px;color:var(--text-3);text-align:center;margin-top:16px;letter-spacing:.01em}.doc{position:relative;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);max-width:210mm;margin:0 auto;padding:32px 36px;display:flex;flex-direction:column;gap:20px;overflow:hidden}.doc-head{display:flex;justify-content:space-between;gap:24px;flex-wrap:wrap;padding-bottom:16px;border-bottom:1px solid var(--border)}.doc-company{color:var(--text-2);font-size:12px;line-height:1.6}.doc-company-name{font-size:16px;font-weight:600;color:var(--text);margin-bottom:2px}.doc-logo{max-height:44px;max-width:180px;object-fit:contain;display:block;margin-bottom:8px}.doc-title{font-size:22px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--text);text-align:right;margin-bottom:8px}.doc-meta dl{display:grid;grid-template-columns:auto auto;gap:4px 16px;margin:0;font-size:12px}.doc-meta dt{color:var(--text-3);text-align:right}.doc-meta dd{margin:0;text-align:right}.doc-parties{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;font-size:13px;line-height:1.6}.doc-label{font-size:11px;font-weight:600;color:var(--text-3);text-transform:uppercase;letter-spacing:.06em;margin-bottom:4px}.doc-strong{font-weight:600;font-size:14px}.doc-table th{position:static}.doc-table td{height:34px}.doc-table tbody tr:hover td{background:none}.doc-totals{display:flex;justify-content:flex-end}.doc-totals dl{display:grid;grid-template-columns:auto minmax(130px,auto);gap:6px 24px;margin:0;font-size:13px;min-width:280px}.doc-totals dt{color:var(--text-2)}.doc-totals dd{margin:0;text-align:right;font-variant-numeric:tabular-nums}.doc-totals .doc-total{font-weight:600;color:var(--text);padding-top:6px;border-top:1px solid var(--border)}.doc-totals .doc-due{font-weight:600;font-size:15px;color:var(--text)}.doc-section{display:flex;flex-direction:column;gap:6px}.doc-foot{border-top:1px solid var(--border);padding-top:12px;font-size:12px;color:var(--text-2);display:flex;flex-direction:column;gap:4px;text-align:center}.stamp{position:absolute;top:120px;right:36px;transform:rotate(-12deg);border:2px solid currentColor;border-radius:6px;padding:2px 12px;font-size:18px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;opacity:.55;pointer-events:none;color:var(--red-text)}.stamp-paid{color:var(--green-text)}.stamp-partial{color:var(--amber-text)}.stamp-void{color:var(--text-3)}@media (max-width: 640px){.doc{padding:20px 16px}.doc-parties{grid-template-columns:1fr}.doc-title,.doc-meta dt,.doc-meta dd{text-align:left}.doc-totals dl{min-width:0;width:100%}.stamp{top:16px;right:16px;font-size:14px}}.receipt{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);margin:0 auto;padding:24px;display:flex;flex-direction:column;gap:12px;font-size:13px;max-width:100%}.receipt.r-a5{width:148mm}.receipt.r-t80{width:80mm;padding:12px;font-size:12px}.receipt.r-t58{width:58mm;padding:8px;font-size:11px}.receipt-head{text-align:center;color:var(--text-2);line-height:1.5;font-size:.92em}.receipt-head .doc-logo{margin:0 auto 6px}.receipt-company{font-size:1.25em;font-weight:600;color:var(--text)}.receipt-title{text-align:center;font-weight:600;text-transform:uppercase;letter-spacing:.08em;padding:6px 0;border-top:1px dashed var(--border-strong);border-bottom:1px dashed var(--border-strong)}.receipt-kv{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;margin:0}.receipt-kv dt{color:var(--text-3)}.receipt-kv dd{margin:0;text-align:right;overflow-wrap:anywhere}.r-t58 .receipt-kv{grid-template-columns:1fr;gap:0}.r-t58 .receipt-kv dd{text-align:left;margin-bottom:4px}.receipt-amount{display:flex;justify-content:space-between;align-items:baseline;gap:8px;padding:10px 0;border-top:1px dashed var(--border-strong);border-bottom:1px dashed var(--border-strong)}.receipt-amount b{font-size:1.5em}.r-t58 .receipt-amount{flex-direction:column;align-items:center}.receipt-notes{color:var(--text-2);font-size:.92em;white-space:pre-wrap}.receipt-foot{text-align:center;display:flex;flex-direction:column;gap:2px;font-size:.92em}.receipt-foot .print-credit{margin-top:8px}.voucher-sheet{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.voucher-card{border:1px dashed var(--border-strong);border-radius:var(--radius);padding:10px 12px;display:flex;flex-direction:column;gap:4px;background:var(--surface);break-inside:avoid;page-break-inside:avoid}.vc-company{font-weight:600;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vc-price{font-weight:600;font-size:12px;font-variant-numeric:tabular-nums}.vc-value{font-size:11px;color:var(--text-2)}.vc-code{font-family:var(--mono);font-size:17px;font-weight:700;letter-spacing:.08em;text-align:center;padding:6px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border);overflow-wrap:anywhere}.vc-pin{font-family:var(--mono);font-size:12px;text-align:center}.vc-foot{display:flex;justify-content:space-between;font-size:10px;color:var(--text-3)}@media screen and (max-width: 820px){.voucher-sheet{grid-template-columns:repeat(2,minmax(0,1fr))}}@media screen and (max-width: 480px){.voucher-sheet{grid-template-columns:1fr}}.account-card{padding:14px 16px;display:flex;flex-direction:column;gap:8px}.account-card.selected{border-color:var(--accent);box-shadow:var(--focus)}.account-card.closed{opacity:.65}.account-icon{width:30px;height:30px;border-radius:var(--radius);background:var(--surface-active);color:var(--text-2);display:grid;place-items:center;flex-shrink:0}.account-balance{border:0;background:none;padding:0;text-align:left;cursor:pointer;color:var(--text);font:inherit;font-size:22px;font-weight:600;letter-spacing:-.02em}.account-balance:hover{color:var(--accent-text)}.timeline{list-style:none;margin:0;padding:0 0 0 14px;border-left:1px solid var(--border);display:flex;flex-direction:column;gap:14px}.timeline li{position:relative}.timeline li:before{content:"";position:absolute;left:-18px;top:6px;width:7px;height:7px;border-radius:50%;background:var(--surface);border:1px solid var(--border-strong)}.syslog-form{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;padding:16px;align-items:end}.syslog-form .span-2{grid-column:span 2}.syslog-msg{white-space:pre-wrap;overflow-wrap:anywhere;min-width:320px;font-size:11.5px;line-height:1.5}.syslog-table td{vertical-align:top;padding-top:8px;padding-bottom:8px}@media (max-width: 1100px){.syslog-form{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (max-width: 820px){.syslog-form{grid-template-columns:repeat(2,minmax(0,1fr))}.syslog-msg{min-width:240px}}.report-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:12px}.statement td{height:34px}.statement tbody tr:hover td{background:none}.st-section td{font-size:11px;font-weight:600;color:var(--text-3);text-transform:uppercase;letter-spacing:.06em;background:var(--surface-2);height:30px}.st-total td{font-weight:600;border-top:1px solid var(--border-strong)}.st-grand td{font-weight:700;font-size:14px;border-top:2px solid var(--text)}.report-print-head{margin-bottom:12px;padding-bottom:8px;border-bottom:1px solid var(--border)}.signature-row{margin-top:32px;justify-content:space-between;gap:24px;font-size:12px}@media print{.signature-row.print-only{display:flex}}@media print{:root,:root[data-theme],:root:not([data-theme=light]){--canvas: #fff;--surface: #fff;--surface-2: #f7f7f7;--surface-hover: #fff;--surface-active: #eee;--border: #d9d9d9;--border-strong: #b5b5b5;--text: #111;--text-2: #444;--text-3: #777;--accent-text: #111;--green-text: #0b8a46;--red-text: #c62d12;--amber-text: #9a5b00;--grid: #e5e5e5;--accent-soft: #eef6ff;--green-soft: #e9f7ef;--red-soft: #fdeee9;--amber-soft: #fff6e6;--gray-soft: #f0f0f0;--gray-text: #444;color-scheme:light}.page{padding:0!important;max-width:none}.doc,.receipt{border:0;border-radius:0;padding:0;max-width:none}.receipt.r-a5,.receipt.r-t80,.receipt.r-t58{width:100%}.doc a,.receipt a{color:inherit;text-decoration:none}.voucher-sheet{gap:4mm}.table th{position:static}.table-wrap{overflow:visible}.report-page .card{break-inside:avoid;margin-bottom:8px}.report-page .stat{border:1px solid var(--border)}}.receipt-alloc{margin:8px 0;font-size:12px}.receipt-alloc th,.receipt-alloc td{height:28px;padding:4px 6px}.receipt-sign{margin-top:18px;font-size:12px;color:var(--text-2)}.brand-logo{height:26px;max-width:120px;object-fit:contain;flex-shrink:0}.logo-drop{width:220px;height:96px;border:1px dashed var(--border-strong);border-radius:var(--radius-lg);display:grid;place-items:center;cursor:pointer;background:repeating-conic-gradient(var(--surface-2) 0 25%,var(--surface) 0 50%) 0 0 / 16px 16px}.logo-drop:hover,.logo-drop.drag{border-color:var(--accent)}.logo-drop img{max-width:200px;max-height:80px;object-fit:contain}.wizard-steps{list-style:none;margin:0 0 14px;padding:0;display:flex;gap:6px;flex-wrap:wrap}.wizard-steps li{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:500;color:var(--text-3);padding:4px 10px 4px 4px;border-radius:14px;background:var(--surface);border:1px solid var(--border)}.wizard-steps li.on{color:var(--text);border-color:var(--accent)}.wizard-steps li.done{color:var(--green-text)}.wizard-dot{width:20px;height:20px;border-radius:50%;display:grid;place-items:center;background:var(--surface-active);font-size:11px;font-weight:600}.wizard-steps li.on .wizard-dot{background:var(--accent);color:#fff}.wizard-steps li.done .wizard-dot{background:var(--green);color:#fff}
