:root{--bg:#f5f7fa;--surface:#fff;--surface-soft:#f8fafc;--text:#17212b;--muted:#6b7785;--line:#e3e8ef;--accent:#087f5b;--accent-dark:#066649;--accent-soft:#e8f5f0;--danger:#b42318;--credit:#087f5b;--debit:#b54708;--shadow:0 12px 30px rgba(20,40,60,.06)}
[hidden]{display:none!important}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:14px/1.5 Inter,"Segoe UI",system-ui,-apple-system,sans-serif}button,a{font:inherit}.app-shell{display:flex;min-height:100vh}.sidebar{width:236px;flex:0 0 236px;background:#102a26;color:#dcebe7;padding:24px 16px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:10px;padding:0 10px 30px;color:#fff;font-size:17px;font-weight:760}.brand-mark{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#3ac7a8;color:#07261f;font-size:16px;font-weight:850}.nav{display:grid;gap:6px}.nav a{display:flex;align-items:center;gap:10px;padding:11px 12px;border-radius:8px;color:#b8cec8;text-decoration:none;font-weight:600}.nav a:hover,.nav a.active{background:rgba(112,231,201,.13);color:#fff}.nav-icon{width:20px;text-align:center;color:#7edfc8;font-size:16px}.sidebar-note{margin-top:auto;padding:14px 12px;border:1px solid rgba(255,255,255,.1);border-radius:10px;color:#a9c1bb;font-size:12px}.sidebar-note strong{display:block;color:#e8f5f1;margin-bottom:4px}.app-main{min-width:0;flex:1}.topbar{height:76px;background:var(--surface);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 34px}.page-title{margin:0;font-size:20px;letter-spacing:-.02em}.page-subtitle{margin:3px 0 0;color:var(--muted);font-size:12px}.topbar-user{display:flex;align-items:center;gap:12px}.avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--accent-soft);color:var(--accent-dark);font-weight:800}.topbar-user-info{display:grid;gap:1px}.topbar-user-info strong{font-size:13px}.topbar-user-info span{color:var(--muted);font-size:12px}.logout{color:var(--accent);font-weight:650;text-decoration:none}.content{max-width:1240px;margin:0 auto;padding:30px 34px 50px}.welcome{display:flex;justify-content:space-between;gap:20px;align-items:flex-end;margin-bottom:24px}.welcome h1{margin:0;font-size:25px;letter-spacing:-.03em}.welcome p{margin:5px 0 0;color:var(--muted)}.quick-actions{display:flex;gap:9px}.button{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 15px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text);text-decoration:none;font-weight:680}.button:hover{border-color:#b9c9c3;background:var(--surface-soft)}.button.primary{border-color:var(--accent);background:var(--accent);color:#fff}.button.primary:hover{background:var(--accent-dark)}.stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:18px}.stat-card,.panel{background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow)}.stat-card{padding:20px 22px}.stat-label{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:12px}.stat-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;background:var(--accent-soft);color:var(--accent-dark);font-size:15px}.stat-value{margin-top:14px;font-size:28px;font-weight:780;letter-spacing:-.03em}.stat-value small{margin-left:4px;color:var(--muted);font-size:13px;font-weight:600}.workspace{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1.45fr);gap:18px;align-items:start}.panel{overflow:hidden}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:17px 20px;border-bottom:1px solid var(--line)}.panel-head h2{margin:0;font-size:15px}.panel-link{color:var(--accent);font-size:12px;font-weight:700;text-decoration:none}.panel-link:hover{text-decoration:underline}.license-status{padding:18px 20px;color:var(--muted);font-size:13px}.license-status.error{color:var(--danger)}.licenses{padding:0 20px}.license{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:17px 0;border-bottom:1px solid #edf0f4}.license:last-child{border-bottom:0}.license-title{font-weight:720}.license-meta{margin-top:3px;color:var(--muted);font-size:12px}.license-fingerprint{margin-top:6px;color:#8793a0;font:11px ui-monospace,SFMono-Regular,Consolas,monospace;overflow-wrap:anywhere}.license button{height:32px;flex:0 0 auto;padding:0 11px;border:1px solid #b9d5cc;border-radius:7px;background:#fff;color:var(--accent-dark);font-size:12px;font-weight:700;cursor:pointer}.license button:hover{background:var(--accent-soft)}.license button:disabled{cursor:wait;opacity:.6}.records-panel{min-width:0}.tabs{display:flex;gap:4px;padding:12px 20px;border-bottom:1px solid var(--line);background:var(--surface-soft)}.tabs button{height:30px;padding:0 11px;border:0;border-radius:6px;background:transparent;color:var(--muted);font-size:12px;font-weight:650;cursor:pointer}.tabs button.active{background:var(--accent-soft);color:var(--accent-dark)}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:12px}th,td{padding:12px 20px;text-align:left;border-bottom:1px solid #edf0f4;white-space:nowrap}th{background:#fbfcfd;color:var(--muted);font-size:11px;font-weight:650}td{color:#344054}.amount{font-weight:750}.amount.credit{color:var(--credit)}.amount.debit{color:var(--debit)}.empty,.error{padding:44px 16px;text-align:center;color:var(--muted)}.error{color:var(--danger)}
@media(max-width:980px){.sidebar{width:206px;flex-basis:206px}.content,.topbar{padding-left:22px;padding-right:22px}.workspace{grid-template-columns:1fr}}
@media(max-width:680px){.app-shell{display:block}.sidebar{width:auto;padding:13px 12px 10px}.brand{padding:0 8px 11px}.nav{display:flex;overflow:auto}.nav a{flex:0 0 auto;padding:8px 10px;font-size:12px}.sidebar-note{display:none}.topbar{height:auto;min-height:68px;padding:14px 16px}.topbar-user-info{display:none}.content{padding:22px 14px 36px}.welcome{display:block}.welcome h1{font-size:22px}.quick-actions{margin-top:16px}.quick-actions .button{flex:1}.stats{grid-template-columns:1fr;gap:10px}.stat-card{padding:16px 18px}.stat-value{margin-top:8px;font-size:25px}.panel-head{padding:15px 16px}.licenses{padding:0 16px}.license{align-items:flex-start;flex-direction:column}.license button{width:100%}th,td{padding:11px 12px}}
.button:disabled{cursor:default;opacity:.55}
.license-fingerprint-cell{max-width:260px;white-space:normal;overflow-wrap:anywhere;font:11px ui-monospace,SFMono-Regular,Consolas,monospace}
.stat-action{color:var(--accent);font-size:12px;font-weight:700;text-decoration:none}.stat-action:hover{text-decoration:underline}.stat-action:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:3px}
.license-product-cell{min-width:160px;white-space:normal}
.license-records-panel .panel-head{flex-wrap:wrap}
.license-notice{padding:0 20px;color:var(--danger);font-size:13px}
#licenseCodeDialog{width:min(620px,calc(100% - 28px));padding:0;border:1px solid var(--line);border-radius:10px;color:var(--text);box-shadow:0 20px 60px rgba(20,40,60,.22)}#licenseCodeDialog::backdrop{background:rgba(16,42,38,.42)}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 20px;border-bottom:1px solid var(--line)}.dialog-head h2{margin:0;font-size:16px}.icon-close{width:34px;height:34px;border:0;border-radius:6px;background:transparent;color:var(--muted);font-size:22px;cursor:pointer}.icon-close:hover{background:var(--surface-soft);color:var(--text)}.dialog-body{padding:18px 20px}.dialog-body label{display:block;font-size:13px;font-weight:650}.dialog-body textarea{display:block;width:100%;box-sizing:border-box;margin:8px 0 14px;padding:11px;border:1px solid var(--line);border-radius:6px;font:12px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;resize:vertical;overflow-wrap:anywhere}.target-user{white-space:pre-wrap;color:var(--muted);font-size:12px;overflow-wrap:anywhere}.message{min-height:20px;margin:8px 0;color:var(--muted);font-size:12px}.message.error{color:var(--danger)}.dialog-actions{display:flex;justify-content:flex-end;gap:8px}.dialog-actions button{min-height:36px;padding:0 13px;border:1px solid var(--accent);border-radius:6px;background:var(--accent);color:#fff;font:inherit;font-weight:650;cursor:pointer}.dialog-actions button:disabled{cursor:default;opacity:.55}
