:root { font-family: Manrope, Arial, sans-serif; color: #253046; background: #f5f7f8; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
.commercial-shell { min-height: 100vh; }
.commercial-header { min-height: 82px; padding: 18px max(28px, calc((100vw - 1260px) / 2)); display: flex; justify-content: space-between; align-items: center; gap: 28px; background: #1d3841; border-bottom: 1px solid #183039; color: #fff; }
.commercial-brand img { display: block; width: 158px; height: auto; }
.commercial-header-actions { display: flex; align-items: center; gap: 24px; font-size: 12px; }
.commercial-header-actions .preview-status { color: #d4e4df; }
.commercial-header-actions .user-menu { display: flex; align-items: center; gap: 9px; }
.commercial-header-actions .user-menu span:last-child { display: grid; gap: 2px; }
.commercial-header-actions .user-menu small { color: #c0d3ce; }
.commercial-header-actions .avatar { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: #e1eee9; color: #275b4d; font-weight: 700; }
.commercial-header-actions .back-link { color: #285e52; text-decoration: none; font-weight: 700; }
.commercial-main { max-width: 1260px; margin: 0 auto; padding: 42px 28px 70px; }
.commercial-heading, .panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.commercial-heading { margin-bottom: 26px; }
.eyebrow { margin: 0 0 8px; color: #4b786b; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 8px; color: #1e3040; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.035em; }
h2 { margin-bottom: 7px; font-size: 20px; letter-spacing: -.025em; }
h3 { margin: 24px 0 8px; font-size: 15px; color: #263b48; }
.commercial-heading p:last-child, .panel-heading p:last-child { margin-bottom: 0; color: #66757f; font-size: 14px; }
#refresh-button { padding: 10px 17px; border: 1px solid #b9d0c7; border-radius: 9px; color: #285e52; background: #fff; cursor: pointer; font-weight: 700; }
#refresh-button:hover { background: #edf6f1; }
.commercial-status { margin: 0 0 16px; color: #587075; font-size: 12px; }
.commercial-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.commercial-metrics article, .commercial-panel { background: #fff; border: 1px solid #e1e8e6; border-radius: 14px; box-shadow: 0 3px 13px rgba(22, 51, 53, .035); }
.commercial-metrics article { padding: 22px; display: grid; gap: 8px; }
.commercial-metrics article span { color: #62737a; font-size: 12px; font-weight: 700; }
.commercial-metrics article strong { color: #23384a; font-size: 32px; line-height: 1.1; letter-spacing: -.045em; }
.commercial-metrics article small { color: #7a898e; font-size: 11px; }
.commercial-panel { padding: 26px; margin-top: 20px; }
.panel-total { color: #214e44; font-size: 34px; letter-spacing: -.045em; }
.token-split { display: flex; gap: 18px; margin: 22px 0; }
.token-split div { min-width: 150px; padding: 15px 20px; border-radius: 10px; background: #f1f6f3; display: grid; gap: 3px; }
.token-split span { color: #667a74; font-size: 12px; }
.token-split strong { font-size: 20px; }
.token-split .cost-highlight { background:#e9f3ed;min-width:200px; }
.token-split .cost-highlight strong { color:#225643; }
.table-wrap { width: 100%; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th { color: #738188; text-align: left; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
th, td { padding: 12px 10px; border-bottom: 1px solid #edf0ef; }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 650; }
.panel-note { margin: 17px 0 0; color: #728087; font-size: 11px; line-height: 1.5; }
.panel-note a { color:#285e52;font-weight:750; }
#user-filter { width: min(280px, 100%); padding: 10px 13px; border: 1px solid #d8e1e0; border-radius: 8px; outline-color: #4b786b; background: #fff; }
.usage-period-form { display:flex; flex-wrap:wrap; align-items:end; gap:10px; margin-top:19px; }
.usage-period-form label, .usage-user-label { display:grid; gap:5px; color:#5b6e73; font-size:12px; font-weight:700; }
.usage-period-form input, .usage-user-label select { padding:9px 11px; border:1px solid #cbd9d5; border-radius:8px; background:#fff; color:#263b48; }
.usage-period-form button { padding:9px 13px; border:1px solid #aac7ba; border-radius:8px; background:#eaf4ee; color:#245747; cursor:pointer; font-size:12px; font-weight:700; }
.usage-period-form button:hover { background:#dceee3; }
.usage-period-form button:last-child { background:#fff; }
.panel-tools { display:flex; align-items:center; gap:10px; }
.new-account-button { white-space:nowrap; border:0; border-radius:8px; padding:10px 14px; background:#285e52; color:#fff; cursor:pointer; font-size:12px; font-weight:750; }
.new-account-button:disabled { opacity:.55; cursor:default; }
.account-dialog { width:min(600px,calc(100% - 32px)); max-height:85vh; margin:auto; padding:24px; border:1px solid #dce5e1; border-radius:16px; color:#253046; background:#fff; box-shadow:0 24px 80px #19382a30; }
.account-dialog::backdrop { background:#172d38a3; }
.account-dialog-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.account-dialog-heading h2 { margin:0; font-size:21px; letter-spacing:-.025em; }
.account-dialog-heading .eyebrow { margin-bottom:5px; font-size:10px; }
.dialog-close { border:0; padding:0 3px; color:#637771; background:transparent; cursor:pointer; font-size:25px; line-height:1; }
.account-form-note { margin:12px 0 18px; color:#728087; font-size:11px; line-height:1.5; }
.account-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:0; padding:0; background:transparent; }
.account-form label { display:grid; align-content:start; gap:5px; color:#50646a; font-size:11px; font-weight:700; }
.account-form label small { color:#7a8882; font-size:10px; font-weight:500; line-height:1.4; }
.account-form input[readonly] { background:#f2f5f3; color:#64756c; }
.account-extra { grid-column:1/-1; border-top:1px solid #edf0ef; padding-top:12px; }
.account-extra summary { color:#527267; cursor:pointer; font-size:11px; font-weight:700; }
.account-extra-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:11px; padding-top:12px; }
.account-contact-email { grid-column:span 2; }
.account-form .account-address { grid-column:1/-1; }
.account-form-actions { grid-column:1/-1; display:flex; justify-content:flex-end; gap:8px; border-top:1px solid #edf0ef; margin-top:5px; padding-top:14px; }
.account-form-actions #account-cancel { background:#fff; border-color:#dce5e1; color:#63756d; }
.client-profile { margin-top:8px; max-width:340px; font-size:12px; }
.client-profile summary { color:#285e52; cursor:pointer; font-weight:700; }
.client-profile dl { margin:10px 0; }
.client-profile dt { margin-top:7px; color:#62737a; font-size:11px; }
.client-profile dd { margin:2px 0 0; white-space:pre-wrap; overflow-wrap:anywhere; }
.account-form input { width:100%; min-width:0; height:35px; padding:7px 9px; border:1px solid #cbd9d5; border-radius:7px; background:#fff; color:#253046; font-size:12px; }
.account-form button, .row-actions button { padding:9px 12px; border:1px solid #aac7ba; border-radius:8px; background:#eaf4ee; color:#245747; cursor:pointer; font-weight:700; font-size:12px; }
.account-form button:hover, .row-actions button:hover { background:#dceee3; }
.row-actions { display:flex; flex-wrap:wrap; gap:7px; }
.users-pagination { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:12px; margin-top:16px; font-size:12px; color:#5b6e73; }
.users-pagination button { padding:8px 12px; border:1px solid #aac7ba; border-radius:8px; background:#eaf4ee; color:#245747; font:inherit; cursor:pointer; }
.users-pagination button:disabled { opacity:.55; cursor:default; }
.row-actions .danger { border-color:#d8b7b7; color:#8d3737; background:#fff7f7; }
.row-actions .danger:hover { background:#fce9e9; }
.row-actions button:disabled, .account-form button:disabled { opacity:.55; cursor:not-allowed; }
body.commercial-busy .row-actions button:disabled, body.commercial-busy .account-form button:disabled { cursor:wait; }
@media (max-width: 850px) { .commercial-metrics { grid-template-columns: repeat(2, 1fr); } .commercial-header-actions .preview-status, .commercial-header-actions .user-menu { display: none; } }
@media (max-width: 560px) { .commercial-main { padding: 27px 16px 50px; } .commercial-header { padding: 15px 16px; } .commercial-brand img { width: 125px; } .commercial-metrics { gap: 10px; } .commercial-metrics article { padding: 16px; } .commercial-metrics article strong { font-size: 25px; } .commercial-panel { padding: 18px; } .commercial-heading, .panel-heading { flex-wrap: wrap; } .token-split { flex-wrap: wrap; } }
@media (max-width:560px) { .panel-tools { width:100%; } .panel-tools #user-filter { flex:1; min-width:0; } .account-dialog { padding:19px; } .account-form,.account-extra-grid { grid-template-columns:1fr; } .account-contact-email { grid-column:auto; } }
