/* r4 workspace: scoped presentation; no billing, auth or storage overrides. */
body:has(.exbot-platform-nav) .exbot-icon,
body:has(.exbot-platform-nav) .btn>.exbot-icon{
 display:inline-block!important;vertical-align:middle!important;width:18px!important;height:18px!important;
 min-width:18px!important;flex:0 0 18px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.75!important;
 stroke-linecap:round!important;stroke-linejoin:round!important;overflow:visible!important;pointer-events:none;
}
body:has(.exbot-platform-nav) .top-actions .btn,
body:has(.exbot-platform-nav) .exbot-action{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;line-height:1.35!important;
}
body:has(.exbot-platform-nav) .exbot-action,body:has(.exbot-platform-nav) .exbot-icon-action{
 color:#456080;background:#fff;border:1px solid #d9e4f1;border-radius:11px;padding:10px 14px;font:650 13px/1.4 Inter,system-ui,sans-serif;
 text-decoration:none;box-shadow:none;cursor:pointer;min-height:40px;max-width:100%;white-space:normal;transition:background .15s,border-color .15s;
}
body:has(.exbot-platform-nav) .exbot-action:hover{background:#f2f6fd;border-color:#b7cbeb}
body:has(.exbot-platform-nav) .exbot-action.is-primary{color:#fff;background:#2f68f6;border-color:#2f68f6;box-shadow:0 5px 14px #2f68f621}
body:has(.exbot-platform-nav) .exbot-action.is-primary:hover{background:#2459d9}
body:has(.exbot-platform-nav) .exbot-action.is-danger{color:#c24654;background:#fff6f7;border-color:#f0ced3}
body:has(.exbot-platform-nav) .exbot-action.is-quiet{color:#667f9e;background:transparent;border-color:transparent}
body:has(.exbot-platform-nav) .exbot-action.is-quiet:hover{background:#edf3ff;border-color:#d9e4f1}
body:has(.exbot-platform-nav) .exbot-action:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}
body:has(.exbot-platform-nav) :is(.exbot-action,.exbot-icon-action,.exbot-data-scroll):focus-visible{outline:3px solid #83a9ff;outline-offset:3px}
body:has(.exbot-platform-nav) .exbot-icon-action{display:inline-flex;align-items:center;justify-content:center;padding:9px;min-width:40px;min-height:40px}
body.exbot-admin-ui .desk-row-open{width:auto;min-height:35px;padding:7px 10px;white-space:nowrap}
.exbot-r4-section,.exbot-r4-section *{box-sizing:border-box}
body:has(.exbot-platform-nav) .exbot-r4-section{padding:24px!important;border:1px solid #dfe7f3!important;border-radius:22px!important;background:#fff!important;margin-bottom:22px;min-width:0}
body:has(.exbot-platform-nav) .exbot-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin:0 0 22px;padding:0}
.exbot-section-heading h2{font-size:21px!important;line-height:1.3!important;margin:5px 0 8px!important;color:#203d64!important;letter-spacing:-.025em}
.exbot-section-heading p,.exbot-subheading p{font-size:13px;line-height:1.6;margin:0;color:#768ba7;max-width:790px}
.exbot-eyebrow{font-size:10px;letter-spacing:.13em;text-transform:uppercase;color:#7490b5;font-weight:800}
.exbot-neutral-pill{display:inline-flex;gap:8px;align-items:center;white-space:nowrap;padding:8px 11px;color:#526d93;border:1px solid #e0e8f4;background:#f8faff;border-radius:10px;font-size:11px;font-weight:650}
body:has(.exbot-platform-nav) .exbot-price-grid{display:grid!important;gap:16px!important;margin:0!important;align-items:stretch!important}
body:has(.exbot-platform-nav) .exbot-license-price-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important}
body:has(.exbot-platform-nav) .exbot-ai-price-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
body:has(.exbot-platform-nav) .exbot-price-card{padding:21px!important;border:1px solid #dce6f4!important;border-radius:18px!important;background:linear-gradient(180deg,#f8faff 0,#fff 54%)!important;min-width:0!important;box-shadow:none!important;margin:0!important}
.exbot-price-card header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:22px}
.exbot-price-symbol{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #dbe6ff;background:#edf3ff;color:#3268ee;border-radius:13px;flex:0 0 40px}
.exbot-price-kind{font-size:10px;color:#7186a5;text-align:right;font-weight:650;line-height:1.4}
body:has(.exbot-platform-nav) .exbot-price-card h3{font-size:21px!important;line-height:1.25!important;color:#233f65!important;margin:0 0 8px!important;letter-spacing:-.03em!important}
.exbot-price-desc{font-size:12px;line-height:1.6;color:#7a8da9;margin:0 0 23px}
body:has(.exbot-platform-nav) .exbot-field{display:flex!important;flex-direction:column!important;gap:8px!important;margin:0!important;min-width:0!important;font-weight:600!important}
.exbot-field>span:first-child{font-size:11px;color:#69809f;line-height:1.4}
body:has(.exbot-platform-nav) .exbot-field input,body:has(.exbot-platform-nav) .exbot-field select{
 width:100%!important;min-width:0!important;height:43px!important;padding:10px 12px!important;border:1px solid #d4e0ef!important;border-radius:10px!important;
 font:500 14px/1.4 Inter,system-ui,sans-serif!important;color:#223e63!important;background:#fff!important;outline:none;box-shadow:none!important;
}
body:has(.exbot-platform-nav) .exbot-field input:focus,body:has(.exbot-platform-nav) .exbot-field select:focus{border-color:#759cf9!important;box-shadow:0 0 0 3px #356bf411!important}
body:has(.exbot-platform-nav) .exbot-money-input{display:flex!important;align-items:center!important;border:1px solid #d4e0ef;border-radius:12px;padding:3px 10px;background:#fff;gap:3px;min-width:0;width:100%}
.exbot-money-input:focus-within{outline:3px solid #356bf414;border-color:#759cf9}
body:has(.exbot-platform-nav) .exbot-money-input input{border:0!important;box-shadow:none!important;padding:8px 2px!important;font-size:23px!important;font-weight:750!important;height:48px!important;appearance:textfield;-moz-appearance:textfield;background:transparent!important}
.exbot-money-input input::-webkit-inner-spin-button,.exbot-money-input input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.exbot-money-input b{font-size:20px;color:#8699b5;font-weight:550}
.exbot-money-input em{font-size:10px;letter-spacing:.04em;font-style:normal;font-weight:700;color:#8699b5}
.exbot-price-foot{border-top:1px solid #e5ebf5;margin-top:22px;padding-top:15px;display:flex;gap:7px;align-items:center;font-size:10px;line-height:1.5;color:#7288a7}
body:has(.exbot-platform-nav) .exbot-price-foot .exbot-icon{color:#69a08c}
.exbot-price-fields{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:20px;padding-top:20px;border-top:1px solid #e1e9f5}
.exbot-span-all{grid-column:1/-1}
.exbot-price-card.tone-standard .exbot-price-symbol{color:#795ccc;background:#f3effe;border-color:#e6dff7}
.exbot-price-card.tone-pro .exbot-price-symbol{color:#0c957d;background:#eafbF6;border-color:#d2eee5}
.exbot-subheading{margin:26px 0 16px}
.exbot-subheading h3{font-size:16px;margin:0 0 6px;color:#244169}
.exbot-extra-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.exbot-extra-card{padding:18px;border:1px solid #e0e8f4;border-radius:16px;min-width:0}
.exbot-extra-title{display:flex;gap:12px;align-items:center;margin-bottom:18px}
.exbot-extra-title h3{font-size:15px!important;line-height:1.35;margin:0 0 4px!important;color:#294466}
.exbot-extra-title div>span{font-size:11px;color:#8799b1}
.exbot-extra-title .exbot-price-symbol{width:35px;height:35px;flex-basis:35px;border-radius:11px}
body:has(.exbot-platform-nav) .exbot-extra-card .exbot-money-input input{font-size:21px!important;height:42px!important}
.exbot-form-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:22px;padding-top:20px;border-top:1px solid #e6edf6}
.exbot-form-footer p{font-size:12px;line-height:1.5;color:#7a8ea9;margin:0}
.exbot-form-footer p.is-dirty{color:#ac771f}
.exbot-billing-notice{display:flex;gap:13px;align-items:flex-start;background:#f8faff;border:1px solid #e1e9f5;padding:18px;border-radius:14px;margin-top:20px}
.exbot-billing-notice>svg{margin-top:3px;color:#5080d9}
.exbot-billing-notice>div{flex:1;min-width:0}
.exbot-billing-notice strong{font-size:12px;color:#466589}
.exbot-billing-notice p{font-size:12px;line-height:1.6;color:#768cab;margin:4px 0 0}
.exbot-inline-notice{padding:14px 16px;border:1px solid #ecd9b8;background:#fffbf4;border-radius:12px;color:#8b672b;font-size:12px;line-height:1.55;margin:0 0 18px}
.exbot-counts{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.exbot-table-toolbar{display:flex;align-items:end;gap:14px;padding:17px;background:#f7f9fd;border:1px solid #e7edf6;border-radius:14px;margin-bottom:18px}
.exbot-table-toolbar .exbot-search{flex:1;max-width:460px}
.exbot-table-toolbar>.exbot-field:not(.exbot-search){flex:0 1 200px}
.exbot-result-count{font-size:11px;color:#8699b3;padding:0 0 13px;margin-left:auto}
.exbot-data-scroll{overflow:auto;width:100%;border:1px solid #e0e8f3;border-radius:14px;min-width:0}
body.exbot-admin-ui .exbot-data-table{table-layout:fixed!important;width:100%!important;min-width:1040px!important;border-collapse:collapse!important;background:#fff}
body.exbot-admin-ui .exbot-data-table th{font-size:10px!important;letter-spacing:.06em!important;text-transform:uppercase!important;line-height:1.5;color:#8194b0!important;background:#f8faff!important;text-align:left!important;padding:14px 13px!important;border-bottom:1px solid #e1e9f5!important}
body.exbot-admin-ui .exbot-data-table td{font-size:12px!important;line-height:1.5!important;padding:18px 13px!important;vertical-align:middle!important;border-bottom:1px solid #e6edf6!important;overflow-wrap:anywhere;color:#314d70!important}
body.exbot-admin-ui .exbot-data-table>tbody>tr:last-child>td{border-bottom:0!important}
body.exbot-admin-ui .exbot-data-table>tbody>tr[data-ai-group]:hover>td{background:#fcfdff}
.exbot-data-table small{display:block;color:#7c91ae;font-size:10px;line-height:1.65;margin-top:4px}
.exbot-data-table strong{font-size:12px;color:#2b4367}
.exbot-data-table .exbot-domain-link{font-weight:750;font-size:13px;color:#27496f;text-decoration:none;word-break:break-word}
.exbot-domain-link:hover{text-decoration:underline!important}
.exbot-id{display:block;font:10px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace;color:#8497b2;overflow-wrap:anywhere;margin-top:5px}
.exbot-period{font-variant-numeric:tabular-nums;white-space:nowrap}
.exbot-status{display:inline-flex;gap:6px;align-items:center;white-space:nowrap;padding:5px 8px;border:1px solid #e1e7f0;border-radius:8px;font-size:10px;font-weight:750;line-height:1.3}
.exbot-status i{width:5px;height:5px;border-radius:50%;background:currentColor}
.exbot-status.is-active{color:#168867;background:#edfbf4;border-color:#cfeedd}
.exbot-status.is-inactive{color:#997229;background:#fffbf0;border-color:#eee3c6}
.exbot-muted{color:#8b9bb3;font-weight:500}
.exbot-tabular{font-variant-numeric:tabular-nums;white-space:nowrap}
.exbot-credit-meter{width:100%;max-width:165px;height:6px;background:#e9eef7;border-radius:6px;margin-top:10px;overflow:hidden}
.exbot-credit-meter>span{height:100%;display:block;background:#6a95f5;border-radius:6px}
.exbot-row-actions{display:flex;flex-direction:column;align-items:flex-start;gap:5px}
body:has(.exbot-platform-nav) .exbot-row-actions .exbot-action,body:has(.exbot-platform-nav) .exbot-history-table .exbot-action{min-height:33px;padding:7px 9px;font-size:11px;gap:6px!important}
body:has(.exbot-platform-nav) .exbot-row-actions .exbot-icon{width:15px!important;height:15px!important;min-width:15px!important;flex-basis:15px!important}
[data-ai-history][aria-expanded=true] svg{transform:rotate(180deg)}
body.exbot-admin-ui .exbot-data-table .exbot-history>td{padding:0!important;vertical-align:top!important;background:#f4f7fc}
.exbot-history-panel{padding:21px}
.exbot-history-panel h3{font-size:15px;margin:0 0 6px;color:#284b73}
.exbot-history-panel>p{font-size:11px;line-height:1.5;color:#788eac;margin:0 0 16px}
body.exbot-admin-ui .exbot-history-table{min-width:1040px!important;border:1px solid #dfe7f3}
body.exbot-admin-ui .exbot-history-table td:first-child{width:21%}
.exbot-table-note{display:flex;gap:10px;align-items:center;font-size:11px;line-height:1.6;color:#7f92ad;margin-top:14px}
.exbot-table-empty{padding:36px;display:flex;flex-direction:column;gap:10px;align-items:center;color:#7e92ac;font-size:12px}
.exbot-table-empty svg{color:#92a8c8}
.exbot-table-empty strong{font-size:14px}
[data-ai-directory] [hidden]{display:none!important}
body.exbot-admin-ui .exbot-economy-table{table-layout:fixed;min-width:880px!important}
body.exbot-admin-ui .exbot-economy-table :is(th,td){padding:16px 13px!important;font-size:12px;line-height:1.6;vertical-align:middle!important}
body.exbot-admin-ui .exbot-economy-table th{font-size:10px;background:#f8faff}
.exbot-ai-dialog{position:fixed;inset:0;border:1px solid #dce5f3;border-radius:22px;padding:0;width:min(540px,calc(100vw - 28px));max-height:calc(100dvh - 40px);box-shadow:0 30px 95px #11254440;background:#fff;color:#294264;margin:auto;overflow:auto;font:14px/1.5 Inter,system-ui,sans-serif}
.exbot-ai-dialog::backdrop{background:#18325866;backdrop-filter:blur(3px)}
.exbot-ai-dialog>header{position:sticky;top:0;background:#fff;display:flex;align-items:start;justify-content:space-between;gap:16px;padding:22px 24px;border-bottom:1px solid #e1e9f4;z-index:1}
.exbot-ai-dialog h2{font-size:21px!important;margin:5px 0!important;overflow-wrap:anywhere;color:#1f4069}
.exbot-ai-dialog .exbot-icon-action{flex-shrink:0}
.exbot-dialog-body{padding:2px 24px 20px}
.exbot-modal-section{margin:0;padding:22px 0;border-bottom:1px solid #e4ebf5;display:flex;flex-direction:column;gap:12px;align-items:stretch}
.exbot-modal-section:last-child{border-bottom:0}
.exbot-modal-section h3{font-size:15px;margin:0!important}
.exbot-modal-section p{font-size:12px;line-height:1.55;color:#7a8fa9;margin:0!important}
.exbot-modal-section>button{align-self:flex-start;margin-top:3px}
.exbot-danger-section h3{color:#b45863}
body.exbot-admin-ui .ai-provider-card .ai-provider-head h3{font-size:17px!important}
@media(max-width:1460px){body:has(.exbot-platform-nav) .exbot-license-price-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:1080px){
 body:has(.exbot-platform-nav) .exbot-license-price-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body:has(.exbot-platform-nav) .exbot-ai-price-grid,.exbot-extra-grid{grid-template-columns:1fr!important}
 .exbot-billing-notice{flex-wrap:wrap}
 .exbot-billing-notice>.exbot-action{margin-left:31px}
 .exbot-counts{justify-content:flex-start}
 body:has(.exbot-platform-nav) .exbot-section-heading{flex-direction:column}
}
@media(max-width:680px){
 body:has(.exbot-platform-nav) .exbot-r4-section{padding:17px!important;border-radius:17px!important}
 body:has(.exbot-platform-nav) .exbot-license-price-grid{grid-template-columns:1fr!important}
 .exbot-table-toolbar{flex-wrap:wrap;align-items:stretch;padding:13px;gap:12px}
 .exbot-table-toolbar .exbot-field{flex-basis:100%!important;max-width:none!important}
 .exbot-result-count{padding:0;margin-left:0}
 .exbot-form-footer{flex-direction:column;align-items:stretch}
 .exbot-form-footer button{width:100%}
 .exbot-section-heading h2{font-size:19px!important}
 .exbot-counts .exbot-neutral-pill{font-size:10px}
 .exbot-table-note{align-items:start}
 .exbot-ai-dialog{max-height:calc(100dvh - 20px)}
 .exbot-ai-dialog>header{padding:18px}
 .exbot-dialog-body{padding:0 18px 15px}
 body:has(.exbot-platform-nav) .top-actions{flex-wrap:wrap!important;gap:8px!important}
 body:has(.exbot-platform-nav) .top-actions .btn{min-height:40px!important}
}
@media(prefers-reduced-motion:reduce){.exbot-action{transition:none!important}}

body.exbot-admin-ui .desk-recent-table th:nth-child(6){width:128px!important}
body.exbot-admin-ui .desk-recent-table-wrap{overflow:auto!important}
body.exbot-admin-ui .desk-recent-table{min-width:820px!important}
body.exbot-admin-ui .desk-row-open>.exbot-icon{width:16px!important;height:16px!important;min-width:16px!important;flex-basis:16px!important}

/* Legacy light-theme rules also use !important; keep a single field border. */
html body.exbot-license-ui #license-pricing .exbot-money-input input[type=number],
html body.exbot-admin-ui #ai-pricing .exbot-money-input input[type=number]{
 border:0!important;outline:0!important;box-shadow:none!important;border-radius:0!important;margin:0!important;
 background:transparent!important;min-width:0!important;padding:8px 2px!important;
}
body:has(.exbot-platform-nav) .exbot-row-actions .exbot-action{white-space:nowrap!important}
