:root { color-scheme: light; --ink:#17231f; --muted:#62706b; --paper:#f3f0e8; --panel:#fffdf7; --line:#d7d1c4; --accent:#176b52; --danger:#a33c32; }
* { box-sizing:border-box; }
body { margin:0; background:linear-gradient(135deg,#e7efe9 0,#f3f0e8 45%,#ede7dc 100%); color:var(--ink); font:16px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif; min-height:100vh; }
main { width:min(920px,calc(100% - 32px)); margin:0 auto; padding:56px 0 80px; }
header { margin-bottom:32px; }
.eyebrow,.step { color:var(--accent); font:700 12px/1.2 ui-monospace,monospace; letter-spacing:.16em; }
h1 { font:700 clamp(34px,7vw,68px)/1.02 Georgia,serif; max-width:720px; margin:10px 0 16px; }
h2 { display:inline; font:650 24px/1.2 Georgia,serif; margin-left:12px; }
.lede { max-width:680px; color:var(--muted); font-size:18px; }
section { background:color-mix(in srgb,var(--panel) 94%,transparent); border:1px solid var(--line); border-radius:18px; padding:24px; margin-top:18px; box-shadow:0 18px 50px rgba(46,54,48,.06); }
#login-panel { max-width:560px; }
.section-head { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:20px; }
.session-bar { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.session-bar p { margin:4px 0 0; }
.badge { border:1px solid var(--line); border-radius:999px; padding:5px 10px; color:var(--muted); font-size:13px; }
label { display:block; color:var(--muted); font-size:14px; margin:12px 0; }
input,textarea,select { width:100%; margin-top:6px; padding:11px 12px; border:1px solid var(--line); border-radius:9px; background:white; color:var(--ink); font:inherit; }
textarea { resize:vertical; }
.actions,.model-row { display:flex; gap:10px; align-items:end; flex-wrap:wrap; margin-top:14px; }
.model-row label { flex:1 1 360px; margin:0; }
button { border:0; border-radius:9px; padding:11px 15px; background:var(--accent); color:white; font:650 14px/1 system-ui; cursor:pointer; }
button.secondary,.button.secondary { color:var(--ink); background:#e8e3d8; }
button,.button { display:inline-block; text-align:center; text-decoration:none; }
button.danger { background:var(--danger); }
button:disabled { opacity:.45; cursor:not-allowed; }
.device { border-left:4px solid var(--accent); background:#edf5f0; padding:16px; margin-top:18px; border-radius:8px; }
.device a { color:var(--accent); font-weight:650; }
.device code { display:block; width:max-content; margin:12px 0; padding:8px 12px; background:white; border:1px dashed var(--accent); font-size:20px; letter-spacing:.08em; }
.secret-panel { border-left:4px solid var(--accent); background:#edf5f0; padding:16px; margin:18px 0; border-radius:8px; }
.secret-panel code { display:block; overflow-wrap:anywhere; margin-top:12px; padding:10px 12px; background:white; border:1px dashed var(--accent); border-radius:7px; }
.copy-row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.copy-row code { flex:1 1 420px; overflow-wrap:anywhere; padding:10px 12px; background:#ece8df; border-radius:7px; }
.key-list { display:grid; gap:10px; margin-top:20px; }
.key-row { display:flex; align-items:center; justify-content:space-between; gap:16px; border-top:1px solid var(--line); padding-top:12px; }
.key-row strong,.key-row span { display:block; }
.key-row span { color:var(--muted); font:13px/1.5 ui-monospace,monospace; margin-top:3px; }
.hidden { display:none; }
.message,.muted { color:var(--muted); }
pre { min-height:150px; max-height:440px; overflow:auto; white-space:pre-wrap; word-break:break-word; background:#15201c; color:#d9ede4; border-radius:12px; padding:16px; }
.reference code { display:block; overflow:auto; padding:9px 11px; background:#ece8df; border-radius:7px; }
@media (max-width:620px) { main{padding-top:30px}.section-head,.session-bar{align-items:flex-start}.session-bar,.key-row{flex-direction:column}.badge{white-space:nowrap}section{padding:18px}.actions button{flex:1 1 140px} }

.account-grid,.quota-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:10px; }
.info-card,.quota-card { border:1px solid var(--line); border-radius:11px; padding:14px; background:#faf8f1; }
.info-card strong { display:block; overflow-wrap:anywhere; margin-top:4px; }
.card-label { color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:.08em; }
.quota-grid { margin-top:14px; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); }
.quota-card { min-height:132px; }
.quota-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.quota-number { font:700 28px/1.2 Georgia,serif; margin-top:14px; }
.quota-card p { margin:7px 0 0; font-size:13px; }
.additional-quotas { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:10px; margin-top:10px; }
.additional-quota .quota-number { font-size:24px; }
fieldset { border:1px solid var(--line); border-radius:10px; margin:16px 0; padding:10px 14px; }
legend { color:var(--muted); font-size:13px; padding:0 6px; }
.choice { display:inline-flex; align-items:center; gap:7px; margin:4px 14px 4px 0; color:var(--ink); }
.choice input,.toggle input { width:auto; margin:0; }
.form-grid,.filter-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:0 12px; }
.key-row { align-items:flex-start; }
.key-detail { min-width:0; flex:1; }
.key-detail strong,.key-detail span { display:inline-block; margin-right:8px; }
.key-detail .key-state,.key-detail .legacy-tag { border-radius:999px; padding:3px 8px; font-size:12px; background:#e8e3d8; color:var(--muted); }
.key-detail .disabled-state { background:#f7e5e1; color:var(--danger); }
.key-detail .legacy-tag { background:#e9efe9; color:var(--accent); }
.key-actions { display:flex; gap:7px; flex-wrap:wrap; justify-content:flex-end; }
.log-list { display:grid; gap:9px; margin-top:18px; }
.log-row { display:flex; justify-content:space-between; align-items:center; gap:14px; border-top:1px solid var(--line); padding-top:11px; }
.log-row strong,.log-row span { display:block; }
.log-row span { color:var(--muted); font:12px/1.5 ui-monospace,monospace; margin-top:3px; overflow-wrap:anywhere; }
.pagination { display:flex; align-items:center; justify-content:center; gap:14px; margin-top:18px; }
.log-detail { margin-top:22px; border-top:1px solid var(--line); padding-top:15px; }
.detail-grid { display:grid; grid-template-columns:max-content 1fr; gap:5px 16px; font-size:14px; }
.detail-grid dt { color:var(--muted); }
.detail-grid dd { margin:0; overflow-wrap:anywhere; }
.detail-bodies { display:grid; gap:14px; margin-top:18px; }
.detail-bodies h4 { margin:0 0 5px; font-size:14px; color:var(--muted); }
.body-preview { min-height:80px; max-height:300px; margin:0; font-size:12px; }
.toggle { display:flex; align-items:center; gap:9px; color:var(--ink); }
.access-login { margin-top:18px; padding-top:16px; border-top:1px solid var(--line); }
.access-login .access-divider { display:block; color:var(--muted); font-size:13px; margin-bottom:10px; }
.access-login .button { width:100%; }
.key-dialog { width:min(680px,calc(100% - 32px)); border:1px solid var(--line); border-radius:15px; padding:0; background:var(--panel); color:var(--ink); }
.key-dialog::backdrop { background:rgba(20,30,25,.35); }
.key-dialog form { padding:22px; }
.key-dialog .section-head { margin-bottom:10px; }
h3 { font:650 20px/1.2 Georgia,serif; margin:0; }
@media (max-width:620px) { .log-row { align-items:flex-start; flex-direction:column; } .key-actions { justify-content:flex-start; } .detail-grid { grid-template-columns:1fr; gap:2px; } .detail-grid dd { margin-bottom:7px; } }
