Python
.debug-log-root {
position: fixed;
right: 18px;
bottom: 18px;
z-index: 220;
pointer-events: none;
letter-spacing: 0;
}
.debug-fab,
.debug-log-panel {
pointer-events: auto;
}
.debug-fab {
position: absolute;
right: 0;
bottom: 0;
width: 46px;
height: 46px;
display: grid;
place-items: center;
border: 1px solid rgb(93 113 126 / 36%);
border-radius: 50%;
color: #21323c;
background: rgb(248 251 252 / 92%);
box-shadow: 0 10px 28px rgb(39 55 64 / 22%);
backdrop-filter: blur(18px);
cursor: pointer;
}
.debug-log-root.is-open .debug-fab {
opacity: 0;
pointer-events: none;
}
.debug-error-dot {
position: absolute;
top: 5px;
right: 5px;
width: 8px;
height: 8px;
border: 2px solid #f8fbfc;
border-radius: 50%;
background: #c93d3d;
}
.debug-log-panel {
width: min(820px, calc(100vw - 112px));
height: min(760px, calc(100dvh - 92px));
display: grid;
grid-template-rows: auto auto minmax(0, 1fr);
overflow: hidden;
border: 1px solid rgb(91 110 123 / 30%);
border-radius: 8px;
background: rgb(246 249 250 / 96%);
box-shadow: 0 22px 62px rgb(26 40 49 / 28%);
backdrop-filter: blur(28px);
color: #25353f;
}
.debug-log-panel.is-fullscreen {
position: fixed;
inset: 12px;
width: auto;
height: auto;
z-index: 1;
}
.debug-log-header {
display: flex;
align-items: center;
justify-content: space-between;
min-height: 56px;
padding: 9px 12px 9px 16px;
border-bottom: 1px solid rgb(106 124 135 / 20%);
-webkit-app-region: no-drag;
}
.debug-log-header > div:first-child {
display: grid;
gap: 2px;
}
.debug-log-header strong {
font-size: 15px;
font-weight: 650;
}
.debug-log-header span,
.debug-log-status {
color: #667883;
font-size: 11px;
}
.debug-log-header-actions {
display: flex;
gap: 4px;
}
.debug-icon-button {
width: 32px;
height: 32px;
display: grid;
place-items: center;
border: 0;
border-radius: 6px;
color: #435761;
background: transparent;
cursor: pointer;
}
.debug-icon-button:hover {
background: rgb(101 123 136 / 12%);
}
.debug-panel-tabs {
display: flex;
gap: 4px;
padding: 7px 12px 0;
border-bottom: 1px solid rgb(106 124 135 / 16%);
}
.debug-panel-tabs button {
height: 32px;
padding: 0 13px;
border: 0;
border-bottom: 2px solid transparent;
color: #687a84;
background: transparent;
font-size: 12px;
cursor: pointer;
}
.debug-panel-tabs button[aria-selected="true"] {
border-bottom-color: #39759b;
color: #213944;
font-weight: 650;
}
.debug-log-content {
min-height: 0;
display: grid;
grid-template-rows: auto auto auto minmax(0, 1fr);
}
.debug-log-toolbar {
display: grid;
grid-template-columns: minmax(0, 1fr) 126px 150px;
gap: 8px;
padding: 10px 12px 6px;
}
.debug-capture-level {
height: 34px;
display: grid;
grid-template-columns: auto minmax(0, 1fr);
align-items: center;
gap: 6px;
padding-left: 8px;
border: 1px solid rgb(97 117 129 / 28%);
border-radius: 6px;
background: white;
color: #697b85;
font-size: 10px;
}
.debug-capture-level select {
width: 100%;
height: 32px;
border: 0;
padding: 0 6px;
}
.debug-search {
height: 34px;
display: flex;
align-items: center;
gap: 7px;
padding: 0 10px;
border: 1px solid rgb(97 117 129 / 28%);
border-radius: 6px;
background: white;
color: #70818a;
}
.debug-search input,
.debug-log-toolbar select {
min-width: 0;
border: 0;
outline: 0;
color: #273842;
background: transparent;
font: inherit;
font-size: 12px;
}
.debug-search input {
width: 100%;
}
.debug-log-toolbar select {
height: 34px;
padding: 0 8px;
border: 1px solid rgb(97 117 129 / 28%);
border-radius: 6px;
background: white;
}
.debug-levels {
display: flex;
gap: 2px;
min-inline-size: 0;
margin: 0;
padding: 2px 12px 7px;
border: 0;
}
.debug-levels legend {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip: rect(0 0 0 0);
white-space: nowrap;
}
.debug-levels button {
height: 28px;
padding: 0 10px;
border: 0;
border-radius: 5px;
color: #5d707b;
background: transparent;
font-size: 11px;
cursor: pointer;
}
.debug-levels button[aria-pressed="true"] {
color: #1f303a;
background: rgb(94 119 134 / 15%);
}
.debug-log-status {
display: flex;
gap: 12px;
min-height: 24px;
align-items: center;
padding: 0 14px;
border-bottom: 1px solid rgb(106 124 135 / 16%);
}
.debug-log-list {
min-height: 0;
overflow: auto;
background: #f9fbfc;
overscroll-behavior: contain;
}
.debug-log-row {
border-bottom: 1px solid rgb(113 130 140 / 12%);
}
.debug-log-summary {
width: 100%;
min-height: 33px;
display: grid;
grid-template-columns: 14px 72px 48px 78px minmax(160px, 1fr) 74px;
align-items: center;
gap: 7px;
padding: 4px 10px;
border: 0;
color: #30434d;
background: transparent;
text-align: left;
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
font-size: 11px;
cursor: pointer;
}
.debug-log-summary:hover {
background: rgb(93 118 132 / 7%);
}
.debug-log-summary time,
.debug-log-service,
.debug-log-outcome {
color: #71828b;
}
.debug-log-level {
text-transform: uppercase;
font-weight: 700;
font-size: 10px;
}
.debug-read-error,
.level-error .debug-log-level {
color: #b83232;
}
.level-warn .debug-log-level {
color: #9a6513;
}
.level-debug .debug-log-level {
color: #76509c;
}
.debug-log-event {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.debug-log-outcome {
overflow: hidden;
text-overflow: ellipsis;
}
.debug-log-row pre {
max-height: 260px;
margin: 0;
overflow: auto;
padding: 10px 18px 12px 32px;
color: #344954;
background: #eef3f5;
font:
11px / 1.55 ui-monospace,
SFMono-Regular,
Menlo,
Consolas,
monospace;
white-space: pre-wrap;
overflow-wrap: anywhere;
}
.debug-log-empty {
margin: 0;
padding: 42px 20px;
color: #71828b;
text-align: center;
font-size: 12px;
}
.model-usage-view {
min-height: 0;
overflow: auto;
padding: 12px;
background: #f9fbfc;
}
.model-usage-toolbar {
display: flex;
align-items: end;
justify-content: space-between;
gap: 12px;
}
.model-usage-toolbar label {
display: grid;
gap: 4px;
color: #697b85;
font-size: 10px;
}
.model-usage-toolbar select {
height: 34px;
min-width: 150px;
padding: 0 9px;
border: 1px solid rgb(97 117 129 / 28%);
border-radius: 6px;
color: #273842;
background: white;
font-size: 12px;
}
.model-usage-state {
color: #71828b;
font-size: 11px;
}
.model-usage-state.state-error {
color: #b83232;
}
.model-usage-metrics {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 8px;
margin-top: 10px;
}
.model-usage-metrics > div {
display: grid;
gap: 5px;
padding: 11px 12px;
border: 1px solid rgb(100 119 131 / 18%);
border-radius: 7px;
background: white;
}
.model-usage-metrics span {
color: #71828b;
font-size: 10px;
}
.model-usage-metrics strong {
color: #20343f;
font-size: 19px;
font-variant-numeric: tabular-nums;
}
.model-usage-chart-card,
.model-usage-stage-card {
margin-top: 10px;
border: 1px solid rgb(100 119 131 / 18%);
border-radius: 7px;
background: white;
}
.model-usage-section-title {
display: flex;
align-items: center;
justify-content: space-between;
padding: 11px 12px 4px;
}
.model-usage-section-title strong {
font-size: 12px;
}
.model-usage-section-title span {
color: #71828b;
font-size: 10px;
}
.model-usage-chart {
width: 100%;
height: 210px;
overflow: visible;
}
.model-usage-chart line {
stroke: rgb(108 125 136 / 18%);
stroke-width: 1;
}
.model-usage-chart polyline {
fill: none;
stroke-width: 2;
stroke-linecap: round;
stroke-linejoin: round;
}
.model-usage-chart text {
fill: #7a8991;
font-size: 9px;
font-variant-numeric: tabular-nums;
}
.model-usage-chart-empty {
display: grid;
height: 210px;
place-items: center;
color: #71828b;
font-size: 12px;
}
.model-usage-legend {
display: flex;
flex-wrap: wrap;
gap: 6px 12px;
padding: 0 12px 11px;
color: #5d707b;
font-size: 10px;
}
.model-usage-legend span,
.model-usage-stage-row {
display: flex;
align-items: center;
}
.model-usage-legend i,
.model-usage-stage-row i {
width: 7px;
height: 7px;
flex: 0 0 auto;
margin-right: 5px;
border-radius: 50%;
}
.model-usage-stage-list {
padding: 4px 12px 10px;
}
.model-usage-stage-row {
min-height: 34px;
display: grid;
grid-template-columns: 12px minmax(110px, 1fr) 54px 110px 128px 70px;
gap: 7px;
border-top: 1px solid rgb(110 127 137 / 12%);
color: #687984;
font-size: 10px;
}
.model-usage-stage-row strong {
color: #314650;
font-size: 11px;
}
.model-usage-stage-row b {
color: #263c47;
text-align: right;
font-variant-numeric: tabular-nums;
}
.spin {
animation: debug-spin 0.9s linear infinite;
}
@keyframes debug-spin {
to {
transform: rotate(360deg);
}
}
@media (max-width: 760px) {
.debug-log-root {
right: 10px;
bottom: 10px;
}
.debug-log-panel {
width: calc(100vw - 20px);
height: calc(100dvh - 76px);
}
.debug-log-panel.is-fullscreen {
inset: 0;
width: 100vw;
height: 100dvh;
border-radius: 0;
}
.debug-log-toolbar {
grid-template-columns: minmax(0, 1fr) 118px;
}
.debug-capture-level {
grid-column: 1 / -1;
}
.debug-log-summary {
grid-template-columns: 14px 66px 44px 70px minmax(120px, 1fr);
}
.debug-log-outcome {
display: none;
}
.model-usage-metrics {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.model-usage-stage-row {
grid-template-columns: 12px minmax(100px, 1fr) 50px 80px;
}
.model-usage-stage-row span:nth-of-type(2),
.model-usage-stage-row span:nth-of-type(3) {
display: none;
}
}
@media (prefers-reduced-transparency: reduce) {
.debug-fab,
.debug-log-panel {
background: #f6f9fa;
backdrop-filter: none;
}
}