:root{--bg:#f5f7fb;--card:#fff;--ink:#182230;--muted:#697586;--line:#e5e9f0;--primary:#2563eb;--primary-dark:#1d4ed8;--green:#07865b;--amber:#a76500;--red:#b42318;--shadow:0 12px 34px rgba(17,24,39,.07)}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 10% -10%,#e8f0ff 0,transparent 37%),var(--bg);color:var(--ink);font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"PingFang SC","Microsoft YaHei",sans-serif}.shell{max-width:1440px;margin:auto;padding:0 30px 52px}.topbar{height:76px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:10px;font-size:16px}.brand strong,.brand small{display:block}.brand small{color:var(--muted);font-size:11px;margin-top:1px}.brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:linear-gradient(135deg,#2563eb,#60a5fa);color:#fff;font-weight:800;font-size:18px;box-shadow:0 7px 18px rgba(37,99,235,.28)}.top-actions{display:flex;gap:10px;align-items:center}.card{background:var(--card);border:1px solid rgba(229,233,240,.95);border-radius:18px;box-shadow:var(--shadow)}.notice{display:flex;gap:12px;align-items:flex-start;padding:15px 18px;background:#edf5ff;border:1px solid #cfe2ff;border-radius:14px;color:#164b8b;margin-bottom:18px}.notice-icon{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:#2563eb;color:#fff;font-weight:800;font-size:13px;flex:none}.notice p{margin:3px 0 0;color:#3a6092;font-size:13px}.connect{padding:24px;margin-bottom:22px}.section-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:18px}.eyebrow{text-transform:uppercase;letter-spacing:.12em;color:var(--primary);font-size:11px;font-weight:700}.section-heading h1,.section-heading h2{margin:3px 0 0;line-height:1.18}.section-heading h1{font-size:23px}.section-heading h2{font-size:18px}.lock{font-size:12px;padding:4px 8px;color:var(--green);background:#e7f7f0;border-radius:999px}.connect-grid{display:grid;grid-template-columns:1.1fr 1.4fr auto;gap:13px;align-items:end}.connect-grid label,.filters label{display:grid;gap:6px;color:#4d5969;font-weight:600;font-size:12px}input,select{border:1px solid #d8dee8;border-radius:9px;height:40px;padding:0 11px;color:var(--ink);background:#fff;font:inherit;font-weight:400;outline:none;transition:border-color .15s,box-shadow .15s}input:focus,select:focus{border-color:#6c9bf7;box-shadow:0 0 0 3px rgba(37,99,235,.12)}.helper{margin:11px 0 0;color:var(--muted);font-size:12px}.button{border:1px solid transparent;border-radius:9px;min-height:40px;padding:0 15px;font:inherit;font-weight:700;cursor:pointer;white-space:nowrap}.button.primary{color:#fff;background:var(--primary)}.button.primary:hover{background:var(--primary-dark)}.button.ghost{color:#3e4b5d;background:#fff;border-color:#d9e0ea}.button.ghost:hover{background:#f7f9fc}.error{margin:12px 0 0;padding:10px 12px;color:var(--red);background:#fff1f0;border:1px solid #ffd5d2;border-radius:9px}.badge{font-size:12px;font-weight:700;padding:5px 9px;border-radius:999px}.badge.muted{background:#eef1f5;color:#6b7480}.badge.ok{background:#e7f7f0;color:var(--green)}.badge.bad{background:#fff1f0;color:var(--red)}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.stat{padding:17px 18px}.stat span,.stat small{display:block;color:var(--muted)}.stat strong{display:block;font-size:29px;line-height:1.2;margin:6px 0 4px}.stat small{font-size:12px}.layout-grid{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(280px,.75fr);gap:18px}.cards-card,.catalog-card{padding:22px}.filters{display:grid;grid-template-columns:1fr 1.4fr 150px auto auto;gap:9px;align-items:end;margin-bottom:16px}.filters label{font-size:11px}.filters input,.filters select{height:38px}.filters .button{min-height:38px;padding:0 12px}.table-wrap{overflow:auto}.table-wrap table{border-collapse:collapse;width:100%;min-width:730px}.table-wrap th{font-size:11px;color:#7b8491;text-align:left;font-weight:700;border-bottom:1px solid var(--line);padding:11px 10px}.table-wrap td{padding:14px 10px;border-bottom:1px solid #eef1f5;vertical-align:middle}.table-wrap tbody tr:hover{background:#fafcff}.card-identity{display:flex;align-items:center;gap:10px}.card-chip{width:35px;height:24px;border-radius:6px;background:linear-gradient(135deg,#1f3d72,#4e8bd4);position:relative;overflow:hidden}.card-chip:after{content:"";position:absolute;width:24px;height:24px;border-radius:50%;right:-6px;top:-4px;background:rgba(255,255,255,.18)}.card-no{font-weight:700;letter-spacing:.06em}.card-sub{display:block;color:var(--muted);font-size:11px;margin-top:2px}.status{font-size:12px;padding:4px 8px;border-radius:999px;font-weight:700}.status.active{color:var(--green);background:#e7f7f0}.status.paused{color:#8a5b00;background:#fff7de}.status.disabled,.status.retired{color:var(--red);background:#fff1f0}.progress{min-width:150px}.progress-top{display:flex;justify-content:space-between;font-size:12px;margin-bottom:5px}.progress-top strong{font-weight:700}.progress-track{height:7px;border-radius:9px;background:#ecf0f4;overflow:hidden}.progress-fill{height:100%;border-radius:inherit;background:linear-gradient(90deg,#3b82f6,#67a7ff)}.progress-fill.full{background:#f29b38}.muted-text{color:var(--muted);font-size:12px;margin:0 0 14px}.catalog-list{display:grid;gap:9px}.catalog-item{display:flex;align-items:center;justify-content:space-between;border:1px solid #e6eaf0;border-radius:10px;padding:10px 11px}.catalog-item strong{font-size:12px}.catalog-item span{font-size:11px;color:var(--muted)}.policy{margin-top:18px;padding:13px;background:#f8fafc;border:1px solid #e8edf3;border-radius:11px;color:#596474;font-size:12px}.policy strong{color:var(--ink);display:block;margin-bottom:4px}.empty{text-align:center;color:var(--muted);padding:34px 10px}.detail-dialog{width:min(600px,calc(100% - 28px));border:0;border-radius:18px;padding:0;box-shadow:0 24px 70px rgba(15,23,42,.24);color:var(--ink)}.detail-dialog::backdrop{background:rgba(15,23,42,.35)}.dialog-head{padding:22px 24px 16px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between}.icon-button{border:0;background:transparent;font-size:26px;line-height:1;color:#8791a0;cursor:pointer}.detail-body{padding:20px 24px 26px}.detail-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.detail-field{padding:11px 12px;background:#f8fafc;border-radius:10px}.detail-field span{display:block;color:var(--muted);font-size:11px}.detail-field strong{display:block;margin-top:3px}.subscription-list{margin-top:18px;border-top:1px solid var(--line);padding-top:15px}.subscription-row{display:grid;grid-template-columns:1.3fr .7fr .8fr;gap:8px;padding:10px 0;border-bottom:1px solid #eef1f5;font-size:12px}.subscription-row span{color:var(--muted)}
@media(max-width:1000px){.connect-grid{grid-template-columns:1fr 1fr}.connect-grid .button{grid-column:span 2}.stat-grid{grid-template-columns:repeat(2,1fr)}.layout-grid{grid-template-columns:1fr}.filters{grid-template-columns:1fr 1fr 1fr auto auto}}
@media(max-width:640px){.shell{padding:0 14px 35px}.topbar{height:66px}.top-actions .button{padding:0 9px}.notice{font-size:13px}.connect{padding:18px}.connect-grid,.filters{grid-template-columns:1fr}.connect-grid .button{grid-column:auto}.stat-grid{grid-template-columns:1fr 1fr}.cards-card,.catalog-card{padding:16px}.detail-grid{grid-template-columns:1fr}.subscription-row{grid-template-columns:1fr}}
.rules-card{margin-top:18px;padding:22px}.rule-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:16px}.rule-item{padding:12px 13px;border:1px solid #e7ebf1;border-radius:11px;min-width:0}.rule-item span{display:block;color:var(--muted);font-size:11px}.rule-item strong{display:block;margin-top:3px;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rule-item.placeholder{background:#fafbfc}.tier-list{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:18px}.tier-item{border:1px solid #e6eaf0;border-radius:11px;padding:13px}.tier-item-head{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}.tier-item h3{font-size:14px;margin:0}.tier-tag{font-size:10px;padding:3px 6px;border-radius:999px;background:#eef4ff;color:#255aa7;white-space:nowrap}.tier-item dl{margin:11px 0 0;display:grid;grid-template-columns:1fr auto;gap:5px 10px;font-size:11px}.tier-item dt{color:var(--muted)}.tier-item dd{margin:0;font-weight:700;text-align:right}.quote-preview{padding:16px;background:#f8fafc;border:1px solid #e8edf3;border-radius:13px}.quote-preview>div:first-child{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.quote-preview p{color:var(--muted);font-size:12px;margin:3px 0 0}.quote-form{display:grid;grid-template-columns:repeat(5,1fr) auto;gap:10px;align-items:end;margin-top:14px}.quote-form label{display:grid;gap:6px;color:#4d5969;font-size:11px;font-weight:600}.quote-form input,.quote-form select{height:38px}.quote-result{margin-top:15px;padding:13px 14px;border:1px solid #cfe2ff;background:#edf5ff;border-radius:11px;color:#164b8b}.quote-result strong{color:#113b6e}.quote-values{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:8px;font-size:12px}.quote-values span b{font-size:14px;color:var(--ink)}
@media(max-width:1000px){.rule-grid,.tier-list{grid-template-columns:repeat(2,1fr)}.quote-form{grid-template-columns:repeat(3,1fr)}.quote-form .button{grid-column:span 3}}
@media(max-width:640px){.rules-card{padding:16px}.rule-grid,.tier-list,.quote-form{grid-template-columns:1fr 1fr}.quote-form .button{grid-column:span 2}}

/* Agent workbench */
.top-link{color:var(--primary);font-size:12px;font-weight:700;text-decoration:none}.top-link:hover{text-decoration:underline}
.workspace-head{display:flex;justify-content:space-between;align-items:center;padding:20px 22px;margin-bottom:14px}.workspace-head h2{margin:3px 0 2px;font-size:20px}.workspace-head .muted-text{margin:0}.workspace-actions{display:flex;align-items:center;gap:10px}.mode-badge{font-size:11px;font-weight:800;letter-spacing:.04em;padding:6px 9px;border-radius:999px;color:#82520b;background:#fff5d8;border:1px solid #f0d389}.agent-stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.agent-stat{padding:16px 18px}.agent-stat span,.agent-stat small{display:block;color:var(--muted)}.agent-stat strong{display:block;font-size:25px;line-height:1.2;margin:6px 0 4px}.agent-stat small{font-size:12px}.agent-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,.75fr);gap:18px;margin-bottom:18px}.issue-card,.wallet-card,.orders-card{padding:22px}.issue-form{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.issue-form label,.topup-form label{display:grid;gap:6px;color:#4d5969;font-size:11px;font-weight:700}.issue-form input,.issue-form select{height:38px}.issue-actions{grid-column:1/-1;display:flex;align-items:center;gap:12px;margin-top:2px}.issue-actions .muted-text{margin:0}.wallet-balance{padding:16px;border-radius:13px;background:linear-gradient(135deg,#1c4079,#2b68b0);color:#fff}.wallet-balance span,.wallet-balance small{display:block;color:#d6e7ff;font-size:11px}.wallet-balance strong{display:block;font-size:30px;line-height:1.2;margin:7px 0}.topup-form{display:flex;gap:8px;align-items:end;margin-top:14px}.topup-form label{flex:1}.topup-form input{height:38px}.orders-card{margin-bottom:18px}.orders-card .table-wrap table{min-width:720px}.row-actions{display:flex;gap:6px;align-items:center}.link-button{border:0;background:transparent!important;color:var(--primary)!important;padding:0 5px;min-height:30px;font-size:12px}
@media(max-width:1000px){.agent-stat-grid{grid-template-columns:repeat(2,1fr)}.agent-grid{grid-template-columns:1fr}.issue-form{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.workspace-head{display:block;padding:17px}.workspace-actions{margin-top:12px;justify-content:space-between}.agent-stat-grid{grid-template-columns:1fr 1fr}.issue-card,.wallet-card,.orders-card{padding:16px}.issue-form{grid-template-columns:1fr}.issue-actions{display:block}.issue-actions .button{width:100%;margin-bottom:6px}.topup-form{display:grid;grid-template-columns:1fr}.row-actions{display:grid;gap:3px}}
.topup-result{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:12px;padding:10px 12px;border:1px solid #dbe7f6;background:#f4f8fd;border-radius:10px;color:#2f4c6d;font-size:12px}.topup-result span{color:var(--muted)}.topup-result .button{min-height:30px;padding:0 9px;margin-left:auto}
.ledger-title{font-size:12px;font-weight:800;margin-top:18px;padding-top:14px;border-top:1px solid #e8edf3}.ledger-list{margin-top:7px}.ledger-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 0;border-bottom:1px solid #eef1f5;font-size:12px}.ledger-row div{min-width:0}.ledger-row span{display:block;color:var(--muted);font-size:10px}.ledger-row b{white-space:nowrap}.ledger-row b.positive{color:var(--green)}.ledger-row b.negative{color:var(--red)}.ledger-list .empty{padding:14px 0;font-size:12px}


/* Landing visual system alignment */
:root{--bg:#f3f2ed;--card:#fff;--ink:#161817;--muted:#686963;--line:#d8d6cd;--primary:#ff6147;--orange:#ff6147;--primary-dark:#e94b34;--green:#2da96c;--amber:#956400;--red:#b42318;--black:#1a1b19;--yellow:#d7ef46;--shadow:0 18px 48px rgba(24,25,23,.11)}
body{background:radial-gradient(circle at 8% -10%,rgba(215,239,70,.16),transparent 28%),radial-gradient(circle at 94% 8%,rgba(255,97,71,.08),transparent 26%),var(--bg);color:var(--ink);font:14px/1.55 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
.shell{max-width:1440px;padding:0 42px 68px}
.topbar{height:90px;border-bottom:1px solid rgba(22,24,23,.1)}
.brand{gap:11px;font-size:16px}.brand-mark{width:38px;height:38px;border-radius:12px;background:var(--black);color:var(--yellow);font:800 22px/1 "Arial Rounded MT Bold","Avenir Next",Inter,sans-serif;transform:rotate(-7deg);box-shadow:none}.brand strong{font:800 18px/1 "Arial Rounded MT Bold","Avenir Next",Inter,sans-serif;letter-spacing:-.03em}.brand small{color:var(--muted);font-size:9px;letter-spacing:.14em;text-transform:uppercase;margin-top:3px}
.top-actions{gap:9px}.top-link{color:var(--ink);font-size:12px}.top-link:hover{color:var(--primary);text-decoration:none}
.card{background:rgba(255,255,255,.92);border:1px solid rgba(216,214,205,.94);border-radius:20px;box-shadow:var(--shadow);transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}.card:hover{border-color:#c8c5bb;box-shadow:0 22px 54px rgba(24,25,23,.14)}
.notice{gap:14px;padding:18px 20px;background:var(--black);border:1px solid var(--black);border-radius:18px;color:#fff;box-shadow:0 16px 34px rgba(26,27,25,.18);margin-bottom:22px}.notice-icon{width:24px;height:24px;background:var(--yellow);color:var(--black);font-size:13px}.notice p{color:#b7bab1;font-size:12px}
.eyebrow{color:var(--primary);font-size:10px;letter-spacing:.16em}.section-heading{margin-bottom:20px}.section-heading h1,.section-heading h2{font-family:"Arial Rounded MT Bold","Avenir Next",Inter,-apple-system,sans-serif;letter-spacing:-.04em}.section-heading h1{font-size:25px}.section-heading h2{font-size:21px}.lock{color:#277b52;background:#e5f5e9;border:1px solid #c6e8d1;padding:5px 9px}
.connect{padding:28px;margin-bottom:22px}.connect-grid{gap:14px}.connect-grid label,.filters label,.issue-form label,.topup-form label,.quote-form label{color:#555750;font-size:11px;letter-spacing:.02em}input,select{border:1px solid #cfcfc6;border-radius:10px;height:42px;background:#fffefb;color:var(--ink);transition:border-color .18s,box-shadow .18s,transform .18s}input:hover,select:hover{border-color:#aaa9a1}input:focus,select:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(255,97,71,.14);transform:translateY(-1px)}
.button{min-height:42px;border-radius:10px;padding:0 16px;transition:transform .18s ease,background .18s ease,border-color .18s ease,box-shadow .18s ease}.button:hover{transform:translateY(-2px)}.button:active,.button.is-pressed{transform:translateY(0) scale(.98)}.button.primary{background:var(--primary);box-shadow:0 10px 22px rgba(255,97,71,.2)}.button.primary:hover{background:var(--primary-dark);box-shadow:0 12px 26px rgba(255,97,71,.28)}.button.ghost{color:var(--ink);background:rgba(255,255,255,.7);border-color:#bdbcb4}.button.ghost:hover{background:#fff;border-color:var(--ink)}.button.link-button{color:var(--primary)!important}.button:focus-visible,.icon-button:focus-visible,.top-link:focus-visible{outline:3px solid rgba(255,97,71,.35);outline-offset:3px}
.badge{font-size:11px;padding:6px 10px}.badge.muted{background:#e9e8e1;color:#686963}.badge.ok{background:#e2f4e8;color:#277b52}.badge.bad{background:#fff0ed;color:#aa3729}
.workspace-head{padding:23px 25px;margin-bottom:16px;background:var(--black);border-color:var(--black);color:#fff}.workspace-head .eyebrow{color:var(--yellow)}.workspace-head .muted-text{color:#b7bab1}.workspace-head .button.ghost{background:transparent;color:#fff;border-color:#696c65}.workspace-head .button.ghost:hover{background:#fff;color:var(--ink)}.workspace-head h2{font:800 25px/1.12 "Arial Rounded MT Bold","Avenir Next",Inter,sans-serif;letter-spacing:-.04em}.mode-badge{color:#5b4a00;background:var(--yellow);border:0;padding:6px 10px}
.agent-stat-grid{gap:14px}.agent-stat{padding:19px 20px}.agent-stat:hover,.stat:hover{transform:translateY(-3px)}.agent-stat span,.agent-stat small,.stat span,.stat small{color:var(--muted)}.agent-stat strong,.stat strong{font-family:"Arial Rounded MT Bold","Avenir Next",Inter,sans-serif;letter-spacing:-.04em}.agent-stat strong{font-size:29px}.stat strong{font-size:30px}
.issue-card,.wallet-card,.orders-card,.cards-card,.catalog-card,.rules-card{padding:25px}.issue-card .muted-text,.wallet-card .muted-text,.rules-card .muted-text{color:#72736c}.issue-form{gap:13px}.issue-form input,.issue-form select,.topup-form input,.quote-form input,.quote-form select{height:40px}.issue-actions{margin-top:4px}.wallet-balance{padding:19px;border-radius:16px;background:linear-gradient(135deg,#1a1b19 0%,#2c4357 64%,#4b86a0 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.17),0 16px 30px rgba(31,51,67,.2)}.wallet-balance strong{font-family:"Arial Rounded MT Bold","Avenir Next",Inter,sans-serif;font-size:34px;letter-spacing:-.04em}.topup-result,.quote-result{border-color:#d9d5c6;background:#f8f4e9;color:#5b5545}.quote-result strong{color:var(--ink)}.quote-values span b{font-family:"Arial Rounded MT Bold","Avenir Next",Inter,sans-serif}
.table-wrap table{min-width:730px}.table-wrap th{color:#7b7d75;border-bottom-color:var(--line);letter-spacing:.04em;text-transform:uppercase;font-size:10px}.table-wrap td{border-bottom-color:#ebe9e1}.table-wrap tbody tr{transition:background .16s}.table-wrap tbody tr:hover{background:#fff8f4}.card-chip{background:linear-gradient(135deg,#172844 0%,#2f6596 58%,#72bad1 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 5px 12px rgba(30,56,88,.2)}.status.active{color:#277b52;background:#e2f4e8}.status.paused{color:#865d00;background:#fff3cb}.status.disabled,.status.retired{color:#aa3729;background:#fff0ed}.progress-track{background:#e7e5dd}.progress-fill{background:linear-gradient(90deg,var(--orange,#ff6147),#ff9a73)}.progress-fill.full{background:linear-gradient(90deg,#e7a52f,#f4c65b)}
.catalog-item,.rule-item,.tier-item{border-color:#dfddd4;background:rgba(255,255,255,.55);transition:transform .18s,background .18s,border-color .18s}.catalog-item:hover,.rule-item:hover,.tier-item:hover{transform:translateY(-2px);background:#fff8f4;border-color:#f1b4a7}.catalog-item strong,.tier-item h3{font-family:"Arial Rounded MT Bold","Avenir Next",Inter,sans-serif}.policy,.quote-preview{background:#f8f4e9;border-color:#e7deca;color:#666052}.policy strong{color:var(--ink)}.tier-tag{background:#fff0ed;color:#a94333}.rule-item strong,.tier-item dd{font-family:"Arial Rounded MT Bold","Avenir Next",Inter,sans-serif}
.rules-card{margin-top:18px}.detail-dialog{border-radius:22px;box-shadow:0 30px 90px rgba(24,25,23,.28)}.dialog-head{padding:24px 26px 18px;background:var(--black);color:#fff;border-bottom:0}.dialog-head .eyebrow{color:var(--yellow)}.icon-button{color:#d8dbd3}.detail-body{padding:22px 26px 28px;background:#fff}.detail-field{background:#f8f4e9;border:1px solid #e7deca}.subscription-list{border-top-color:var(--line)}
.empty{padding:38px 10px;color:#7a7b74}.error{border-color:#f2b8ac;background:#fff0ed;color:#a94333}.ledger-title{border-top-color:var(--line)}.ledger-row{border-bottom-color:#ebe9e1}.ledger-row b.positive{color:#277b52}.ledger-row b.negative{color:#aa3729}
@media(max-width:760px){.shell{padding:0 17px 48px}.topbar{height:76px}.notice{padding:16px}.connect{padding:21px}.workspace-head{padding:20px}.issue-card,.wallet-card,.orders-card,.cards-card,.catalog-card,.rules-card{padding:20px}.section-heading h1{font-size:22px}.section-heading h2{font-size:19px}}

/* Low-noise workbench structure */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.connect[hidden],.view-panel[hidden],.catalog-content[hidden]{display:none!important}
.app-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:28px;align-items:start}
.sidebar{position:sticky;top:18px;display:flex;flex-direction:column;min-height:calc(100vh - 126px);padding:16px 10px;border-right:1px solid rgba(22,24,23,.08)}
.sidebar-caption{padding:8px 12px 10px;color:var(--muted);font-size:10px;font-weight:800;letter-spacing:.16em;text-transform:uppercase}
.side-nav{display:grid;gap:4px}.side-link{display:flex;align-items:center;gap:10px;width:100%;border:0;border-radius:12px;padding:11px 12px;background:transparent;color:var(--muted);font:700 13px/1.2 inherit;text-align:left;cursor:pointer;transition:background .18s,color .18s,transform .18s}.side-link:hover{background:#fff8f4;color:var(--ink);transform:translateX(2px)}.side-link.is-active{background:var(--black);color:#fff;box-shadow:0 10px 24px rgba(26,27,25,.16)}.nav-icon{display:grid;place-items:center;width:20px;color:var(--primary);font-size:16px}.side-link.is-active .nav-icon{color:var(--yellow)}.nav-count{margin-left:auto;color:inherit;opacity:.65;font-size:11px}.sidebar-foot{display:flex;gap:9px;align-items:flex-start;margin-top:auto;padding:14px 12px;color:var(--muted);font-size:11px;line-height:1.45;border-top:1px solid rgba(22,24,23,.08)}.sidebar-dot{width:8px;height:8px;margin-top:4px;border-radius:50%;background:var(--green);box-shadow:0 0 0 4px rgba(45,169,108,.12)}.sidebar-foot small{font-size:10px;color:#92938b}.main-content{min-width:0}.view-panel{animation:panel-in .2s ease both}.page-titlebar{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:4px 0 20px}.page-titlebar h1{margin:4px 0 4px;font:800 31px/1.05 "Arial Rounded MT Bold","Avenir Next",Inter,sans-serif;letter-spacing:-.05em}.page-titlebar p{margin:0;color:var(--muted);font-size:13px}.button-light{background:#fff;color:var(--ink);border-color:#fff;box-shadow:0 10px 22px rgba(255,255,255,.12)}.button-light:hover{background:var(--yellow);border-color:var(--yellow);color:var(--black)}.overview-next{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-top:18px;padding:24px 26px;border:1px solid #dfddd4;border-radius:20px;background:linear-gradient(120deg,#fff 0%,#fff8f4 100%);box-shadow:var(--shadow)}.overview-next h2{margin:4px 0 5px;font:800 24px/1.1 "Arial Rounded MT Bold","Avenir Next",Inter,sans-serif;letter-spacing:-.04em}.overview-next p{margin:0;color:var(--muted);font-size:13px}.overview-actions{display:flex;gap:9px;flex:none}.compact-stats{margin-bottom:18px}.catalog-drawer{margin-top:14px;padding:18px 22px}.catalog-drawer .section-heading{align-items:center;margin:0}.catalog-drawer .section-heading h2{font-size:17px}.catalog-content{padding-top:14px}.table-toolbar{display:flex;gap:7px;flex-wrap:wrap;margin:-2px 0 15px}.filter-chip{border:1px solid #d8d6cd;border-radius:999px;padding:7px 11px;background:#fff;color:var(--muted);font:700 11px/1 inherit;cursor:pointer;transition:all .16s}.filter-chip:hover{border-color:var(--primary);color:var(--ink)}.filter-chip.active{border-color:var(--black);background:var(--black);color:#fff}.funds-secondary{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.funds-secondary>div{padding:13px 14px;border:1px solid #e1dfd6;border-radius:13px;background:#fff}.funds-secondary span,.funds-secondary small{display:block;color:var(--muted);font-size:11px}.funds-secondary strong{display:block;margin:3px 0;font:800 18px/1.1 "Arial Rounded MT Bold","Avenir Next",Inter,sans-serif}.settings-summary{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding:22px 24px;margin-bottom:18px}.settings-summary h2{margin:4px 0 3px;font:800 22px/1.1 "Arial Rounded MT Bold","Avenir Next",Inter,sans-serif}.settings-summary p{margin:0}.quote-disclosure{margin-top:18px;padding:16px 18px;border:1px solid #dfddd4;border-radius:15px;background:#fff}.quote-disclosure summary{cursor:pointer;font-weight:800;list-style:none}.quote-disclosure summary::-webkit-details-marker{display:none}.quote-disclosure summary:after{content:'＋';float:right;color:var(--primary);font-size:18px;line-height:1}.quote-disclosure[open] summary:after{content:'−'}.quote-disclosure .quote-preview{margin-top:14px}
@keyframes panel-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@media(max-width:900px){.app-layout{grid-template-columns:1fr;gap:16px}.sidebar{position:static;min-height:0;display:flex;flex-direction:row;align-items:center;gap:12px;padding:10px 0;border-right:0;border-bottom:1px solid rgba(22,24,23,.08)}.sidebar-caption,.sidebar-foot{display:none}.side-nav{display:flex;gap:5px;overflow:auto;flex:1}.side-link{width:auto;min-width:max-content}.main-content{width:100%}}
@media(max-width:640px){.app-layout{gap:12px}.page-titlebar{display:block}.page-titlebar .button,.page-titlebar>a{display:inline-flex;margin-top:13px}.overview-next{display:block;padding:20px}.overview-actions{margin-top:18px;display:grid;grid-template-columns:1fr}.funds-secondary{grid-template-columns:1fr}.settings-summary{display:block;padding:19px}.settings-summary .lock{display:inline-flex;margin-top:12px}.catalog-drawer{padding:16px}.sidebar{margin:0 -2px}}
.transaction-list{margin-top:18px}.transaction-list strong{font-size:13px}.transaction-list .empty{padding:18px 0 4px;font-size:12px}
.virtual-card-preview{position:relative;isolation:isolate;overflow:hidden;min-height:235px;margin:0 0 13px;padding:22px 24px;color:#f6f8fb;border:1px solid rgba(255,255,255,.18);border-radius:22px;background:linear-gradient(135deg,#152944 0%,#1d4d70 42%,#73b6c7 100%);box-shadow:0 22px 35px rgba(20,43,68,.24),inset 0 1px 0 rgba(255,255,255,.34);transform:perspective(900px) rotateX(1deg);transition:transform .25s ease,box-shadow .25s ease}.virtual-card-preview:hover{transform:perspective(900px) rotateX(0deg) translateY(-2px);box-shadow:0 28px 44px rgba(20,43,68,.29),inset 0 1px 0 rgba(255,255,255,.38)}.virtual-card-preview:after{content:"";position:absolute;inset:-35% -15% auto 28%;height:170%;z-index:-1;background:linear-gradient(118deg,transparent 24%,rgba(255,255,255,.16) 43%,transparent 61%);transform:rotate(8deg);pointer-events:none}.virtual-card-glow{position:absolute;right:-55px;top:-70px;width:210px;height:210px;border-radius:50%;background:rgba(255,255,255,.2);filter:blur(22px);z-index:-1}.virtual-card-top,.virtual-card-bottom{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.virtual-card-brand{font:800 17px/1 "Arial Rounded MT Bold","Avenir Next",Inter,sans-serif;letter-spacing:-.04em}.virtual-card-type{font-size:10px;letter-spacing:.12em;text-transform:uppercase;opacity:.78}.virtual-card-chip{width:39px;height:29px;margin-top:32px;border:1px solid rgba(255,255,255,.5);border-radius:7px;background:linear-gradient(135deg,#f6df9a,#b3914b);box-shadow:inset 0 1px 2px rgba(255,255,255,.65),0 5px 12px rgba(11,26,43,.22)}.virtual-card-number{margin-top:16px;font:700 22px/1.1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.08em;text-shadow:0 2px 4px rgba(12,27,44,.32)}.virtual-card-bottom{align-items:flex-end;margin-top:26px}.virtual-card-bottom>div{display:grid;gap:2px}.virtual-card-bottom span{font-size:8px;letter-spacing:.11em;opacity:.7}.virtual-card-bottom strong{font:700 12px/1.1 ui-monospace,SFMono-Regular,Menlo,monospace}.virtual-card-network{font-size:15px;letter-spacing:.08em;opacity:.9}.safe-copy-row{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:-3px 0 2px}.copy-safe{min-height:30px;padding:0 10px;border:1px solid #d9ccb3;border-radius:999px;background:#faf5e9;color:#735a2b;font:700 11px/1 inherit;cursor:pointer;transition:background .16s,border-color .16s,transform .16s}.copy-safe:hover{border-color:#b59a63;background:#fff8e9;transform:translateY(-1px)}.copy-safe:disabled{cursor:default;color:#277b52;border-color:#b9dec8;background:#edf8f0}.safe-copy-row>span{color:var(--muted);font-size:10px;margin-left:3px}@media(max-width:520px){.virtual-card-preview{min-height:210px;padding:19px}.virtual-card-number{font-size:18px}.virtual-card-bottom{margin-top:21px}.safe-copy-row>span{width:100%;margin-left:0}}
.nav-group{display:grid;gap:2px}.side-subnav{display:grid;gap:2px;margin:0 0 4px 42px;padding:2px 0 3px;border-left:1px solid rgba(22,24,23,.12)}.side-sub-link{display:block;border:0;border-radius:8px;padding:7px 10px;background:transparent;color:var(--muted);font:600 11px/1.2 inherit;text-align:left;cursor:pointer;transition:background .16s,color .16s}.side-sub-link:hover{background:#fff8f4;color:var(--ink)}.side-sub-link:focus-visible{outline:2px solid rgba(255,97,71,.38);outline-offset:1px}

/* ZovoCard-inspired panel refinement: warm shell, quiet navigation, one clear action per page. */
:root{--bg:#f1ede2;--card:#fffdf8;--ink:#211f1b;--muted:#777267;--line:#ded7c8;--primary:#a17d31;--primary-dark:#87641f;--green:#2d9363;--black:#1b1c1a;--yellow:#e7cf77;--shadow:0 14px 32px rgba(73,58,31,.08)}
body{background:radial-gradient(circle at 0 0,rgba(231,207,119,.16),transparent 28%),var(--bg);color:var(--ink)}
.shell{max-width:1600px;padding:0 24px 54px}.topbar{height:76px;margin:14px 0 18px;padding:0 18px;background:rgba(255,253,248,.82);border:1px solid rgba(222,215,200,.9);border-radius:18px;box-shadow:0 8px 24px rgba(73,58,31,.05)}
.top-actions{gap:8px}.top-search{display:flex;align-items:center;gap:6px;height:38px;min-width:168px;padding:0 10px;border:1px solid var(--line);border-radius:999px;background:#fffdf8;color:var(--muted)}.top-search span{font-size:20px;line-height:1}.top-search input{border:0!important;box-shadow:none!important;transform:none!important;height:32px;padding:0;width:118px;background:transparent;font-size:12px}.top-search input:focus{outline:0}
.app-layout{grid-template-columns:238px minmax(0,1fr);gap:24px}.sidebar{top:104px;min-height:calc(100vh - 132px);padding:20px 13px;background:#e6dece;border:1px solid #d8cfbd;border-radius:22px;box-shadow:0 10px 28px rgba(73,58,31,.06)}.sidebar-caption{color:#988d7b}.side-link{border-radius:11px;color:#716b60;padding:11px 13px}.side-link:hover{background:#f6f1e7;color:var(--ink);transform:none}.side-link.is-active{background:#f8f3e9;color:var(--ink);box-shadow:0 4px 12px rgba(73,58,31,.08)}.side-link.is-active .nav-icon{color:var(--primary)}.nav-icon{color:#756c5e}.side-subnav{border-left-color:#cabda7}.side-sub-link:hover{background:#f6f1e7;color:var(--ink)}.sidebar-foot{border-top-color:#d4c9b6}.sidebar-dot{background:var(--green);box-shadow:0 0 0 4px rgba(45,147,99,.13)}
.card{background:rgba(255,253,248,.95);border-color:#ded7c8;border-radius:18px;box-shadow:var(--shadow)}.card:hover{border-color:#d3c8b4;box-shadow:0 18px 36px rgba(73,58,31,.1)}.notice{background:#272722;border-color:#272722;box-shadow:0 12px 24px rgba(39,39,34,.14)}.workspace-head{background:#272722;border-color:#272722;box-shadow:0 14px 30px rgba(39,39,34,.15)}
.agent-stat-grid{grid-template-columns:minmax(0,2fr) repeat(2,minmax(150px,1fr));gap:12px}.agent-stat{padding:18px 20px}.agent-stat:hover,.stat:hover{transform:none}.balance-stat{background:linear-gradient(135deg,#fffdf8,#f1e8d3);border-color:#d9c9a8}.balance-stat strong{font-size:34px;color:#8b6825}.overview-next{background:#fffdf8;border-color:#ded7c8;box-shadow:none}.issue-card,.wallet-card,.orders-card,.cards-card,.catalog-card,.rules-card{padding:24px}.page-titlebar{margin-top:6px}.page-titlebar h1{font-size:33px}.funds-secondary>div{background:#faf6ed;border-color:#e4dac8}.wallet-balance{background:linear-gradient(135deg,#5b4524,#947033 60%,#c09a55);box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 12px 24px rgba(111,79,30,.2)}
.topup-quote{display:grid;grid-template-columns:auto auto;gap:3px 12px;align-items:baseline;margin-top:12px;padding:12px 14px;border:1px solid #eadfc9;border-radius:13px;background:#faf5e9;color:#6e644f}.topup-quote span{font-size:11px}.topup-quote strong{font:800 18px/1.2 "Arial Rounded MT Bold","Avenir Next",Inter,sans-serif;color:#8b6825;text-align:right}.topup-quote small{grid-column:1/-1;color:#988e7b;font-size:11px}.quote-result{background:#faf5e9;border-color:#eadfc9;color:#6e644f}.fee-note{display:block;margin-top:9px;color:#8d8372;font-size:11px}.quote-values span b{color:var(--ink)}
@media(max-width:900px){.top-search{display:none}.app-layout{grid-template-columns:1fr}.sidebar{top:auto;background:transparent;border:0;border-bottom:1px solid #d8cfbd;border-radius:0;box-shadow:none;padding:8px 0}.side-link.is-active{background:#f8f3e9}.agent-stat-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:640px){.shell{padding:0 12px 42px}.topbar{margin-top:8px;padding:0 11px}.agent-stat-grid{grid-template-columns:1fr 1fr}.balance-stat{grid-column:1/-1}.topup-quote{grid-template-columns:1fr auto}.issue-card,.wallet-card,.orders-card,.cards-card,.catalog-card,.rules-card{padding:18px}}
.topup-status{min-height:18px;margin:9px 0 0;color:#6e644f;font-size:12px}.topup-status.pending{color:#8b6825}.topup-status.success{color:#23744e}.topup-status.failed{color:#b42318}.topup-status:empty{display:none}

/* Agent overview: keep the first screen task-oriented without adding new API calls. */
.topbar{position:sticky;top:12px;z-index:20;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.overview-workbench{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);gap:14px;margin-top:14px}
.overview-queue,.overview-shortcuts{padding:20px 22px;box-shadow:none}
.overview-queue .section-heading,.overview-shortcuts .section-heading{align-items:center;margin-bottom:10px}
.overview-queue .section-heading h2,.overview-shortcuts .section-heading h2{font-size:18px}
.overview-live-dot{width:9px;height:9px;border-radius:50%;background:var(--green);box-shadow:0 0 0 5px rgba(45,147,99,.12)}
.overview-queue-list{display:grid;gap:3px}
.overview-queue-item,.overview-shortcut{width:100%;display:flex;align-items:center;gap:11px;border:0;border-top:1px solid #ebe5d9;padding:12px 0;background:transparent;color:var(--ink);text-align:left;font:inherit;cursor:pointer}
.overview-queue-item:first-child{border-top:0}
.overview-queue-item:hover,.overview-shortcut:hover{color:var(--primary)}
.overview-queue-item:focus-visible,.overview-shortcut:focus-visible{outline:2px solid rgba(161,125,49,.4);outline-offset:3px;border-radius:8px}
.overview-queue-icon,.shortcut-mark{display:grid;place-items:center;flex:none;width:30px;height:30px;border-radius:10px;font-weight:800}
.overview-queue-icon.is-amber{background:#fff2d5;color:#936b1e}.overview-queue-icon.is-blue{background:#e9f0f8;color:#3f6790}.overview-queue-icon.is-green{background:#e5f5e9;color:#2d9363}
.overview-queue-item>span:nth-child(2),.overview-shortcut>span:nth-child(2){display:grid;gap:2px;min-width:0}
.overview-queue-item strong,.overview-shortcut strong{font-size:12px}.overview-queue-item small,.overview-shortcut small{font-size:10px;color:var(--muted);font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.overview-queue-item>b{margin-left:auto;font:800 14px/1 "Arial Rounded MT Bold","Avenir Next",Inter,sans-serif;color:var(--ink);white-space:nowrap}
.overview-shortcut-grid{display:grid;gap:2px}.overview-shortcut{padding:11px 0}.overview-shortcut>span:last-child{margin-left:auto;color:#a69b87;font-size:16px}.shortcut-mark{background:#f5eddb;color:#94702c;font-size:16px}
@media(max-width:760px){.overview-workbench{grid-template-columns:1fr}.overview-queue,.overview-shortcuts{padding:18px}.topbar{top:8px}}
@media(max-width:520px){.overview-next{padding:20px}.overview-queue-item small,.overview-shortcut small{white-space:normal}.overview-shortcuts .lock{display:none}}

/* Read-only supplier snapshot: metadata only, never PAN/CVV or write actions. */
.page-actions{display:flex;align-items:center;gap:8px;flex:none}.provider-sync-card{margin-bottom:18px;padding:22px 24px;background:linear-gradient(120deg,#fffdf8 0%,#f7f0df 100%)}.provider-sync-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 14px;border:1px solid #eadfc9;border-radius:13px;background:#faf5e9}.provider-sync-head p{margin:0;font-size:12px}.provider-sync-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:14px}.provider-sync-meta{display:grid;gap:4px;padding:12px 14px;border:1px solid #e5dcc9;border-radius:12px;background:rgba(255,253,248,.82)}.provider-sync-meta span,.provider-card-row span{color:var(--muted);font-size:10px}.provider-sync-meta strong{font:800 15px/1.2 "Arial Rounded MT Bold","Avenir Next",Inter,sans-serif}.provider-sync-cards{display:grid;gap:7px;margin-top:12px}.provider-card-row{display:grid;grid-template-columns:minmax(170px,1.2fr) repeat(3,minmax(115px,1fr));align-items:center;gap:14px;padding:11px 13px;border:1px solid #e5dcc9;border-radius:12px;background:rgba(255,255,255,.7)}.provider-card-row>div{display:grid;gap:3px;min-width:0}.provider-card-row strong{font-size:12px}.provider-card-row .provider-status{color:#8e8778}.provider-card-row .provider-status.is-active{color:var(--green)}.provider-sync-error{display:grid;gap:4px;padding:12px 14px;border:1px solid #f2b8ac;border-radius:12px;background:#fff0ed;color:#a94333}.provider-sync-error strong{font-size:13px}.provider-sync-error span{font:700 12px/1.3 ui-monospace,SFMono-Regular,Menlo,monospace}.provider-sync-error small{color:#8f554d;font-size:11px}@media(max-width:760px){.page-actions{margin-top:13px}.provider-sync-head{display:block}.provider-sync-head .button{margin-top:11px;width:100%}.provider-sync-summary{grid-template-columns:1fr 1fr}.provider-card-row{grid-template-columns:1fr 1fr;gap:9px}}@media(max-width:420px){.provider-sync-summary{grid-template-columns:1fr}.provider-card-row{grid-template-columns:1fr}.provider-sync-card{padding:18px}}
.provider-auto-status{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:10px;padding:9px 12px;border:1px dashed #d9ccb3;border-radius:11px;color:var(--muted);font-size:11px}.provider-auto-status strong{color:var(--ink);font-size:11px}.provider-auto-dot{width:7px;height:7px;border-radius:50%;background:#b8b0a2}.provider-auto-dot.is-on{background:var(--green);box-shadow:0 0 0 3px rgba(49,157,104,.12)}
.provider-sync-note{grid-column:1 / -1;padding:10px 12px;border-radius:10px;background:#eef8ee;color:#2d6d42;font-size:11px}.provider-sync-note.is-warning{background:#fff0ed;color:#a94333}
.provider-sync-meta-wide{grid-column:span 2}
@media(max-width:420px){.provider-sync-meta-wide{grid-column:auto}}
.credential-reveal{margin:0 26px 26px;padding:18px;border:1px solid #ded7c8;border-radius:14px;background:#faf6ed}.credential-reveal[hidden],.reveal-values[hidden],#revealCredentials[hidden],#hideCredentials[hidden]{display:none!important}.reveal-message{margin:10px 0 0;color:var(--muted);font-size:12px}.reveal-message:empty{display:none}.reveal-values{display:grid;gap:10px;margin-top:12px}.reveal-value{display:grid;grid-template-columns:82px minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}.reveal-value>span{color:var(--muted);font-size:11px}.reveal-value>strong{font:700 15px/1.3 ui-monospace,SFMono-Regular,Menlo,monospace;overflow-wrap:anywhere;user-select:text}.reveal-values>.button{justify-self:start}@media(max-width:520px){.credential-reveal{margin:0 19px 19px;padding:14px}.reveal-value{grid-template-columns:1fr auto}.reveal-value>span{grid-column:1/-1}.reveal-value>strong{font-size:14px}}

.detail-history{padding-top:0}.detail-history:empty{display:none}.detail-history>.subscription-list:first-child{margin-top:0}

.brand-mark-image{display:block;object-fit:contain;background:transparent!important;color:transparent!important;transform:none!important;box-shadow:none!important}
.button:disabled{cursor:wait;opacity:.62}

/* Section navigation stays compact until a section is selected. */
.side-link.has-subnav{position:relative}
.nav-chevron{margin-left:4px;color:currentColor;font-size:13px;line-height:1;opacity:.58;transition:transform .18s ease,opacity .18s ease}
.nav-group.is-open>.side-link .nav-chevron{transform:rotate(180deg);opacity:.9}
.side-subnav[hidden]{display:none!important}
.side-subnav:not([hidden]){animation:nav-subnav-in .16s ease both}
@keyframes nav-subnav-in{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:none}}

.credential-reveal .copy-safe:disabled{color:var(--muted);border-color:var(--line);background:#f1eee7;opacity:.7;transform:none}.reveal-value>strong:empty:before{content:"—";color:var(--muted)}.detail-metadata{padding-top:0}.detail-metadata .detail-grid{margin-top:0}

/* Developer workspace: credentials, capabilities, then the first integration. */
.developer-view{min-width:0}.developer-intro,.developer-keys,.developer-guide{padding:26px;margin-bottom:18px}.developer-intro{background:linear-gradient(115deg,#fffdf8,#f5edda)}.developer-intro-heading{display:flex;align-items:center;gap:15px}.developer-symbol{display:grid;place-items:center;flex:none;width:54px;height:54px;border-radius:17px;background:#27261f;color:#e6cb87;font:700 21px/1 ui-monospace,SFMono-Regular,Menlo,monospace;box-shadow:0 8px 16px #34251018}.developer-intro-heading h2{font-size:20px;margin:0 0 5px;letter-spacing:-.03em}.developer-intro-heading p{margin:0;font-size:12px;color:var(--muted);max-width:650px;line-height:1.7}.developer-intro-heading>.badge{flex:none;margin-left:auto}.developer-facts{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr) minmax(0,1fr);gap:20px;border-top:1px solid #e4d9c0;margin-top:22px;padding-top:20px}.developer-facts>div{min-width:0}.developer-facts>div>span{display:block;font-size:11px;color:var(--muted);margin-bottom:8px}.developer-facts strong{font-size:13px}.developer-base{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.developer-base code{font-size:12px;overflow-wrap:anywhere;color:#7f5a1a}.developer-base .copy-safe{margin:0;white-space:nowrap}.developer-status{min-height:0;margin:0 0 14px;color:var(--green);font-size:12px;line-height:1.7}.developer-status:empty{display:none}.developer-status.is-error{padding:12px 15px;border:1px solid #efc2b5;border-radius:12px;background:#fff2ed;color:#a94333}.developer-keys .section-heading{align-items:center}.developer-keys .section-heading .muted-text{margin:7px 0 0}.developer-key-list{margin-top:18px}.developer-key-row{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) auto;align-items:center;gap:18px;padding:18px 0;border-top:1px solid var(--line)}.developer-key-row.is-revoked{opacity:.62}.developer-key-identity{min-width:0;display:grid;gap:4px}.developer-key-identity>strong{font-size:14px;overflow-wrap:anywhere}.developer-key-identity>code{font-size:11px;overflow-wrap:anywhere;color:#8b6a2b}.developer-key-dates{font-size:10px;color:var(--muted);line-height:1.7}.developer-key-scopes{display:flex;gap:5px;flex-wrap:wrap}.developer-key-scopes>span{display:inline-flex;font-size:10px;color:#756241;background:#f4eee1;padding:4px 7px;border:1px solid #e5dac5;border-radius:7px}.developer-revoked{font-size:11px;color:var(--muted)}.developer-revoke.button{font-size:11px;min-height:34px;padding:0 11px;color:#a04a38}.developer-key-empty{text-align:center;padding:24px 15px 27px;border:1px dashed #ddd1b9;border-radius:14px;background:#fcfaf5}.developer-key-empty>span{display:block;font-size:34px;color:#aa8847;line-height:1;margin-bottom:9px}.developer-key-empty>strong{font-size:14px}.developer-key-empty>p{margin:5px 0 0;font-size:12px;color:var(--muted)}.developer-create{margin-top:20px;border:1px solid var(--line);border-radius:15px;padding:18px 20px;background:#faf7ee}.developer-create>summary{font-weight:700;font-size:14px;cursor:pointer;list-style:none;display:flex;align-items:center;gap:8px}.developer-create>summary::-webkit-details-marker{display:none}.developer-create>summary:before{content:'＋';font-size:18px;color:var(--primary)}.developer-create[open]>summary:before{content:'−'}.developer-create>summary>span{font-size:11px;color:var(--muted);margin-left:auto;font-weight:400}.developer-key-form{padding-top:18px;display:grid;gap:17px}.developer-key-name{display:grid;gap:7px;font-size:12px;font-weight:700}.developer-key-name>input{max-width:460px;width:100%;font-size:13px}.developer-permissions{display:grid;gap:0;border:0;padding:0;margin:0;min-width:0}.developer-permissions>legend{font-weight:700;font-size:12px;margin-bottom:8px;padding:0}.developer-permissions>label{display:flex;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid #e8e1d2;cursor:pointer}.developer-permissions input{appearance:auto;width:16px;height:16px;flex:none;accent-color:var(--primary);padding:0;box-shadow:none}.developer-permissions span{display:grid;gap:3px;min-width:0}.developer-permissions strong{font-size:12px}.developer-permissions small{font-size:11px;color:var(--muted);font-weight:400}.developer-permissions code{font-size:10px;color:#8d816b;margin-left:auto;white-space:nowrap}.developer-form-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.developer-form-actions .muted-text{margin:0;font-size:11px}.developer-secret{padding:20px;border:1px solid #bdcda4;border-radius:15px;background:linear-gradient(110deg,#f4f8ed,#f8f9f3);margin:0 0 20px}.developer-secret[hidden]{display:none!important}.developer-secret h3{font-size:17px;margin:5px 0}.developer-secret p{font-size:12px;line-height:1.7;color:#627052;margin:0}.developer-secret>code{display:block;padding:14px;margin:14px 0;border:1px solid #d5dec9;background:#fffdf8;border-radius:9px;font:600 13px/1.8 ui-monospace,SFMono-Regular,Menlo,monospace;overflow-wrap:anywhere;user-select:all;color:#31492d}.developer-secret-actions{display:flex;gap:9px;flex-wrap:wrap}.developer-secret .eyebrow{color:#698543}.developer-guide-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:28px}.developer-guide-grid h3{font-size:13px;margin:0 0 8px}.developer-guide-grid p{font-size:12px;color:var(--muted);line-height:1.8;margin:0 0 18px}.developer-guide-grid p code,.developer-guide-foot code{font-size:11px;color:#8b692b;overflow-wrap:anywhere}.developer-code-example{background:#252722;border-radius:14px;padding:18px;align-self:start;min-width:0;color:#e6e4d7}.developer-code-example>div{display:flex;justify-content:space-between;gap:12px;align-items:center;border-bottom:1px solid #47473c;padding-bottom:12px}.developer-code-example>div>span{font-size:11px;color:#cfc9b5}.developer-code-example .copy-safe{font-size:10px;border-color:#5e5946;background:#393b32;color:#e1cd99;margin:0}.developer-code-example pre{white-space:pre-wrap;overflow-wrap:anywhere;margin:17px 0 20px;font:12px/1.9 ui-monospace,SFMono-Regular,Menlo,monospace;color:#e5d28d}.developer-code-example small{color:#a8ad9c;font-size:10px;line-height:1.6;display:block}.developer-endpoints{display:grid;grid-template-columns:1fr 1fr;column-gap:25px;border-top:1px solid var(--line);padding-top:12px}.developer-endpoints>div{display:grid;grid-template-columns:40px minmax(0,1fr);align-items:start;gap:4px 9px;padding:13px 0;border-bottom:1px solid #ebe5d9}.developer-endpoints code{font-size:11px;overflow-wrap:anywhere}.developer-endpoints>div>span:last-child{grid-column:2;font-size:10px;color:var(--muted)}.developer-method{font:700 10px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace;color:#3c8868;background:#eaf4ed;text-align:center;border-radius:4px}.developer-method.is-write{color:#997327;background:#f5eddb}.developer-guide-foot{font-size:11px;line-height:1.8;margin:18px 0 0;color:var(--muted)}.developer-guide-foot a{color:var(--primary);text-decoration:none;margin-left:3px}.developer-revoke-dialog{width:min(450px,calc(100% - 32px));padding:26px;border:1px solid var(--line);border-radius:22px;background:var(--card);color:var(--ink);box-shadow:0 25px 90px #1c1a1440}.developer-revoke-dialog::backdrop{background:#18181070}.developer-revoke-dialog h2{font-size:23px;margin:8px 0 14px}.developer-revoke-dialog p{font-size:13px;line-height:1.8;color:var(--muted);overflow-wrap:anywhere}.developer-revoke-dialog .developer-secret-actions{justify-content:flex-end;margin-top:22px}
@media(max-width:1100px){.developer-facts{grid-template-columns:1fr 1fr}.developer-facts>div:first-child{grid-column:1/-1}.developer-guide-grid{grid-template-columns:1fr}.developer-code-example{margin-bottom:15px}.developer-key-row{grid-template-columns:minmax(0,1fr) auto}.developer-key-scopes{grid-column:1;grid-row:2}.developer-key-row>div:last-child{grid-column:2;grid-row:1/3}}
@media(max-width:640px){.developer-intro,.developer-keys,.developer-guide{padding:20px}.developer-intro-heading{align-items:flex-start;gap:11px;flex-wrap:wrap}.developer-symbol{width:42px;height:42px;font-size:17px;border-radius:13px}.developer-intro-heading>div{flex:1;min-width:180px}.developer-intro-heading h2{font-size:17px}.developer-intro-heading>.badge{margin:0 0 0 53px}.developer-facts{gap:17px 12px}.developer-facts strong{font-size:12px}.developer-create{padding:16px}.developer-permissions code{display:none}.developer-permissions small{line-height:1.6}.developer-secret{padding:16px}.developer-secret-actions>.button{flex:1}.developer-endpoints{grid-template-columns:1fr}.developer-base code{font-size:11px}.developer-keys .section-heading{align-items:flex-start}.developer-keys .section-heading .button{min-height:35px;padding:0 10px;font-size:11px}.developer-form-actions>.button{width:100%}}
/* Override the desktop sidebar height after the warm-theme rules. */
@media(max-width:900px){.app-layout{grid-template-columns:minmax(0,1fr)}.sidebar{min-height:0;min-width:0;align-items:flex-start}.side-nav{min-width:0;align-items:flex-start}.side-nav>.nav-group{flex:none}.side-nav>.side-link{flex:none}.side-subnav{margin-left:24px}.nav-group{align-content:start}}
@media(max-width:520px){.topbar{height:auto;min-height:76px;flex-wrap:wrap;gap:10px;padding:12px}.top-actions{flex-wrap:wrap;margin-left:auto;justify-content:flex-end}.top-actions .badge{white-space:nowrap}.top-actions .top-link{white-space:nowrap}.brand{flex:none}.brand small{white-space:nowrap}.side-link{font-size:12px;padding:10px}.developer-intro-heading>div{min-width:150px}}
@media(max-width:640px){.side-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;width:100%;overflow:visible}.side-nav>.nav-group{min-width:0}.side-nav .side-link{min-width:0;width:100%;justify-content:center}.side-nav .nav-count{display:none}.side-nav .side-subnav{margin-left:8px}.side-nav .side-sub-link{padding:7px 6px;font-size:10px}.side-nav>.side-link{align-self:start}.sidebar{width:100%;margin:0}}

/* Unified interaction layer: calm surfaces, clear focus, and predictable states. */
:root{--focus-ring:0 0 0 3px rgba(255,97,71,.22);--surface-soft:#faf7ef;--surface-muted:#f3efe5;--success-soft:#edf8f0;--danger-soft:#fff1ee}
html{scroll-behavior:smooth}
[hidden]{display:none!important}
body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
.topbar{position:sticky;top:12px;z-index:30;background:rgba(255,253,248,.88);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);box-shadow:0 10px 28px rgba(73,58,31,.08)}
.button:disabled,.icon-button:disabled,.side-link:disabled{opacity:.52;cursor:not-allowed;transform:none!important;box-shadow:none!important}
.button[aria-busy="true"]{position:relative;color:transparent!important;pointer-events:none}
.button[aria-busy="true"]::after{content:"";position:absolute;left:50%;top:50%;width:15px;height:15px;margin:-8px 0 0 -8px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:ui-spin .7s linear infinite;color:rgba(255,255,255,.9)}
input:focus-visible,select:focus-visible,textarea:focus-visible,.button:focus-visible,.icon-button:focus-visible,.side-link:focus-visible,.side-sub-link:focus-visible,.filter-chip:focus-visible{outline:0;box-shadow:var(--focus-ring)}
.card,[role="dialog"],details{transition:border-color .18s ease,box-shadow .18s ease}
.table-wrap{scrollbar-width:thin;scrollbar-color:#c9bda7 transparent}.table-wrap th{position:sticky;top:0;z-index:2;background:var(--card)}
.empty{min-height:116px;display:grid;place-items:center;align-content:center;gap:5px;border:1px dashed #d9cfbc;border-radius:13px;background:rgba(255,253,248,.6)}
.empty::before{content:"○";display:block;width:28px;height:28px;border:1px solid #c9bda7;border-radius:50%;color:#ad9d80;text-align:center;font-size:18px;line-height:25px}
.error{box-shadow:inset 3px 0 0 var(--red)}
.notice{box-shadow:inset 3px 0 0 var(--yellow)}
[aria-live="polite"]:empty,[role="status"]:empty{display:none}
.is-loading{position:relative;overflow:hidden;color:transparent!important;background:linear-gradient(90deg,var(--surface-muted) 25%,#fffdf8 45%,var(--surface-muted) 65%);background-size:300% 100%;animation:ui-shimmer 1.35s ease-in-out infinite;border-color:transparent!important}
.is-loading>*{visibility:hidden}
details>summary{transition:color .16s ease}details>summary:hover{color:var(--primary)}
@keyframes ui-spin{to{transform:rotate(360deg)}}
@keyframes ui-shimmer{0%{background-position:100% 0}100%{background-position:-100% 0}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}
@media(max-width:900px){.topbar{position:sticky;top:8px;z-index:30}.table-wrap th{position:static}}
.developer-ai-heading{align-items:flex-start;gap:18px}.developer-ai-heading>div{min-width:0;flex:1}.developer-ai-heading>.button{flex:none;white-space:nowrap}
@media(max-width:640px){.developer-ai-heading{flex-direction:column;align-items:stretch}.developer-ai-heading>.button{align-self:flex-start}}
