﻿:root{--ground:#f9fafb;--surface:#fff;--soft:#f3f4f6;--line:#e5e7eb;--rule:#f0f0f0;--ink:#20252d;--muted:#656b75;--accent:#b8336a;--accent-soft:#fdf2f7;--accent-ink:#6b1d3e;--ok:#185b35;--warn:#854d0e;--bad:#831c1e;--sidebar:240px;--gap:24px;--radius:8px;--font:'DM Sans',Inter,system-ui,sans-serif;--mono:Consolas,monospace}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--ground);color:var(--ink);font:14px/1.5 var(--font)}button,input,select,textarea{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:2px}[hidden]{display:none!important}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;z-index:10;width:var(--sidebar);display:flex;flex-direction:column;padding:24px 12px 14px;background:var(--ground);border-right:1px solid var(--line)}.brand{height:38px;display:flex;align-items:center;gap:9px;margin:0 0 28px 8px;color:var(--ink);text-decoration:none}.brand-mark{width:30px;height:30px;flex:none;display:grid;place-items:center;border-radius:50%;background:var(--accent-soft);color:var(--accent)}.brand-mark svg{display:block;width:20px;height:20px}.brand-name{font-size:18px;font-weight:700;letter-spacing:-.5px}.brand-dot{color:var(--accent)}.workspace-label,.nav-label{padding:0 10px;color:var(--muted);font-size:12px;font-weight:500}.workspace-switcher{width:100%;height:46px;display:flex;align-items:center;gap:9px;margin:8px 0 28px;padding:5px 8px;border:1px solid var(--line);border-radius:6px;background:var(--surface);text-align:left;color:var(--ink)}.workspace-avatar{width:30px;height:30px;flex:none;display:grid;place-items:center;border-radius:50%;background:var(--accent-soft);color:var(--accent-ink)}.workspace-copy,.profile-copy{display:flex;min-width:0;flex:1;flex-direction:column;gap:1px}.workspace-copy b,.profile-copy b{font-size:12px;font-weight:600}.workspace-copy small,.profile-copy small{font-size:11px;color:var(--muted)}.workspace-switcher>svg{width:15px;height:15px;color:var(--muted)}.nav-label{margin:0 0 9px}.main-nav{display:flex;flex-direction:column;gap:3px}.nav-item{min-height:36px;display:flex;align-items:center;gap:10px;padding:0 10px;border:0;border-radius:7px;background:transparent;color:#555c66;text-align:left;font-size:13px}.nav-item:hover{background:#f0f0f0}.nav-item.active{background:var(--accent-soft);color:var(--accent-ink)}.nav-icon{width:18px;height:18px;flex:none;display:grid;place-items:center;color:#707680}.nav-icon svg{width:17px;height:17px}.nav-item.active .nav-icon{color:var(--accent)}.nav-count{display:none}.sidebar-bottom{margin-top:auto}.help-card{padding:13px 11px 12px;margin:0 3px 14px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}.help-graphic{display:none}.help-card b{font-size:12px;font-weight:600}.help-card p{margin:5px 0 8px;color:var(--muted);font-size:11px}.help-card button{padding:0;border:0;background:none;color:var(--accent-ink);font-size:11px;font-weight:600}.profile{width:100%;display:flex;align-items:center;padding:13px 6px 0;border:0;border-top:1px solid var(--line);background:none;text-align:left}.profile-avatar,.profile-more{display:none}.main-area{min-height:100vh;margin-left:var(--sidebar)}.topbar{display:none}.mobile-head{display:none}.page-content{width:min(100%,1440px);margin:0 auto;padding:34px 32px 20px}.welcome-row,.page-title-row{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:22px}.welcome-row>div,.page-title-row>div{min-width:0}.eyebrow,.wave{display:none}.welcome-row h1,.page-title-row h1{margin:0;color:var(--ink);font-size:24px;line-height:1.25;font-weight:600;letter-spacing:-.4px}.subtitle{margin:5px 0 0;color:var(--muted);font-size:13px}.button{height:36px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 12px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--ink);font-size:12px;font-weight:500;white-space:nowrap}.button-primary{border-color:var(--accent);background:var(--accent);color:#fff}.button-primary:hover{background:#a42b5d}.button-outline:hover{background:var(--soft)}.button-outline svg{width:15px;height:15px}.plus{font-size:16px}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0 0 20px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);overflow:hidden}.stat-card{min-height:91px;padding:13px 16px}.stat-card+.stat-card{border-left:1px solid var(--rule)}.stat-top,.stat-icon,.stat-menu,.sparkline{display:none!important}.stat-label{color:var(--muted);font-size:12px}.stat-value{margin-top:2px;color:var(--ink);font-size:24px;font-weight:500;line-height:1.25;font-variant-numeric:tabular-nums}.stat-foot{display:flex;gap:4px;margin-top:3px;color:var(--muted);font-size:11px}.trend{font-size:11px;font-weight:500}.trend.up,.trend.neutral{color:var(--muted)}.trend.warning{color:var(--warn)}.content-grid,.overview-analysis{display:grid;grid-template-columns:minmax(0,1fr) minmax(275px,360px);align-items:start;gap:var(--gap)}.overview-analysis{margin-bottom:var(--gap)}.panel{min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}.panel-heading,.table-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:15px 16px 10px}.panel-heading h2,.table-heading h2{margin:0;font-size:16px;line-height:1.35;font-weight:600}.panel-heading p,.table-heading p{margin:4px 0 0;color:var(--muted);font-size:12px}.text-link{padding:2px 0;border:0;background:none;color:var(--accent-ink);font-size:12px;white-space:nowrap}.text-link span{padding-left:3px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}th{padding:9px 12px;color:var(--muted);font-size:11px;font-weight:500;text-transform:none}td{padding:11px 12px;border-bottom:1px solid var(--rule);color:var(--muted);font-size:12px}tbody tr:last-child td{border-bottom:0}.key-product{display:flex;align-items:center;gap:9px}.product-mark{width:28px;height:28px;flex:none;display:grid;place-items:center;border-radius:5px;background:var(--soft)!important;color:var(--accent-ink)!important;font-size:12px;font-weight:600}.product-details{display:flex;min-width:0;flex-direction:column;gap:2px}.product-details b{color:var(--ink);font-size:12px;font-weight:500}.product-details small{color:var(--muted);font-size:11px}.mono-key{font-family:var(--mono);font-variant-numeric:tabular-nums}.buyer-cell{color:var(--ink);font-size:12px}.buyer-cell.muted{color:var(--muted)}.status-pill{min-height:20px;display:inline-flex;align-items:center;gap:5px;padding:2px 7px;border-radius:4px;background:var(--soft);color:#424852;font-size:11px;white-space:nowrap}.status-pill:before{width:5px;height:5px;border-radius:50%;background:currentColor;content:""}.status-pill.active{background:#e8f5ed;color:var(--ok)}.status-pill.expiring{background:#fffbeb;color:var(--warn)}.status-pill.expired{background:#ffedea;color:var(--bad)}.people-total,.soft-count{padding:3px 7px;border-radius:4px;background:var(--soft);color:var(--muted);font-size:11px}.buyer-list{padding:0 16px}.buyer-item{display:flex;align-items:center;gap:10px;padding:10px 0;border-top:1px solid var(--rule)}.buyer-avatar{width:29px;height:29px;flex:none;display:grid;place-items:center;border-radius:50%;font-size:10px;font-weight:600}.buyer-info{min-width:0;flex:1}.buyer-info b{display:block;color:var(--ink);font-size:12px;font-weight:500}.buyer-info span{display:block;margin-top:2px;overflow:hidden;color:var(--muted);font-size:11px;text-overflow:ellipsis;white-space:nowrap}.buyer-keys{padding:3px 6px;border-radius:4px;background:var(--accent-soft);color:var(--accent-ink);font-size:11px;white-space:nowrap}.buyer-footer{display:flex;align-items:center;justify-content:space-between;margin:3px 16px 0;padding:11px 0;border-top:1px solid var(--rule);color:var(--muted);font-size:11px}.arrow-link{width:27px;height:27px;border:1px solid var(--line);border-radius:5px;background:var(--surface)}.empty-state{text-align:center;padding:25px 15px;color:var(--muted)}.empty-state b{display:block;color:var(--ink);font-size:13px;font-weight:500}.empty-state p{margin:4px 0 12px;font-size:12px}.empty-icon{display:none}.button-small{height:32px;font-size:12px}.buyer-empty{padding:14px 16px;color:var(--muted);font-size:12px}.page-footer{display:flex;justify-content:space-between;gap:14px;padding:20px 0 0;color:var(--muted);font-size:11px}.page-footer>span:last-child{display:flex;align-items:center;gap:7px}.footer-dot{width:6px;height:6px;border-radius:50%;background:#247b50}.toolbar{display:flex;align-items:center;gap:9px;margin:20px 0 16px}.search-box{height:36px;display:flex;align-items:center;gap:8px;flex:1;max-width:400px;padding:0 10px;border:1px solid #d1d5db;border-radius:6px;background:var(--surface)}.search-box svg{width:15px;height:15px;flex:none;color:var(--muted)}.search-box input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--ink);font-size:12px}.select-control{height:36px;padding:0 10px;border:1px solid #d1d5db;border-radius:6px;background:var(--surface);font-size:12px}.keys-table-panel{min-height:0}.full-table{min-width:760px}.full-table th{border-bottom:1px solid var(--line)}.full-table td{height:48px;padding:9px 13px}.sort-button{height:31px;padding:0 9px;border:1px solid var(--line);border-radius:5px;background:var(--surface);font-size:11px}.key-actions{position:relative;text-align:right}.key-actions button,.type-more{border:0;background:none;color:var(--muted);font-size:17px}.action-menu{position:absolute;z-index:3;top:28px;right:8px;min-width:130px;padding:4px;border:1px solid var(--line);border-radius:6px;background:var(--surface);box-shadow:0 6px 18px #11182718}.action-menu button{width:100%;padding:8px;border:0;background:none;text-align:left;font-size:12px}.delete-action{color:var(--bad)!important}.table-bottom{display:flex;justify-content:space-between;align-items:center;padding:11px 14px;border-top:1px solid var(--rule);color:var(--muted);font-size:11px}.pagination{display:flex;gap:4px}.pagination button{width:26px;height:26px;border:1px solid var(--line);border-radius:5px;background:var(--surface)}.page-number.active{background:var(--accent-soft);color:var(--accent-ink)}.type-summary{display:flex;align-items:center;gap:11px;margin-bottom:18px;padding:13px 15px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}.type-summary-icon{width:28px;height:28px;flex:none;display:grid;place-items:center;border-radius:50%;background:var(--accent-soft);color:var(--accent);font-size:15px}.type-summary>div:nth-child(2){display:flex;min-width:0;flex:1;flex-direction:column;gap:2px}.type-summary b{font-size:13px;font-weight:600}.type-summary span{color:var(--muted);font-size:12px}.type-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:16px}.type-card{min-height:148px;display:flex;flex-direction:column;padding:15px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}.type-card-top{display:flex;justify-content:space-between}.type-symbol{width:auto;height:auto;background:transparent!important}.type-card h3{margin:12px 0 4px;font-size:14px;font-weight:600}.type-card p{min-height:34px;margin:0;color:var(--muted);font-size:12px}.type-card-bottom{display:flex;justify-content:space-between;gap:8px;margin-top:auto;padding-top:11px;border-top:1px solid var(--rule)}.type-card-bottom span{color:var(--muted);font-size:11px}.type-price{color:var(--ink)!important}.type-empty{grid-column:1/-1;padding:18px 16px;border:1px dashed #d1d5db;border-radius:var(--radius);color:var(--muted);font-size:12px}.distribution-panel{min-height:218px}.distribution-list{display:grid;gap:12px;padding:6px 16px 16px}.distribution-row{display:grid;grid-template-columns:minmax(100px,1.1fr) minmax(80px,2fr) 35px;align-items:center;gap:12px;color:var(--muted);font-size:12px}.distribution-name{overflow:hidden;color:var(--ink);text-overflow:ellipsis;white-space:nowrap}.distribution-track{height:7px;overflow:hidden;border-radius:5px;background:var(--soft)}.distribution-bar{height:100%;border-radius:5px;background:var(--accent)}.distribution-count{text-align:right;color:var(--ink)}.distribution-empty,.expiry-empty{padding:13px 0;color:var(--muted);font-size:12px}.expiry-list{padding:0 16px 8px}.expiry-item{display:flex;justify-content:space-between;gap:10px;padding:10px 0;border-top:1px solid var(--rule)}.expiry-item b{display:block;color:var(--ink);font-size:12px;font-weight:500}.expiry-item small{display:block;margin-top:2px;color:var(--muted);font-size:11px}.expiry-date{flex:none;color:var(--warn);font-size:11px}.modal-backdrop{position:fixed;inset:0;z-index:30;display:grid;place-items:center;padding:20px;background:#11182766}.modal-backdrop[hidden]{display:none}.modal{width:min(100%,480px);padding:22px 24px;border:1px solid var(--line);border-radius:10px;background:var(--surface);box-shadow:0 16px 40px #11182725}.modal-head{display:flex;justify-content:space-between;margin-bottom:20px}.modal-kicker{color:var(--muted);font-size:11px}.modal-head h2{margin:4px 0 0;font-size:18px;font-weight:600}.modal-close{width:30px;height:30px;border:1px solid var(--line);border-radius:5px;background:var(--surface);font-size:18px}.modal form label{display:flex;flex-direction:column;gap:7px;margin-bottom:14px;font-size:13px;font-weight:500}.modal input,.modal select,.modal textarea{width:100%;padding:9px 10px;border:1px solid #d1d5db;border-radius:6px;background:var(--surface);font-size:13px}.modal textarea{resize:vertical}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.input-with-action{position:relative;display:flex}.input-with-action input{padding-right:105px}.generate-btn{position:absolute;inset:5px 5px 5px auto;padding:0 8px;border:0;border-radius:4px;background:var(--accent-soft);color:var(--accent-ink);font-size:11px}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px;padding-top:14px;border-top:1px solid var(--rule)}.toast{position:fixed;z-index:40;bottom:22px;left:50%;padding:10px 14px;border-radius:6px;background:#20252d;color:white;font-size:12px;opacity:0;pointer-events:none;transform:translate(-50%,12px);transition:.18s}.toast.show{opacity:1;transform:translate(-50%,0)}.mobile-head button{width:32px;height:32px;display:grid;place-items:center;padding:0;border:1px solid var(--line);border-radius:5px;background:var(--surface)}.mobile-head svg{width:17px;height:17px}.profile-avatar{display:none}
@media(max-width:1050px){:root{--sidebar:218px}.page-content{padding-right:24px;padding-left:24px}.content-grid,.overview-analysis{grid-template-columns:minmax(0,1fr) minmax(260px,320px)}.type-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.sidebar{width:100%;height:100dvh;padding:22px 18px;transform:translateX(100%);border-right:0}.sidebar.open{transform:translateX(0)}.main-area{margin-left:0;padding-top:48px}.mobile-head{position:fixed;z-index:9;inset:0 0 auto;display:flex;align-items:center;gap:12px;height:48px;padding:0 16px;border-bottom:1px solid var(--line);background:var(--ground)}.mobile-head span{font-size:13px;font-weight:600}.page-content{padding:22px 16px 18px}.welcome-row,.page-title-row{margin-bottom:17px}.welcome-row h1,.page-title-row h1{font-size:22px}.content-grid,.overview-analysis{grid-template-columns:1fr;gap:16px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:16px}.stat-card{min-height:84px;padding:12px 14px}.stat-card:nth-child(3){border-left:0;border-top:1px solid var(--rule)}.stat-card:nth-child(4){border-top:1px solid var(--rule)}.stat-value{font-size:22px}.distribution-panel{min-height:0}.distribution-row{grid-template-columns:minmax(90px,1fr) minmax(70px,1.4fr) 30px}.page-footer{flex-direction:column}.type-grid{grid-template-columns:1fr}.toolbar{flex-wrap:wrap;margin:16px 0 13px}.search-box{flex-basis:100%;max-width:none}.select-control{flex:1}.toolbar>.button{height:36px}.panel-heading,.table-heading{padding:13px}.buyer-list{padding:0 13px}.buyer-footer{margin-right:13px;margin-left:13px}.full-table{min-width:760px}.modal{padding:19px}.form-row{grid-template-columns:1fr;gap:0}}
@media(max-width:420px){.page-content{padding-right:13px;padding-left:13px}.welcome-row,.page-title-row{align-items:flex-start;gap:9px}.welcome-row>.button,.page-title-row>.button{height:34px;margin-top:1px;padding:0 9px;font-size:11px}.subtitle{font-size:12px}.stat-card{padding:11px}.stat-label{font-size:11px}.stat-value{font-size:21px}.stat-foot{font-size:10px}.distribution-row{grid-template-columns:minmax(82px,1fr) minmax(50px,1.1fr) 25px;gap:8px}.select-control{max-width:48%}.toolbar>.button{padding:0 8px;font-size:11px}}

.app-types-panel{margin-bottom:20px}.app-type-list{display:flex;flex-wrap:wrap;gap:10px;padding:2px 16px 16px}.app-type-item{min-width:190px;display:flex;align-items:center;gap:10px;padding:9px 10px;border:1px solid var(--line);border-radius:6px;background:var(--surface)}.app-type-name{min-width:0;flex:1;color:var(--ink);font-size:13px;font-weight:500}.app-type-key-count{color:var(--muted);font-size:11px;white-space:nowrap}.app-type-empty{width:100%;padding:12px 0;color:var(--muted);font-size:12px}.app-type-cell{color:var(--accent-ink);font-size:12px;font-weight:500}.full-table{min-width:900px}.app-type-item .type-more{width:28px;height:28px;border-radius:4px}.app-type-item .type-more:hover{background:var(--soft)}
.app-type-item{cursor:pointer;transition:background-color .15s,border-color .15s}.app-type-item:hover{border-color:#c9b9c0;background:var(--soft)}.app-type-item.selected{border-color:var(--accent);background:var(--accent-soft)}.app-type-item.selected .app-type-name{color:var(--accent-ink)}
.key-preview-link{padding:0;border:0;background:none;color:var(--accent-ink);font:inherit;text-align:left;cursor:pointer}.key-preview-link:hover{text-decoration:underline}.key-preview-modal{max-width:560px}.key-preview-value{display:flex;flex-direction:column;gap:6px;padding:13px 14px;border:1px solid var(--line);border-radius:7px;background:var(--soft)}.key-preview-value>span,.key-preview-grid>div>span{color:var(--muted);font-size:11px}.key-preview-value strong{overflow-wrap:anywhere;color:var(--ink);font-family:var(--mono);font-size:14px;font-weight:500}.key-preview-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px;padding:8px 2px}.key-preview-grid>div{display:flex;min-width:0;flex-direction:column;gap:4px;padding:10px 0;border-bottom:1px solid var(--rule)}.key-preview-grid>div>b{overflow-wrap:anywhere;color:var(--ink);font-size:13px;font-weight:500}
/* Dashboard refresh: calm surfaces, clearer hierarchy, and more room for operational data. */
:root{--ground:#f7f8fa;--surface:#fff;--soft:#f2f4f7;--line:#e4e7ec;--rule:#eef0f3;--ink:#20252d;--muted:#626b78;--accent:#b8336a;--accent-soft:#fbf0f5;--accent-ink:#762246;--radius:10px;--gap:18px}
.page-content{width:min(100%,1500px);padding:32px 34px 24px}
.welcome-row{align-items:center;margin-bottom:20px}
.welcome-row h1{font-size:27px;letter-spacing:-.7px}
.welcome-row .subtitle{margin-top:4px;font-size:12px}
.stats-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px;border:0;border-radius:0;background:transparent;overflow:visible}
.stat-card{position:relative;min-height:126px;padding:14px 16px;border:1px solid var(--line);border-radius:10px;background:var(--surface);box-shadow:0 1px 2px #17203308;transition:border-color .16s,transform .16s,box-shadow .16s}
.stat-card:hover{transform:translateY(-1px);border-color:#d5d9e0;box-shadow:0 5px 14px #1720330a}
.stat-card+.stat-card{border-left:1px solid var(--line)}
.stat-top{display:flex!important;align-items:center;justify-content:space-between;margin-bottom:10px}
.stat-icon{width:30px;height:30px;display:grid!important;place-items:center;border-radius:7px;background:var(--accent-soft)!important;color:var(--accent-ink)!important}
.stat-icon svg{width:16px;height:16px}
.stat-menu,.sparkline{display:none!important}
.stat-label{font-size:12px;font-weight:500}
.stat-value{margin-top:2px;font-size:29px;font-weight:600;letter-spacing:-.8px}
.stat-foot{margin-top:4px;font-size:11px}
.stat-foot>span:nth-child(2){display:none}
.stat-card.attention{border-color:#ecd4b4;background:#fffaf2}
.stat-card.attention .stat-value,.stat-card.attention .trend{color:var(--warn)}
.content-grid,.overview-analysis{grid-template-columns:minmax(0,1.45fr) minmax(290px,.8fr);gap:18px}
.overview-analysis{margin:0 0 18px}
.panel{border-color:var(--line);border-radius:10px;box-shadow:0 1px 2px #17203305}
.panel-heading,.table-heading{padding:16px 17px 11px}
.panel-heading h2,.table-heading h2{font-size:15px;font-weight:600;letter-spacing:-.1px}
.panel-heading p,.table-heading p{margin-top:3px;font-size:11px}
.people-total,.soft-count{border:1px solid var(--line);background:var(--ground);font-variant-numeric:tabular-nums}
.distribution-list{gap:13px;padding:4px 17px 17px}
.distribution-row{display:flex;flex-direction:column;gap:5px;color:var(--ink);font-size:12px}
.distribution-meta{display:flex;align-items:center;justify-content:space-between;gap:12px}
.distribution-name{color:var(--ink);font-weight:500}
.distribution-count{color:var(--muted);font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap}
.distribution-track{width:100%;height:3px;border-radius:4px;background:#e9ebef}
.distribution-bar{height:3px;border-radius:4px;background:var(--accent)}
.expiry-panel.has-expiring{border-color:#ead6bb}
.expiry-panel.has-expiring .people-total{border-color:#ead6bb;background:#fff7e8;color:var(--warn)}
.expiry-list{padding:0 17px 8px}
.expiry-item{align-items:center;padding:11px 0}
.expiry-key{max-width:100%;overflow:hidden;padding:0;border:0;background:none;color:var(--ink);font-size:12px;font-weight:500;text-overflow:ellipsis;white-space:nowrap;text-align:left}
.expiry-key:hover{text-decoration:underline}
.expiry-item small{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.expiry-date{padding:3px 6px;border-radius:4px;background:#fff7e8;color:var(--warn);font-variant-numeric:tabular-nums}
.recent-panel .panel-heading,.buyers-panel .panel-heading{min-height:64px}
.text-link{font-size:11px;font-weight:500}
.buyer-list{padding:0 17px}
.buyer-item{gap:10px;padding:9px 0}
.buyer-avatar{width:28px;height:28px}
.buyer-info b{font-size:12px}
.buyer-keys{border:0;cursor:pointer}
.buyer-keys:hover{background:#f6e4ed}
.buyer-footer{margin:3px 17px 0;padding:10px 0}
.page-footer{padding-top:18px}
@media(min-width:1800px){#overviewPage.page-content{width:min(100%,1640px)}#overviewPage .overview-analysis{grid-template-columns:minmax(0,1.35fr) minmax(360px,.75fr)}#overviewPage .content-grid{grid-template-columns:minmax(0,1.5fr) minmax(320px,.75fr)}}
@media(max-width:900px){.page-content{padding:25px 22px 20px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stat-card{min-height:118px}.stat-card+.stat-card{border-left:1px solid var(--line)}.content-grid,.overview-analysis{grid-template-columns:minmax(0,1fr) minmax(240px,.8fr);gap:12px}}
@media(max-width:760px){.page-content{padding:20px 16px}.welcome-row h1{font-size:23px}.stats-grid{gap:9px}.stat-card{min-height:110px;padding:11px 12px}.stat-top{margin-bottom:7px}.stat-icon{width:27px;height:27px}.stat-value{font-size:25px}.content-grid,.overview-analysis{grid-template-columns:1fr;gap:12px}.overview-analysis{margin-bottom:12px}.panel-heading,.table-heading{padding:13px 14px 9px}.distribution-list,.expiry-list,.buyer-list{padding-right:14px;padding-left:14px}.buyer-footer{margin-right:14px;margin-left:14px}.page-footer{font-size:10px}}
@media(max-width:420px){.page-content{padding-right:12px;padding-left:12px}.welcome-row{align-items:flex-start}.stats-grid{gap:8px}.stat-card{min-height:104px;padding:10px}.stat-label{font-size:11px}.stat-value{font-size:23px}.stat-foot{font-size:10px}.welcome-row>.button{height:34px;padding:0 9px;font-size:11px}.expiry-date{font-size:10px}}
.distribution-panel #distributionTotal,.buyers-panel #buyerCountLabel,.expiry-panel .people-total{display:none}

/* Make the monitoring priority visible: attention first, breakdown second. */
#overviewPage .overview-analysis{grid-template-areas:"attention breakdown";grid-template-columns:minmax(0,1.35fr) minmax(290px,.75fr);align-items:start;min-height:0}
#overviewPage .expiry-panel{grid-area:attention;min-height:0;background:#fffdfa;border-color:#ead6bb}
#overviewPage .distribution-panel{grid-area:breakdown;min-height:0}
#overviewPage .expiry-panel:not(.has-expiring){background:var(--surface);border-color:var(--line)}
#overviewPage .expiry-panel.has-expiring .panel-heading h2:after{content:' · Cần xử lý';color:var(--warn);font-size:11px;font-weight:500}
#overviewPage .expiry-list{padding-bottom:4px}
#overviewPage .expiry-item{min-height:50px}
#overviewPage .distribution-list{padding-bottom:12px}
#overviewPage .distribution-empty{padding:3px 0 9px}
@media(max-width:760px){#overviewPage .overview-analysis{grid-template-areas:"attention" "breakdown";grid-template-columns:minmax(0,1fr)}}
/* Overview: put expiring keys in the primary column and keep the app breakdown content-sized. */
#overviewPage .overview-analysis{grid-template-columns:minmax(0,1.35fr) minmax(300px,.8fr);align-items:start;min-height:0}
#overviewPage .expiry-panel{grid-column:1;grid-row:1;min-height:0}
#overviewPage .distribution-panel{grid-column:2;grid-row:1;min-height:0;height:max-content}
#overviewPage .distribution-panel .distribution-list{padding-top:2px;padding-bottom:12px}
#overviewPage .distribution-panel .distribution-row{gap:7px}
#overviewPage .distribution-panel .distribution-track{max-width:100%}
#overviewPage .expiry-panel.has-expiring{background:#fffaf2;border-color:#e9cfaa}
#overviewPage .attention-label{display:inline-flex;vertical-align:2px;padding:2px 6px;border-radius:4px;background:#fff0d5;color:#854d0e;font-size:10px;font-weight:600;letter-spacing:0}
#overviewPage .attention-label[hidden]{display:none}
@media(max-width:760px){#overviewPage .overview-analysis{grid-template-columns:minmax(0,1fr)}#overviewPage .expiry-panel,#overviewPage .distribution-panel{grid-column:1;grid-row:auto}}
/* Data views for the overview */
#overviewPage .overview-analysis{grid-template-columns:minmax(0,1.4fr) minmax(310px,.75fr);align-items:start}
#overviewPage .activity-panel{grid-column:1;grid-row:1;min-height:0}
#overviewPage .expiry-panel{grid-column:2;grid-row:1;min-height:0}
#overviewPage .activity-panel .panel-heading{align-items:center}
#overviewPage .chart-legend{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:11px}
#overviewPage .chart-legend i{width:8px;height:8px;border-radius:2px;background:var(--accent)}
#overviewPage .chart-canvas{min-width:0;padding:3px 14px 14px}
#overviewPage .chart-scroll{overflow-x:auto;overscroll-behavior-inline:contain}
#overviewPage .dashboard-chart{display:block;width:100%;height:auto;overflow:visible}
#overviewPage .chart-gridline{stroke:var(--rule);stroke-width:1}
#overviewPage .chart-axis{fill:var(--muted);font-family:var(--font);font-size:11px}
#overviewPage .chart-value{fill:var(--ink);font-family:var(--font);font-size:11px;font-weight:600;font-variant-numeric:tabular-nums}
#overviewPage .chart-bar{fill:var(--accent);transition:opacity .15s,filter .15s}
#overviewPage .app-chart-bar{opacity:.82}
#overviewPage .chart-bar-group:hover .chart-bar{opacity:1;filter:brightness(.94)}
#overviewPage .chart-x-label{font-size:10px}
#overviewPage .overview-breakdown{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(310px,.75fr);align-items:start;gap:18px;margin-top:18px}
#overviewPage .distribution-panel{grid-column:auto;grid-row:auto;min-height:0;height:auto}
#overviewPage .distribution-panel .chart-canvas{padding-top:0}
#overviewPage .chart-empty{padding:16px 2px;color:var(--muted);font-size:12px}
#overviewPage .overview-details{margin-top:18px}
#overviewPage .overview-details .recent-panel{width:100%}
@media(min-width:1800px){#overviewPage .overview-analysis{grid-template-columns:minmax(0,1.45fr) minmax(340px,.75fr)}#overviewPage .overview-breakdown{grid-template-columns:minmax(0,1.45fr) minmax(340px,.75fr)}}
@media(max-width:760px){#overviewPage .overview-analysis,#overviewPage .overview-breakdown{grid-template-columns:minmax(0,1fr);gap:12px;margin-top:12px}#overviewPage .activity-panel,#overviewPage .expiry-panel{grid-column:1;grid-row:auto}#overviewPage .overview-details{margin-top:12px}#overviewPage .chart-canvas{padding-right:8px;padding-left:8px}}.key-preview-code{display:flex;align-items:center;gap:10px;min-width:0}.key-preview-code strong{min-width:0;flex:1}.copy-key-btn{width:32px;height:32px;flex:none;display:inline-flex;align-items:center;justify-content:center;padding:0;border:1px solid var(--line);border-radius:5px;background:var(--surface);color:var(--ink-2,var(--muted));font-size:11px}.copy-key-btn:hover{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-ink)}.copy-key-btn svg{width:16px;height:16px}.api-login-modal{max-width:420px}.api-login-copy{margin:-7px 0 18px;color:var(--muted);font-size:12px}.api-login-error{margin:0;color:var(--bad);font-size:12px}.api-login-modal .modal-actions{margin-top:10px}
@media(max-width:500px){.key-preview-code{align-items:flex-start;flex-direction:column}.copy-key-btn{align-self:flex-start}}

.action-menu{right:auto;width:max-content;min-width:140px;max-width:220px}.action-menu button{white-space:nowrap;border-radius:4px}.action-menu button:hover{background:var(--soft)}.copy-key-btn{width:30px!important;height:30px!important;min-width:30px;padding:0!important;gap:0}.copy-key-btn svg{display:block;width:16px!important;height:16px!important;flex:none}.copy-key-btn span{display:none}.key-preview-code strong{font-size:13px}
.status-pill.ready{background:#eef2ff;color:#3730a3}
.status-pill.revoked{background:#f3f4f6;color:#374151;text-decoration:line-through}
