/* Icefire Phoenix. A shared visual layer; business state and role gates are
 * owned by the existing modules. Every real route inherits these components. */
:root{
  --workspace-rail:216px;--type-page:32px;--type-section:20px;--type-body:16px;--type-label:13px;--type-meta:12px;
  --ink:#081c40;--ink-2:#4c5870;--ink-3:#4f6380;
  --icefire-navy:#111e3b;--icefire-indigo:#202f55;--icefire-silver:#e9f1fa;
  --icefire-on-dark:#edf4ff;--icefire-muted-dark:#c2d1e8;
  --phoenix-flame:linear-gradient(110deg,#fb7e19,#ec490b);
  --phoenix-spectrum:linear-gradient(100deg,#346bb3,#8faccd 38%,#e98136 72%,#e5b33e);
  --focus:#346bb3;--border-focus:#346bb3;
  --code-surface:#f1f6fc;--code-keyword:#6b3884;--code-string:#176448;
}
body{background:radial-gradient(ellipse at 0 0,#e7f2ff,transparent 55%),radial-gradient(ellipse at 100% 100%,#fff3e6,transparent 55%),#edf6ff;scrollbar-color:#99afca #eaf1f8}
::selection{color:var(--ink);background:#f8d9b6}
body :is(input,textarea){caret-color:var(--accent)}
body :is(button,a,summary,input,textarea,select):focus-visible{outline-color:var(--focus)}
body :is(input[type=checkbox],input[type=radio],input[type=range]){accent-color:var(--accent)}

/* The dark shell is deliberately separate from light, data-first work areas. */
body.phoenix-workspace .app-header{
  color:var(--icefire-on-dark);border-bottom-color:#344b6f;
  background:#111e3b url('/assets/phoenix-header-polish.webp') center 55%/cover no-repeat;
}
body .app-header::before{opacity:.8;height:1px}
body .app-header .brand-mark{width:44px;height:50px;padding:0;background:none;box-shadow:none;border:0;border-radius:0}
body .app-header .brand-mark img{width:100%;height:100%;object-fit:contain;border:0;border-radius:0}
body .app-header .brand-fire{color:#fb9900}
body .app-header .brand-text strong{color:var(--icefire-on-dark);font-size:29px;letter-spacing:-.025em}
body .app-header .brand-text>span{color:var(--icefire-muted-dark)!important}
body.phoenix-workspace .app-header :is(.workspace-search-trigger,.nav-drawer-toggle,.phx-language-switcher,#userBadge){
  color:var(--icefire-on-dark)!important;border-color:#536b90!important;background:#24395b!important;box-shadow:none;
}
body .app-header .workspace-search-trigger:hover,body .app-header .nav-drawer-toggle:hover{background:#30496f!important;border-color:#a7bbd7!important}
body .app-header .workspace-search-trigger kbd{color:#d8e4f5;background:#31496d;border-color:#62799d}
body.phoenix-workspace .app-header .phx-language-switcher select{color:var(--icefire-on-dark)!important;background:transparent!important;border:0!important;box-shadow:none!important}
body .app-header .phx-language-switcher option{color:var(--ink);background:var(--surface-solid)}
body .app-header :is(#userName,#logoutBtn){color:var(--icefire-on-dark)!important}
body .app-header #userRole{color:#ffcea1!important;background:#6f3219!important}
body .app-header #enterpriseReviewNotice{color:#ffe2c1;background:#54301e;border-color:#b66e35}
body .app-header #logoutBtn:hover{background:#3c506f;color:#fff!important}
body .app-header #userAvatar{background:var(--phoenix-flame)!important}
body.phoenix-workspace #mainSidebar,
body.phoenix-workspace #mainSidebar:is(:hover,:focus-within,.is-open){
  color:var(--icefire-on-dark);border-color:#344c71;
  background:linear-gradient(180deg,#142647 20%,#172b5080),url('/assets/phoenix-icefire-wing.webp') center bottom/260px auto no-repeat,#142647;
}
body #mainSidebar::before{background:var(--phoenix-spectrum)}
body #mainSidebar .workspace-category{color:var(--icefire-muted-dark)}
body #mainSidebar .workspace-category:is(:hover,[aria-expanded=true]){color:#fff;background:#2a4166;border-color:#4c648c}
body #mainSidebar .workspace-category.is-current{color:#fff;background:var(--phoenix-flame);border-color:transparent}
body.workspace-flat #mainSidebar .nav-item{color:var(--icefire-muted-dark);background:transparent}
body.workspace-flat #mainSidebar .nav-item:hover{color:#fff;background:#2a4166}
body.workspace-flat #mainSidebar .nav-item.active{color:#fff;background:var(--phoenix-flame)}
body #mainSidebar .nav-group-title{color:var(--icefire-muted-dark)}
body #mainSidebar .sidebar-foot{color:var(--icefire-muted-dark);border-color:#425c82}
@media(min-width:1201px){body.phoenix-workspace:not(.workspace-flat) #mainSidebar .nav-group{width:100%}body.phoenix-workspace:not(.workspace-flat) #mainSidebar .workspace-category{width:100%;white-space:nowrap}body.phoenix-workspace:not(.workspace-flat) #mainSidebar .workspace-category svg{flex:0 0 22px}}
body .workspace-flyout{background:var(--surface-solid);border-color:var(--line-strong);color:var(--ink)}
body .workspace-flyout .nav-item{color:var(--ink-2)}
body .workspace-flyout .nav-item.active{color:var(--accent-dark);background:var(--accent-pale)}

/* Precise typography and the same component grammar on every page. */
body .page-head{border-bottom-color:var(--line-strong)}
body .page-head::before{height:2px;width:82px;bottom:-1px;border-radius:2px;background:var(--phoenix-spectrum)}
body .page-title{font-size:clamp(25px,2.2vw,34px);line-height:1.3;letter-spacing:-.025em;color:var(--ink)}
body .page-desc{color:var(--ink-2);font-size:14px;line-height:1.8}
body .card,body .data-card,body .cfg-card{border-color:var(--line);background:linear-gradient(145deg,#fcfdff,#f6faff)}
body .card-h{font-size:var(--type-section);font-weight:700;color:var(--ink)}
body .card-b{font-size:14px;line-height:1.7}
body :is(button,input,select,textarea){font-family:var(--font-sans)}
body .page{min-height:calc(100dvh - var(--workspace-header));max-width:none}
body .page-head{border:0;padding:0;margin-bottom:20px}
body .page-head::before{display:none}
body .page-title{font-size:var(--type-page);font-weight:750;line-height:1.3}
body :is(.field-label,.form-group>label,.filter-field>label){font-size:var(--type-label)}
body :is(.prototype-note,.table-sub,.form-hint){font-size:var(--type-meta)}
body .btn{font-size:14px;font-weight:600;letter-spacing:0}
body .data-card-toolbar{background:var(--surface-solid)}
body :is(.ops-metric,.stat-card,.bill-stat-card,.uc-info-item,.key-card){border-color:var(--line);background:linear-gradient(140deg,#fcfdff,#f0f6fd)}
body .ops-metric .value,body .bill-stat-value,body .stat-value{color:var(--ink);font-variant-numeric:tabular-nums}
body .page>.ops-grid{border:0;background:transparent;gap:14px;border-radius:0;overflow:visible}
body .page>.ops-grid>.ops-metric{border:1px solid #dfe9f5;border-radius:12px}
body :is(.field-label,.form-group>label){color:#344e70}
body input:not([type=checkbox]):not([type=radio]):not([type=range]),body select,body textarea{border-color:var(--control-line)!important}
body :is(input,textarea)::placeholder{color:#4f6380;opacity:1}
body :is(input,select,textarea):focus{outline:2px solid #346bb333;outline-offset:2px;box-shadow:none!important}
body :is(input,select,textarea):disabled{color:#687b94;opacity:.65}
body .btn-primary,body .btn-primary:disabled{background:var(--phoenix-flame);color:#fff}
body .btn-primary:hover:not(:disabled){background:#a53b15}
body :is(.btn,.action-btn,.pg-icon-btn){touch-action:manipulation}
body .btn-ghost:hover:not(:disabled),body .btn-secondary:hover:not(:disabled),body .action-btn:hover:not(:disabled){background:#eaf2fc;color:#274f87;border-color:#87a8cf}
body .data-table{color:var(--ink);background:var(--surface-solid)}
body .data-table th{background:#eaf1fa;color:#3e587b;border-color:var(--line);font-weight:650}
body .data-table td{color:#344d70;border-color:#dfe8f3;line-height:1.6}
body .data-table tbody tr:hover{background:#edf4fc}
/* Short facts are atomic. Long paths and explanatory text may still wrap. */
body .data-table :is(.badge,.status-badge,.provider-status,.action-btn,.btn){white-space:nowrap;overflow-wrap:normal;word-break:normal;flex-shrink:0}
body .data-table .table-atomic-value,body .data-table .table-nowrap,body .data-table .table-nowrap .table-sub{white-space:nowrap;overflow-wrap:normal;word-break:normal;font-variant-numeric:tabular-nums}
body .data-table .table-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:160px}
body #page-requests .data-card-toolbar{align-items:flex-start;flex-wrap:wrap}
body #page-requests .data-card-toolbar .filter-bar{flex:1 1 520px;justify-content:flex-end;gap:8px}
body #page-requests .data-card-toolbar .filter-bar .form-control{flex:1 1 230px;width:auto;max-width:320px!important}
body #page-requests .data-card-toolbar .filter-chip{white-space:nowrap;min-height:44px}
body #page-requests #securityAuditRetention{flex:0 0 100px;width:100px;min-width:80px}
body #page-requests .data-table{min-width:1100px}
body #page-requests .reconciliation-table{min-width:1280px}
body #page-requests .reconciliation-table td:first-child{min-width:235px}
body #page-requests .reconciliation-table td:nth-child(2){min-width:210px;max-width:285px}
body #page-requests .reconciliation-table td:nth-child(5){min-width:125px;max-width:230px}
body #page-requests .audit-table td:nth-child(3){min-width:240px;max-width:380px}
body #page-requests .audit-table td:nth-child(4){min-width:170px}
body #page-requests .audit-table td:last-child{min-width:230px;max-width:340px}
body #page-requests .data-table td .audit-reason{max-width:30ch;white-space:normal;overflow-wrap:normal;word-break:normal}
body #page-requests #meteringTableBody td:is(:first-child,:nth-child(4),:nth-child(5),:nth-child(6)){white-space:nowrap;font-variant-numeric:tabular-nums}
.table-pagination{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:16px 24px;border-top:1px solid var(--line);font-size:var(--type-label);color:var(--ink-2)}
.table-pagination>label{white-space:nowrap}
.table-pagination .form-control{width:85px;min-height:44px}
.table-pagination>[role=status]{flex:1 1 180px}
.table-page-actions{display:flex;gap:8px;flex-wrap:wrap}
.table-page-actions .btn{white-space:nowrap;min-height:44px}
.table-page-hint{margin:0;padding:0 24px 16px;color:var(--ink-2);font-size:var(--type-meta);line-height:1.7}
@media(max-width:700px){
 body #page-requests .data-card-toolbar .filter-bar{flex-basis:auto;justify-content:flex-start}
 body #page-requests .data-card-toolbar .filter-bar .form-control{max-width:none!important}
 .table-pagination{padding:16px;gap:8px}.table-page-hint{padding:0 16px 16px}
 .table-pagination>[role=status]{flex-basis:100%;order:1}.table-page-actions{order:2;width:100%}.table-page-actions .btn{flex:1}
}
/* Keep the native checkbox keyboard-operable without exposing a second box
   when the shared disabled-input style changes its opacity. */
body .data-table .toggle-switch{width:44px;height:44px;vertical-align:middle}
body .data-table .toggle-switch input{opacity:0;width:1px;height:1px}
body .data-table .toggle-switch .slider{inset:11px 2px}
body .data-table .toggle-switch input:focus-visible+.slider{outline:2px solid var(--focus);outline-offset:4px}
body :is(.table-wrap,.catalog-price-scroll){scrollbar-color:#95adc9 #edf3fa}
body :is(.empty-state,.gw-empty-state){background:transparent;color:var(--ink-2)}
body .ops-deck-item{background:var(--surface-wash)}
body .route-node{background:#f2f7fd;border-color:var(--line)}
body .page-outline{background:var(--surface-wash)}
body .uc-subtab.active,body .ut-tab.active{color:var(--accent-dark);border-color:#e0ac86;background:#fff0e4}

/* Catalogue pricing stays a list, with original model-brand assets preserved. */
body #page-models .catalog-list{border-color:#c1d0e3;background:#fcfdff}
body #page-models .catalog-row-summary:hover{background:#eef5fd}
body #page-models .model-catalog-row[open] .catalog-row-summary{background:linear-gradient(100deg,#fff1e6,#eff5fd)}
body #page-models .catalog-brand{background:#fff;border:1px solid #e0e8f1;border-radius:12px}
body #page-models .catalog-row-detail{background:#f8fbff}
body .catalog-price-table thead{background:#e9f1fb}
body #page-usage .usage-source-strip{background:#f7fbff;border-color:var(--line)}
body #page-usage .usage-kpi-grid .ops-metric{background:linear-gradient(140deg,#fff,#edf5fe)}
body .usage-chart-bar{fill:#4f89cc}
body #page-usage .usage-chart-line{stroke:#b85a11}
body #page-usage .legend-token{background:#b85a11}

/* Comp-measured workbench: 1505 × 1045 reference, fluid outside that frame. */
body #page-playground{--pg-paper:#fcfdff;--pg-canvas:#edf5ff;--pg-selected:#fff3eb;--pg-ink:#10234a;--pg-muted:#607699;--pg-gutter:24px;min-height:0;height:calc(var(--workspace-viewport-height,100dvh) - var(--workspace-header));padding:28px 18px 18px;background:linear-gradient(125deg,#f1f7fe,#edf6fd 75%,#eff8ff);color:var(--pg-ink)}
.pg-page-heading{height:92px;min-width:0;padding:0 12px}
.pg-page-heading h2{margin:0 0 7px;font-size:34px;line-height:1.3;letter-spacing:0;font-weight:750;color:#081b40}
.pg-page-heading p{margin:0;color:#52698d;font-size:16px;line-height:1.6}
body #page-playground .pg-grid{height:calc(100% - 92px);gap:0;position:relative;border:1px solid #e0eaf6;border-radius:12px;background:#fcfdff;overflow:hidden}
body #page-playground .pg-history{width:29%;max-width:374px;padding:15px 16px;gap:14px;background:#fcfdff;border:0;border-right:1px solid #e0eaf6;border-radius:0;flex:none}
body #page-playground .new-chat-btn{min-height:44px;justify-content:center;border-radius:8px;padding:8px 12px;background:linear-gradient(110deg,#ff8223,#ee4a0b);box-shadow:none;font-size:16px}
body #page-playground .pg-history-search{min-height:44px;border:1px solid #d5e1f1;background:transparent;border-radius:8px;padding:0 12px}
body #page-playground .pg-history-search input{font-size:14px;padding:10px 0}
body #page-playground #textHistory{gap:10px}
body #page-playground .pg-history-search{height:44px}
body #page-playground .pg-history-search input{height:42px;min-height:0}
body #page-playground .conv-list{padding:0;margin:0 -8px;gap:6px}
body #page-playground .conv-date-group{padding:9px 14px 0;color:#5e7293;font-size:14px;font-weight:600;line-height:20px}
body #page-playground .conv-item{height:62px;min-height:62px;padding:7px 9px 7px 12px;gap:10px;border-radius:10px;flex:none}
body #page-playground .conv-item.active{background:#fff3eb}
body #page-playground .conv-item:is(:hover,:focus-within){padding-right:9px;background:#edf4fe}
body #page-playground .conv-item.active:is(:hover,:focus-within){background:#ffeddf}
body #page-playground .conv-icon{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:50%;color:#263f69;background:#f1f7ff}
body #page-playground .conv-item.active .conv-icon{color:#c14817;background:#fff0e4}
body #page-playground .conv-item-title{font-size:14px;font-weight:650;color:var(--pg-ink)}
body #page-playground .conv-item-preview{font-size:13px;color:#607699;line-height:1.4}
.conv-item-time{font-size:12px;color:#607699;font-variant-numeric:tabular-nums;flex:none}
.conv-item-menu{z-index:3;position:relative;flex:none}
.conv-item-menu>summary,.pg-task-menu>summary{display:grid;place-items:center;width:44px;height:44px;list-style:none;color:#607699;border-radius:7px;cursor:pointer}
.conv-item-menu>summary::-webkit-details-marker,.pg-task-menu>summary::-webkit-details-marker{display:none}
.conv-menu-choices{position:absolute;top:42px;right:0;display:flex;min-width:100px;padding:4px;border:1px solid #cddbef;border-radius:8px;background:#fcfdff;box-shadow:0 8px 20px #0e23441a}
body #page-playground .conv-menu-choices :is(.conv-item-del,.conv-item-rename){position:static;opacity:1;pointer-events:auto;width:44px;height:44px;min-width:44px}
body #page-playground .pg-history-note{padding:12px 5px 0;border-top:1px solid #e1eaf7;font-size:12px;color:#607699}
body #page-playground .chat-area{border-radius:0;background:#fcfdff;min-width:0;position:relative}
body #page-playground .pg-threadbar{min-height:84px;padding:12px 24px;gap:10px;border-bottom:1px solid #e6edf8;background:transparent}
.pg-thread-title{flex:1;min-width:0}
.pg-thread-title-row{display:flex;align-items:center;min-width:0;gap:8px}
body #page-playground .pg-thread-title h1{flex:0 1 auto;margin:0;line-height:1.5;font-size:20px;font-weight:700}
.pg-thread-title>p{color:#607699;font-size:14px;line-height:1.5;margin:0}
body #page-playground .pg-thread-title .pg-icon-btn{width:44px;height:44px;min-height:44px;margin-block:-6px}
#conversationExportBtn{margin-right:40px}
body #page-playground .pg-configuration{top:20px;right:16px;width:44px;background:transparent}
body #page-playground .pg-configuration>summary{width:44px;padding:8px;background:transparent;border-radius:8px}
body #page-playground .pg-configuration .pg-settings-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
body #page-playground .pg-settings-icon{display:block}
body #page-playground .pg-configuration[open]{top:12px;width:min(360px,calc(100% - 24px));background:#fcfdff}
body #page-playground .pg-configuration[open] summary{margin-left:auto}
body #page-playground .chat-meta-bar{position:absolute;right:24px;top:54px;z-index:1;height:20px;min-height:0;padding:0;max-width:50%;background:transparent}
body #page-playground .chat-meta-bar .chip{font-size:12px;color:#607699}
body #page-playground .chat-messages{padding:22px 18px 20px 24px;gap:23px;scrollbar-gutter:stable}
body #page-playground .message{display:flex;width:100%;max-width:100%;flex-direction:row;align-self:stretch;margin:0;gap:16px;padding:0}
body #page-playground .message .msg-avatar{display:flex;flex:none;width:44px;height:44px;margin:0;border:0;border-radius:50%;overflow:hidden;background:#c9d4e5}
body #page-playground .message-assistant .msg-avatar{background:linear-gradient(135deg,#7e1000,#d64902);padding:3px}
body #page-playground .message-assistant .msg-avatar img{width:100%;height:100%;object-fit:contain;border:0}
body #page-playground .message .msg-body{position:relative;flex:1;width:0;min-width:0}
.pg-message-heading{display:flex;align-items:center;gap:16px;min-height:32px;color:#10234a;font-size:15px}
.pg-message-heading .msg-time{font-size:13px;color:#607699;font-variant-numeric:tabular-nums}
.pg-message-heading .pg-reply-actions{margin-left:auto;gap:0}
body #page-playground .message .pg-icon-btn{width:44px;min-width:44px;height:44px;border-radius:6px;color:#597095}
body #page-playground .message .bubble{margin:0;width:100%;padding:17px 20px;border:1px solid #e1eaf7;border-radius:10px;font-size:16px;line-height:1.75;text-align:left;color:#10234a;background:#fcfdff}
body #page-playground .message-user .bubble{padding:19px 48px 19px 20px;border:0;background:#edf5ff;border-radius:10px}
body #page-playground .message-assistant .pg-message-heading{min-height:35px}
body #page-playground .message .bubble hr{margin:17px 0;border:0;border-top:1px solid #e1eaf7}
body #page-playground .message-user .pg-user-copy{position:absolute;right:4px;top:40px}
body #page-playground .message .bubble li::marker{color:#ed5b0c}
body #page-playground .chat-input-wrap{padding:6px 18px 18px 18px;background:transparent}
body #page-playground .chat-input-box{padding:14px 16px 12px;gap:12px;border:1px solid #cddcf1;border-radius:11px;background:#fcfdff;box-shadow:none}
body #page-playground .chat-input-box textarea{border:0!important;outline:0;box-shadow:none!important;background:transparent!important;font-size:15px;line-height:1.6;min-height:64px;max-height:180px}
body #page-playground .chat-input-actions{align-items:center;gap:10px}
body #page-playground #textAttachBtn{width:auto;min-width:112px;gap:8px;white-space:nowrap;color:#294974;font-size:14px}
body #page-playground .pg-attach-hint{font-size:12px;color:#607699}
body #page-playground .pg-model-default{display:none}
body #page-playground .pg-composer-model{display:flex;align-items:center;gap:8px;max-width:44%;padding:0 10px;border:1px solid #d4e1f3;border-radius:8px;background:transparent;min-width:0}
.pg-composer-model>svg{flex:none;color:#23416f}
body #page-playground .pg-composer-model select{padding-left:0;font-size:14px;max-width:none;min-width:0}
body #page-playground .pg-send-btn{display:flex;align-items:center;justify-content:center;gap:9px;min-width:116px;width:auto;height:44px;border-radius:8px;background:linear-gradient(110deg,#ff7b17,#ed480b);font-size:18px;font-weight:700}
body #page-playground .pg-send-btn:disabled{background:linear-gradient(110deg,#ff7b17,#ed480b);color:white;opacity:.48}
body #page-playground .pg-send-btn.busy{background:#a33a14;min-width:130px}
body #page-playground .chat-input-hint{margin:0;height:0;overflow:hidden}
body #page-playground #charCount{display:none}
body #page-playground #clearChatBtn{margin:0}
body #page-playground .pg-tabs{padding:0;background:transparent;border:0;gap:0;min-height:0}

/* Separate surfaces, not inherited text-chat chrome. */
body #page-playground:is([data-mode=image],[data-mode=video]) .pg-grid{gap:14px;border:0;background:transparent;overflow:visible}
body #page-playground:is([data-mode=image],[data-mode=video]) .pg-history{display:flex;border:1px solid #e1eaf7;border-radius:10px;width:30%;max-width:400px;padding:22px}
body #page-playground[data-mode=video] .pg-history{width:45%;max-width:596px}
body #page-playground:is([data-mode=image],[data-mode=video]) .chat-area{border:1px solid #e1eaf7;border-radius:10px}
body #page-playground:is([data-mode=image],[data-mode=video]) .pg-threadbar{display:none}
body #page-playground #imageCreation,body #page-playground #videoCreation{max-width:none;padding:22px;gap:16px}
body #page-playground .pg-media-intro,body #page-playground .pg-video-intro{display:none}
body #page-playground .pg-media-availability{font-size:12px;line-height:1.5;padding:0;margin:0 0 12px;border:0;background:transparent;color:#607699}
body #page-playground #imageCreation>.chat-input-box,body #page-playground #videoCreation>.chat-input-box{padding:0;border:0;border-radius:0;box-shadow:none;background:transparent}
.pg-field-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}
body #page-playground .pg-field-heading .btn{margin-block:-10px}
body #page-playground #imgPromptInput{padding-bottom:30px;margin-top:-5px}
.pg-image-draft-meta{position:relative;margin-top:-30px;min-height:20px;padding-inline:12px;pointer-events:none}
#imageDraftCount{margin-left:auto;order:2}
body #page-playground .studio-prompt-label{font-size:16px;color:#0c2049;font-weight:650;margin:0}
body #page-playground :is(#imgPromptInput,#vidPromptInput){padding:14px 16px;border:1px solid #cddcf1!important;border-radius:8px;background:#f8fbff!important;min-height:100px;height:100px;font-size:15px}
body #page-playground .pg-field-heading .btn{gap:6px;font-size:14px;color:#3474d9}
.pg-image-modes{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:16px}
.pg-image-modes>button{min-height:44px;display:flex;align-items:center;justify-content:center;gap:10px;padding:9px 16px;border:0;border-bottom:2px solid transparent;border-radius:6px 6px 0 0;background:#eaf1fb;color:#52698d;font:600 15px/1.5 var(--font-sans);cursor:pointer}
.pg-image-modes>button.active{border-bottom-color:#f65c16;color:#cf4c0c;background:#fff}
.pg-image-history-header{display:flex;align-items:center;gap:6px;justify-content:space-between;padding-bottom:16px;border-bottom:1px solid #e3ebf7}
.pg-image-history-heading{font-size:20px;color:#0b2049;margin:0;line-height:1.5}
.pg-image-history-header>.pg-icon-btn{display:none}
.pg-image-history-empty{display:flex;flex:1;flex-direction:column;justify-content:center;align-items:center;gap:12px;min-height:200px;text-align:center;color:#607699}
.pg-image-history-empty>svg{width:96px;height:96px;color:#bdcde2}
.pg-image-history-empty h3{margin:0;font-size:20px;color:#0c2049}
.pg-image-history-empty p{margin:0;font-size:15px}
.pg-image-history-empty .btn{margin-top:10px;color:#3474d9;border-color:#85a9ee;min-width:130px}
body #page-playground #imageHistorySection{margin:0;padding:0;flex:1;min-height:0;max-height:none;overflow:hidden}
body #page-playground #imageGenHist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:12px;min-height:0;overflow-x:hidden;overflow-y:auto;padding:4px 6px 12px;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:var(--ink-muted) transparent;scroll-padding-block:8px}
body #page-playground #imageGenHist .gen-hist-card{width:100%;height:auto;aspect-ratio:1;min-width:0;flex:none;border-radius:10px;transition:border-color .15s ease,box-shadow .15s ease}
body #page-playground #imageGenHist .gen-hist-card:hover{transform:none}
body #page-playground #imageGenHist .gen-hist-thumb{position:absolute;inset:0;object-fit:cover}
body #page-playground #imageGenHist .gen-hist-info{padding:16px 8px 8px;font-size:12px;line-height:1.5}
body #page-playground #imageGenHist .gen-hist-status{top:8px;right:8px;max-width:calc(100% - 56px);font-size:11px;line-height:1.5}
body #page-playground #imageGenHist .gen-hist-del{top:0;left:0;width:44px;height:44px;font-size:20px;border:0;z-index:1}
body #page-playground #imageGenHist .gen-hist-elapsed{bottom:34px;font-size:11px}
body #page-playground #imageGenHist:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
body #page-playground :is(#imageGenHist,#videoGenHist){grid-auto-rows:max-content;align-items:start}
@media(hover:none){body #page-playground #imageGenHist .gen-hist-del{opacity:1}}
.pg-image-reference{display:grid;gap:8px;margin:6px 0}
.pg-image-upload{position:relative;width:min(100%,270px);min-height:104px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:14px;border:1px dashed #aec7ea;border-radius:8px;background:#f5faff;color:#607699;font-size:14px;text-align:center;cursor:pointer}
body #page-playground .pg-image-upload input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.pg-image-upload:is(:hover,.is-dragging){border-color:#3474d9;background:#e5f1ff}
.pg-image-upload:focus-within{outline:2px solid var(--focus);outline-offset:2px}
.pg-image-reference-preview{display:flex;align-items:center;gap:12px;padding:12px;border-radius:8px;background:#eaf2ff;min-width:0}
.pg-image-reference-preview img{object-fit:contain;background:#fff}.pg-image-reference-preview span{flex:1;min-width:0;overflow-wrap:anywhere}
.pg-image-settings{display:grid;grid-template-columns:1.1fr 1.1fr 1fr .75fr;gap:22px;align-items:end}
.pg-image-settings .field{min-width:0;margin:0}.pg-image-settings :is(input,select){min-height:44px;width:100%}
body #page-playground #imageModelSlot{min-width:0}
body #page-playground #imageModelSlot .pg-composer-model{flex-direction:column;align-items:stretch;gap:6px;width:100%;max-width:none;margin:0;padding:0;border:0}
body #page-playground #imageModelSlot .pg-composer-model>svg{display:none}
body #page-playground #imageModelSlot select{appearance:auto;cursor:pointer;font-size:16px;padding:8px 24px 8px 10px;border:1px solid #cddcf1!important;background-color:#f8fbff!important;border-radius:8px}
body #page-playground #imageControlsSlot,body #page-playground #imageControlsSlot #imageParams{display:contents!important}
body #page-playground .pg-generated-image{padding:0;border:1px solid #d4e1f3;border-radius:10px;overflow:hidden;background:#f8fbff;cursor:zoom-in;min-width:0;min-height:44px}
body #page-playground .pg-generated-image img{display:block;width:100%;height:auto;object-fit:contain}
.pg-image-preview-dialog{max-width:min(1000px,94vw);padding:16px}
.pg-image-preview-dialog>img{display:block;max-width:100%;max-height:75dvh;object-fit:contain;margin:auto}
body #page-playground #imageParams .field:has(:is(#imgStyle,#imgSeed)){display:none}
body #page-playground .pg-image-actions{display:grid;grid-template-columns:1fr;gap:10px;position:static;margin:8px 0 0}
.pg-draft-tools{position:relative;flex:none}
.pg-draft-tools>summary{display:grid;place-items:center;min-width:44px;min-height:44px;list-style:none;cursor:pointer;color:#52698d}
.pg-draft-tools>summary::-webkit-details-marker{display:none}
.pg-draft-tools>div{position:absolute;right:0;top:44px;z-index:4;display:grid;gap:6px;min-width:150px;padding:8px;border:1px solid #cddcf1;border-radius:8px;background:#fcfdff;box-shadow:0 8px 24px #11274620}
body #page-playground #imageDraftCopy{background:transparent;color:#47628c;border:1px solid #d4e1f3}
body #page-playground #startImageDraft{background:transparent;color:#3474d9;border:1px solid #85a9ee}
body #page-playground .pg-image-history-header>.pg-icon-btn{display:none}
body #page-playground #imageCreation .pg-field-heading .btn{background:transparent;border:0}
body #page-playground #imgGenBtn{grid-column:1/-1;grid-row:1;display:flex;align-items:center;justify-content:center;gap:9px;min-height:52px;width:100%;border-radius:8px;font-size:19px;font-weight:700;background:linear-gradient(110deg,#ff9226,#e53e08);color:#fff}
body #page-playground #imgGenBtn:disabled{opacity:.55}
body #page-playground .pg-media-privacy{font-size:12px;color:#607699}
.pg-image-result-empty{padding:22px;border:1px solid #e1eaf7;border-radius:9px;text-align:center;color:#607699;background:#fcfdff;min-height:230px}
.pg-image-result-empty h3{margin:0 0 30px;text-align:left;font-size:20px;color:#0c2049}
.pg-image-result-empty svg{color:#b7c7de;margin-bottom:14px}.pg-image-result-empty p{margin:0 0 8px}
body #page-playground #imageCreation:has(#imageOutput:not([hidden])) .pg-image-result-empty{display:none}
body #page-playground .pg-video-create-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}
.pg-video-create-heading h2,.pg-task-list-heading h2{font-size:22px;font-weight:700;line-height:1.5;color:#0b2049;margin:0}
body #page-playground .pg-task-list-heading{margin:0;gap:8px;align-items:center;flex-direction:row;justify-content:space-between}
.pg-video-help{position:relative;color:#3474d9;font-size:14px}
.pg-video-help summary{display:flex;gap:8px;align-items:center;min-height:44px;cursor:pointer;list-style:none}
.pg-video-help>p{position:absolute;z-index:3;right:0;top:44px;width:min(300px,70vw);padding:16px;border:1px solid #cddcf1;border-radius:8px;background:#fcfdff;color:#314b71;font-size:14px}
body #page-playground .pg-video-step{margin:0;min-width:0}
.pg-video-step h3{display:flex;align-items:center;gap:12px;font-size:15px;line-height:1.5;margin:0 0 10px;color:#0c2049}
.pg-step-number{flex:none;display:inline-grid;place-items:center;width:26px;height:26px;background:linear-gradient(140deg,#d2e7ff,#7eaaff);border-radius:50%;color:#1a4e96;font-size:16px;font-weight:650}
.pg-video-step> :not(h3){margin-left:36px}
body #page-playground #videoModelSlot{width:calc(100% - 36px)}
body #page-playground #videoModelSlot .pg-composer-model{margin:0;max-width:100%;width:100%;padding:4px 12px;border:1px solid #cddcf1;border-radius:8px;background:#f8fbff}
body #page-playground #videoModelSlot .pg-composer-model>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
body #page-playground #videoModelSlot .pg-composer-model>svg{width:28px;height:28px}
#videoModelDescription{margin-block:6px 0;font-size:12px}
body #page-playground #vidPromptInput{width:calc(100% - 36px);height:112px;min-height:112px}
.pg-prompt-count{position:relative;margin-block:-27px 0;padding-right:12px;min-height:18px;line-height:18px;text-align:right;font-size:12px;color:#607699;pointer-events:none}
.pg-video-examples{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.pg-video-examples>button{min-height:44px;padding:8px 10px;border:0;border-radius:7px;background:#edf3fc;color:#52698d;font-size:12px;cursor:pointer}
body #page-playground #videoCreation>.chat-input-box{display:flex;gap:18px;flex-direction:column}
body #page-playground #vidPromptInput{padding-bottom:30px}
body #page-playground .pg-video-controls-slot .extra-params{gap:16px}
.pg-video-controls-slot label:has(#vidResolution){order:-2}.pg-video-controls-slot label:has(#vidDuration){order:-1}
body #page-playground .video-references{margin:0;padding:0 0 0 36px;border:0;border-radius:0;background:transparent}
.video-references legend{display:flex;align-items:center;gap:12px;margin-left:0;padding:0;font-size:15px;color:#0c2049;font-weight:650}
.pg-reference-tabs{display:flex;gap:4px;margin-top:10px}
.pg-reference-tabs>button{display:flex;justify-content:center;align-items:center;flex:1;min-width:0;min-height:44px;padding:8px;border:1px solid #d4e2f5;border-radius:7px;background:#fcfdff;color:#536c91;font:600 14px/1.5 var(--font-sans);cursor:pointer}
.pg-reference-tabs>button[aria-pressed=true]{border-color:#ed661c;background:#fff4eb;color:#cb4d13}
.pg-reference-tabs>button::before{content:'';flex:none;display:block;width:20px;height:20px;background:currentColor;mask:var(--reference-icon) center/contain no-repeat}
.pg-reference-tabs>button[data-type=image_url]{--reference-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Cpath d='m4 18 5-6 4 4 3-3 5 6'/%3E%3C/svg%3E")}
.pg-reference-tabs>button[data-type=video_url]{--reference-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7'%3E%3Crect x='2' y='5' width='14' height='14' rx='2'/%3E%3Cpath d='m16 10 6-3v10l-6-3'/%3E%3C/svg%3E")}
.pg-reference-tabs>button[data-type=audio_url]{--reference-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7'%3E%3Cpath d='M9 18V5l12-2v13'/%3E%3Ccircle cx='6' cy='18' r='3'/%3E%3Ccircle cx='18' cy='16' r='3'/%3E%3C/svg%3E")}
body #page-playground .video-reference-add{padding:12px;border:1px dashed #bad0ed;border-radius:8px;background:#f5faff;margin-top:10px}
body #page-playground .pg-cost-panel{display:flex;align-items:center;gap:12px;padding:12px 16px;border-radius:9px;background:#eaf3ff}
.pg-cost-panel>svg{flex:none;color:#4b70a8}.pg-cost-panel>p{flex:1;font-size:12px;color:#607699;line-height:1.6;margin:0}
.pg-cost-panel>div{flex:none;text-align:right}
.pg-cost-panel small{color:#52698d;font-size:12px;display:block}
.pg-cost-panel strong{display:block;font-size:19px;font-weight:700;color:#e5500b;font-variant-numeric:tabular-nums;white-space:nowrap}
body #page-playground #videoReservationSummary{font-size:12px;line-height:1.5;margin-block:6px 0;color:#607699}
body #page-playground .pg-video-submit{position:sticky;bottom:0;z-index:2;background:#fcfdff;border:0;padding:10px 0 0;display:flex;justify-content:flex-end;margin:0}
body #page-playground #vidGenBtn{display:flex;align-items:center;justify-content:center;gap:18px;margin-left:auto;width:55%;min-height:50px;border-radius:8px;background:linear-gradient(110deg,#ff8d14,#e94404);color:#fff;font-size:18px;font-weight:700}
.pg-task-filters{display:flex;gap:8px;flex-wrap:wrap}
.pg-task-filters>button{flex:1;min-width:90px;min-height:44px;padding:8px;border:1px solid #d5e2f5;border-radius:8px;color:#52698d;background:#fcfdff;font:600 14px/1.5 var(--font-sans);cursor:pointer}
.pg-task-filters>button[aria-pressed=true]{border-color:#f56b20;background:#fff4ed;color:#d9510e}
body #page-playground .pg-video-new{order:3;min-height:44px}
body #page-playground #videoTaskStatus{margin:0;font-size:12px;color:#607699}
body #page-playground #videoGenHist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:12px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:var(--ink-muted) transparent;scroll-padding-block:8px}
body #page-playground #videoGenHist:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
body #page-playground #videoGenHist .gen-hist-item{position:relative;min-height:0;min-width:0;border:1px solid var(--line);border-radius:10px;background:var(--surface-solid);padding:0}
body #page-playground .pg-video-task{display:flex;flex-direction:column;align-items:stretch;gap:0;text-align:left;width:100%;height:100%;min-height:0;padding:0;border:0;background:transparent;overflow:hidden}
body #page-playground .pg-video-task[aria-pressed=true]{background:#edf5ff}
.pg-task-thumbnail{position:relative;display:grid;place-items:center;width:100%;aspect-ratio:16/10;height:auto;flex:none;overflow:hidden;border-radius:8px 8px 0 0;color:#829abf;background:linear-gradient(150deg,#e0edff,#c6d9ef)}
.pg-task-thumbnail :is(img,video){position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none}
.pg-task-thumbnail small{position:absolute;right:6px;bottom:6px;border-radius:5px;padding:2px 5px;background:#132948cc;color:white;font-size:12px}
.pg-task-copy{min-width:0;flex:1;display:flex;flex-direction:column;gap:4px;width:100%;padding:10px 10px 12px}
body #page-playground .pg-task-copy .pg-task-model{font-size:15px;font-weight:650;color:#10234a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pg-task-copy :is(time,strong,.pg-task-billing){font-size:12px;font-weight:400;line-height:1.4;color:#607699}
body #page-playground .pg-task-state{font-size:13px;white-space:nowrap;align-self:flex-start;border-radius:9px;padding:6px 12px;background:#ffead2;color:#b95810}
body #page-playground .pg-task-state[data-status=succeeded]{color:#168065;background:#dbf4ec}
body #page-playground .pg-task-state[data-status=failed]{color:#386fb7;background:#e1edff}
.pg-task-menu{position:absolute;right:2px;bottom:2px;top:auto;z-index:2}
.pg-video-task .pg-task-billing{padding-right:34px}
body #page-playground .pg-video-task>.pg-task-state{position:absolute;top:6px;right:6px;max-width:calc(100% - 12px);font-size:12px;padding:4px 8px}
.pg-task-menu>.btn{position:absolute;right:0;top:auto;bottom:44px;white-space:nowrap;background:#fcfdff;border:1px solid #cbdcf3;box-shadow:0 8px 20px #1834571a}
body #page-playground .pg-video-billing-note{font-size:12px;color:#607699;line-height:1.6}
body #page-playground #videoCreation :is(input,select,textarea),body #page-playground #imgPromptInput{scroll-margin-block:20px 24px}
body #page-playground :is(#panel-image,#panel-video){scroll-padding-block:12px 24px}
@media(min-width:901px){body #page-playground #historyToggleBtn{display:none}body #page-playground #clearChatBtn{position:absolute;top:19px;right:102px}body #page-playground .chat-meta-bar{right:142px}}
@media(max-width:1200px){body #page-playground .pg-history{width:28%}.pg-attach-hint{display:none}body #page-playground .pg-composer-model{max-width:48%}body #page-playground[data-mode=video] .pg-history{width:38%}.pg-task-copy{max-width:100%}.pg-task-filters>button{font-size:12px;min-width:75px}}
@media(max-width:900px){
 body #page-playground{padding:0}.pg-page-heading{display:none}
 body #page-playground .pg-grid{height:100%;border:0;border-radius:0}
 body #page-playground .pg-history,body #page-playground:is([data-mode=image],[data-mode=video]) .pg-history{display:none;position:absolute;inset:0 auto 0 0;width:min(350px,88%);max-width:none;padding:18px 14px;border:0;border-right:1px solid #cddcf1;border-radius:0;z-index:10}
 body #page-playground.history-open .pg-history{display:flex}
 body #page-playground .pg-threadbar{display:flex!important;min-height:70px;padding:10px 12px}
 body #page-playground .pg-thread-title h1{font-size:15px}.pg-thread-title>p{font-size:12px}
 body #page-playground #conversationRenameBtn{display:none}
 body #page-playground #conversationExportBtn{margin-right:44px}
 body #page-playground .pg-configuration{top:13px;right:8px}
 body #page-playground .pg-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));flex:none;min-height:44px;padding:0 10px;border-bottom:1px solid #e0eaf8;gap:2px}
 body #page-playground .pg-tab{min-width:0;min-height:44px;font-size:12px;line-height:1.35;white-space:normal;overflow-wrap:anywhere;justify-content:center;padding:8px 6px;border-radius:5px 5px 0 0}
 body #page-playground .pg-tab.active{background:#fff2e8;color:#c34b13}
 body #page-playground .chat-area{border:0!important;border-radius:0!important}
 body #page-playground .chat-messages{padding:18px 12px;gap:24px}
 body #page-playground .message{gap:9px}
 body #page-playground .message .msg-avatar{width:28px;height:28px}
 body #page-playground .message .bubble{padding:12px;font-size:15px}
 .pg-message-heading{gap:10px;min-height:32px;flex-wrap:wrap;row-gap:0}
 .pg-message-heading .pg-reply-actions{width:100%;margin-left:0;order:3}
 body #page-playground .message-assistant .pg-message-heading{margin-bottom:6px}
 body #page-playground .message .pg-icon-btn{width:44px;min-width:44px;height:44px}
 body #page-playground .message-user .bubble{padding-right:44px}
 body #page-playground .message-user .pg-user-copy{top:34px}
 body #page-playground .chat-input-wrap{padding:8px 10px max(10px,env(safe-area-inset-bottom))}
 body #page-playground .chat-input-box{padding:10px}
 body #page-playground .chat-input-actions{gap:6px;flex-wrap:wrap}
 body #page-playground #textAttachBtn{min-width:44px;width:44px}
 #textAttachBtn>span,.pg-attach-hint{display:none}
 body #page-playground #clearChatBtn{width:44px}
 body #page-playground .pg-composer-model{flex:1;max-width:none;padding:0 6px;width:0}
 body #page-playground .pg-composer-model>svg{display:none}
 body #page-playground .pg-composer-model select{font-size:12px}
 body #page-playground .pg-send-btn{min-width:56px;width:auto;padding:0 10px;font-size:14px}
 body #page-playground .pg-send-btn>svg{display:none}
 body #page-playground .chat-meta-bar{right:14px;top:55px}
 body #page-playground:is([data-mode=image],[data-mode=video]) .pg-grid{overflow:hidden}
 body #page-playground #imageCreation,body #page-playground #videoCreation{padding:20px 14px}
 .pg-image-settings{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
 .pg-image-modes>button{font-size:12px;padding:8px}
 body #page-playground .pg-image-history-header>.pg-icon-btn{display:flex}
 .pg-video-create-heading h2{font-size:19px}
 .pg-video-step> :not(h3){margin-left:0}
 body #page-playground #vidPromptInput,body #page-playground #videoModelSlot{width:100%}
 body #page-playground .video-references{padding-left:0}
 .video-references legend{margin-left:0}
 .pg-reference-tabs>button{font-size:12px}
 body #page-playground #vidGenBtn{width:100%}
 .pg-cost-panel{flex-wrap:wrap}.pg-cost-panel>div{margin-left:auto}
 body #page-playground.history-hidden .pg-history{display:none}
}
@media(max-width:400px){.pg-image-settings{grid-template-columns:1fr}.pg-image-reference-preview{flex-wrap:wrap}.pg-video-controls-slot .extra-params{grid-template-columns:1fr!important}}

/* Shared shell geometry measured from the approved application comps. */
@media(min-width:901px){
 :root{--workspace-header:80px}
 body.phoenix-workspace .app-header{padding:0 20px 0 30px}
 body .app-header .brand{gap:14px}
 body .app-header .brand-mark{width:68px;height:68px}
 body .app-header .brand-text>span{font-size:10px!important;letter-spacing:.48em!important;line-height:1.6}
 body.phoenix-workspace .workspace-search-trigger{position:absolute;left:50%;top:17px;transform:translateX(-50%);width:31%;min-width:240px;height:46px;padding:0 18px;border-radius:15px}
 body .app-header .workspace-search-trigger>span{font-size:14px;color:#bccce5}
 body .app-header .workspace-search-trigger svg{width:21px;height:21px}
 body .app-header .header-right{gap:18px}
 body.phoenix-workspace .app-header :is(.phx-language-switcher,#userBadge){background:transparent!important;border-color:transparent!important}
 body.phoenix-workspace .app-header .phx-language-switcher{width:130px;min-width:0;padding-inline:0!important}
 body .app-header .phx-language-switcher select{min-width:0;width:100%;font-size:14px!important}
 body .app-header #userBadge{padding:0;margin:0!important;gap:8px!important;width:123px;min-width:123px}
 body .app-header .workspace-user-menu>summary{gap:8px;padding:0}
 body .app-header #userName{max-width:55px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
 body .app-header #userAvatar{position:relative;width:38px!important;height:38px!important;border-radius:50%!important;background:linear-gradient(135deg,#c6e2ff,#599be9)!important;font-size:0!important}
 body .app-header #userAvatar::before{content:'';position:absolute;inset:7px;background:#f0f7ff;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3Cpath d='M4 22v-3a8 8 0 0 1 16 0v3Z'/%3E%3C/svg%3E") center/contain no-repeat}
 body .app-header #userRole{font-size:10px!important}
 body #navDrawerToggle{display:none}
 body #enterpriseReviewNotice{max-width:66px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 body.phoenix-workspace #mainSidebar,body.phoenix-workspace #mainSidebar:is(:hover,:focus-within,.is-open){top:var(--workspace-header);left:0;bottom:0;width:var(--workspace-rail);padding:12px 0;border:0;border-radius:0;background:#112746;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#425c80 transparent}
 body.phoenix-workspace.workspace-flat #mainSidebar .nav-group{margin:0;padding:0;border:0}
 body.phoenix-workspace.workspace-flat #mainSidebar .workspace-flyout{margin:0;padding:0;border:0;background:transparent}
 body.phoenix-workspace.workspace-flat #mainSidebar .nav-group-title{display:none}
 body.phoenix-workspace.workspace-flat #mainSidebar .nav-item{gap:16px;min-height:54px;margin:0;padding:13px 22px;border-radius:0;font-size:14px;color:#ccdaed}
 body.phoenix-workspace.workspace-flat #mainSidebar .nav-item.active{color:#fff;background:linear-gradient(90deg,#263f61,#1b3150);box-shadow:inset 4px 0 #ff8116;border:0}
 body.phoenix-workspace.workspace-flat #mainSidebar .nav-ico{flex-basis:22px}
 body.phoenix-workspace:is(.workspace-flat,.workspace-grouped) main.content{padding-left:var(--workspace-rail);padding-top:0}
 body.phoenix-workspace .page{padding:28px 30px 32px;background:linear-gradient(120deg,#f0f7ff,#edf6fd)}
 body.phoenix-workspace .page-head{padding-bottom:0;border-bottom:0;margin-bottom:20px}
 body.phoenix-workspace .page-title{font-size:32px;letter-spacing:0}
 body.phoenix-workspace .page-desc{font-size:15px}
}
@media(min-width:901px) and (max-width:1200px){body .app-header #userName{max-width:110px;overflow:hidden;text-overflow:ellipsis}body.phoenix-workspace .workspace-search-trigger{width:25%;min-width:200px}body .app-header .header-right{gap:8px}}
@media(max-width:900px){body.phoenix-workspace.workspace-flat main.content{padding-left:0}body .app-header .brand-text strong{font-size:20px}body .app-header .brand-mark{width:35px;height:44px}body .app-header .header-right{gap:5px}body .app-header #navDrawerToggle{display:inline-flex}body .app-header .workspace-search-trigger{min-width:44px;width:44px;padding:10px}body .app-header .workspace-search-trigger>span,body .app-header .workspace-search-trigger kbd{display:none}body.phoenix-workspace.workspace-flat #mainSidebar{display:none}body.phoenix-workspace.workspace-flat #mainSidebar.is-open{display:flex;width:min(268px,calc(100vw - 32px));top:76px;left:8px;bottom:12px}}

.workspace-user-menu{position:relative;min-width:44px}
.workspace-user-menu>summary{display:flex;align-items:center;gap:12px;list-style:none;min-height:44px;padding:0 4px;cursor:pointer;color:#e1ecff}
.workspace-user-menu>summary::-webkit-details-marker{display:none}
.workspace-user-options{position:absolute;z-index:120;top:54px;right:0;display:grid;gap:10px;min-width:180px;padding:16px;border-radius:10px;background:#1a3154;box-shadow:0 10px 30px #0a1e4240}
body .app-header .workspace-user-options #userRole{justify-self:start}
body .app-header .workspace-user-options #logoutBtn{gap:10px;justify-content:flex-start;white-space:nowrap;font-size:14px}
body .app-header #enterpriseReviewNotice{background:transparent!important;border:0!important;color:#d3e1f5;font-size:0;line-height:0;width:44px;min-width:44px;padding:10px;text-indent:-9999px}
body .app-header #enterpriseReviewNotice::before{content:'';display:block;width:24px;height:24px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7'%3E%3Cpath d='M6 9a6 6 0 0 1 12 0v7l2 2H4l2-2V9Zm4 12h4'/%3E%3C/svg%3E") center/contain no-repeat}
body.phoenix-workspace.workspace-flat #mainSidebar .nav-ico svg{stroke:currentColor;color:inherit}
/* Stable rail; existing verified-role checks still own navigation inventory. */
body.phoenix-workspace.workspace-grouped #mainSidebar{display:flex;flex-direction:column;align-items:stretch}
body.workspace-grouped #mainSidebar .nav-group{width:100%;padding:0;margin:0 0 6px;border:0}
body.workspace-grouped #mainSidebar .workspace-category{display:flex;align-items:center;flex-direction:row;gap:12px;width:100%;min-height:48px;padding:12px 18px;font-size:14px;text-align:left;border:0;border-radius:0;background:transparent;box-shadow:none}
body.workspace-grouped #mainSidebar .workspace-category::after{content:'';width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);margin-left:auto;flex:none}
body.workspace-grouped #mainSidebar .workspace-category>span{min-width:0;flex:1;white-space:normal;overflow-wrap:anywhere}
body.workspace-grouped #mainSidebar .workspace-category[aria-expanded=true]::after{transform:rotate(45deg)}
body.workspace-grouped #mainSidebar .workspace-category.is-current{color:#fff;background:#203958}
body.workspace-grouped #mainSidebar .workspace-category.is-current>svg{color:#ff8a20}
body.workspace-grouped #mainSidebar .workspace-flyout{position:static;width:100%;max-height:none;overflow:visible;margin:0;padding:0 0 6px;background:transparent;color:#c2d1e8;border:0;border-radius:0;box-shadow:none}
body.workspace-grouped #mainSidebar .workspace-flyout::before,body.workspace-grouped #mainSidebar .nav-group-title{display:none}
body.workspace-grouped #mainSidebar .nav-item{display:flex;align-items:center;gap:10px;min-height:44px;margin:0;padding:10px 18px 10px 32px;border:0;border-radius:0;color:#c2d1e8;font-size:13px;white-space:normal}
body.workspace-grouped #mainSidebar .nav-item .nav-ico{flex:0 0 18px}
body.workspace-grouped #mainSidebar .nav-item .nav-ico svg{width:18px;height:18px}
body.workspace-grouped #mainSidebar .nav-item.active{color:#fff;background:#284366;box-shadow:inset 3px 0 #ff861c}
body.workspace-grouped #mainSidebar .nav-item:hover{color:#fff;background:#223d60}
@media(max-width:900px){body.phoenix-workspace:is(.workspace-flat,.workspace-grouped) #mainSidebar{display:none}body.phoenix-workspace:is(.workspace-flat,.workspace-grouped) #mainSidebar.is-open{display:flex;align-items:stretch;width:min(var(--workspace-rail),calc(100vw - 32px));top:76px;left:8px;bottom:12px;padding:12px 0;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#425c80 transparent}body.phoenix-workspace:is(.workspace-flat,.workspace-grouped) main.content{padding-left:0}}
body .app-header #enterpriseReviewNotice{position:relative;overflow:visible}
body .app-header #enterpriseReviewNotice>svg{display:none}
body .app-header #enterpriseReviewNotice .enterprise-review-label{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
body .app-header #enterpriseReviewNotice .enterprise-review-count{display:block;position:absolute;top:0;right:0;min-width:18px;padding:0 3px;border-radius:9px;text-indent:0;color:#8f330e;background:#ffe3cc;font-size:12px;line-height:18px;font-weight:700}
body .app-header .workspace-user-options #enterpriseReviewNotice{width:auto;max-width:none;min-height:44px;padding:8px;text-indent:0;font-size:13px;line-height:1.5;gap:10px;white-space:normal}
body .app-header .workspace-user-options #enterpriseReviewNotice::before{flex:none}
body .app-header .workspace-user-options #enterpriseReviewNotice .enterprise-review-label{position:static;width:auto;height:auto;clip-path:none;overflow:visible;white-space:normal}
body .app-header .workspace-user-options #enterpriseReviewNotice .enterprise-review-count{display:none}
@media(max-width:900px){.workspace-user-menu>summary{gap:0}.workspace-user-menu>summary>svg{display:none}.workspace-user-options{top:46px}}

/* Per-surface region placement from the three separate approved comps. */
@media(min-width:901px){
 body #page-playground[data-mode=video]{padding:24px 26px 22px}
 body #page-playground[data-mode=video] .pg-page-heading{height:60px;display:flex;align-items:flex-start;gap:18px;padding-left:4px}
 body #page-playground[data-mode=video] .pg-page-heading p{margin-top:15px;font-size:14px}
 body #page-playground[data-mode=video] .pg-grid{height:calc(100% - 60px)}
 body #page-playground[data-mode=video] #videoCreation{padding:18px 22px}
 body #page-playground[data-mode=video] #videoCreation>.chat-input-box{gap:12px}
 body #page-playground[data-mode=video] .pg-video-step h3{margin-bottom:8px}
 body #page-playground[data-mode=video] .pg-history{padding:18px 22px}
 body #page-playground #videoModelDescription{font-size:11px;line-height:1.5;margin-block:3px 0}
 body #page-playground[data-mode=image]{padding:22px 26px 28px}
 body #page-playground[data-mode=image] .pg-page-heading{height:88px}
 body #page-playground[data-mode=image]>.pg-image-modes{height:44px;margin:0 0 10px 12px}
 body #page-playground[data-mode=image] .pg-grid{height:calc(100% - 142px)}
 body #page-playground #imageCreation{padding:16px 22px 22px}
}
body #page-playground[data-mode=image] .chat-area{background:transparent;border:0}
body #page-playground[data-mode=image] #imageCreation{padding:0;gap:12px}
body #page-playground[data-mode=image] #imageCreation>.chat-input-box{padding:18px 20px;background:#fcfdff;border:1px solid #e1eaf7;border-radius:9px;gap:12px}
body #page-playground[data-mode=image] .pg-field-heading{gap:6px}
body #page-playground[data-mode=image] .pg-field-heading>label{margin-right:auto}
body #page-playground[data-mode=image] .pg-image-result-empty{flex:none;min-height:230px}
body #page-playground[data-mode=image] .pg-media-privacy{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
body #page-playground #videoModelSlot .pg-composer-model>svg{display:none}
body #page-playground #videoModelSlot .pg-composer-model::before{content:'';display:block;flex:none;width:30px;height:30px;background:#dfeeff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23254270' stroke-width='1.6'%3E%3Crect x='3' y='2' width='18' height='20' rx='2'/%3E%3Cpath d='M7 2v20M17 2v20M3 7h4m10 0h4M3 12h4m10 0h4M3 17h4m10 0h4'/%3E%3C/svg%3E") center/25px no-repeat;border-radius:5px}
body #page-playground>.pg-image-modes[hidden]{display:none}
body #page-playground #imageAvailability{margin:0;font-size:12px}
body #page-playground .video-reference-add .field{display:none}
body #page-playground .video-reference-add{padding:0;border:0;margin:10px 0 0}
body #page-playground #addVideoReference{display:flex;flex-direction:column;justify-content:center;gap:8px;width:100%;min-height:92px;padding:14px;border:1px dashed #b3caeb;border-radius:7px;background:#f5faff;color:#536c91}
body #page-playground #addVideoReference::before{content:'';display:block;width:28px;height:28px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8' cy='8' r='1.5'/%3E%3Cpath d='m4 18 5-6 4 4 3-3 5 6'/%3E%3C/svg%3E") center/contain no-repeat}
body #page-playground .video-references>.field-hint{font-size:11px;line-height:1.5;margin-block:8px}
body #page-playground .pg-video-examples>button{min-height:44px}
@media(max-width:900px){
 body #page-playground>.pg-image-modes{display:none}
 body .app-header #userAvatar{display:flex!important;width:30px!important;height:30px!important}
 .workspace-user-menu>summary{min-width:34px;justify-content:center}
 body #page-playground .pg-video-examples>button{min-height:44px}
}

/* Charts share the source data and keep exact amounts in an accessible table. */
.if-chart-card{padding:24px;margin-bottom:20px;min-width:0}
.if-chart-card>p{color:var(--ink-2);font-size:13px;line-height:1.7;margin:8px 0 20px;max-width:90ch}
.if-currency-charts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.if-currency-charts>div{min-width:0}
.if-currency-charts h4{font-size:14px;font-weight:650;color:var(--ink-2);margin:8px 0 14px}
.if-chart-scroll{overflow-x:auto;scrollbar-color:#95adc9 #edf3fa}
.if-chart-scroll svg{display:block;width:100%;min-width:560px;height:auto;overflow:visible}
.if-chart-scroll text,.if-donut text{fill:var(--ink-2);font:12px var(--font-sans)}
.if-chart-scroll text{font-size:18px}.if-donut text{font-size:14px}
.if-chart-scroll .if-gridline{stroke:#dfe8f3;stroke-width:1}
.if-chart-legends{display:flex;flex-wrap:wrap;gap:4px 12px;justify-content:flex-end;margin-bottom:12px}
.if-chart-legend{display:inline-flex;gap:7px;align-items:center;min-height:44px;padding:6px 8px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--ink-2);font-size:12px;cursor:pointer}
.if-chart-legend:hover:not(:disabled){background:#eaf2fc;border-color:#b6cbe5}
.if-chart-legend[aria-pressed=false]{text-decoration:line-through;opacity:.65}
.if-chart-legend:disabled{cursor:default;opacity:1}
:is(.if-chart-legend,.if-donut-legend) i{display:inline-block;width:11px;height:11px;border-radius:3px;background:var(--series);flex:none}
.if-chart-data{margin-top:12px;color:var(--ink-2);font-size:13px}
.if-chart-data summary{width:fit-content;min-height:44px;padding:12px 0;cursor:pointer}
.if-chart-data .data-table{font-variant-numeric:tabular-nums}
.if-chart-empty{display:grid;place-items:center;min-height:180px;color:var(--ink-2);font-size:14px;line-height:1.7;text-align:center;padding:24px}
.if-donut{display:grid;grid-template-columns:minmax(160px,220px) minmax(0,1fr);align-items:center;gap:16px;min-height:260px}
.if-donut>svg{width:100%;height:auto;max-width:240px;justify-self:center}
.if-donut .if-donut-total{fill:var(--ink);font-size:25px;font-weight:700}
.if-donut-legend{list-style:none;display:grid;gap:15px;padding:0;margin:0}
.if-donut-legend li{display:grid;grid-template-columns:12px minmax(0,1fr) auto;gap:6px 9px;align-items:center;font-size:13px;color:var(--ink-2)}
.if-donut-legend span{overflow-wrap:anywhere}.if-donut-legend strong{color:var(--ink);font-variant-numeric:tabular-nums}
.if-donut-legend small{grid-column:2 / 4;color:var(--ink-2);font-variant-numeric:tabular-nums}
.account-overview-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:20px;align-items:start}
body #page-account>.stat-grid{gap:18px;margin-bottom:22px}
body #page-account .stat-card{min-height:178px;padding:22px 22px 18px 94px;position:relative;border-radius:12px}
body #page-account .stat-card .if-metric-icon{position:absolute;left:20px;right:auto;top:24px;width:62px;height:62px;border-radius:12px}
body #page-account .stat-value{font-size:34px;margin-block:12px 6px;color:var(--ink)}
body #page-account .account-overview-grid>.card{min-height:330px}
body #page-account .uc-info-grid{grid-template-columns:1fr;gap:0}
body #page-account .uc-info-item{display:grid;grid-template-columns:100px minmax(0,1fr);padding:16px 0;border:0;border-bottom:1px solid #e0eaf6;background:transparent;border-radius:0;gap:16px}
body #page-account>.card:last-child>.card-b{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px!important}
body #page-account>.card:last-child button{min-height:88px;justify-content:flex-start;padding:20px;font-size:16px;border:1px solid #dce7f5;background:linear-gradient(120deg,#fff4e8,#f8fbff);color:#10234a;white-space:normal}
body #page-account>.card:last-child button:nth-child(2){background:linear-gradient(120deg,#e7f3ff,#f8fbff)}
body #page-account>.card:last-child button:nth-child(3){background:linear-gradient(120deg,#efedff,#f8fbff)}
body #page-settings.active{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:16px;align-content:start}
body #page-settings>*{min-width:0}
body #page-settings>:is(.page-head,.page-outline){grid-column:1/-1}
body #page-settings>.card{margin:0;border-radius:8px}
body #page-settings>.card>.card-h{font-size:22px;margin-bottom:20px}
body #page-settings>.card>.card-b>.form-group{display:grid;grid-template-columns:100px minmax(0,1fr);gap:4px 16px;align-items:center}
body #page-settings>.card>.card-b>.form-group>:is(.form-hint,p){grid-column:2;margin:4px 0 0}
body #page-settings>.card>.card-b>.form-group label{margin:0}
body #page-settings .pw-strength{margin:16px 0;padding:14px;background:#eaf3ff;border-radius:7px}
body #page-settings .pw-rules{font-size:12px;gap:8px}
body #page-settings #changePwdBtn{display:flex;margin-left:auto}
body :is(#page-prompts,#page-evaluations,#page-policy-groups,#page-enterprise,#page-team,#page-requests,#page-channel-costs) .data-table th{font-size:13px;padding:14px 18px}
body :is(#page-prompts,#page-evaluations,#page-policy-groups,#page-enterprise,#page-team,#page-requests,#page-channel-costs) .data-table td{font-size:14px;padding:15px 18px}
body :is(#page-gw-routing,#page-gw-cache,#page-gw-ratelimit,#page-gw-guardrails,#page-gw-observability,#page-status) .cfg-card{border-radius:10px;padding:22px}
body :is(#page-gw-routing,#page-gw-cache,#page-gw-ratelimit,#page-gw-guardrails,#page-gw-observability,#page-status) .card-h{font-size:19px}
@media(max-width:1100px){body #page-settings.active{grid-template-columns:minmax(0,1fr)}body #page-settings>:is(.page-head,.page-outline){grid-column:auto}body #page-account>.card:last-child>.card-b{grid-template-columns:1fr}body #page-account .stat-card{padding:18px;min-height:160px}body #page-account .stat-card .if-metric-icon{position:static;margin-bottom:12px}}
@media(max-width:640px){body #page-settings>.card>.card-b>.form-group{display:block}body #page-settings>.card>.card-b>.form-group label{margin-bottom:7px}body #page-account .uc-info-item{grid-template-columns:80px minmax(0,1fr);gap:10px}}
body .if-metric{position:relative;padding-right:70px}
.if-metric-icon{position:absolute;right:20px;top:22px;display:grid;place-items:center;width:42px;height:42px;border-radius:50%;color:#2471bd;background:#e2efff}
.if-metric-icon-0{color:#be4516;background:#ffebdd}.if-metric-icon-2{color:#b06b05;background:#fff0d6}.if-metric-icon-3{color:#6d50ab;background:#ede8ff}
@media(max-width:1200px){.if-currency-charts,.account-overview-grid{grid-template-columns:minmax(0,1fr)}body .if-metric{padding-right:20px}.if-metric-icon{position:static;margin-bottom:12px}}
@media(max-width:760px){.if-chart-card{padding:18px}.if-donut{grid-template-columns:minmax(0,1fr)}.if-donut>svg{max-width:200px}.if-donut-legend{grid-template-columns:minmax(0,1fr);gap:12px}.if-chart-legends{justify-content:flex-start;gap:0}.if-metric-icon{width:34px;height:34px}.if-metric-icon svg{width:21px;height:21px}}

/* Measured catalogue and operations rows. Price/capability variants keep their
 * own labels; drawing a table must not flatten a time or video tariff. */
body #page-models .catalog-toolbar{display:grid;grid-template-columns:minmax(180px,2fr) repeat(3,minmax(140px,1fr)) auto auto;gap:12px;align-items:center;padding:12px;background:#f9fcff;border:1px solid #dce7f4;border-radius:10px;margin-bottom:12px}
body .sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap!important;border:0!important}
body.phoenix-workspace #mainSidebar .nav-ico{color:inherit}
body.phoenix-workspace #mainSidebar .nav-ico svg{width:22px;height:22px;stroke-width:1.6}
body :is(#page-models,#page-usage)>.page-head{border:0;padding-bottom:0;margin-bottom:16px}
body :is(#page-models,#page-providers,#page-model-mgmt,#page-usage){min-height:calc(100dvh - var(--workspace-header))}
body :is(#page-models,#page-providers,#page-model-mgmt,#page-usage) .page-desc{max-width:none}
body :is(#page-models,#page-usage)>.page-head::before{display:none}
body #page-usage>.page-outline{display:none}
.catalog-search-field{display:flex;align-items:center;gap:10px;min-width:0;height:44px;padding:0 12px;border:1px solid #c6d7ed;border-radius:7px;background:#f8fbff;color:#506d96}
.catalog-search-field>svg{flex:none;width:20px;height:20px}
body .catalog-search-field>input{min-width:0;width:100%;height:100%;border:0!important;padding:0!important;background:transparent!important;box-shadow:none!important}
body .content .catalog-search-field>input:not([type=checkbox]):not([type=radio]):not([type=range]){border:0!important;background:transparent!important;box-shadow:none!important;outline:none;min-height:40px;font-size:13px}
.catalog-search-field:focus-within{outline:2px solid var(--focus);outline-offset:2px}
.catalog-select-field{display:flex;align-items:center;gap:6px;min-width:0;height:44px;padding:0 10px;border:1px solid #c6d7ed;border-radius:7px;background:#f8fbff;font-size:13px;color:var(--ink-2)}
body .catalog-select-field>select{flex:1;min-width:0;padding:0;border:0!important;background:transparent!important;font-size:13px;box-shadow:none;height:40px}
#catalogResultCount{font-size:13px;color:var(--ink-2);white-space:nowrap}
body #page-models .model-catalog-note{padding:4px 0 12px;border:0;background:none;font-size:12px;margin:0}
body #page-models .catalog-columns{display:grid;grid-template-columns:minmax(210px,2.4fr) .85fr .8fr .8fr repeat(3,.95fr) .6fr 86px;gap:14px;align-items:center}
body #page-models .catalog-list-head{padding:12px 16px;font-size:13px;line-height:1.6;color:#354f77}
.catalog-list-head small{display:block;font-size:11px;font-weight:400}
.catalog-kind .badge{word-break:keep-all;overflow-wrap:normal}
body #page-models .catalog-list{gap:3px;border:0;border-radius:0;background:none;overflow:visible}
body #page-models .model-catalog-row{border:1px solid #dce7f4;border-radius:9px;background:#f9fcff;overflow:hidden}
body #page-models .model-catalog-row[open]{border-color:#fb7e19}
body #page-models .catalog-row-summary{padding:12px 16px;min-height:64px}
body #page-models .catalog-model-identity{gap:12px}
body #page-models .catalog-brand{width:42px;height:42px;flex-basis:42px;border:0;background:transparent;border-radius:0}
body #page-models .catalog-brand img{background:#f9fcff}
body #page-models .model-card-name{font-size:15px;line-height:1.4;font-weight:650}
body #page-models .catalog-model-copy{gap:4px}
body #page-models .catalog-model-meta{font-size:11px;line-height:1.4;gap:3px 8px}
.catalog-maker,.catalog-kind,.catalog-context,.catalog-currency{font-size:13px;line-height:1.5;color:#354f77;overflow-wrap:anywhere}
.catalog-kind>.badge{background:#e5efff;color:#245aa9;padding:5px 10px;border-radius:20px;font-size:12px}
.catalog-price-cell{min-width:0;display:flex;flex-direction:column;gap:3px;font-variant-numeric:tabular-nums;font-size:13px;color:#354f77;overflow-wrap:anywhere}
.catalog-price-cell>small{display:none}
.catalog-price-cell>strong{font-weight:550}
.catalog-price-cell>em{font-size:10px;font-style:normal;color:#98501c}
.catalog-banded-price{grid-column:5/8;display:grid;gap:4px;font-size:13px;color:#354f77}
.catalog-banded-price>small{font-size:11px}
.catalog-disclosure{display:flex;align-items:center;justify-content:center;gap:8px;color:#2863ad;font-size:13px;min-height:40px}
.catalog-open-label{display:none}
.model-catalog-row[open] .catalog-closed-label{display:none}
.model-catalog-row[open] .catalog-open-label{display:inline}
body #page-models .model-catalog-row[open] .catalog-expand{transform:rotate(180deg)}
body #page-models .model-catalog-row[open] .catalog-disclosure{color:#b73e11;border:1px solid #edaa85;border-radius:7px}
body #page-models .model-catalog-row[open] .catalog-price-cell>strong{color:#bf3e0b}
body #page-models .catalog-row-detail{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;border:0;background:linear-gradient(100deg,#fff7f0,#f5faff);padding:4px 16px 16px}
.catalog-description{padding:14px 18px;background:#f9fcff;border:1px solid #e0e9f6;border-radius:8px;min-width:0}
body #page-models .model-card-desc{margin:0 0 10px;font-size:13px;line-height:1.8}
body #page-models .catalog-model-id{font-size:11px}
body #page-models .model-card-tags{margin:12px 0 0}
body #page-models .catalog-price-scroll{min-width:0;padding:0 12px 6px;background:#f9fcff;border:1px solid #e0e9f6;border-radius:8px}
body #page-models .catalog-price-table{font-size:12px}
body #page-models .catalog-price-table :is(th,td){padding:10px 8px}

/* Provider/model operations retain the same handlers and protected gates. */
body :is(#page-providers,#page-model-mgmt)>.page-head{border:0;padding-bottom:0;margin-bottom:16px}
body :is(#page-providers,#page-model-mgmt)>.page-head::before{display:none}
body :is(#page-providers,#page-model-mgmt)>.workspace-disclosure{border:0;background:none;margin:0 0 12px;padding:0;font-size:12px;color:var(--ink-2)}
body :is(#page-providers,#page-model-mgmt)>.workspace-disclosure>summary{min-height:32px;padding:4px 0;font-size:12px}
body :is(#page-providers,#page-model-mgmt)>.card{padding:18px;border-radius:12px;background:linear-gradient(135deg,#fcfdff,#f6faff);border:1px solid #e0eaf6}
body #page-providers .provider-filter-bar{display:grid;grid-template-columns:minmax(200px,2fr) minmax(145px,1fr) minmax(145px,1fr) minmax(20px,1.5fr) auto;gap:12px;align-items:center;margin:0 0 20px;padding:0;border:0;background:none}
#refreshProvidersBtn{grid-column:5}
.provider-select-field{min-width:0}
.provider-select-field>select{width:100%;min-height:44px;font-size:13px}
body #page-providers .provider-select-field>select{width:100%!important;min-width:0!important}
body #page-providers .badge-provider{color:#1769c8;background:#e5efff;border-color:transparent;border-radius:5px;font-size:12px;letter-spacing:0}
body :is(#page-providers,#page-model-mgmt) .data-table .table-model-identity strong{color:var(--ink)}
body #page-model-mgmt .badge-provider{background:none;border:0;color:#354f77;padding:0;font-size:13px;letter-spacing:0}
.table-model-identity{display:flex;align-items:center;gap:12px;min-width:170px;max-width:310px}
.table-model-identity>div{min-width:0}
.table-model-identity strong{display:block;font-size:14px;line-height:1.45;overflow-wrap:anywhere}
.table-model-identity .catalog-brand{width:36px;height:36px;flex-basis:36px;border:0;background:transparent}
.table-model-identity .catalog-brand img{width:32px;height:32px;background:#f9fcff}
.table-model-identity .table-sub{display:block;max-width:270px;white-space:normal;overflow-wrap:anywhere;font-size:11px;line-height:1.5}
body :is(#page-providers,#page-model-mgmt) .data-table{font-size:13px;min-width:950px}
body :is(#page-providers,#page-model-mgmt) .data-table th{padding:14px 12px;background:#eaf2fb;color:#29446e;font-weight:600;font-size:12px}
body :is(#page-providers,#page-model-mgmt) .data-table td{padding:14px 12px;border-color:#e0e9f4}
body #page-model-mgmt .data-table td{padding-block:10px}
.table-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;position:relative}
body .table-actions :is(.btn,.action-btn){min-height:44px;white-space:nowrap}
.table-action-menu{position:relative;flex:none}
.table-action-menu>summary{min-width:44px;min-height:44px;display:flex;align-items:center;justify-content:center;gap:5px;list-style:none;color:#2d5e9b;cursor:pointer;font-size:13px}
.table-action-menu>summary::-webkit-details-marker{display:none}
.table-action-menu>summary:hover{background:#e9f2ff;border-radius:7px}
.table-action-menu[open]>div{display:grid;gap:4px;min-width:145px;padding:7px;background:#fcfdff;border:1px solid #b8cce6;border-radius:8px}
.table-action-menu>div .action-btn{display:block;text-align:left;width:100%}
.table-action-menu[open]>summary{color:#b74715}
.table-action-menu[open]{padding-bottom:4px}
.table-result-count{margin:0;padding:12px 0 0;font-size:13px;color:#536c91}
body #page-model-mgmt>.card>.table-result-count{padding:0 0 16px}
.model-listing-state{display:flex;align-items:center;gap:8px;min-width:105px;font-size:12px}
.model-row-actions{gap:3px}
body #page-model-mgmt .model-mgmt-toolbar{display:grid;grid-template-columns:minmax(210px,1.8fr) repeat(3,minmax(140px,1fr));padding:20px;background:#f9fcff;border:1px solid #dce7f4;border-radius:10px;gap:16px;margin-bottom:20px}
body #page-model-mgmt .model-mgmt-toolbar{grid-template-columns:repeat(4,minmax(0,1fr)) auto auto;align-items:end}
.model-mgmt-table-top{display:flex;align-items:center;gap:16px;margin:0 0 14px;flex-wrap:wrap}
.model-mgmt-table-top>.table-result-count{margin-right:auto}
.model-mgmt-table-top>.catalog-search-field{width:min(100%,370px)}
.model-mgmt-status-field>select{min-height:44px;font-size:13px}
body #page-model-mgmt .model-mgmt-toolbar :is(input,select){min-height:44px}
body #page-model-mgmt .model-mgmt-toolbar .filter-field{min-width:0}
body #page-model-mgmt #modelHealthLaunchHint{font-size:12px;line-height:1.65;margin:0 0 8px}
body #page-model-mgmt #modelHealthCheckStatus:empty{display:none}

/* Read-only dashboard charts follow the comp's trend/distribution + three-up
 * diagnostics hierarchy. All extra operational facts remain reachable below. */
body #page-usage .usage-filters .usage-filter-bar{padding:12px;gap:12px;grid-template-columns:minmax(100px,.8fr) repeat(4,minmax(0,1fr)) auto auto}
body #page-usage .usage-filters{margin:12px 0;border-color:#dce7f4;border-radius:8px}
body #page-usage .usage-data-meta{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:4px 20px;margin:0 0 12px}
body #page-usage .usage-source-strip{margin:0;padding:0;font-size:12px;line-height:1.6;border:0;background:none;border-radius:0;flex-wrap:wrap;gap:8px}
body #page-usage .usage-source-strip{min-height:26px}
body #page-usage .usage-source-strip .prototype-note{font-size:12px;padding:2px 8px;margin-left:0}
body #page-usage .usage-filter-bar{margin-bottom:0}
body #page-usage .usage-scope-label{margin:0;font-size:12px;color:var(--ink-2);line-height:1.6}
body #page-usage .usage-kpi-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
body #page-usage .usage-kpi-grid .ops-metric{min-height:120px;padding:14px 12px 10px 65px;border-radius:7px}
body #page-usage .usage-kpi-grid .label{font-size:13px;line-height:1.5}
body #page-usage .usage-kpi-grid .value{font-size:clamp(21px,1.8vw,28px);line-height:1.25;margin-top:4px}
body #page-usage .usage-kpi-grid .hint{font-size:12px;line-height:1.5;margin-top:6px;margin-left:-53px}
body #page-usage .usage-kpi-grid .if-metric-icon{position:absolute;left:12px;right:auto;top:20px;width:42px;height:42px;color:#1875cf;background:#e5f1ff;margin:0}
body #page-usage .usage-section-head{margin:12px 0 8px;gap:8px 16px}
body #page-usage .usage-section-head h3{font-size:14px;flex-shrink:0}
body #page-usage .usage-section-head p{font-size:12px;line-height:1.5}
body #page-usage .usage-dashboard-grid{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:12px;margin-bottom:12px}
body #page-usage .usage-dashboard-grid>.card{border-radius:8px;min-width:0;min-height:0;margin:0}
body #page-usage .data-card-toolbar{padding:14px 18px 6px}
body #page-usage .data-card-toolbar .card-h{font-size:17px;line-height:1.6}
body #page-usage .data-card-toolbar .card-b{font-size:12px;line-height:1.6}
body #page-usage .usage-trend-chart{margin:4px 18px 0;height:auto;min-height:0}
body #page-usage .usage-trend-chart>svg{display:block;height:202px}
body #page-usage .usage-chart-data>summary{min-height:44px;padding:8px 0;font-size:12px}
body #page-usage .usage-chart-bar{fill:#58a6f8;opacity:.6}
body #page-usage .usage-chart-line{stroke:#f47b17;stroke-dasharray:none;stroke-width:2.5}
body #page-usage .usage-chart-requests{fill:none;stroke:#1884ed;stroke-width:2.5}
body #page-usage .usage-chart-area{fill:#1884ed;opacity:.08}
body #page-usage .usage-chart-requests-point{fill:#1884ed}
body #page-usage .usage-chart-line-point{fill:#f47b17}
body #page-usage .usage-legend{gap:12px}
body #page-usage .usage-legend label{display:flex;gap:5px;align-items:center;min-height:44px;font-size:12px;cursor:pointer}
body #page-usage .usage-legend input{width:14px;height:14px;min-height:14px}
body #page-usage .legend-request{background:#1884ed}
body #page-usage .usage-model-share{padding:4px 18px 12px}
body #page-usage .if-donut{grid-template-columns:minmax(120px,1fr) minmax(0,1fr);gap:8px;min-height:230px}
body #page-usage .if-donut-legend{gap:8px}
body #page-usage .if-donut-legend li{font-size:12px;gap:2px 7px;margin:0;line-height:1.5}
body #page-usage .if-donut-legend li>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal}
body #page-usage .if-donut-legend small{font-size:12px}
body #page-usage .usage-bottom-grid{grid-template-columns:minmax(0,1.15fr) minmax(0,.9fr) minmax(0,1.25fr)}
body #page-usage .usage-bottom-grid .card-b{max-width:40ch}
body #page-usage .usage-bottom-grid .usage-health-list{padding:8px 18px 18px;gap:8px}
body #page-usage .usage-bottom-grid .usage-health-row{min-height:34px;padding:6px 0;font-size:12px}
body #page-usage .usage-diagnostics{margin:0 0 12px}
body #page-usage .usage-diagnostics>summary{min-height:44px;padding:10px 4px;font-size:13px}
body #page-usage .usage-diagnostics>summary small{font-size:11px}
.usage-latency-bars{padding:8px 18px 18px;display:grid;gap:6px}
.usage-latency-bar{display:grid;grid-template-columns:minmax(0,1fr) minmax(50px,1fr) auto;gap:3px 8px;align-items:center;font-size:12px}
.usage-latency-bar>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#385781}
.usage-latency-track{height:16px;border-radius:3px;background:#eaf1f9;overflow:hidden}
.usage-latency-track>i{display:block;height:100%;background:#2082ec;border-radius:3px}
.usage-latency-bar:nth-child(2n) i{background:#fa861b}
.usage-latency-bar>strong{font-weight:500;color:#29446e;font-variant-numeric:tabular-nums}
.usage-latency-bar>small{grid-column:1/-1;color:var(--ink-2);font-size:12px;line-height:1.4}
.usage-recent-list{padding:0 18px 18px}
.usage-recent-list>div{display:grid;grid-template-columns:auto minmax(0,1fr) auto 18px;gap:8px;align-items:center;padding:10px 0;border-bottom:1px solid #e0e9f5;font-size:12px;color:#36527a;font-variant-numeric:tabular-nums}
.usage-recent-list strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}
.usage-recent-list .success{color:#078255}.usage-recent-list .danger{color:#c13036}
.usage-result-icon{display:flex;align-items:center;justify-content:center}
body #page-usage>.usage-channel-card{padding:16px 18px;margin-block:18px}
body #page-usage>.usage-channel-card .data-card-toolbar{padding:0 0 12px}
@media(min-width:901px){
 body.phoenix-workspace #page-models{padding:40px 30px 32px}
 body.phoenix-workspace #page-providers{padding:34px 28px 32px}
 body.phoenix-workspace #page-model-mgmt{padding:34px 34px 32px}
 body.phoenix-workspace #page-usage{padding:22px 28px 32px}
 body #page-usage .usage-filter-bar .filter-field{display:flex;align-items:center;gap:8px;min-width:0}
 body #page-usage .usage-filter-bar .filter-field label{margin:0;font-size:12px;line-height:1.4;flex-shrink:0}
 body #page-usage .usage-filter-bar .filter-field select{flex:1;width:0;min-width:0;font-size:12px;padding-inline:10px}
 body.phoenix-workspace:has(#page-models.active) .workspace-search-trigger{left:46.6%;width:28%;transform:none;top:14px;height:43px}
 body.phoenix-workspace:has(#page-providers.active) .workspace-search-trigger{left:57.7%;width:19.4%;transform:none;top:20px;height:42px}
 body.phoenix-workspace:has(#page-model-mgmt.active) .workspace-search-trigger{left:51.4%;width:23.8%;transform:none;top:24px;height:46px}
 body.phoenix-workspace:has(#page-usage.active) .workspace-search-trigger{left:42.5%;width:30%;transform:none;top:18px;height:43px}
 body #page-usage .usage-model-share .if-donut{min-height:210px}
 body #page-usage .usage-model-card{min-height:0}
 body #page-usage .usage-kpi-grid .ops-metric{min-height:120px}
}
@media(min-width:901px) and (max-width:1250px){
 body.phoenix-workspace:has(:is(#page-models,#page-providers,#page-model-mgmt,#page-usage).active) .workspace-search-trigger{left:35%;width:22%;min-width:180px}
}
@media(max-width:1250px){
 body #page-models .catalog-columns{grid-template-columns:minmax(190px,2fr) .85fr .8fr .8fr repeat(3,1fr) .6fr 76px;gap:8px}
 body #page-models .catalog-toolbar{grid-template-columns:minmax(170px,2fr) minmax(140px,1fr) minmax(140px,1fr) auto}
 #catalogResultCount{grid-column:1/-1;text-align:right}
 body #page-usage .usage-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 body #page-usage .usage-bottom-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 body #page-usage .usage-recent-preview{grid-column:1/-1}
}
@media(max-width:1050px){
 body #page-usage .usage-filters .usage-filter-bar{grid-template-columns:repeat(3,minmax(0,1fr))}
 body #page-usage .usage-filter-bar .filter-field{display:grid;gap:5px}
 body #page-usage .usage-filter-bar .filter-field select{width:100%}
 body #page-models .catalog-list-head{display:none}
 body #page-models .catalog-row-summary{grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:12px;padding:16px}
 .catalog-model-identity{grid-column:1/4}.catalog-disclosure{grid-column:4;grid-row:1/4;align-self:start}
 .catalog-maker,.catalog-kind,.catalog-context{display:none}
 .catalog-price-cell{grid-row:2}.catalog-price-cell>small{display:block;font-size:11px}
 .catalog-banded-price{grid-column:1/4;grid-row:2}
 .catalog-currency{grid-column:1/4;font-size:11px}
 body #page-models .catalog-row-detail{grid-template-columns:minmax(0,1fr)}
 body #page-providers .provider-filter-bar{grid-template-columns:minmax(170px,2fr) minmax(130px,1fr) minmax(130px,1fr)}
 #refreshProvidersBtn{grid-column:auto;justify-self:start}
 body #page-model-mgmt .model-mgmt-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}
 body #page-usage .usage-dashboard-grid{grid-template-columns:minmax(0,1fr)}
 body #page-usage .usage-recent-preview{grid-column:auto}
}
@media(max-width:640px){
 body #page-models .catalog-toolbar{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px}
 body #page-models .catalog-select-field{display:block;height:auto;padding:6px 10px}
 body #page-models .catalog-select-field>span{display:block;font-size:11px}
 body #page-models .catalog-select-field>select{display:block;width:100%}
 .catalog-search-field{grid-column:1/-1}
 #catalogReset{justify-self:start}#catalogResultCount{grid-column:2;text-align:right;white-space:normal;font-size:11px}
 body #page-models .catalog-row-summary{padding:14px 12px;gap:12px 7px}
 body #page-models .catalog-model-identity{gap:8px}
 body #page-models .model-card-name{font-size:14px}
 .catalog-disclosure{font-size:11px;gap:3px}
 body #page-models .catalog-row-detail{padding:0 12px 12px}
 .catalog-description{padding:12px}
 body #page-providers .provider-filter-bar{grid-template-columns:repeat(2,minmax(0,1fr))}
 body #page-providers .provider-filter-bar .catalog-search-field{grid-column:1/-1}
 body #page-model-mgmt .model-mgmt-toolbar{padding:14px;gap:12px}
 body #page-model-mgmt .filter-field-search{grid-column:1/-1}
 .model-mgmt-table-top>.catalog-search-field{width:100%}
 body :is(#page-providers,#page-model-mgmt)>.card{padding:12px}
 body #page-usage .usage-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body #page-usage .usage-kpi-grid .ops-metric{padding:14px 12px;min-height:150px}
 body #page-usage .usage-kpi-grid .if-metric-icon{position:absolute;left:12px;top:14px;width:32px;height:32px;margin:0}
 body #page-usage .usage-kpi-grid .label{font-size:12px;padding-left:40px;min-height:32px}
 body #page-usage .usage-kpi-grid .value{font-size:25px}
 body #page-usage .usage-kpi-grid .hint{font-size:11px}
 body #page-usage .usage-kpi-grid .hint{margin-left:0}
 body #page-usage .usage-dashboard-grid{grid-template-columns:minmax(0,1fr)}
 body #page-usage .usage-filters .usage-filter-bar{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px}
 body #page-usage .usage-filter-bar .filter-field{min-width:0}
 body #page-usage .if-donut{grid-template-columns:minmax(100px,1fr) minmax(0,1fr)}
 body #page-usage .data-card-toolbar{padding:14px 12px 8px}
 body #page-usage .data-card-toolbar .card-h{font-size:16px}
}

/* Compact reference-size dashboard. Auto rows still expand for zoom/locales;
 * no graph, warning, exact number or record is clipped to fake a fit. */
@media(min-width:1280px) and (min-height:900px){
 body.phoenix-workspace #page-usage{padding-top:16px}
 body #page-usage>.page-head{margin-bottom:12px}
 body #page-usage .page-desc{font-size:14px;line-height:1.5}
 body #page-usage .usage-data-meta{margin-bottom:8px}
 body #page-usage .usage-kpi-grid{margin-bottom:12px}
 body #page-usage .usage-kpi-grid .ops-metric{min-height:108px;padding-top:10px;padding-bottom:8px}
 body #page-usage .usage-kpi-grid .value{font-size:26px;line-height:1.2}
 body #page-usage .usage-kpi-grid .label{font-size:12px}
 body #page-usage .usage-kpi-grid .hint{margin-top:4px}
 body #page-usage .usage-section-head{margin-top:8px}
 body #page-usage .data-card-toolbar{padding:10px 16px 4px}
 body #page-usage .data-card-toolbar .card-h{font-size:17px;line-height:1.4}
 body #page-usage .data-card-toolbar .card-b{font-size:12px;line-height:1.4}
 body #page-usage .usage-trend-chart>svg{height:168px}
 body #page-usage .usage-model-share .if-donut{min-height:190px}
 body #page-usage .usage-model-share .if-donut>svg{max-width:200px}
 body #page-usage .usage-bottom-grid .usage-health-list{gap:4px;padding:6px 16px 12px}
 body #page-usage .usage-bottom-grid .usage-health-row{min-height:32px;padding:4px 0}
 body #page-usage .usage-latency-bars{padding:6px 16px 12px;gap:6px}
 body #page-usage .usage-latency-bar{grid-template-rows:auto auto;gap:0 8px;font-size:12px;line-height:1.35}
 body #page-usage .usage-latency-bar>small{grid-column:1;grid-row:2;font-size:11px;line-height:1.3}
 body #page-usage .usage-latency-track{grid-column:2;grid-row:1/3}
 body #page-usage .usage-latency-bar>strong{grid-column:3;grid-row:1/3}
 body #page-usage .usage-recent-list{padding:0 16px 12px}
 body #page-usage .usage-recent-list>div{padding:7px 0}
}

body #page-playground #refreshVideoTasks::before,body #page-playground #clearImageHistory::before{content:'';display:block;flex:none;width:16px;height:16px;background:currentColor;mask:var(--action-icon) center/contain no-repeat}
body #page-playground #refreshVideoTasks{gap:6px;--action-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M20 10a8 8 0 1 0-2 8M20 4v6h-6'/%3E%3C/svg%3E")}
body #page-playground #clearImageHistory{gap:6px;--action-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7'%3E%3Cpath d='M4 6h16M9 6V3h6v3M6 6l1 15h10l1-15M10 10v7m4-7v7'/%3E%3C/svg%3E")}
.billing-columns{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:18px;align-items:start}
.billing-columns>:is(.billing-history,.billing-side){display:grid;gap:18px;min-width:0}
body .billing-columns .card{margin:0;padding:20px;border-radius:9px;min-width:0}
body .billing-columns .card-h{font-size:18px;margin-bottom:16px}
body .billing-columns .topup-layout{grid-template-columns:minmax(0,1fr);gap:16px}
body .billing-columns .topup-form{grid-template-columns:repeat(2,minmax(0,1fr))}
body .billing-columns .topup-form>:is(.topup-preview,.topup-submit,.topup-status){grid-column:1/-1}
body .billing-columns .topup-field{min-width:0}
body .billing-columns .topup-orders-wrap{margin-top:20px}
body .billing-columns .if-chart{padding:0}
body #page-account>.card:last-child .btn{gap:14px}
body #page-account>.card:last-child .btn>svg{flex:none}
body #page-account>.card:last-child .quick-action-arrow{margin-left:auto}
@media(max-width:1200px){.billing-columns{grid-template-columns:minmax(0,1fr)}}
@media(max-width:640px){body .billing-columns .card{padding:16px}body .billing-columns .topup-form{grid-template-columns:minmax(0,1fr)}}
body #page-settings .password-control{position:relative;min-width:0}
body #creditTotalBalance{white-space:nowrap;overflow-x:auto;max-width:100%;overflow-wrap:normal;word-break:normal;scrollbar-width:thin;scrollbar-color:#8ca7c9 transparent}
body #creditTotalBalance:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
body #page-settings .password-control input{padding-right:48px}
body #page-settings .password-visibility{position:absolute;right:1px;top:1px;display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:8px;color:#587398;background:transparent}
body #page-settings .password-visibility:hover{background:#e8f2ff}

/* Dialogs, loading, empty and error states belong to the same visual world. */
body .modal-overlay{background:#0a1a36a6;backdrop-filter:none}
body .modal,body .modal-content{background:#fcfdff!important;border-color:#afc2dc}
body .modal-header{background:linear-gradient(110deg,#edf4fe,#fffaf4);border-color:var(--line)}
body .modal-footer{background:#edf3fb;border-color:var(--line)}
body .workspace-search-dialog{background:#f8fbff;border-color:#b0c4e0}
body .workspace-search-result:hover,body .workspace-search-result:focus-visible{background:#e5effc;color:#224c86}
body .workspace-search-close{background:#e9f1fb}
body .session-gate{isolation:isolate;display:grid;grid-template-columns:60.4% 39.6%;padding:0;color:var(--ink);background:url('/assets/phoenix-login-faithful.webp') center/100% 100% no-repeat;overflow:auto}
body .session-gate::before{display:none}
.session-gate .session-transition{display:none}
.session-transition{position:absolute;z-index:-1;right:0;top:0;width:calc(40% + 110px);height:100%;pointer-events:none}
body .session-gate-card{grid-column:2;width:100%;padding:60px clamp(24px,4vw,64px);max-width:640px}
body .session-brand-mark{width:100px;height:118px;object-fit:contain;border-radius:0}
body .session-gate strong{font-size:clamp(30px,3vw,48px);color:#081c40}
body .session-gate strong span{font-size:inherit;color:#fb9900}
body .session-gate .session-tagline{font-size:13px;letter-spacing:.32em;color:var(--ink-2);margin-top:8px}
body .session-gate h1{font-size:clamp(22px,2vw,30px);color:#081c40;margin-top:48px}
body .session-gate p{color:var(--ink-2)}
body .session-progress{width:100%;height:8px;background:#d2dbea}
body .session-progress span{background:linear-gradient(90deg,#e64f0a,#ffc541)}
body .session-gate .btn-secondary{background:#f1f6fd;color:var(--ink);border-color:#7a93b6}
body .session-gate :is(button,a):focus-visible{outline-color:var(--focus)}

@media(max-width:960px){body.phoenix-workspace .app-header{background-color:#142647;background-position:55% 55%}body .app-header .brand-text strong{font-size:20px}}
@media(max-width:760px){
  body .app-header .brand-mark{width:34px;height:40px}
  body .page-title{font-size:26px}body .page-desc{font-size:14px}
  body #page-playground .pg-history{background:#edf4fc}
  body #page-playground .pg-threadbar{background:#f7faff}
  body .session-gate{display:flex;justify-content:center;padding:max(28px,env(safe-area-inset-top)) 24px max(28px,env(safe-area-inset-bottom));background:linear-gradient(145deg,#e2effc,#fcf8f3)}
  body .session-gate::before,.session-transition{display:none}body .session-gate-card{padding:24px;max-width:420px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Financial workspaces: preserve the data contracts, restore the comp's hierarchy. */
body .if-finance-page .page-head{align-items:flex-start;gap:20px}
.if-finance-page .page-head>div:first-child{min-width:0;flex:1}
.if-finance-page .page-desc{max-width:78ch}
.if-finance-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;max-width:50%}
body .if-finance-actions .page-outline{padding:0;margin:0;border:0;background:none;gap:0;max-width:210px}
.if-finance-actions .page-outline label{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
body .if-finance-actions .page-outline select{max-width:210px;min-height:44px;border:1px solid var(--line)!important;border-radius:8px;background-color:var(--surface-solid)!important}
body .if-finance-page .card{border-radius:10px}
body .if-finance-page>.ops-grid>.ops-metric{min-height:138px;padding:20px 62px 18px 20px;background:var(--surface-solid)}
body .if-finance-page .ops-metric .value{font-size:24px;line-height:1.45;white-space:pre-line}
body .if-finance-page .ops-metric .hint{line-height:1.6}
body .if-finance-page .if-metric-icon{right:18px;top:18px;width:38px;height:38px}
body .if-finance-page .data-card-toolbar{background:none}
body .if-finance-page .data-table th{font-size:13px;padding:14px 16px;background:#edf4fd}
body .if-finance-page .data-table td{padding:13px 16px;font-size:14px}
body .if-policy-panel{margin-bottom:16px}
body .if-policy-panel>summary{padding:16px 22px;border-bottom:1px solid var(--line)}
body #pricingLaunchPanel.if-policy-panel .disclosure-content{padding:20px 22px 0}
body .if-policy-panel .form-grid{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) auto;padding:0!important;gap:20px}
body .if-policy-panel .form-grid .field{margin:0;min-width:0}
body .if-policy-panel .form-grid>button{align-self:center}
body .if-policy-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:0;gap:12px;margin:18px 0;padding:14px 0 0;border-top:1px solid var(--line);background:none}
body .if-policy-facts .ops-metric{padding:0;border:0;box-shadow:none;background:none;min-height:0}
body .if-policy-facts .if-metric-icon,body .if-policy-facts .hint{display:none}
body .if-policy-facts .label{display:inline;font-size:12px;margin-right:10px}
body .if-policy-facts .value{display:inline;font-size:16px!important;line-height:1.5}
.if-policy-checks{border-top:1px solid var(--line);padding:8px 0}
.if-policy-checks>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;cursor:pointer;padding:8px 0;min-height:44px;color:var(--ink-2)}
.if-policy-checks>summary::-webkit-details-marker{display:none}
.if-policy-checks>summary::after{content:'';width:8px;height:8px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin-right:4px;flex:none}
.if-policy-checks[open]>summary::after{transform:rotate(225deg)}
body .if-policy-checks .card-h{font-size:14px;font-weight:600}
body .if-policy-checks .data-card-toolbar{padding:8px 0 12px}
body .if-policy-checks .ops-deck,body .if-policy-checks #pricingLaunchActions{margin:0!important;padding:0 0 12px}
body #page-credits .if-wallet-summary{padding:20px;margin-bottom:18px;background:var(--surface-solid)}
body .if-wallet-summary>.card-h{margin:0 0 14px}
body .if-wallet-summary .ops-grid{gap:12px;border:0;background:none;margin:0}
body .if-wallet-summary .ops-metric{padding:16px;border:0;border-radius:8px;background:#eff5ff;min-height:126px}
body .if-wallet-summary .ops-metric:first-child{background:#fff4e7}
body .if-wallet-summary .if-metric-icon{display:none}
body .if-wallet-summary .ops-metric .value{font-size:24px}
.if-credit-panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:18px;align-items:stretch}
body .if-credit-panels>.card{margin:0;min-width:0;padding:20px;background:var(--surface-solid)}
body .if-credit-panels .card-h{font-size:20px;padding:0 0 18px;margin:0;border:0}
body .if-credit-panels .card-b{padding:0}
body .if-credit-panels .payment-rate-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
body .if-credit-panels .form-row{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
body .if-credit-panels .field{margin:0}
body .if-credit-panels .payment-policy-actions{display:flex;flex-direction:column;align-items:stretch;gap:12px;margin-top:14px}
body .if-credit-panels .payment-policy-actions button{align-self:flex-end}
body .if-credit-panels #legacyCreditRepair{margin-top:14px}
body .if-finance-disclosure{padding:0;border:0;background:none;margin:0 0 16px}
.if-finance-disclosure>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:56px;padding:14px 20px;border:1px solid var(--line);border-radius:10px;background:var(--surface-solid)}
.if-finance-disclosure>summary::-webkit-details-marker{display:none}
.if-finance-disclosure>summary::after{content:'';width:8px;height:8px;flex:none;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin:0 4px 4px}
.if-finance-disclosure[open]>summary::after{transform:rotate(225deg);margin-top:6px}
body .if-finance-disclosure>summary .card-h{padding:0;margin:0;font-size:16px;border:0}
body .if-finance-disclosure>.card{margin-top:8px}
.if-currency-switcher{display:flex;width:fit-content;gap:4px;padding:3px;border:1px solid var(--line);border-radius:9px;background:#edf4fd;margin:0 0 12px}
.if-currency-switcher button{min-height:44px;min-width:64px;padding:8px 14px;border:0;border-radius:6px;background:transparent;font-size:14px;font-weight:650;color:var(--ink-2);cursor:pointer}
.if-currency-switcher button[aria-pressed=true]{color:#fff;background:#285a9b}
.if-currency-switcher button:hover:not([aria-pressed=true]){background:#dceafa}
body .if-finance-trend{padding:20px;position:relative}
body .if-finance-trend>.card-h{margin:0 0 14px;padding:0;border:0}
body .if-finance-trend>.if-currency-switcher{position:absolute;right:20px;top:12px}
body .if-finance-trend>.card-h{padding-right:165px}
body .if-finance-trend>p{font-size:13px;line-height:1.7;margin:6px 0;max-width:none}
body .if-finance-trend .if-currency-charts{display:block}
body .if-finance-trend [data-display-currency]>h4{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
body .if-finance-trend [data-display-currency][hidden],body .if-budget-share [hidden]{display:none!important}
body .if-finance-trend .if-chart-legends{margin:0 0 6px;justify-content:flex-end}
body .if-finance-trend .if-chart-scroll svg{height:auto;min-width:680px}
body .if-finance-trend .if-chart-scroll text{font-size:13px}
body #page-budgets.if-finance-page>.ops-grid{gap:14px;padding:0;border:0;border-radius:0;background:none;overflow:visible}
body .if-finance-trend .if-chart-data{margin-top:0}
body .if-finance-trend .if-chart-data summary{min-height:36px;padding:8px 0}
.if-budget-analysis{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(310px,1fr);gap:16px;margin-bottom:18px}
body .if-budget-analysis>.card{margin:0;min-width:0}
body .if-budget-share{padding:20px}
body .if-budget-share>.card-h{margin:0 0 24px;font-size:18px}
body .if-budget-share .if-donut{grid-template-columns:minmax(0,1fr);gap:12px}
body .if-budget-share .if-donut>svg{width:160px;max-width:100%;margin:auto}
body .if-budget-share .if-donut-legend{gap:8px}
body .if-billing-flow{padding:18px;margin-bottom:18px}
body .if-billing-flow .card-h{margin:0 0 16px}
body .if-billing-flow .route-flow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
body .if-billing-flow .route-arrow{display:none}
body .if-billing-flow .route-node{min-width:0;max-width:none;padding:16px;background:#f1f6fd;border:1px solid var(--line);box-shadow:none}
.if-budget-editor{margin:0 20px 16px;color:var(--ink-2)}
.if-budget-editor>summary{min-height:44px;cursor:pointer;padding:10px 0;width:fit-content;color:#245ca4;font-weight:600}
body .if-budget-editor>.form-grid{padding:12px 0 0!important}
.if-revenue-breakdowns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 18px;align-items:start}
body .if-revenue-breakdowns>.card{margin:0;min-width:0}
body .if-revenue-breakdowns .data-card-toolbar{padding:16px!important}
body .if-revenue-breakdowns .card-h{font-size:18px;margin:0}
body .if-revenue-breakdowns .card-b{font-size:14px;line-height:1.7;padding:4px 0 0}
body .if-revenue-breakdowns .data-table :is(th,td){padding:10px;font-size:13px;white-space:pre-line}
.if-request-filters{display:grid;grid-template-columns:repeat(2,minmax(125px,1fr)) minmax(120px,.8fr) minmax(180px,1.5fr) auto;gap:12px;padding:18px;align-items:end}
.if-request-filters .field{margin:0;min-width:0}
.if-request-filters>.field-hint{grid-column:1/-1;margin:0}
.if-request-summaries{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:18px}
body .if-request-summary{padding:18px;margin:0;min-width:0}
body .if-request-summary>.card-h{margin:0 0 16px;padding:0;font-size:18px;border:0}
body .if-request-summary .ops-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0;border:0;background:none;gap:12px}
body .if-request-summary .ops-metric{padding:0;border:0;background:none;min-height:0}
body .if-request-summary .if-metric-icon{display:none}
body .if-request-summary .label{font-size:12px;margin-bottom:6px}
body .if-request-summary .value{font-size:22px}
body .if-request-summary .hint{font-size:12px;margin-top:8px}
.if-key-base{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:16px;padding:18px 20px}
body .if-key-base .card-h{margin:0;font-size:18px}
body .if-key-base .guide-value{min-width:0;padding:10px 12px;background:#f1f6fd;border:1px solid var(--line);border-radius:8px;color:var(--ink-2);white-space:nowrap;word-break:normal;overflow-x:auto}
body .if-keys-table-card{padding:0;overflow:hidden}
body .if-keys-table-card>.card-h{padding:20px;margin:0;border-bottom:1px solid var(--line)}
body #keysList .data-table{min-width:1000px}
body #keysList .key-card-name{font-size:14px;max-width:220px;overflow-wrap:anywhere}
body #keysList .key-card-value{font-size:12px;margin:6px 0 0}
body #keysList .key-card-actions{margin:0;display:flex;flex-wrap:wrap;gap:6px;max-width:180px}
body #keysList .key-allowed-models{max-width:220px;min-width:110px}
body #keysList [data-key-created],body #keysList [data-key-expiry]{display:block;white-space:normal}
body #keysList .key-security-cell .key-card-meta{display:flex;flex-direction:column;align-items:flex-start!important;gap:6px!important;min-width:120px}
body #keysList .key-limit{white-space:nowrap;font-size:13px}
body #keysList .key-mobile-label{display:none}
body #keysList .key-scope-all{color:var(--ink-2);opacity:1}
/* Channel operations: original tables, forms and handlers; comp-led grouping. */
body .if-channel-page .page-head{align-items:flex-start;gap:24px}
body .if-channel-page .page-head .page-desc{max-width:78ch}
body .if-channel-page .if-channel-list{padding:18px;border-color:var(--line);background:var(--surface-solid)}
body .if-channel-page .if-channel-list .table-wrap{border:0;border-radius:8px}
body .if-channel-page .data-table th{font-size:13px;color:var(--ink);padding:16px 12px;background:#e9f1fb}
body .if-channel-page .data-table td{padding:16px 12px;vertical-align:middle;font-size:13px;line-height:1.65;color:var(--ink-2);border-bottom:1px solid var(--line)}
body .if-channel-page .data-table td strong{color:var(--ink);font-size:14px;line-height:1.5;overflow-wrap:anywhere}
body .if-channel-page .data-table .table-sub{font-size:12px;line-height:1.6;white-space:normal;overflow-wrap:anywhere;margin-top:5px}
body .if-channel-page .table-model-identity>div{min-width:0}
body .if-channel-page .table-model-identity{min-width:0;gap:10px}
body .if-channel-page .provider-balance-empty{color:var(--ink-2)}
body .if-channel-page .provider-status{white-space:normal;align-items:baseline}
body .if-channel-page .table-result-count{margin:16px 0 0;color:var(--ink-2)}
body .if-channel-page .if-cell-label{display:none}
/* Remaining operations workspaces: preserve data and native controls. */
body .if-workspace-page .page-head{align-items:flex-start;gap:24px}
body .if-workspace-page .page-desc{max-width:84ch;line-height:1.8}
body .if-workspace-page .workspace-notice{margin:0 0 22px;padding:18px 22px;background:#e8f2ff;border:1px solid #bdd5f1;border-radius:10px;color:var(--ink-2);font-size:13px;line-height:1.8}
body .if-workspace-page .workspace-notice-warning{background:#fff7ef;border-color:#efceae;color:#85411d}
body .if-workspace-page .if-workspace-list{padding:0;overflow:hidden;background:var(--surface-solid);border-color:var(--line);border-radius:12px}
body .if-workspace-page .if-workspace-list>.card-h{padding:20px 22px 0;margin:0;border:0;font-size:20px}
body .if-workspace-page .if-workspace-list .data-card-toolbar{padding:20px 22px;background:none;gap:20px;align-items:flex-start}
body .if-workspace-page .if-workspace-list .data-card-toolbar .card-h{padding:0;margin:0 0 8px;border:0;font-size:20px}
body .if-workspace-page .if-workspace-list .data-card-toolbar .card-b{padding:0;font-size:14px;line-height:1.8;color:var(--ink-2)}
body .if-workspace-page .rate-limit-status{padding:20px 22px}
.workspace-list-filters{display:grid;grid-template-columns:minmax(220px,2fr) repeat(3,minmax(140px,1fr));gap:14px;align-items:end;padding:20px 22px}
.workspace-list-filters>label{display:grid;gap:8px;min-width:0}
.workspace-filter-label{font-size:13px;font-weight:600;color:var(--ink)}
body .workspace-list-filters :is(input,select){min-width:0;width:100%;height:44px;font-size:13px;font-weight:400}
.workspace-filter-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;grid-column:-2/-1}
body .workspace-filter-actions .btn{margin:0;min-height:44px}
.workspace-list-filters:not(:has(select)){grid-template-columns:minmax(220px,1fr) auto}
.workspace-list-filters:not(:has(select)) .workspace-filter-actions{grid-column:auto}
.workspace-list-footer{display:flex;gap:16px;justify-content:space-between;align-items:baseline;flex-wrap:wrap;padding:16px 22px;color:var(--ink-2);font-size:13px;border-top:1px solid var(--line)}
.workspace-list-footer small{font-size:12px;max-width:65ch;line-height:1.7}
.workspace-filter-empty{margin:0;padding:32px 22px;text-align:center;color:var(--ink-2);font-size:14px}
body .if-workspace-page .workspace-record-table{min-width:900px;font-variant-numeric:tabular-nums}
body .if-workspace-page .workspace-record-table th{font-size:13px;line-height:1.7;padding:14px 16px;background:#e9f1fb;color:var(--ink);white-space:normal}
body .if-workspace-page .workspace-record-table td{font-size:13px;line-height:1.7;padding:16px;max-width:260px;color:var(--ink-2);overflow-wrap:anywhere;vertical-align:middle}
body .if-workspace-page .workspace-record-table td:first-child{min-width:180px;font-weight:500;color:var(--ink)}
body .if-workspace-page .workspace-record-table td strong{color:var(--ink);font-size:14px}
body .if-workspace-page .workspace-record-table .if-cell-label{display:none}
body .if-workspace-page .workspace-record-table td .table-sub{font-size:12px;line-height:1.7;white-space:normal;overflow-wrap:anywhere}
body .if-workspace-page .workspace-record-table td:has(.toggle-switch){min-width:130px}
body .if-workspace-page .workspace-record-table td:has(.btn,.link-btn,.action-btn){min-width:160px}
body .if-workspace-page .workspace-record-table :is(.btn,.action-btn,.link-btn){min-height:44px;min-width:44px;font-size:13px;padding:8px 10px;margin:0 2px 0 0;text-decoration:none}
body .if-workspace-page .workspace-record-table button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;padding:8px 10px;margin:3px 6px 3px 0;border:1px solid var(--line);border-radius:8px;background:var(--surface-solid);color:var(--ink-2);font:inherit;font-size:13px;line-height:1.5;text-decoration:none;vertical-align:middle;cursor:pointer}
body .if-workspace-page .workspace-record-table button:is(:hover,:active):not(:disabled){background:#eaf2fc;border-color:#87a8cf;color:#274f87}
body .if-workspace-page .workspace-record-table button.danger{color:var(--error)}
body .if-workspace-page .workspace-record-table td select{min-width:150px;max-width:100%;min-height:44px}
body .if-workspace-page .workspace-record-table td:has(.gw-targets-cell){min-width:220px}
body .if-workspace-page .workspace-record-table td[style*="text-overflow"]{white-space:normal!important;overflow:visible!important}
body .if-workspace-page .workspace-record-table .gw-target-tag{max-width:100%;white-space:normal;overflow-wrap:anywhere}
body .if-workspace-page .ops-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:22px}
body #page-enterprise .workspace-record-table{table-layout:fixed;min-width:1060px}
body #page-enterprise .workspace-record-table :is(th,td){min-width:0;padding-inline:12px}
body #page-enterprise .workspace-record-table :is(th,td):first-child{min-width:0;width:14%}
body #page-enterprise .workspace-record-table :is(th,td):nth-child(2){min-width:0;width:17%}
body #page-enterprise .workspace-record-table th:nth-child(3){width:8%}
body #page-enterprise .workspace-record-table th:nth-child(4){width:11%}
body #page-enterprise .workspace-record-table th:nth-child(5){width:8%}
body #page-enterprise .workspace-record-table th:nth-child(6){width:7%}
body #page-enterprise .workspace-record-table th:nth-child(7){width:13%}
body #page-enterprise .workspace-record-table th:nth-child(8){width:10%}
body #page-enterprise .workspace-record-table :is(th,td):last-child{min-width:0;width:12%}
body #page-enterprise .workspace-record-table td:nth-child(7){white-space:nowrap!important}
body .if-workspace-page :is(.ops-metric,.stat-card){background:var(--surface-solid);border:1px solid var(--line);border-radius:12px;box-shadow:none}
body .if-workspace-page :is(.ops-metric,.stat-card) :is(.label,.stat-label){font-size:13px;color:var(--ink-2)}
body .if-workspace-page :is(.ops-metric,.stat-card) :is(.hint,.stat-sub){font-size:12px;color:var(--ink-2);line-height:1.8}
body .if-workspace-page :is(.ops-metric,.stat-card) :is(.value,.stat-value){font-size:30px;color:var(--ink)}
body #page-team .stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px;margin-bottom:24px}
body #page-team .stat-card{padding:22px 22px 22px 100px;min-height:160px}
body #page-team .stat-card .if-metric-icon{left:20px;top:28px;width:58px;height:58px;border-radius:12px;position:absolute}
body #page-team .stat-card .if-metric-icon svg{width:29px;height:29px}
body #page-team .stat-card:nth-child(2) .if-metric-icon{background:#e3f4ed;color:#13755c}
body #page-team .stat-card:nth-child(3) .if-metric-icon{background:#fff0df;color:#a54c10}
body .workspace-review-queue{padding:20px 22px;background:linear-gradient(110deg,#fff5e9,var(--surface-solid));border:1px solid #efceae;border-radius:10px}
body .workspace-review-queue .card-h{padding:0;margin:0 0 14px;border:0;font-size:18px}
body .workspace-review-queue .card-b{padding:0;font-size:14px;line-height:1.8;color:var(--ink-2)}
.workspace-model-scope{display:flex;flex-wrap:wrap;gap:6px;align-items:start;max-width:420px}
.workspace-model-scope .badge{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.workspace-model-overflow>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:#285b99;padding:0 10px;font-size:13px}
.workspace-model-overflow>div{display:flex;gap:6px;flex-wrap:wrap;padding:8px 0;max-width:420px}
.workspace-telemetry-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:20px;align-items:start}
body .workspace-telemetry-grid .card{margin:0!important;min-width:0;padding:22px}
body .workspace-telemetry-grid .card>.card-b{padding:0;display:block!important}
body .workspace-telemetry-grid .card .card-h{padding:0;margin:0 0 12px;font-size:20px}
body .workspace-telemetry-grid .card .field-hint{font-size:13px;line-height:1.8;color:var(--ink-2)}
body .workspace-telemetry-grid #billingTelemetryCard>.card-b>div:last-child{margin-top:16px}
body .workspace-reconciliation{background:linear-gradient(145deg,#fff8f0,var(--surface-solid))}
body .workspace-reconciliation .btn{margin-top:16px}
body #page-evaluations .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;padding:0 22px 22px!important}
body #page-evaluations .form-grid>.field:last-child{grid-column:1/-1;justify-content:flex-end}
body #page-evaluations .quality-status{padding-inline:22px}
@media(max-width:1250px){
 .workspace-list-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace-list-filters .workspace-search{grid-column:1/-1}
 .workspace-filter-actions{grid-column:1/-1}
 .workspace-telemetry-grid{grid-template-columns:minmax(0,1fr)}
 body #page-team .stat-card{padding:20px;min-height:175px}body #page-team .stat-card .if-metric-icon{position:static;margin-bottom:12px;width:44px;height:44px}
}
@media(max-width:900px){
 body .if-workspace-page .page-head{flex-direction:column;gap:14px}
 body #page-team .stat-grid{gap:12px}
}
@media(max-width:600px){
 body .if-workspace-page .ops-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body .if-workspace-page .ops-grid>.ops-metric:last-child:nth-child(3){grid-column:1/-1}
 body .if-workspace-page .workspace-notice{padding:16px;margin-bottom:18px}
 .workspace-list-filters,.workspace-list-filters:not(:has(select)){padding:16px;gap:14px 12px;grid-template-columns:repeat(2,minmax(0,1fr))}
 .workspace-list-filters .workspace-search{grid-column:1/-1}
 .workspace-list-filters .workspace-filter-actions{grid-column:1/-1}
 .workspace-list-footer{padding:16px;gap:10px}
 body .if-workspace-page .if-workspace-list{padding:0!important}
 body .if-workspace-page .if-workspace-list>.card-h,body .if-workspace-page .if-workspace-list .data-card-toolbar{padding:16px}
 body .if-workspace-page .if-workspace-list>.card-h{padding-bottom:0}
 body .if-workspace-page .if-workspace-list .data-card-toolbar .card-h{padding:0}
 body .if-workspace-page .if-workspace-list .table-wrap{overflow:visible;border:0;border-radius:0}
 body .if-workspace-page .workspace-record-table{display:block;min-width:0!important;width:100%}
 body .if-workspace-page .workspace-record-table thead{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
 body .if-workspace-page .workspace-record-table tbody{display:block}
 body .if-workspace-page .workspace-record-table tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:18px 16px;border-bottom:1px solid var(--line)}
 body .if-workspace-page .workspace-record-table tbody tr[hidden]{display:none}
 body .if-workspace-page .workspace-record-table tbody tr td{display:block!important;min-width:0!important;max-width:none!important;width:auto!important;padding:0!important;border:0;font-size:13px;white-space:normal;overflow-wrap:anywhere;text-align:start!important}
 body .if-workspace-page .workspace-record-table .if-cell-label{display:block;font-size:12px;font-weight:600;line-height:1.7;color:var(--ink-2);margin:0 0 6px}
 body .if-workspace-page .workspace-record-table tbody td:first-child{grid-column:1/-1}
 body .if-workspace-page .workspace-record-table tbody td:first-child>.if-cell-label{display:none}
 body .if-workspace-page .workspace-record-table tbody td:last-child{grid-column:1/-1}
 body .if-workspace-page .workspace-record-table td[colspan]{grid-column:1/-1}
 body .if-workspace-page .workspace-record-table :is(.btn,.link-btn,.action-btn){margin:0 4px 0 0}
 body .if-workspace-page .workspace-record-table td select{min-width:0;width:100%}
 body #page-gw-routing .workspace-record-table td:nth-child(3),body #page-gw-routing .workspace-record-table td:nth-child(7),body #page-gw-guardrails .workspace-record-table td:nth-child(4){grid-column:1/-1}
 body #page-enterprise .workspace-record-table td:nth-child(2),body #page-enterprise .workspace-record-table td:nth-child(7),body #page-team .workspace-record-table td:nth-child(2),body #page-policy-groups .workspace-record-table td:nth-child(2){grid-column:1/-1}
 body #page-team .stat-grid{grid-template-columns:minmax(0,1fr)!important}
 body #page-team .stat-card{padding:16px 16px 16px 88px;min-height:130px}
 body #page-team .stat-card .if-metric-icon{position:absolute;left:16px;top:24px;width:52px;height:52px}
 body .workspace-review-queue{padding:16px}
 body #page-evaluations .form-grid{grid-template-columns:minmax(0,1fr);padding:0 16px 16px!important}
 body .workspace-telemetry-grid .card{padding:16px}
}
.if-selection-label{display:none}
.if-row-selection{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;cursor:pointer}
body #page-providers .data-table{min-width:1080px}
body #page-providers .data-table td:first-child{width:190px;max-width:220px}
body #page-providers .data-table td:nth-child(3){white-space:normal!important;overflow-wrap:anywhere;max-width:210px!important;min-width:150px}
body #page-providers .data-table td:nth-child(6){max-width:210px;min-width:150px}
body #page-providers .provider-filter-bar{grid-template-columns:minmax(200px,2fr) minmax(145px,1fr) minmax(145px,1fr) minmax(12px,.8fr) auto;gap:16px;margin-bottom:20px}
body #page-providers #refreshProvidersBtn{grid-column:5}
body #page-model-mgmt .if-model-filters{grid-template-columns:repeat(4,minmax(0,1fr)) auto;padding:20px;border-radius:12px;background:var(--surface-solid);gap:16px;align-items:end}
body .if-model-filters>label,body .if-cost-filters>label{display:grid;gap:8px;min-width:0;color:var(--ink);font-size:13px;font-weight:600}
body .if-model-filters select,body .if-cost-filters :is(input,select){width:100%;min-width:0;height:44px;font-weight:400}
.if-filter-actions{display:flex;gap:8px;align-items:center;justify-content:flex-end}
body .if-channel-page .if-filter-actions .btn{margin:0;min-height:44px}
body #page-model-mgmt .data-table{min-width:1100px}
body #page-model-mgmt .model-mgmt-table-top{padding:0 0 18px;gap:16px}
body #page-model-mgmt .model-mgmt-table-top .table-result-count{margin:0;font-weight:600;color:var(--ink)}
body #page-model-mgmt .model-row-actions{gap:4px;max-width:220px;align-items:flex-start}
body #page-model-mgmt .data-table td:nth-child(2){max-width:240px}
body #page-model-mgmt .model-listing-state{gap:8px;white-space:normal;min-width:100px}
body .if-cost-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) minmax(200px,1.25fr);align-items:end;gap:18px;padding:20px}
body .if-cost-filters .if-filter-actions{grid-column:1/-1}
.if-list-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:2px 4px 18px}
body .if-list-heading .card-h,body .if-list-heading .table-result-count{margin:0;padding:0}
body #page-channel-costs .data-table{min-width:1130px}
body #page-channel-costs .data-table td:first-child{max-width:260px;min-width:200px}
body #page-channel-costs .data-table td:nth-child(4){min-width:145px}
body #page-channel-costs .data-table td:nth-child(6){min-width:130px}
body #page-channel-costs .data-table td:nth-child(7){max-width:210px;min-width:150px}
body .if-channel-page .if-cost-boundary{margin-top:24px}
body #page-status .if-status-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;margin-bottom:22px}
body #page-status .if-status-grid .stat-card{padding:20px;min-height:150px;border:1px solid var(--line);background:var(--surface-solid);border-radius:12px}
body #page-status .if-status-grid .if-metric-icon{display:none}
body #page-status .if-status-grid .stat-label{font-size:13px;line-height:1.7;white-space:normal;color:var(--ink-2);margin:0 0 18px}
body #page-status .if-status-grid .stat-label>svg{display:block;width:24px;height:24px;margin:0 0 16px!important;stroke:var(--focus)}
body #page-status .if-status-grid .stat-value{font-size:23px;line-height:1.4;overflow-wrap:anywhere}
.if-status-workspace{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:20px;align-items:start;margin-bottom:20px}
body .if-status-workspace>.card{margin:0;min-width:0;padding:20px}
body .if-status-results>.card-h{padding:0 0 16px;margin:0;border:0}
body .if-status-results>.card-b{padding:0!important}
body .if-status-results .test-row{padding:16px 0;min-height:72px;gap:14px}
body .if-status-results .test-name{font-size:13px;font-weight:600;color:var(--ink-2);min-width:24px}
body .if-status-results .test-desc{font-size:13px;color:var(--ink-2);line-height:1.7}
body .if-status-results .test-result{font-size:12px;min-width:40px;overflow-wrap:anywhere}
body .if-status-alerts{background:linear-gradient(135deg,#fff7ef,var(--surface-solid))}
body .if-status-alerts .data-card-toolbar{padding:0 0 16px;gap:12px;align-items:flex-start;background:none}
body .if-status-alerts .data-card-toolbar .card-h{padding:0;margin:0 0 10px;font-size:20px}
body .if-status-alerts .data-card-toolbar .card-b{padding:0;color:var(--ink-2);font-size:14px}
body .if-status-alerts #operationalAlerts{padding:0}
body .if-status-alerts .test-row{flex-wrap:wrap;gap:12px;padding:16px 0}
body .if-status-alerts .test-desc{flex-basis:100%;color:var(--ink-2);font-size:13px}
body .if-status-alerts .gw-empty-state{padding:24px 4px}
body .if-status-delivery{padding:20px}
body .if-status-delivery>.card-h{padding:0;margin:0 0 16px}
body .if-status-delivery>.card-b{padding:0;color:var(--ink-2)}
@media(max-width:1250px){
 body #page-model-mgmt .if-model-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.if-model-filters .if-filter-actions{grid-column:1/-1}
 body .if-cost-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
 body #page-status .if-status-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .if-status-workspace{grid-template-columns:minmax(0,1fr)}
 body #page-providers .provider-filter-bar{grid-template-columns:minmax(170px,2fr) repeat(2,minmax(130px,1fr))}
 body #page-providers #refreshProvidersBtn{grid-column:3;justify-self:end}
}
@media(max-width:900px){
 body .if-channel-page .page-head{flex-direction:column;gap:14px}
 body #page-status .if-status-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
 body :is(#page-providers,#page-model-mgmt,#page-channel-costs) .if-channel-list{padding:0;overflow:visible}
 body .if-channel-page .if-channel-list .table-wrap{overflow:visible}
 body #page-providers .provider-filter-bar{padding:16px;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0}
 body #page-providers #refreshProvidersBtn{grid-column:auto;justify-self:stretch}
 body #page-providers .provider-filter-bar .catalog-search-field{grid-column:1/-1}
 body #page-providers .table-result-count{margin:0;padding:16px}
 body #page-model-mgmt .if-model-filters,body .if-cost-filters{padding:16px;gap:16px 12px;grid-template-columns:repeat(2,minmax(0,1fr))}
 body .if-cost-filters>label:last-of-type{grid-column:1/-1}
 body #page-model-mgmt .model-mgmt-table-top{padding:16px}
 body .if-channel-page .data-table{display:block;min-width:0!important}
 body .if-channel-page .data-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 body .if-channel-page .data-table tbody{display:block}
 body .if-channel-page .data-table tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:18px 16px;border-bottom:1px solid var(--line)}
 body .if-channel-page:is(#page-providers,#page-model-mgmt,#page-channel-costs) .data-table tbody td{display:block;min-width:0!important;max-width:none!important;width:auto!important;padding:0;border:0;font-size:13px;overflow-wrap:anywhere;white-space:normal}
 body .if-channel-page .if-cell-label{display:block;font-size:12px;font-weight:600;color:var(--ink-2);margin-bottom:6px}
 body #page-providers .data-table td:first-child,body #page-channel-costs .data-table td:first-child{grid-column:1/-1}
 body #page-providers .data-table td:nth-child(2),body #page-providers .data-table td:nth-child(3),body #page-providers .data-table td:nth-child(6){grid-column:1/-1}
 body .if-channel-page .data-table td:last-child{grid-column:1/-1}
 body #page-model-mgmt .data-table td:first-child{grid-column:2;grid-row:1;justify-self:end;z-index:1}
 body #page-model-mgmt .data-table td:nth-child(2){grid-column:1/-1;grid-row:1;padding-right:56px}
 body #page-model-mgmt .data-table thead{display:block;position:static;clip-path:none;width:auto;height:auto;padding:8px 16px;border-block:1px solid var(--line)}
 body #page-model-mgmt .data-table thead tr{display:block}
 body #page-model-mgmt .data-table thead th{display:none}
 body #page-model-mgmt .data-table thead th:first-child{display:block;width:auto!important;max-width:none!important;min-width:0!important;padding:0;background:none;height:auto}
 body #page-model-mgmt .if-model-select-all{display:flex;align-items:center;gap:10px;min-height:44px;white-space:normal;font-weight:400;cursor:pointer}
 body #page-model-mgmt .if-selection-label{display:block;min-width:0;white-space:normal;font-size:12px;color:var(--ink-2)}
 body #page-model-mgmt .model-row-actions{max-width:none}
 /* Supplier names are free text, not short status facts. Keep them complete
    inside phone cards rather than creating an invisible horizontal overflow. */
 body .if-channel-page:is(#page-providers,#page-model-mgmt) .data-table .badge-provider{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;word-break:normal}
 body .if-channel-page .table-actions{justify-content:flex-start}
 body #page-providers .data-table td:first-child>.if-cell-label,body #page-channel-costs .data-table td:first-child>.if-cell-label,body #page-model-mgmt .data-table td:nth-child(2)>.if-cell-label{display:none}
 body #page-channel-costs .data-table td:nth-child(4),body #page-channel-costs .data-table td:nth-child(7){grid-column:1/-1}
 body .if-channel-page .data-table td[colspan]{grid-column:1/-1}
 .if-list-heading{padding:16px;margin:0}
 body #page-status .if-status-grid{gap:12px}
 body #page-status .if-status-grid .stat-card{padding:16px;min-height:145px}
 body .if-status-workspace>.card,body .if-status-delivery{padding:16px}
 body .if-status-alerts .data-card-toolbar{flex-direction:column}
 body .if-status-results .test-row{gap:10px}
}
@media(max-width:1250px){
 .if-finance-actions{max-width:55%}.if-budget-analysis{grid-template-columns:minmax(0,1fr)}
 .if-request-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.if-request-filters>.if-request-search{grid-column:1/-1}
 body .if-budget-share .if-donut{grid-template-columns:180px minmax(0,1fr)}
 .if-revenue-breakdowns{grid-template-columns:repeat(2,minmax(0,1fr))}.if-revenue-breakdowns>.card:first-child{grid-column:1/-1}
 .if-request-summaries{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:900px){
 body .if-finance-page .page-head{flex-direction:column;gap:14px}.if-finance-actions{max-width:100%;justify-content:flex-start}
 .if-credit-panels{grid-template-columns:minmax(0,1fr)}
 body .if-finance-page>.ops-grid>.ops-metric{padding:16px;min-height:130px}
 body .if-finance-page>.ops-grid .if-metric-icon{display:none}
 body .if-policy-panel .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.if-policy-panel .form-grid>button{grid-column:1/-1;justify-self:end}
 .if-request-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.if-request-filters>.if-request-search{grid-column:1/-1}
}
@media(max-width:600px){
 body .if-policy-panel>summary{padding:16px}.if-finance-page .page-head .usage-actions{flex-wrap:wrap}
 body #pricingLaunchPanel.if-policy-panel .disclosure-content{padding:16px 16px 0}body .if-policy-panel .form-grid{grid-template-columns:minmax(0,1fr)}
 body .if-policy-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 body #page-credits .if-wallet-summary{padding:16px}body #page-credits .if-wallet-summary .ops-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
 body .if-wallet-summary .ops-metric{padding:12px;min-height:110px}body .if-wallet-summary .ops-metric .value{font-size:20px}
 body .if-credit-panels>.card{padding:16px}
 .if-revenue-breakdowns{grid-template-columns:minmax(0,1fr)}
 body .if-finance-trend{padding:16px}.if-finance-trend>.card-h{font-size:18px}
 body .if-finance-trend>.if-currency-switcher{position:static;margin:8px 0}.if-finance-trend>.card-h{padding-right:0!important}
 body .if-finance-trend .if-chart-scroll svg{height:auto;min-width:680px}
 body .if-budget-share .if-donut{grid-template-columns:minmax(0,1fr)}
 body .if-billing-flow .route-flow{grid-template-columns:minmax(0,1fr)}
 body .if-request-summary .ops-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
 body .if-request-filters{padding:16px}
 .if-key-base{grid-template-columns:minmax(0,1fr) auto;gap:12px}.if-key-base .guide-value{grid-row:2;grid-column:1/-1}
 body #keysList .data-table{min-width:0;display:block}
 body #keysList thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 body #keysList tbody{display:block}
 body #keysList tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:16px;border-bottom:1px solid var(--line)}
 body #keysList tbody td{display:block;border:0;padding:0;min-width:0;font-size:13px}
 body #keysList tbody td:nth-child(-n+2){grid-column:1/-1}
 body #keysList .key-card-name{max-width:none}
 body #keysList .key-mobile-label{display:block;font-size:12px;font-weight:600;color:var(--ink-2);margin-bottom:6px}
 body #keysList .key-card-actions{max-width:none}
}

/* Playground modes belong to the workbench, independent of global navigation. */
body #page-playground.active{display:flex;flex-direction:column}
body #page-playground.active>.pg-mode-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;flex:none;gap:16px 24px;height:auto;min-width:0;padding:0 4px 20px}
body #page-playground .pg-heading-copy{flex:1 1 280px;min-width:0}
body #page-playground .pg-mode-header h2{margin-bottom:7px}
body #page-playground .pg-mode-header p{margin:0;font-size:14px;line-height:1.6;max-width:660px}
body #page-playground .pg-mode-header .pg-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));flex:0 1 auto;gap:4px;min-width:0;max-width:100%;min-height:0;padding:4px;margin:0;border:1px solid #d6e2f3;border-radius:12px;background:#e6effb;overflow:visible}
body #page-playground .pg-mode-header .pg-tab{display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:44px;padding:10px 14px;border:0;border-radius:8px;background:transparent;color:#4e668d;font-size:14px;line-height:1.4;font-weight:600;white-space:nowrap;box-shadow:none}
body #page-playground .pg-mode-header .pg-tab svg{display:block;flex:none;width:18px;height:18px;stroke-width:1.8}
body #page-playground .pg-mode-header .pg-tab:hover{background:#f4f8ff;color:#193b68}
body #page-playground .pg-mode-header .pg-tab.active{background:#fcfdff;color:#ad3e12;box-shadow:0 1px 4px #193b681a}
body #page-playground .pg-mode-header .pg-tab::after{display:none}
body #page-playground .new-chat-btn,body #page-playground .new-chat-btn:hover:not(:disabled){background:var(--coral-deep)}
body #page-playground.active>.pg-grid{flex:1;min-height:0;height:auto}
body #page-playground.active>.pg-image-modes{flex:none}
@media(max-width:1100px){body #page-playground .pg-mode-header .pg-tabs{flex-basis:100%;width:100%}}
@media(max-width:900px){
 body #page-playground.active>.pg-mode-header{gap:0;padding:10px 12px;border-bottom:1px solid #dce7f5;background:#f1f7fe}
 body #page-playground .pg-heading-copy{display:none}
 body #page-playground .pg-mode-header .pg-tabs{width:100%;flex-basis:100%}
 body #page-playground .pg-mode-header .pg-tab{min-height:44px;padding:9px 8px;font-size:13px;gap:6px}
 body #page-playground .pg-mode-header .pg-tab svg{width:17px;height:17px}
}
@media(max-width:600px){
 body #page-playground .pg-mode-header .pg-tab{white-space:normal;overflow-wrap:anywhere}
 body #page-playground .pg-mode-header .pg-tab svg{display:none}
}
@media(max-width:380px){
 body #page-playground.active>.pg-mode-header{padding:8px}
 body #page-playground .pg-mode-header .pg-tab{padding:8px 4px;font-size:12px;gap:4px;white-space:normal;overflow-wrap:anywhere}
 body #page-playground .pg-mode-header .pg-tab svg{display:none}
}
@media(max-height:600px) and (min-width:601px) and (max-width:900px){
 body #page-playground.active>.pg-mode-header{padding-block:6px}
 body #page-playground .chat-messages{padding-block:12px}
 body #page-playground .chat-input-wrap{padding-block:6px}
 body #page-playground .chat-input-box{padding-block:8px 4px}
}
