:root{color:#172033;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:#f5f7fb;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html,body,#root{height:100%}body{min-width:320px;margin:0;overflow:hidden}button,input{font:inherit}.app-shell{color:#172033;background:#f5f7fb;grid-template-columns:248px minmax(0,1fr);height:100vh;min-height:0;display:grid;overflow:hidden}.sidebar{color:#d7deea;background:#101828;flex-direction:column;gap:22px;height:100vh;min-height:0;padding:18px;display:flex;overflow:hidden}.brand,.login-brand{align-items:center;gap:12px;display:flex}.brand strong,.login-brand strong{color:#fff;font-size:15px;display:block}.brand span,.login-brand span{color:#93a1b6;font-size:12px}.brand-mark{color:#fff;background:#1f7a5b;border-radius:8px;flex:none;justify-content:center;align-items:center;width:36px;height:36px;display:inline-flex}.nav-list{overscroll-behavior:contain;gap:6px;min-height:0;display:grid;overflow-y:auto}.nav-item,.sidebar-footer button,.icon-button,.row-actions button,.drawer-header button,.edit-dialog .section-heading button,.config-edit-row button{cursor:pointer;border:0}.nav-item{color:#b9c4d6;text-align:left;background:0 0;border-radius:8px;align-items:center;gap:10px;height:40px;padding:0 12px;font-size:14px;display:flex}.nav-item.active,.nav-item:hover{color:#fff;background:#1e293b}.sidebar-footer{border-top:1px solid #253149;justify-content:space-between;align-items:center;gap:12px;min-height:58px;margin-top:auto;padding-top:16px;display:flex}.sidebar-footer span{color:#93a1b6;font-size:12px;display:block}.sidebar-footer strong{color:#fff;font-size:13px;font-weight:600;display:block}.sidebar-footer button,.icon-button,.row-actions button,.drawer-header button,.edit-dialog .section-heading button,.config-edit-row button{color:#334155;background:#eef2f7;border-radius:8px;justify-content:center;align-items:center;width:36px;height:36px;display:inline-flex}.sidebar-footer button{color:#d7deea;background:#1e293b}.workspace{flex-direction:column;min-width:0;height:100vh;min-height:0;display:flex;overflow:hidden}.topbar{z-index:5;background:#fff;border-bottom:1px solid #e1e7ef;flex:0 0 74px;justify-content:space-between;align-items:center;gap:20px;padding:0 24px;display:flex}h1,h2{color:#172033;letter-spacing:0;margin:0;font-weight:650}h1{font-size:22px}h2{font-size:16px}.timestamp,.muted{color:#6b778c;font-size:12px}.config-list input,.login-form input{color:#172033;width:100%;min-width:0;font:inherit;background:0 0;border:0;outline:none}.content-area{overscroll-behavior:contain;flex:auto;min-height:0;padding:20px 24px;overflow:hidden auto}.dashboard-view{gap:16px;display:grid}.filter-panel{background:#fff;border:1px solid #e1e7ef;border-radius:8px;grid-template-columns:minmax(240px,1fr) 140px 130px 190px 190px 110px auto auto;align-items:end;gap:12px;margin-bottom:16px;padding:14px 16px;display:grid}.filter-panel label{gap:6px;min-width:0;display:grid}.filter-panel span{color:#64748b;font-size:12px;font-weight:600}.filter-panel input,.filter-panel select{box-sizing:border-box;color:#172033;background:#fff;border:1px solid #d8e0eb;border-radius:8px;width:100%;min-width:0;height:38px;padding:0 10px}.filter-panel .text-button{white-space:nowrap}.filter-panel .text-button.secondary{color:#334155;background:#eef2f7}.system-log-filter{grid-template-columns:minmax(260px,1fr) 210px 210px 110px auto auto}.metric-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.metric{background:#fff;border:1px solid #e1e7ef;border-radius:8px;justify-content:space-between;align-items:center;gap:12px;min-height:92px;padding:16px;display:flex}.metric span{color:#6b778c;font-size:13px;display:block}.metric strong{color:#172033;margin-top:8px;font-size:26px;display:block}.metric-blue svg{color:#2563eb}.metric-green svg{color:#14805e}.metric-amber svg{color:#b7791f}.metric-red svg{color:#c2413b}.alert-strip{flex-wrap:wrap;gap:10px;display:flex}.alert-item{color:#273449;background:#fff;border:1px solid #e1e7ef;border-radius:8px;align-items:center;gap:8px;min-height:42px;padding:0 12px;font-size:13px;display:inline-flex}.alert-item strong{font-size:18px}.alert-red{color:#9f1d22;background:#fff5f4;border-color:#f4b7b2}.alert-amber{color:#8a5a12;background:#fffaf0;border-color:#f4d69a}.panel{background:#fff;border:1px solid #e1e7ef;border-radius:8px;overflow:hidden}.section-heading{border-bottom:1px solid #e8edf4;justify-content:space-between;align-items:center;gap:12px;min-height:52px;padding:0 16px;display:flex}.two-column,.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}.account-layout{grid-template-columns:minmax(0,1fr) 360px;align-items:start;gap:16px;display:grid}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;min-width:780px}.two-column table{min-width:560px}.account-table-wrap table{min-width:0}.system-log-table{min-width:1280px}th,td{text-align:left;white-space:nowrap;border-bottom:1px solid #edf1f6;height:48px;padding:0 16px;font-size:13px}th{color:#64748b;background:#fafbfd;font-weight:600}td{color:#273449}.empty-cell{color:#7a8799;text-align:center;height:120px;font-size:14px}tbody tr:hover,.selected-row{background:#f7fafc}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.row-actions{text-align:right;justify-content:flex-end;gap:8px;min-width:52px;display:flex}.row-actions button.danger-icon{color:#b42318;background:#fff1f0}.row-actions button.danger-icon:hover{background:#ffe1df}.row-actions button:disabled,.text-button:disabled{cursor:not-allowed;opacity:.55}.copyable-value{align-items:center;gap:8px;max-width:260px;display:inline-flex}.copyable-value .mono{text-overflow:ellipsis;overflow:hidden}.copyable-value button{color:#334155;cursor:pointer;background:#eef2f7;border:0;border-radius:6px;flex:none;justify-content:center;align-items:center;width:28px;height:28px;display:inline-flex}.copyable-value button:hover{background:#e1e7ef}.log-category{text-overflow:ellipsis;max-width:260px;overflow:hidden}.log-message{white-space:normal;max-width:460px;line-height:1.45}.log-message span,.log-message small{-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.log-message span{-webkit-line-clamp:2}.log-message small{color:#9f1d22;-webkit-line-clamp:3;margin-top:4px}.log-response{white-space:normal;color:#475569;overflow-wrap:anywhere;max-width:360px;line-height:1.45}.pagination-bar{color:#64748b;border-top:1px solid #edf1f6;justify-content:space-between;align-items:center;gap:12px;min-height:56px;padding:12px 16px;font-size:13px;display:flex}.pagination-bar div{gap:8px;display:flex}.status{border-radius:999px;justify-content:center;align-items:center;min-width:72px;height:24px;padding:0 8px;font-size:12px;font-weight:600;display:inline-flex}.status-green{color:#116346;background:#e8f6ef}.status-amber{color:#8a5a12;background:#fff7e6}.status-red{color:#a6312d;background:#fdeceb}.status-blue{color:#1f57b6;background:#e9f1ff}.payment-state{align-items:center;gap:8px;min-width:150px;display:inline-flex}.toggle{cursor:pointer;background:#cbd5e1;border:0;border-radius:999px;width:42px;height:24px;padding:2px}.toggle span{background:#fff;border-radius:50%;width:20px;height:20px;display:block}.toggle.checked{background:#14805e}.toggle.checked span{transform:translate(18px)}.text-button,.login-form button{color:#fff;cursor:pointer;background:#172033;border:0;border-radius:8px;justify-content:center;align-items:center;gap:8px;height:36px;padding:0 12px;font-weight:600;display:inline-flex}.login-form button:disabled{cursor:wait;opacity:.72}.form-error{color:#a6312d;background:#fdeceb;border-radius:8px;align-items:center;min-height:34px;padding:0 10px;font-size:13px;display:flex}.config-list{gap:12px;padding:16px;display:grid}.config-item,.login-form label{gap:6px;display:grid}.config-item span,.login-form span{color:#64748b;font-size:12px;font-weight:600}.config-item span{color:#172033;font-size:13px}.config-item small{color:#6b778c;font-size:12px;line-height:1.5}.config-item code{color:#53647c;background:#f1f5f9;border-radius:6px;width:fit-content;padding:2px 6px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px}.config-list input,.login-form input,.account-form input,.account-form select,.edit-form input,.edit-form select,.config-edit-row input,.query-form input,.query-form select{box-sizing:border-box;background:#fff;border:1px solid #d8e0eb;border-radius:8px;height:38px;padding:0 10px}.query-form{border-bottom:1px solid #edf1f6;grid-template-columns:180px minmax(260px,1fr) 220px auto;align-items:end;gap:12px;padding:16px;display:grid}.query-form label{gap:6px;display:grid}.query-form span{color:#64748b;font-size:12px;font-weight:600}.query-form input,.query-form select{width:100%;min-width:0}.query-form .text-button{white-space:nowrap;width:128px}.query-message{color:#53647c;padding:0 16px 14px;font-size:13px}.query-message.error{color:#9f1d22}.config-edit-row{grid-template-columns:minmax(0,1fr) 36px;align-items:center;gap:8px;display:grid}.config-edit-row input{width:100%;min-width:0}.account-form{gap:14px;padding:16px;display:grid}.account-form label{gap:6px;display:grid}.account-form span{color:#64748b;font-size:12px;font-weight:600}.account-form button:disabled{cursor:wait;opacity:.72}.form-hint{color:#116346;background:#e8f6ef;border-radius:8px;align-items:center;min-height:34px;padding:0 10px;font-size:13px;display:flex}.form-hint.error{color:#9f1d22;background:#fdecec}.form-hint.compact{width:fit-content;min-height:28px;padding:0 8px}.panel-hint{margin:0 16px 12px}.modal-backdrop{z-index:20;background:#0f172a6b;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.edit-dialog{background:#fff;border:1px solid #d8e0eb;border-radius:8px;width:min(680px,100%);max-height:calc(100vh - 48px);overflow:auto;box-shadow:0 24px 80px #0f172a3d}.edit-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:16px;display:grid}.edit-form label{gap:6px;display:grid}.edit-form span{color:#64748b;font-size:12px;font-weight:600}.edit-form input,.edit-form select{width:100%;min-width:0}.wide-field{grid-column:1/-1}.empty-block{color:#7a8799;text-align:center;padding:28px 16px;font-size:14px}.drawer-backdrop{z-index:20;background:#0f172a33;position:fixed;inset:0}.detail-drawer{background:#fff;border-left:1px solid #d8e0eb;width:360px;position:fixed;top:0;bottom:0;right:0;box-shadow:-16px 0 32px #0f172a14}.drawer-header{border-bottom:1px solid #e8edf4;justify-content:space-between;align-items:center;gap:12px;min-height:74px;padding:0 18px;display:flex}.drawer-header h2{margin-bottom:8px}.detail-drawer dl{gap:14px;margin:0;padding:16px 18px;display:grid}.detail-drawer div{min-width:0}.detail-drawer dt{color:#64748b;font-size:12px;font-weight:600}.detail-drawer dd{color:#172033;overflow-wrap:anywhere;margin:4px 0 0}.login-page{background:#f5f7fb;place-items:center;min-height:100vh;padding:24px;display:grid}.login-panel{background:#fff;border:1px solid #e1e7ef;border-radius:8px;width:min(420px,100%);padding:28px}.login-brand{margin-bottom:26px}.login-brand strong{color:#172033}.login-form{gap:16px;display:grid}@media (width<=1080px){.app-shell{grid-template-columns:76px minmax(0,1fr)}.brand div,.nav-item span,.sidebar-footer div{display:none}.nav-item{justify-content:center;padding:0}.metric-grid,.two-column,.settings-grid,.account-layout,.filter-panel,.query-form{grid-template-columns:repeat(2,minmax(0,1fr))}.query-address{grid-column:1/-1}}@media (width<=760px){.app-shell{flex-direction:column;display:flex}.sidebar{flex-direction:row;flex:none;align-items:center;height:auto;min-height:0;padding:10px 12px;overflow:auto hidden}.workspace{flex:auto;height:auto}.brand,.sidebar-footer{display:none}.nav-list{grid-auto-columns:44px;grid-auto-flow:column}.filter-panel{grid-template-columns:1fr}.topbar{flex-direction:column;flex:none;align-items:flex-start;height:auto;min-height:96px;padding:16px}.content-area{padding:16px}.metric-grid,.two-column,.settings-grid,.account-layout,.query-form{grid-template-columns:1fr}.query-address{grid-column:auto}.detail-drawer{width:min(360px,100%)}.section-heading>.status{display:none}}
