.drawer.usage-drawer{width:min(780px,100vw);max-width:100vw}
.usage-panel{padding:22px 24px 32px;color:var(--tx);font-size:13px}
.usage-panel *{box-sizing:border-box}
.usage-intro{margin:0 0 18px;color:var(--tx3);line-height:1.7}
.usage-source-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:16px}
.usage-source-row label{font-size:12px;color:var(--tx3)}
.usage-source-row select{flex:1;min-width:180px;max-width:100%;padding:8px;border:1px solid var(--line,#dce1e8);border-radius:7px;background:var(--surface,#fff);color:var(--tx);font:inherit}
.usage-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:16px}
.usage-toolbar .usage-badge{margin-right:auto;color:var(--blue);font-size:11px;background:var(--blue-bg);padding:5px 10px;border-radius:20px}
.usage-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px}
.usage-summary .primary-card{grid-column:1/-1}
.usage-enabled strong{color:#238153}.usage-disabled strong{color:#ab5e1e}
.usage-status-detail{margin-top:8px;color:var(--tx3);font-size:11px;line-height:1.6}
.usage-card{border:1px solid var(--line,#e4e8ed);background:var(--bg,#f7f9fc);border-radius:12px;padding:20px}
.usage-card small{display:block;color:var(--tx3);margin-bottom:8px}
.usage-card strong{display:block;font-size:30px;letter-spacing:-.6px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.usage-card.primary-card{background:var(--blue-bg);border-color:transparent}
.usage-card.primary-card strong{color:var(--blue)}
.usage-meta{font-size:12px;color:var(--tx3);line-height:1.8;margin-bottom:16px;overflow-wrap:anywhere}
.usage-pills{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}
.usage-pills span{padding:3px 8px;border-radius:6px;background:var(--bg,#f3f5f7);font-family:monospace}
.usage-note{font-size:12px;color:var(--tx3);line-height:1.7;margin-top:12px}
.usage-message{padding:12px 14px;background:#fff3e4;color:#94501c;border-radius:8px;line-height:1.7;margin:0 0 16px}
.usage-message:empty{display:none}
.usage-table-wrap{border:1px solid var(--line,#e4e8ed);border-radius:10px;overflow:auto;max-height:52vh}
.usage-panel table{width:100%;font-size:12px;border-collapse:collapse;min-width:450px}
.usage-panel th,.usage-panel td{padding:12px 14px;text-align:left;border-bottom:1px solid var(--line,#e4e8ed);height:auto}
.usage-panel th{background:var(--bg,#f7f9fc);position:sticky;top:0;color:var(--tx3);font-weight:500}
.usage-panel td:last-child,.usage-panel th:last-child{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.usage-panel td:nth-child(2){overflow-wrap:anywhere;max-width:280px}
.usage-panel tr:last-child td{border-bottom:0}
.usage-form{border:1px solid var(--line,#e4e8ed);border-radius:10px;padding:18px;margin-bottom:18px}
.usage-form label{display:block;margin-bottom:6px;font-weight:500;font-size:12px}
.usage-form .usage-field{margin-bottom:16px}
.usage-form input,.usage-form textarea,.usage-form select{width:100%;font:inherit;min-height:36px;border:1px solid var(--line,#dce1e8);border-radius:6px;padding:8px 10px;background:var(--surface,#fff);color:var(--tx)}
.usage-form textarea{min-height:76px;resize:vertical}
.usage-form details{margin:10px 0 18px}.usage-form summary{cursor:pointer;margin-bottom:14px;color:var(--tx3)}
.usage-form .usage-hint{font-size:11px;color:var(--tx3);line-height:1.6;margin-top:5px}
.usage-form .usage-actions{display:flex;gap:8px;justify-content:flex-end}
.usage-empty{text-align:center;padding:35px 20px;color:var(--tx3);line-height:1.8}
@media(max-width:600px){.usage-panel{padding:16px}.usage-summary{grid-template-columns:1fr}.usage-card{padding:16px}.usage-card strong{font-size:26px}.usage-toolbar button{font-size:12px}header .right{overflow-x:auto}header .right>*{flex-shrink:0}}
