@charset "UTF-8";

.customer-log-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
}
.console-frame .content:has(> .customer-log-workspace) { padding: 0; overflow: hidden; }
.customer-log-content { min-width: 0; min-height: 0; }
.customer-log-tabs {
  display: flex;
  align-items: center;
  align-self: start;
  gap: 4px;
  padding: 6px 14px;
  border-bottom: 1px solid #dce3f2;
  background: #f8faff;
}
.customer-log-tabs :is(a,button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  color: #4e5870;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.customer-log-tabs button { border: 0; font-family: inherit; background: transparent; cursor: pointer; }
.customer-log-tabs :is(a,button):hover { background: #eef0f9; }
.customer-log-tabs :is([aria-current="page"],[aria-pressed="true"]) { color: #5138ad; background: #eae5fb; }
.customer-log-tabs :is(a,button):focus-visible { outline: 2px solid #6950cf; outline-offset: -2px; }
.staff-log-tabs { padding: 0 0 6px; background: transparent; }
.customer-log-errors .customer-log-content { overflow: auto; padding: 20px 24px 24px; overscroll-behavior: contain; }
.customer-log-errors .customer-error-table { width: 100%; min-width: 0; table-layout: fixed; }
.customer-error-table th:first-child { width: 20%; }
.customer-error-table th:nth-child(2) { width: 24%; }
.customer-error-table th:nth-child(3) { width: 19%; }
.customer-error-table td { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .customer-log-tabs { padding-inline: 8px; }
  .customer-log-tabs :is(a,button) { flex: 1; }
  .customer-log-errors .customer-log-content { padding: 16px 12px; }
  .customer-error-table thead { position: absolute; clip-path: inset(50%); height: 1px; width: 1px; overflow: hidden; }
  .customer-error-table tbody, .customer-error-table tr { display: block; }
  .customer-error-table tr { padding: 10px 14px; border-top: 1px solid #dfe5f0; }
  .console-frame .customer-error-table td {
    display: grid;
    grid-template-columns: 6.35rem minmax(0, 1fr);
    gap: 6px;
    padding: 3px 0;
    border: 0;
    line-height: 1.6;
    white-space: normal;
  }
  .customer-error-table td::before { content: attr(data-label); color: #626f86; font-size: 12px; }
}

.customer-log-content .log-filter-grid{display:flex;flex-wrap:wrap;align-items:end;gap:.75rem}
.customer-log-content .log-filter-grid .field{flex:1;min-width:min(100%,12rem);margin:0}
.customer-log-content .log-filter-grid .btn{align-self:flex-end}
.customer-log-content .table-scroll{max-width:100%;overflow-x:auto}
.customer-log-content .table-pagination,.customer-log-content .log-stats{display:flex;flex-wrap:wrap;align-items:center;gap:.65rem;padding:.8rem 1rem}
.customer-log-content .table-pagination{justify-content:flex-end}
.customer-log-content .table-pagination span:first-child{margin-inline-end:auto}

/* The console follows the light blue, compact table layout of agent-console. */
.app-layout{--bg:#f7f9fd;--paper:#fff;--ink:#202737;--muted:#788296;--line:#dfe5f0;--green:#2970e8;--mint:#eaf2ff;--shadow:0 5px 20px #24477b05;background:radial-gradient(ellipse at 12% 0,#eaf1ff80,transparent 46%),#f7f9fd;color:var(--ink)}
.app-layout .sidebar{width:240px;padding:24px 16px 18px;background:#f9fbff;color:#68758b;border-right:1px solid #dfe5f0}
.app-layout .brand{color:#252e40;padding:0 12px}.app-layout .brand-symbol{background:#e7efff;color:#2873eb}.app-layout .brand-sub{color:#8b98ad}
.app-layout .workspace-switch{color:#53647f;border-color:#dfe5f0;background:#fff;margin:24px 6px 18px;padding:10px}.app-layout .workspace-switch .badge-dot{background:#548eeb}.app-layout .workspace-switch .chevron{color:#9aa8bf}
.app-layout .nav-caption{color:#93a0b6;font-size:10px;margin:16px 13px 8px}.app-layout .nav-item{color:#62728a;font-size:13px;padding:11px 14px;border-radius:10px}.app-layout .nav-item:hover{color:#2b67c2;background:#eef4ff}.app-layout .nav-item.active{color:#2166d5;background:#e6efff;box-shadow:inset 0 0 0 1px #d7e6ff;font-weight:600}
.app-layout .portal-link{border-color:#dfe5f0;background:#fff;color:#566b8c}.app-layout .portal-link span{color:#97a4b8}.app-layout .sidebar-user .avatar{color:#4b74b8;background:#e8effb}.app-layout .sidebar-user .name{color:#43516a}.app-layout .sidebar-user .role{color:#93a0b5}.app-layout .signout{color:#97a6bb}.app-layout .signout:hover{color:#2668d1}
.app-layout .topbar{height:60px;padding:0 24px;background:#ffffffb8}.app-layout .breadcrumb{color:#8b97ab}.app-layout .breadcrumb strong{color:#4f607b}.app-layout .round-button{color:#6e7f98}.app-layout .topbar-right .version{color:#94a1b7}
.app-layout .content{padding:24px 24px 40px;max-width:1800px}.app-layout .page-heading{margin-bottom:22px}.app-layout .page-heading h1{font-size:24px;font-weight:650}.app-layout .eyebrow{color:#93a0b6}.app-layout .page-heading p{color:#8591a5}
.app-layout .btn{color:#53647e;border-color:#dce3ee;border-radius:8px}.app-layout .btn:hover{background:#f1f5fc}.app-layout .btn.primary{color:#fff;background:#2970e8;border-color:#2970e8}.app-layout .btn.primary:hover{background:#1f61d0}.app-layout .btn.ghost{color:#617592}.app-layout .btn.dark{color:#fff;background:#355784;border-color:#355784}
.app-layout .input,.app-layout .select{border-color:#dfe5ef;color:#52617b;background:#fff}.app-layout .input:focus,.app-layout .select:focus{border-color:#83aff5;box-shadow:0 0 0 3px #eaf2ff}.app-layout .input::placeholder{color:#a1adbf}
.app-layout .card{border-radius:18px}.app-layout .metric.featured{background:#2d63ac;border-color:#2d63ac}.app-layout .metric.featured .metric-label,.app-layout .metric.featured .metric-foot{color:#c1d5f6}.app-layout .metric.featured .metric-value{color:#fff}.app-layout .welcome-card{background:#edf3ff;border-color:#dfe9fb}.app-layout .welcome-card p{color:#8193b0}
.app-layout th{color:#7f8da5;background:#f8faff}.app-layout td{color:#4c5b72;border-color:#eaf0f8}.app-layout tbody tr:hover{background:#f7faff}.app-layout .avatar{background:#edf2fc;color:#5d7eb6}.app-layout .user-cell strong{color:#455570}.app-layout .user-cell small{color:#95a2b7}
.app-layout .badge.muted{background:#f0f3f9;color:#7b89a0}.app-layout .badge.blue{background:#eaf2ff;color:#3b75cf}.app-layout .badge.green{background:#eaf7f0;color:#3d946c}.app-layout .badge.red{background:#fdf0f1;color:#cb6776}
.app-layout .text-link{color:#3e76c6}.app-layout .text-link:hover{color:#1c5dbb}.app-layout .table-footer{color:#8d9ab0}.app-layout .page-btn{border-color:#dee6f1;color:#6f829f}.app-layout .page-btn.current{color:#3473ce;background:#ecf3ff;border-color:#d8e7ff}
.app-layout .notice{color:#6e85a9;background:#f0f5ff;border-color:#dfe9fb}.app-layout .state-note,.app-layout .subtle{color:#919db1}.app-layout .metric-label,.app-layout .metric-foot{color:#8190a7}.app-layout .field label{color:#637693}.app-layout .stat-strip{background:#f9fbff}.app-layout .stat-strip strong{color:#4b6c9e}.app-layout .stat-strip small{color:#93a2ba}.app-layout .site-footer{color:#9aa7bc}
.app-layout button:focus-visible,.app-layout a:focus-visible,.app-layout input:focus-visible,.app-layout select:focus-visible{outline-color:#7baff9}

.reference-logs{--log-border:#e0e6f0;--log-muted:#8996aa}.reference-log-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 18px}.reference-log-heading h1{font-size:24px;line-height:1.5;font-weight:650;letter-spacing:-.5px}.reference-log-heading p{color:#8794a9;font-size:12px;margin-top:4px}.reference-log-heading>.badge{font-size:11px;padding:6px 10px;border-radius:20px}
.log-page-tabs{display:flex;gap:23px;border-bottom:1px solid var(--log-border);margin-bottom:18px}.log-page-tabs a{font-size:13px;display:flex;align-items:center;gap:7px;color:#8593aa;padding:0 2px 11px;border-bottom:2px solid transparent}.log-page-tabs a.active{color:#2e70d4;border-bottom-color:#3d80e8;font-weight:600}.log-page-tabs svg{width:16px;height:16px}
.app-layout .log-filter-card{border-radius:14px;padding:16px 16px 0;box-shadow:0 2px 8px #2d4b8003}.log-filter-main{display:flex;align-items:end;flex-wrap:wrap;gap:12px}.log-filter-field{flex:1 1 145px;min-width:120px;max-width:240px}.log-customer-field{flex:1.25 1 190px;max-width:270px}.log-filter-field label{font-size:11px;font-weight:500;color:#8190a8;line-height:1.3}.log-filter-field .input,.log-filter-field .select{height:34px;padding:6px 9px;font-size:12px;border-radius:7px}.log-filter-main>.btn{height:34px;padding-left:6px;padding-right:6px}
.log-time-range{display:flex;gap:7px;align-items:end;flex:2.2 1 420px;max-width:550px}.log-time-range .log-filter-field{flex:1;min-width:140px}.log-time-range .input{padding:6px;font-size:11px;min-width:0}.range-dash{height:34px;display:flex;align-items:center;color:#a2aec0;font-size:11px}.log-time-preset{height:34px;padding:5px 6px!important;font-size:11px!important;max-width:100px}.log-filter-advanced{display:grid;grid-template-columns:repeat(3,minmax(130px,1fr));gap:12px;border-top:1px dashed #e4eaf4;padding:14px 0 2px;margin-top:14px}.log-filter-advanced[hidden]{display:none}.log-filter-advanced .log-filter-field{max-width:none}
.log-type-tabs{display:flex;gap:3px;background:#f3f6fc;padding:3px;border-radius:9px;width:max-content;margin:14px 0 0;border:1px solid #e8edf6}.app-layout .log-type-tab{padding:4px 13px;background:transparent;border:1px solid transparent;font-size:11px;color:#8b98ad;border-radius:6px}.app-layout .log-type-tab.active{background:#fff;color:#3476d6;border-color:#dfe8f7;box-shadow:0 1px 3px #36558409}.log-filter-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:1px solid #edf1f7;margin-top:14px;padding:12px 0}.log-stats{display:flex;gap:15px;flex-wrap:wrap}.log-stat{display:flex;gap:6px;font-size:11px;white-space:nowrap;align-items:center;color:#909bb0}.log-stat strong{font-family:Consolas,"SFMono-Regular",monospace;font-size:12px;color:#526785;font-weight:600}.log-stat.blue strong{color:#3d7ed6}.log-stat.green strong{color:#479f7c}.log-stat.red strong{color:#cc7886}.log-toolbar-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.log-toolbar-actions .btn{height:31px;padding:5px 10px;font-size:11px}.log-toolbar-actions .btn.primary{min-width:69px}.log-toolbar-actions .btn svg{width:13px;height:13px}.log-toolbar-actions .btn.ghost{font-weight:400;padding-left:0;padding-right:4px}.log-query-state{display:flex;align-items:center;gap:7px;font-size:11px;color:#8d9bb1;min-height:38px;padding:8px 2px}.log-query-state.error{color:#bf6874}.log-state-dot{width:5px;height:5px;border-radius:50%;background:#9db9e5}.log-query-state.error .log-state-dot{background:#cf7783}
.log-columns-menu{position:relative;font-size:11px;color:#73849e}.log-columns-menu summary{list-style:none;cursor:pointer;border:1px solid #dce4f0;border-radius:7px;padding:6px 9px;background:#fff;white-space:nowrap}.log-columns-menu summary::-webkit-details-marker{display:none}.log-columns-menu[open] summary{color:#3273d0;border-color:#a7c7f5}.log-column-options{position:absolute;right:0;top:37px;width:145px;z-index:15;background:#fff;box-shadow:0 10px 35px #314c7821;border:1px solid #dfe7f5;border-radius:10px;padding:8px}.log-column-options label{display:flex;align-items:center;gap:7px;padding:6px;border-radius:5px;cursor:pointer}.log-column-options label:hover{background:#f2f6ff}.log-column-options input{accent-color:#3378de}
.app-layout .reference-log-table{border-radius:10px;overflow:hidden;box-shadow:none}.log-data-table{min-width:1180px;width:100%;font-size:12px;border-collapse:separate;border-spacing:0}.app-layout .log-data-table th{padding:11px 12px;font-size:11px;letter-spacing:0;font-weight:550;background:#f7f9fd;border-bottom:1px solid #e0e6f0;color:#7c8ba3}.app-layout .log-data-table td{padding:12px;font-size:12px;border-right:1px solid #f0f3f8;border-bottom:1px solid #edf1f7;vertical-align:middle;height:76px;color:#4a5d7c}.app-layout .log-data-table th:last-child,.app-layout .log-data-table td:last-child{border-right:0}.app-layout .log-data-table tbody tr:nth-child(even){background:#fafcff}.app-layout .log-data-table tbody tr:hover{background:#f5f9ff}.app-layout .log-data-table .usage-row.error{background:#fff5f6}.app-layout .log-data-table .usage-row.refund{background:#f2f7ff}.app-layout .log-data-table .task-row td:first-child{border-left:3px solid transparent}.app-layout .log-data-table .task-row.success td:first-child{border-left-color:#6fb99b}.app-layout .log-data-table .task-row.error td:first-child{border-left-color:#db8b97}.app-layout .log-data-table .task-row.running td:first-child{border-left-color:#76a8ec}
.log-cell-stack{display:flex;align-items:flex-start;flex-direction:column;gap:6px;min-width:0}.log-cell-stack>.badge{font-size:10px;padding:3px 6px;border-radius:4px}.log-cell-sub{font-size:10px;color:#98a5ba;font-weight:400;line-height:1.4}.log-col-time{min-width:128px}.log-col-user{min-width:110px}.log-col-token{min-width:112px}.log-col-model{min-width:140px}.log-col-stream{min-width:72px}.log-col-tokens{min-width:112px}.log-col-timing{min-width:82px}.log-col-details{min-width:130px;max-width:190px}.log-col-task{min-width:240px}.log-col-progress{min-width:85px}.log-col-status{min-width:72px}.log-col-artifacts{min-width:95px}.log-col-cost{min-width:78px}
.log-inline{display:flex;align-items:center;gap:7px}.log-user-button{display:flex;align-items:center;gap:7px;background:none;padding:0;text-align:left;color:#496183}.log-user-button:hover{color:#2768c5}.log-user-button .avatar{width:26px;height:26px;border-radius:8px;font-size:10px}.log-user-button .log-cell-stack{gap:4px}.log-token{display:flex;align-items:center;gap:5px;font-size:11px}.log-token svg{width:12px;height:12px;color:#8ba5cd}.log-model{display:inline-flex;align-items:center;gap:6px;font-size:11px;border:1px solid #e1e8f3;background:#fff;border-radius:6px;padding:3px 6px;max-width:230px;color:#536c92;line-height:1.4}.log-model>span:last-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:185px}.log-tokens{display:flex;gap:9px;font-size:11px;font-family:Consolas,"SFMono-Regular",monospace}.log-tokens>span:first-child{color:#5e85bb}.log-tokens>span:last-child{color:#7c6ba4}.log-cost{font-size:12px!important;color:#536987}.log-cost.refund{color:#3b81cb}.log-description{white-space:nowrap;max-width:175px;overflow:hidden;text-overflow:ellipsis;display:block;font-size:11px}.log-detail-button{display:flex;flex-direction:column;gap:6px;align-items:start;background:none;text-align:left;padding:0;font-size:11px;color:#5b7ea9;line-height:1.5}.log-detail-button:hover{color:#2164c3}.log-detail-button:hover .log-cell-sub{color:#4b87dc}.log-copy{display:inline-flex;gap:7px;align-items:center;background:none;color:#61789c;padding:0;text-align:left;max-width:100%}.log-copy .mono{max-width:260px;overflow:hidden;text-overflow:ellipsis}.log-copy svg{width:12px;height:12px;flex-shrink:0;color:#9fb0c9}.log-copy:hover{color:#2a70cf}.task-progress{width:65px;height:4px;border:0;border-radius:10px;overflow:hidden;appearance:none;background:#e9eff8}.task-progress::-webkit-progress-bar{background:#e9eff8;border-radius:10px}.task-progress::-webkit-progress-value{background:#79a9ec;border-radius:10px}.task-row.success .task-progress::-webkit-progress-value{background:#7bbb9e}.task-row.error .task-progress::-webkit-progress-value{background:#d994a0}.log-failure{color:#c57d88}.log-artifact-button{display:flex;align-items:center;gap:7px;padding:0;background:none;font-size:10px;color:#6990bd}.log-artifact-button img{width:36px;height:29px;object-fit:cover;border:1px solid #dce5f3;border-radius:4px}.log-artifact-button svg{width:19px;height:19px}
.log-empty{min-height:245px;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#8da1bd;text-align:center;padding:40px 20px}.log-empty>svg{width:30px;height:30px;stroke-width:1.2;margin-bottom:13px;color:#b2c5e2}.log-empty strong{font-size:13px;color:#7b90b0;font-weight:500}.log-empty p{font-size:11px;color:#a0aec4;margin-top:8px;white-space:normal;max-width:500px}.reference-log-table .table-footer{padding:12px 16px;font-size:11px;background:#fff}.log-page-number{font-size:11px;min-width:48px;text-align:center;color:#7e91ad}.log-page-size{font-size:10px!important;padding:4px 7px!important;height:27px;margin-right:5px}.reference-log-table .page-btn{height:27px;padding:0 9px;font-size:10px;border-radius:6px}

.log-detail-dialog{width:min(900px,calc(100vw - 32px));border-color:#dce5f3;border-radius:16px;color:#3c4c66}.log-detail-dialog::backdrop{background:#1c304c40}.log-detail-dialog .dialog-head{padding:21px 24px 14px}.log-detail-dialog .dialog-head h2{font-size:18px}.log-detail-dialog .dialog-body{padding:0 24px 24px}.log-detail-dialog .dialog-actions{margin-top:20px}.log-detail-summary{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding-bottom:17px;border-bottom:1px solid #e9eef6;margin-bottom:19px;color:#91a1b7}.log-detail-summary>.mono{margin-left:auto;font-size:11px}.log-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px;align-items:start}.log-detail-section{min-width:0}.log-detail-section h3,.log-artifact-section h3{font-size:12px;font-weight:600;color:#657c9d;margin-bottom:7px}.log-detail-section dl{margin:0;border:1px solid #e2e9f4;border-radius:8px;padding:12px;background:#f9fbff}.log-detail-row{display:grid;grid-template-columns:93px minmax(0,1fr);gap:10px;margin-bottom:8px;line-height:1.65;font-size:11px}.log-detail-row:last-child{margin-bottom:0}.log-detail-row dt{color:#97a5ba}.log-detail-row dd{margin:0;word-break:break-word;color:#607797}.log-detail-row .log-copy{max-width:100%;white-space:normal;word-break:break-all}.log-detail-row .log-copy .mono{max-width:100%;overflow:visible}.log-detail-section.danger h3{color:#c37987}.log-detail-section.danger dl{background:#fff6f7;border-color:#f1dce1}.log-detail-section.danger dd{color:#ba7b86}.log-detail-dialog .badge.blue{color:#427bcc;background:#edf4ff}.log-detail-dialog .badge.green{color:#4c9878;background:#edf8f2}.log-detail-dialog .badge.red{color:#c57282;background:#fff0f3}.log-detail-dialog .badge.muted{color:#7f91ac;background:#f0f4fb}
.log-artifact-section{margin-top:20px}.log-artifact-empty{font-size:11px;color:#9eacc0;background:#f8faff;border:1px solid #e5ecf6;border-radius:8px;padding:17px}.log-artifact-preview{border:1px solid #e1e9f5;border-radius:9px;padding:12px;margin-top:9px;background:#fafcff}.log-artifact-caption{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#6c83a5;margin-bottom:10px}.log-artifact-preview img,.log-artifact-preview video{display:block;max-width:100%;max-height:350px;margin:0 auto 10px;border-radius:6px;background:#eef3fa}.log-artifact-preview audio{width:100%;margin:10px 0}.log-artifact-preview .text-link{color:#5b86bf}.log-raw-details{margin-top:20px;padding:10px 12px;border:1px solid #e3eaf5;border-radius:8px;color:#94a5bb;font-size:11px}.log-raw-details summary{cursor:pointer}.log-raw-details pre{font-size:10px;white-space:pre-wrap;word-break:break-word;margin-bottom:2px;line-height:1.8;color:#7d90ab}

/* Keep the reference density while giving table text adequate size and contrast. */
.reference-log-heading p{font-size:13px;color:#687a95}.log-page-tabs a{color:#667b98}
.app-layout .log-filter-field label{font-size:12px;color:#5e728f}.log-filter-field .input,.log-filter-field .select{font-size:13px;color:#415777}.app-layout .log-filter-field .input::placeholder{color:#8191a8}.log-time-range .input{font-size:12px}.log-time-preset{font-size:12px!important;color:#526986}.range-dash{color:#8191a8}
.log-stat{font-size:12px;color:#697e9b}.log-stat strong{font-size:13px;color:#425b7d}.log-toolbar-actions .btn{font-size:12px}.log-toolbar-actions .btn.ghost{color:#5b7293}.log-columns-menu{font-size:12px;color:#607693}.app-layout .log-type-tab{font-size:12px;color:#6d819f}.log-query-state{font-size:12px;color:#6e829f}
.app-layout .log-data-table th{font-size:12px;color:#5c7191}.app-layout .log-data-table td{font-size:13px;color:#3e5575}.reference-logs .mono{font-size:12px}.log-cell-sub{font-size:11px;color:#7588a3}.log-cell-stack>.badge{font-size:11px}.log-token{font-size:12px}.log-model{font-size:12px;color:#486385}.log-tokens{font-size:12px}.log-cost{font-size:13px!important;color:#405c7d}.log-description,.log-detail-button{font-size:12px}.log-detail-button{color:#4d719f}.log-copy{color:#4e6a90}.log-artifact-button{font-size:11px;color:#527ba9}
.log-empty{color:#748bad}.log-empty strong{font-size:14px;color:#607b9e}.log-empty p{font-size:12px;color:#7b8fae}.reference-log-table .table-footer{font-size:12px;color:#7487a4}.log-page-number{font-size:12px;color:#647e9f}.log-page-size{font-size:11px!important}.reference-log-table .page-btn{font-size:11px}
.log-detail-section h3,.log-artifact-section h3{font-size:13px;color:#526c91}.log-detail-row{font-size:12px}.log-detail-row dt{color:#768aa8}.log-detail-row dd{color:#4b658a}.log-detail-row .mono{font-size:12px}.log-detail-summary>.mono{font-size:12px;color:#6e85a6}.log-artifact-empty{font-size:12px;color:#788da9}.log-artifact-caption{font-size:12px;color:#57769c}.log-raw-details{font-size:12px;color:#6f85a5}.log-raw-details pre{font-size:11px;color:#69819f}

@media(min-width:1600px){.app-layout .content{padding:28px 28px 42px}.app-layout .topbar{padding:0 28px}}
@media(max-width:1150px){.log-filter-main{gap:10px}.log-time-range{flex-basis:380px}.log-filter-bottom{align-items:flex-start;gap:13px}.log-toolbar-actions{margin-left:auto}.log-col-task{min-width:220px}}
@media(max-width:900px){.app-layout .sidebar{width:210px}.app-layout .content{padding:20px 18px}.app-layout .topbar{padding:0 18px}.log-time-range{max-width:none}.log-filter-field{max-width:none}.log-filter-advanced{grid-template-columns:repeat(2,minmax(120px,1fr))}.log-stats{gap:11px}.log-toolbar-actions{width:100%;justify-content:flex-end}}
@media(max-width:720px){.app-layout .sidebar{width:240px}.app-layout .content{padding:20px 13px}.app-layout .topbar{height:56px;padding:0 13px}.reference-log-heading{align-items:flex-start}.reference-log-heading h1{font-size:22px}.reference-log-heading p{font-size:11px;max-width:210px}.reference-log-heading>.badge{font-size:9px;padding:5px 7px}.app-layout .log-filter-card{padding:13px 12px 0}.log-customer-field{flex:1 1 100%;max-width:none}.log-time-range{flex:1 1 100%;min-width:0;gap:5px}.log-time-range .log-filter-field{min-width:0}.log-time-range .input{width:100%;font-size:10px}.log-time-preset{width:77px;font-size:10px!important;padding:5px!important}.range-dash{display:none}.log-filter-advanced{grid-template-columns:1fr 1fr}.log-filter-field{flex-basis:125px}.log-toolbar-actions{gap:5px;justify-content:flex-start}.log-toolbar-actions .btn{padding:5px 8px;font-size:10px}.log-toolbar-actions .btn.ghost{width:100%;justify-content:flex-start}.log-query-state{font-size:10px;min-height:41px}.log-stats{gap:12px}.log-stat{font-size:10px}.log-stat strong{font-size:11px}.reference-log-table .table-footer{padding:12px 9px;gap:9px;flex-wrap:wrap}.log-detail-dialog .dialog-body{padding:0 16px 18px}.log-detail-dialog .dialog-head{padding:18px 16px 14px}.log-detail-grid{grid-template-columns:1fr;gap:15px}.log-detail-summary>.mono{margin-left:0;flex-basis:100%;margin-top:4px}.log-detail-row{grid-template-columns:90px minmax(0,1fr)}.log-detail-dialog{width:calc(100vw - 24px)}.log-data-table{min-width:1180px}.log-column-options{left:0;right:auto}}

/* Native customer lookups share one flowing layout. */
.customer-records {
  container: customer-records / inline-size;
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 16px;
  max-width: 100%;
  min-width: 0;
  align-content: start;
  color: #283651;
}
.console-frame .customer-records > .page-heading { margin: 0; }
.customer-record-filters, .customer-record-results {
  min-width: 0;
  border: 1px solid #dce3ef;
  border-radius: 15px;
  background: #fff;
}
.customer-record-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  padding: 17px 18px;
  margin: 0;
}
.customer-record-filters > .field { flex: 1 1 8.75rem; min-width: 0; margin: 0; }
.customer-record-filters > .field:first-child { flex: 2 1 15.5rem; }
.customer-record-filters label, .customer-record-filters label.field > span { font-size: 13px; font-weight: 600; color: #465674; }
.customer-record-filters :is(.input,.select) { width: 100%; min-width: 0; min-height: 40px; font-size: 14px; }
.customer-record-filters .btn { min-height: 40px; flex: none; white-space: nowrap; }
.customer-record-results { overflow: hidden; }
.customer-record-loading { display: flex; align-items: center; gap: 12px; padding: 22px 20px; color: #465674; font-size: 14px; font-weight: 500; }
.customer-record-loading[hidden] { display: none; }
.customer-log-content > .customer-record-loading,.reference-viewport-slot > .customer-record-loading,.content > .customer-record-loading { margin: 16px; border: 1px solid #dce3ef; border-radius: 15px; background: #fff; }
.customer-record-results > .table-wrap { width: 100%; max-width: 100%; margin: 0; overflow-x: auto; }
.customer-record-results :is(th,td) { overflow-wrap: anywhere; }
.customer-record-results td:last-child { white-space: normal; }
.customer-record-results :is(.skeleton,.page-error,.notice) { margin: 16px; }
.customer-record-results .table-footer { flex-wrap: wrap; gap: 10px; padding: 12px 18px; }
.customer-record-reasons { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 12px 18px; font-size: 13px; color: #465674; }
.customer-record-pages { display: flex; align-items: center; justify-content: flex-end; }
.customer-record-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 5px 16px;
  padding: 15px 18px;
  border-bottom: 1px solid #e6eaf2;
  overflow-wrap: anywhere;
}
.customer-record-summary h2 { margin: 0; font-size: 16px; line-height: 1.5; }
.customer-record-summary span,.customer-record-state p { color: #576781; font-size: 13px; line-height: 1.65; }
.customer-record-state {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 26px 20px;
}
.customer-record-state > div { min-width: 0; overflow-wrap: anywhere; }
.customer-record-state strong { display: block; color: #34425d; font-size: 15px; }
.customer-record-state p { margin: 4px 0 0; }
.customer-record-state-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #f1edfc;
  color: #6346b6;
}
.customer-record-state-icon svg { width: 19px; height: 19px; }
@container customer-records (max-width: 52rem) {
  .customer-record-filters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: end; }
  .customer-record-filters > .field:first-child { grid-column: 1 / -1; }
  .customer-record-filters > .btn { justify-self: start; }
  .customer-record-filters:has(> :nth-child(2):last-child) { grid-template-columns: minmax(0,1fr) auto; }
  .customer-record-filters:has(> :nth-child(2):last-child) > .field { grid-column: auto; }
}
@container customer-records (max-width: 32rem) {
  .customer-record-filters { padding: 13px; gap: 10px; }
  .customer-record-filters .btn { align-self: end; justify-self: stretch; }
  .customer-record-filters :is(.btn,.input,.select) { min-height: 44px; }
  .customer-record-summary { align-items: start; flex-direction: column; padding: 12px 14px; }
  .customer-record-state { padding: 20px 14px; }
}
@container customer-records (max-width: 18rem) {
  .customer-record-filters, .customer-record-filters:has(> :nth-child(2):last-child) { grid-template-columns: minmax(0,1fr); }
}

.customer-log-page { gap: 12px; }
.customer-log-page .customer-log-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 5px 8px;
  border: 1px solid #dce3ef;
  border-radius: 13px;
  background: #f8faff;
}
.customer-log-page .customer-log-tabs button {
  flex: none;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 8px;
  color: #495874;
}
.customer-log-page .customer-log-tabs button[aria-pressed="true"] { color: #5033a8; background: #ebe6fc; }
.console-frame .customer-log-page > .page-heading { padding: 5px 0 7px; border: 0; }
.console-frame .customer-log-page > .page-heading h1 { margin: 0; }
.customer-log-page .customer-record-filters.customer-log-filter-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 12px;
  padding: 15px 18px;
  background: #fafbff;
}
.customer-log-primary-fields {
  display: grid;
  grid-template-columns: minmax(16rem,1.7fr) repeat(2,minmax(0,1fr));
  align-items: start;
  gap: 12px;
}
@container customer-records (min-width: 48rem) {
  .customer-log-primary-fields.with-task-status { grid-template-columns: minmax(16rem,1.7fr) repeat(2,minmax(0,1fr)) minmax(6rem,.55fr); }
}
.customer-log-filter-panel .field { margin: 0; min-width: 0; }
.customer-log-primary-fields .customer-log-label { display: block; color: #465674; font-weight: 600; font-size: 13px; }
.customer-log-time > summary, .customer-log-view > summary { cursor: pointer; list-style: none; }
.customer-log-time > summary::-webkit-details-marker,.customer-log-view > summary::-webkit-details-marker { display: none; }
.customer-log-time > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #cbd4e5;
  border-radius: 10px;
  background: #fff;
  color: #30415d;
  font-size: 14px;
  line-height: 1.4;
  box-sizing: border-box;
}
.customer-log-time > summary svg { width: 16px; height: 16px; flex: none; color: #665a85; }
.customer-log-time > summary svg:last-child { width: 13px; margin-inline-start: auto; transform: rotate(90deg); }
.customer-log-range-text { min-width: 0; font-variant-numeric: tabular-nums; }
.customer-log-time,.customer-log-view { position: relative; min-width: 0; }
.customer-log-range-fields,.customer-log-view-options {
  position: absolute;
  inset-block-start: calc(100% + 5px);
  z-index: 6;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d9dfee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 22px #27355c20;
}
.customer-log-range-fields { inset-inline-start: 0; width: min(27rem,100%); min-width: min(20rem,100%); box-sizing: border-box; }
.customer-log-range-fields > button { justify-self: end; }
.customer-log-custom-range { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); gap: 10px; }
.customer-log-filter-panel .customer-log-actions,.customer-log-query-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.customer-log-query-actions { margin-inline-start: auto; }
.customer-log-filter-panel .customer-log-actions .btn { min-height: 34px; }
.customer-log-actions .btn[aria-pressed="true"],.customer-log-actions .btn[aria-expanded="true"] { color: #513aa2; background: #ede9fb; }
.customer-log-view-options { inset-inline-end: 0; width: 14rem; max-width: calc(100cqi - 30px); }
.customer-log-view-options fieldset { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; margin: 0; padding: 0; border: 0; }
.customer-log-view-options legend { margin-bottom: 7px; color: #25364f; font-weight: 650; }
.customer-log-view-options label { display: flex; align-items: center; gap: 8px; min-height: 32px; cursor: pointer; }
.customer-log-view-options input { width: 16px; height: 16px; margin: 0; accent-color: #634bb4; }
.customer-log-view-options > button { justify-self: start; }
.customer-log-extra-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid #e2e6f1;
}
.customer-log-extra-fields > .field { flex: 1 1 13rem; min-width: 0; max-width: 28rem; }
.customer-log-filter-panel [hidden] { display: none !important; }
.customer-log-page .customer-record-summary { padding: 10px 16px; }
.customer-log-page .customer-record-summary h2 { font-size: 14px; }
.customer-log-page > .customer-record-results { overflow: visible; }
.customer-log-page .customer-record-summary { align-items: center; }
.customer-log-result-title,.customer-log-table-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-width: 0; }
.customer-log-table-tools { gap: 6px; }
.customer-log-table-tools .btn { min-height: 34px; }
.customer-log-page .customer-record-pages select { width: auto; min-width: 7rem; margin-inline-end: auto; font-size: 13px; }
.customer-log-membership { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .3rem .45rem; }
.customer-log-group { display: inline-block; max-width: 14ch; padding: .12rem .42rem; border-radius: .4rem; font-weight: 650; color: #37465a; background: #eef1f5; overflow-wrap: anywhere; }
.customer-log-group[data-tier=vip] { color: #174a8b; background: #e7f1ff; }
.customer-log-group[data-tier=svip] { color: #66318b; background: #f2e9fb; }
.customer-log-group[data-tier=custom] { color: #225653; background: #eaf4f1; }
.customer-log-discount, .customer-log-rate-lookup { font-size: .84em; white-space: nowrap; }
.customer-log-discount { color: #43516b; font-variant-numeric: tabular-nums; }
.customer-log-rate-lookup { background: transparent; padding: .15rem; border: 0; color: var(--primary, #5044a1); cursor: pointer; }
.customer-log-rate-lookup:hover, .customer-log-rate-lookup:focus-visible { text-decoration: underline; }
.customer-record-table .log-col-group,.customer-record-table .log-col-cost { min-width: 5.25rem; }
.customer-log-page .customer-log-extra-fields { padding-top: 0; border-top: 0; }
.customer-log-page .customer-record-results > .table-wrap { border-radius: 0 0 14px 14px; }
.customer-log-page .customer-record-pages[hidden] { display: none; }
.customer-log-page .customer-record-table td[colspan] :is(.customer-record-state,.customer-record-loading) {
  display: flex; justify-content: center; align-items: center; min-height: 12rem;
  flex-direction: column; text-align: center; background: #f8faff;
}
.customer-log-page .customer-record-table td[colspan] .customer-record-state { gap: 8px; }
.customer-log-page .customer-record-table td[colspan] .customer-record-state p { margin-top: 3px; }
@container customer-records (max-width: 60rem) {
  .customer-log-primary-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .customer-log-time-field { grid-column: 1 / -1; }
}
@container customer-records (max-width: 38rem) {
  .customer-log-page .customer-record-filters.customer-log-filter-panel { padding: 12px; gap: 10px; }
  .customer-log-primary-fields { gap: 10px; }
  .customer-log-time > summary { min-height: 44px; }
  .customer-log-filter-panel .customer-log-actions .btn { min-height: 42px; }
  .customer-log-range-fields { position: static; width: 100%; margin-top: 5px; box-shadow: none; }
  .customer-log-view-options label { min-height: 40px; }
  .customer-log-page .customer-record-table td[colspan] :is(.customer-record-state,.customer-record-loading) { min-height: 9rem; }
}
@container customer-records (max-width: 27rem) {
  .customer-log-primary-fields { grid-template-columns: minmax(0,1fr); }
  .customer-log-filter-panel .customer-log-actions { gap: 5px; }
  .customer-log-result-title { align-items: baseline; }
  .customer-log-page .customer-record-summary { align-items: stretch; }
  .customer-log-table-tools { position: relative; justify-content: flex-end; }
  .customer-log-table-tools .btn { min-height: 40px; }
  .customer-log-table-tools .customer-log-view { position: static; }
}
.customer-log-page .table-wrap { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.customer-record-results .customer-record-table {
  width: 100%;
  min-width: 58rem;
  border-spacing: 0;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.customer-record-results .customer-record-table th {
  white-space: nowrap;
  padding: 12px 16px;
  background: #f7f9fd;
  color: #495670;
  font-size: 12px;
  font-weight: 600;
}
.customer-record-results .customer-record-table td {
  padding: 12px 16px;
  background: #fff;
  color: #29374e;
  font-size: 13px;
  line-height: 1.55;
  vertical-align: middle;
  white-space: normal;
  overflow-wrap: anywhere;
}
.customer-record-table td.log-col-time { min-width: 8.5rem; }
.customer-record-table td:is(.log-col-user,.log-col-agent,.log-col-model) { min-width: 6.5rem; }
.customer-record-table td:is(.log-col-token,.log-col-details) { min-width: 6rem; }
.customer-record-table td:is(.log-col-stream,.log-col-cost,.log-col-timing) { min-width: 4rem; }
.customer-record-table td.log-col-tokens { min-width: 5.5rem; }
.customer-record-results .customer-record-table td:is(.log-col-stream,.log-col-tokens),
.customer-record-table td.log-col-tokens .log-cell-sub {
  white-space: nowrap;
  overflow-wrap: normal;
}
.customer-record-table td.log-col-task { min-width: 11rem; }
.log-task-model {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  gap: .25rem .4rem;
}
.log-task-media {
  padding: .08rem .38rem;
  border-radius: .32rem;
  background: #edf0f4;
  color: #485669;
  font-size: .72rem;
  font-weight: 600;
  white-space: nowrap;
}
.log-task-media[data-kind="image"] { background: #e7f4ee; color: #24634a; }
.log-task-media[data-kind="video"] { background: #eaf0fc; color: #3b568c; }
.log-detail-dialog .log-model { max-width: 100%; }
.log-detail-dialog .log-model > .model-icon-name { max-width: none; white-space: normal; overflow-wrap: anywhere; }
.customer-record-results .log-cell-stack { align-items: start; gap: 3px; }
.customer-record-results .customer-record-table .log-cell-sub { color: #526278; font-size: 12px; }
.customer-record-results .log-description { max-width: 16ch; }
.customer-record-table .mono { font-variant-numeric: tabular-nums; }
.customer-record-table .btn.small { white-space: nowrap; }
.customer-record-results .customer-record-table tbody tr:hover > td:not([colspan]) { background: #f8f8fd; }
@container customer-records (min-width: 52rem) and (max-width: 76rem) {
  .customer-record-results .customer-task-table :is(th,td) { padding-inline: 11px; }
}
.customer-record-results .customer-record-table td[colspan] { padding: 0; }
.customer-record-table td[colspan] > * {
  position: sticky;
  inset-inline-start: 0;
  box-sizing: border-box;
  width: min(100%, calc(100cqi - 2px));
}
.customer-record-table td[colspan] :is(.customer-record-state,.customer-record-loading) { min-height: 112px; }
.customer-record-table td[colspan] > :is(.notice,.page-error) { margin: 0; border: 0; border-radius: 0; padding: 20px; }
.customer-record-table td[colspan] .notice { white-space: normal; }
.customer-log-page :is(.table-wrap,summary):focus-visible { outline: 2px solid #6347bb; outline-offset: -2px; }
@container customer-records (max-width: 32rem) {
  .customer-log-page .customer-log-tabs button { min-height: 42px; }
  .customer-record-results .customer-record-table :is(th,td) { padding-inline: 12px; }
  .customer-record-results .customer-record-table td[colspan] { padding: 0; }
  .customer-log-page .customer-record-filters > .field:first-child { grid-column: 1 / -1; }
}

@container customer-records (min-width: 60rem) {
  .customer-log-page > .customer-record-results > .table-wrap { max-height: max(20rem,calc(100dvh - 18rem)); overflow: auto; }
  .customer-log-page .customer-record-table th { font-size: 13px; }
  .customer-log-page .customer-record-table td { font-size: 14px; padding-block: 13px; }
  .customer-log-page .customer-record-table .log-model { font-size: 13px; }
  .customer-log-page .customer-record-table .log-cell-sub { font-size: 12.5px; }
  .customer-log-page .customer-record-table th { position: sticky; inset-block-start: 0; z-index: 1; }
}

.customer-log-person {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: start;
  font: inherit;
}
button.customer-log-person { cursor: pointer; }
button.customer-log-person:hover strong { text-decoration: underline; }
.customer-log-avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: #eae6fa;
  color: #57428e;
  font-size: .75rem;
  font-weight: 700;
}
.customer-record-table time { white-space: nowrap; }
.customer-log-open-record {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #483998;
  font: inherit;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.customer-log-open-record svg { flex: none; width: 13px; height: 13px; }
.customer-log-open-record:hover time { text-decoration: underline; }
.customer-log-open-record:focus-visible { outline: 2px solid #6347bb; outline-offset: 2px; border-radius: 3px; }
@media (pointer: coarse) {
  .customer-log-open-record { min-height: 42px; }
}
.customer-log-event { font-size: .75rem; }
.customer-log-event[data-tone="consume"] { color: #216c56; }
.customer-log-event[data-tone="refund"] { color: #275f9f; }
.customer-log-event[data-tone="error"] { color: #a03648; }
.customer-record-table tr[data-log-state="error"] > td:first-child { box-shadow: inset 3px 0 #d6818e; }
.customer-record-table tr[data-log-state="refund"] > td:first-child { box-shadow: inset 3px 0 #8aafd9; }
.customer-log-cost,.customer-log-pill {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  width: fit-content;
  padding: .1rem .48rem;
  border: 1px solid #dbe3f0;
  border-radius: .55rem;
  background: #f8faff;
  color: #233952;
  white-space: nowrap;
}
.customer-log-pill { white-space: normal; }
.customer-log-latency { display: inline-grid; gap: 2px; padding-inline-start: 7px; border-inline-start: 3px solid #81b3a3; white-space: nowrap; }
.customer-record-table tr[data-log-state="error"] .customer-log-latency { border-color: #d6818e; }
.customer-record-table td.log-col-user { min-width: 9.25rem; }
.customer-record-table td.log-col-token { min-width: 6.75rem; }
.customer-record-table .customer-log-person .log-cell-stack { min-width: 0; max-width: 15ch; }
.customer-record-table .customer-log-person strong,
.customer-record-table .customer-log-pill span { display: block; max-width: 15ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.customer-record-table .customer-log-pill svg { flex: none; }
@container customer-records (max-width: 18rem) {
  .customer-log-filter-panel .customer-log-excel { grid-column: 1 / -1; }
}
.customer-log-detail-dialog .log-detail-row { font-size: 13px; grid-template-columns: minmax(5rem,7rem) minmax(0,1fr); }
.customer-log-detail-dialog .log-detail-row dt { color: #53637a; }
.customer-log-detail-dialog .log-detail-row dd { color: #263750; }
.customer-log-detail-dialog .log-detail-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,18rem),1fr)); }
.customer-log-detail-dialog .log-detail-section h3 { color: #33445d; font-size: 14px; }
.customer-log-detail-dialog .log-detail-section dl {
  border: 1px solid #dce4f2;
  border-radius: 12px;
  background: #f8faff;
  padding: 13px 14px;
}
.customer-log-detail-dialog .log-detail-section.danger dl { background: #fff7f7; border-color: #f1d8de; }
.customer-artifact-dialog .log-artifact-section { display: grid; gap: 14px; margin: 0; }
.customer-artifact-dialog .log-artifact-preview { margin: 0; padding: 0; border-radius: 12px; overflow: hidden; }
.customer-artifact-dialog .log-artifact-preview :is(header,footer) { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; }
.customer-artifact-dialog .log-artifact-preview header span { color: #526378; overflow-wrap: anywhere; }
.customer-artifact-dialog .log-artifact-preview footer { border-top: 1px solid #dce4f2; }
.customer-artifact-media { display: grid; place-items: center; padding: 12px; background: #f0f3f8; }
.customer-artifact-dialog .customer-artifact-media :is(img,video) { max-width: 100%; max-height: min(60dvh,40rem); margin: 0; object-fit: contain; }
.customer-artifact-dialog .customer-artifact-error { display: flex; gap: 10px; align-items: center; min-height: 6rem; }
