/* Compact operational logs; details never participate in table layout. */
#page-activity>.filter-bar { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)) minmax(0,.25fr) minmax(0,1fr); gap:6px; margin:0 0 24px; }
#page-activity .filter-bar .search { width:auto; height:34px; border-color:var(--field-border); border-radius:7px; padding-left:10px; gap:6px; }
#page-activity .search svg { width:15px; height:15px; color:var(--placeholder); flex-shrink:0; }
#page-activity .search input { min-height:0; height:30px; width:100%; font-size:12px; padding:3px 4px; }
#page-activity .filter-bar select { width:100%; max-width:none; height:34px; min-height:34px; padding:4px 9px; font-size:12px; color:var(--muted); border-color:var(--field-border); }
#page-activity #log-range { grid-column:6; }
#log-page-actions { gap:12px; }
#log-page-actions .tag { background:transparent; padding:0; font-size:12px; }
#log-page-actions .secondary { min-height:32px; font-size:12px; padding:5px 10px; border-radius:7px; }
.request-log-wrap { max-height:64vh; overflow:auto; scrollbar-gutter:stable; }
#activity-list>.request-log-wrap { border-radius:9px; }
.request-log-table { table-layout:fixed; min-width:1100px; width:100%; white-space:nowrap; border-collapse:separate; border-spacing:0; }
.request-log-table .log-col-time { width:14%; }.request-log-table .log-col-key { width:11%; }.request-log-table .log-col-model { width:14%; }.request-log-table .log-col-account { width:13%; }.request-log-table .log-col-tokens { width:8%; }.request-log-table .log-col-cost { width:12%; }.request-log-table .log-col-status { width:8%; }.request-log-table .log-col-duration { width:16%; }.request-log-table .log-col-action { width:4%; }
.request-log-table thead { display:table-header-group; }
.request-log-table th { position:sticky; top:0; z-index:1; height:40px; padding:10px; color:var(--muted); font-size:12px; font-weight:400; line-height:18px; background:var(--soft); }
.request-log-table td { height:44px; padding:10px; font-size:12px; line-height:22px; vertical-align:middle; border-bottom:1px solid var(--border); }
.request-log-table tr:last-child td { border-bottom:0; }
.request-log-table th:first-child,.request-log-table td:first-child { padding-left:12px; }
.request-log-table th:last-child,.request-log-table td:last-child { padding-right:12px; }
.request-log-table .log-truncate { display:block; max-width:100%; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.request-log-table .log-number-cell { text-align:right; font-variant-numeric:tabular-nums; }
.request-log-table .log-timing-cell { text-align:center; }
.log-detail-trigger { display:inline-flex; align-items:center; justify-content:center; gap:5px; min-height:22px; padding:0; background:transparent; border:0; color:inherit; font-size:12px; line-height:20px; }
.log-token-count { border-bottom:1px dotted var(--placeholder); }
.log-detail-trigger:hover { color:var(--accent); }
.log-cost { font-variant-numeric:tabular-nums; }
.log-estimate-mark { color:var(--muted); font-size:11px; margin-left:3px; }
.log-muted { color:var(--muted); }
.log-status { display:inline-flex; align-items:center; gap:4px; font-size:12px; white-space:nowrap; }
.log-status::before { content:''; width:5px; height:5px; border-radius:50%; background:var(--success); flex-shrink:0; }
.log-status.failed { color:var(--danger); }.log-status.failed::before { background:var(--danger); }
.log-status.cancelled { color:var(--muted); }.log-status.cancelled::before { background:var(--muted); }
.log-timing { display:inline-block; padding:0 5px; border-radius:3px; font-size:11px; line-height:20px; background:var(--soft); color:var(--muted); font-variant-numeric:tabular-nums; }
.log-timing.fast { background:color-mix(in srgb,var(--success) 12%,var(--surface)); color:var(--success); }
.log-timing.medium { background:color-mix(in srgb,#b88a38 12%,var(--surface)); color:#9b722a; }
.log-timing.slow { background:color-mix(in srgb,var(--danger) 10%,var(--surface)); color:var(--danger); }
.log-action-cell { text-align:right; }
.log-more { width:24px; height:24px; border-radius:4px; color:var(--muted); }.log-more:hover { background:var(--soft); }.log-more svg { width:17px; height:17px; }
.log-sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
#page-activity .pagination { border:0; background:transparent; padding:16px 0 0; gap:12px; border-radius:0; font-size:12px; }
#page-activity .pagination>div { display:flex; gap:6px; }
#page-activity .pagination button { width:30px; min-width:30px; min-height:30px; padding:0; background:transparent; color:var(--muted); font-size:20px; border-radius:50%; }
#page-activity .pagination button:hover:enabled { background:var(--soft); }
#page-activity .table-note { margin-top:12px; font-size:12px; color:var(--muted); }
#request-detail-dialog.request-detail-drawer { width:min(600px,100vw); max-width:100vw; height:100dvh; max-height:100dvh; inset:0 0 0 auto; margin:0; padding:0; border:0; border-left:1px solid var(--border); border-radius:0; overflow:hidden; box-shadow:-8px 0 45px #0002; }
#request-detail-dialog[open] { display:flex; flex-direction:column; }
#request-detail-dialog::backdrop { background:#17171433; backdrop-filter:none; }
#request-detail-dialog>.dialog-head { flex-shrink:0; padding:20px 24px; margin:0; border-bottom:1px solid var(--border); }
#request-detail-dialog .dialog-head h2 { font-size:18px; }
#request-detail-content { padding:0 24px 32px; overflow:auto; min-height:0; overscroll-behavior:contain; }
.request-detail-section { padding:22px 0; border-bottom:1px solid var(--border); scroll-margin-top:12px; min-width:0; }
.request-detail-section:last-child { border-bottom:0; }
.request-detail-section h3 { display:flex; align-items:center; gap:8px; font-size:14px; font-weight:600; margin:0 0 16px; }
.request-detail-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px 24px; margin:0; min-width:0; }
.request-detail-grid>div { min-width:0; }.request-detail-grid>div:first-child:last-child { grid-column:1/-1; }
.request-detail-grid dt { font-size:12px; color:var(--muted); margin-bottom:5px; }
.request-detail-grid dd { margin:0; font-size:14px; overflow-wrap:anywhere; line-height:1.6; }
.request-detail-grid>p { grid-column:1/-1; font-size:12px; }
.request-detail-note { margin-top:16px; font-size:12px; color:var(--muted); line-height:1.7; }
.request-detail-section .cost-value { font-size:22px; font-weight:500; font-variant-numeric:tabular-nums; }
.request-detail-section .cost-label { margin-top:4px; font-size:12px; }
.request-detail-section .cost-details { margin-top:18px; padding:12px; border:1px solid var(--border); border-radius:8px; font-size:12px; }
.request-detail-section .cost-details summary { color:var(--muted); }.request-detail-section .cost-details p { margin-top:10px; overflow-wrap:anywhere; line-height:1.9; }
@media(max-width:1180px) and (min-width:721px) { #page-activity>.filter-bar { grid-template-columns:repeat(5,minmax(0,1fr)); } #page-activity #log-range { grid-column:auto; } }
@media(max-width:720px) {
 #page-activity>.filter-bar { display:flex; flex-direction:column; align-items:stretch; gap:7px; margin-bottom:22px; }
 #page-activity .filter-bar .search { flex:none; width:100%; height:34px; }
 #page-activity .filter-bar select { flex:none; height:34px; }
 #log-page-actions { gap:8px; } #log-page-actions .tag { display:none; } #log-page-actions .secondary { padding:5px 8px; font-size:11px; }
 .request-log-wrap { max-height:280px; scrollbar-gutter:auto; }
 .request-log-table { display:table; width:1100px; min-width:1100px; }
 .request-log-table tbody { display:table-row-group; }.request-log-table thead { display:table-header-group; }
 .request-log-table tr { display:table-row; padding:0; }
 .request-log-table th,.request-log-table td { display:table-cell; padding:10px; border-bottom:1px solid var(--border); text-align:left; font-size:12px; white-space:nowrap; }
 .request-log-table td::before { display:none; }
 .request-log-table .log-number-cell { text-align:right; }.request-log-table .log-timing-cell { text-align:center; }
 #request-detail-dialog.request-detail-drawer { width:100vw; border:0; }
 #request-detail-dialog>.dialog-head { padding:16px; }
 #request-detail-content { padding:0 16px 24px; }
 .request-detail-grid { gap:14px 16px; }.request-detail-grid dd { font-size:13px; }
}
.content:has(#page-activity:not([hidden]))>.page-heading { min-height:34px; margin-bottom:32px; }
.request-log-table th { background:color-mix(in srgb,var(--soft) 45%,var(--surface)); }
.request-log-table td { padding-top:8px; padding-bottom:8px; }
.log-detail-trigger { vertical-align:middle; }
#page-activity .table-note { border:0; background:transparent; padding:0; }
#request-detail-content .request-detail-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 24px; }
#request-detail-summary .request-detail-grid>div:first-child { grid-column:1/-1; }
@media(max-width:720px) {
 #request-detail-content .request-detail-grid { gap:14px 16px; }
 .request-log-table td { padding-top:8px; padding-bottom:8px; }
}
@media(max-width:720px) {
 #log-page-actions { width:auto; flex:0 0 auto; margin-left:auto; }
 .content:has(#page-activity:not([hidden]))>.page-heading>div:first-child { flex-shrink:0; }
}
