@font-face {
    font-family: "anthropicSerif";
    src: url("/fonts/TiemposText-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "anthropicCode";
    src: url("/fonts/JetBrainsMono-Regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --bg: #262624;
    --panel-bg: #2f2f2d;
    --ink: #ffffff;
    --muted: #bfc3c1;
    --accent: #f9d648;
    --accent-strong: #5aa0ff;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    min-height: 100vh;
    font-family: "anthropicSerif", Georgia, "Times New Roman", serif;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Status badges for jobs */
.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.85em;
    font-weight: 600;
}

.status-running {
    background: #4a5568;
    color: #fbbf24;
}

.status-succeeded {
    background: #065f46;
    color: #34d399;
}

.status-errored {
    background: #7f1d1d;
    color: #fca5a5;
}

.status-queued {
    background: #374151;
    color: #9ca3af;
}

.error-message {
    display: block;
    color: #fca5a5;
    font-family: "anthropicCode", "JetBrains Mono", "Noto Sans Mono", "DejaVu Sans Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
    margin-top: 4px;
}

header {
    background: rgba(24, 24, 22, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 0.8rem;
}

.nav-shell {
    max-width: 980px;
    margin: 0 auto;
    padding: 1.1rem 1.6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.2rem;
}

.brand {
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.95rem;
    color: var(--ink);
}

nav {
    display: flex;
    gap: 1rem;
}

nav a {
    color: var(--muted);
    font-size: 0.92rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

nav a:hover {
    color: var(--accent);
}

main {
    flex: 1;
    max-width: 980px;
    margin: 0 auto;
    padding: 2.2rem 1.6rem 3.2rem;
    display: grid;
    gap: 1.6rem;
}

.card {
    background: var(--panel-bg);
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 20px 24px;
}

.panel-header {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.panel-title {
    font-size: 22px;
    margin: 0;
}

.panel-note {
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted);
}

.panel-note strong {
    color: var(--ink);
}

.muted {
    color: var(--muted);
}

.warning {
    color: #ffb4a2;
}

.small {
    font-size: 0.88rem;
}

.mono {
    font-family: "anthropicCode", "JetBrains Mono", "Noto Sans Mono", "DejaVu Sans Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
}

.inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: center;
    margin-top: 0.9rem;
}

input[type="text"],
select,
textarea {
    padding: 0.6rem 0.9rem;
    border-radius: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: var(--ink);
    min-width: 11rem;
    font-family: inherit;
}

input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

a.button,
button,
input[type="submit"] {
    background: rgba(255, 255, 255, 0.08);
    color: var(--ink);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 0.5rem 1rem;
    border-radius: 0.45rem;
    font-weight: 500;
    font-family: "anthropicSerif", Georgia, "Times New Roman", serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: background 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
}

button:disabled,
input[type="submit"]:disabled,
select:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.pagination {
    margin-top: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
}

.pagination .pager-buttons {
    display: flex;
    gap: 0.6rem;
}

a.button.disabled {
    pointer-events: none;
    opacity: 0.55;
}

a.button:hover,
button:hover,
input[type="submit"]:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
    text-decoration: none;
}

.list-grid {
    display: grid;
    gap: 1rem;
}

.message {
    background: #1f1f1e;
    border-left: 4px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 14px 18px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.55);
}

.message.system { border-left-color: #5aa0ff; }
.message.user { border-left-color: #48f99f; }
.message.assistant { border-left-color: #f9d648; }

.message header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
}

.message p {
    margin: 0.9rem 0 0;
    line-height: 1.55;
    white-space: pre-wrap;
}

details.thinking {
    margin-top: 0.8rem;
    padding: 0.85rem;
    background: rgba(32, 36, 40, 0.75);
    border-radius: 0.6rem;
    border-left: 3px solid #3a8fbf;
    color: #d7eefc;
}

details.thinking summary {
    cursor: pointer;
    font-weight: 600;
}

.search-result {
    display: grid;
    gap: 0.75rem;
}

.search-result__content {
    margin: 0;
}

.search-result__thinking {
    margin: 0;
}

.search-result__thinking .thinking-title {
    margin-bottom: 0.4rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
    background: #1f1f1e;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.55);
}

.card.wide {
    max-width: none;
}

.table-wrapper {
    overflow-x: auto;
}

thead {
    background: rgba(255, 255, 255, 0.05);
}

th,
td {
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.9rem;
}

tbody tr:last-child td {
    border-bottom: none;
}

code {
    font-family: "anthropicCode", "JetBrains Mono", "Noto Sans Mono", "DejaVu Sans Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
    /*padding: 0.1rem 0.35rem;*/
    padding: 0px;
    border-radius: 0.35rem;
}

.status {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-family: "anthropicCode", "JetBrains Mono", "Noto Sans Mono", "DejaVu Sans Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
}

.status.in_progress { background: rgba(249, 214, 72, 0.18); color: #f9d648; }
.status.completed { background: rgba(72, 249, 159, 0.18); color: #48f99f; }
.status.failed { background: rgba(255, 95, 86, 0.18); color: #ff5f56; }
.status.saturated { background: rgba(138, 72, 249, 0.16); color: #b497ff; }
.status.frozen { background: rgba(180, 180, 180, 0.18); color: #d3d3d3; }

pre {
    margin: 0;
    font-family: inherit;
    white-space: pre-wrap;
    line-height: 1.55;
}

.rendered-content {
    white-space: break-spaces;
    line-height: 1.55;
    margin: 0;
}

.ansi .fg-black { color: #3a3a3a; }
.ansi .fg-red { color: #ff6b6b; }
.ansi .fg-green { color: #7be57b; }
.ansi .fg-yellow { color: #ffd86b; }
.ansi .fg-blue { color: #6aa7ff; }
.ansi .fg-magenta { color: #c77bff; }
.ansi .fg-cyan { color: #6fffe0; }
.ansi .fg-white { color: #e6e6e6; }
/*.ansi .bright { font-weight: 700; }*/

.global-footer {
    padding: 1.4rem 1.6rem;
    color: #8c8f8f;
    font-size: 0.8rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(24, 24, 22, 0.92);
}

ul.tight {
    margin: 0.8rem 0 0;
    padding-left: 1.2rem;
    color: var(--muted);
    line-height: 1.6;
}

/* CRT landing page overrides */
body.crt-mode {
    background: #0b0b0b;
    color: #e4ffe4;
    font-family: "anthropicCode", "JetBrains Mono", "Noto Sans Mono", "DejaVu Sans Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
    overflow-x: hidden;
}

body.crt-mode header,
body.crt-mode main,
body.crt-mode .global-footer {
    position: relative;
    z-index: 2;
}

body.crt-mode header {
    background: rgba(16, 16, 16, 0.92);
    border-bottom: 1px solid rgba(0, 229, 255, 0.35);
}

body.crt-mode nav a {
    color: #8aa18a;
}

body.crt-mode nav a:hover {
    color: #00e5ff;
}

body.crt-mode main {
    max-width: 900px;
    padding: 2.5rem 1.6rem 3.5rem;
    display: grid;
    gap: 1.4rem;
}

body.crt-mode .card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.0)), #101010;
    border-radius: 6px;
    border: 1px solid rgba(0, 229, 255, 0.45);
    outline: 1px solid rgba(0, 0, 0, 0.7);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    padding: 26px 32px;
    color: #e4ffe4;
    margin: 24px auto;
    max-width: 840px;
}

body.crt-mode .panel-title {
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #ffffff;
}

body.crt-mode .panel-note,
body.crt-mode .muted {
    color: #8aa18a;
}

body.crt-mode a {
    color: #00e5ff;
}

body.crt-mode a.button,
body.crt-mode button,
body.crt-mode input[type="submit"] {
    background: rgba(0, 229, 255, 0.12);
    color: #e4ffe4;
    border: 1px solid rgba(0, 229, 255, 0.55);
    font-family: "anthropicCode", "JetBrains Mono", "Noto Sans Mono", "DejaVu Sans Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
}

body.crt-mode a.button:hover,
body.crt-mode button:hover,
body.crt-mode input[type="submit"]:hover {
    background: rgba(0, 229, 255, 0.2);
    border-color: rgba(0, 229, 255, 0.75);
}

body.crt-mode input[type="text"],
body.crt-mode select,
body.crt-mode textarea {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(0, 229, 255, 0.35);
    color: #e4ffe4;
    font-family: "anthropicCode", "JetBrains Mono", "Noto Sans Mono", "DejaVu Sans Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
}

body.crt-mode input[type="text"]::placeholder {
    color: rgba(228, 255, 228, 0.4);
}

body.crt-mode .status.in_progress { background: rgba(255, 238, 0, 0.2); color: #ffee00; }
body.crt-mode .status.completed { background: rgba(0, 229, 255, 0.2); color: #00e5ff; }
body.crt-mode .status.failed { background: rgba(255, 0, 167, 0.2); color: #ff00a7; }

body.crt-mode .crt-scene {
    position: relative;
    width: 100%;
    animation: crt-flicker 3s infinite;
}

body.crt-mode .crt-title {
    margin: 0 0 12px 0;
    font-size: 32px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: -1px 0 #00e5ff, 1px 0 #ff00a7;
    animation: crt-jitter 4.5s steps(2, end) infinite;
}

body.crt-mode .crt-tagline {
    color: #8aa18a;
    margin-bottom: 16px;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

body.crt-mode .crt-pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffee00;
    box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.6);
    animation: crt-pulse 1.8s infinite;
    vertical-align: 2px;
    margin-right: 8px;
}

body.crt-mode .crt-scanlines {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.06) 0px,
        rgba(255, 255, 255, 0.06) 1px,
        rgba(0, 0, 0, 0) 2px,
        rgba(0, 0, 0, 0) 3px
    );
    mix-blend-mode: overlay;
    opacity: 0.12;
    z-index: 1;
}

body.crt-mode .crt-glitch {
    position: fixed;
    inset: -10% -10% auto -10%;
    height: 100vh;
    width: 120vw;
    overflow: hidden;
    filter: blur(0.2px);
    opacity: 0.25;
    z-index: 1;
    pointer-events: none;
}

body.crt-mode .crt-glitch .crt-bar {
    position: absolute;
    left: -30vw;
    right: -30vw;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #00e5ff 25%, #ffee00 50%, #ff00a7 75%, transparent 100%);
    animation: crt-glide 8s linear infinite;
}

body.crt-mode .crt-glitch .crt-bar:nth-child(2) { top: 15%; animation-duration: 10s; animation-delay: -2s; opacity: 0.8; }
body.crt-mode .crt-glitch .crt-bar:nth-child(3) { top: 33%; animation-duration: 7s; animation-delay: -3s; opacity: 0.6; }
body.crt-mode .crt-glitch .crt-bar:nth-child(4) { top: 57%; animation-duration: 12s; animation-delay: -1s; opacity: 0.7; }
body.crt-mode .crt-glitch .crt-bar:nth-child(5) { top: 74%; animation-duration: 9s; animation-delay: -4s; opacity: 0.9; }
body.crt-mode .crt-glitch .crt-bar:nth-child(6) { top: 86%; animation-duration: 6s; animation-delay: -5s; opacity: 0.5; }

@keyframes crt-glide {
    to {
        transform: translateX(40vw);
    }
}

@keyframes crt-flicker {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.97;
    }
}

@keyframes crt-jitter {
    0%,
    100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(0.5px, -0.5px);
    }
}

@keyframes crt-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.6);
    }
    70% {
        box-shadow: 0 0 0 14px rgba(0, 229, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 229, 255, 0);
    }
}

body.crt-mode .global-footer {
    background: rgba(16, 16, 16, 0.92);
    border-top: 1px solid rgba(0, 229, 255, 0.35);
    color: #8aa18a;
}

.job-orb-card {
    margin-top: 0.8rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #f9d648;
    box-shadow: 0 0 10px rgba(249, 214, 72, 0.6);
    animation: job-card-pulse 1.4s ease-in-out infinite;
}

@keyframes job-card-pulse {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 0.4; }
    100% { transform: scale(0.9); opacity: 0.7; }
}

/* Transcript detail view */
body.transcript-detail main {
    display: block;
    padding: 2rem 0;
}

.transcript-shell {
    max-width: 980px;
    margin: 0 auto;
}

.transcript-frame {
    background: #262624;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
    padding: 18px 24px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.transcript-heading {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.transcript-heading h1 {
    font-size: 22px;
    margin: 0;
}

.meta {
    color: #bfc3c1;
    font-size: 13px;
    margin: 6px 0 0;
}

.control-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.1rem;
}

.control-bar form,
.control-bar a {
    display: flex;
    align-items: center;
}

.control-bar select {
    padding: 0.55rem 0.8rem;
    border-radius: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
}

.error-banner {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.6rem;
    background: rgba(255, 95, 86, 0.18);
    border: 1px solid rgba(255, 95, 86, 0.35);
    color: #ffb3ac;
    font-size: 14px;
    line-height: 1.45;
}

.error-banner .small-meta {
    display: block;
    font-size: 12px;
    margin-top: 0.4rem;
    color: rgba(255, 255, 255, 0.6);
}

.job-indicator {
    display: none;
    margin: 1.2rem 0 0;
    padding: 0.9rem 1.1rem;
    border-radius: 0.7rem;
    background: rgba(249, 214, 72, 0.16);
    border: 1px solid rgba(249, 214, 72, 0.3);
    color: #f9e9a9;
    align-items: center;
    gap: 0.9rem;
    font-size: 14px;
}

.job-indicator.active {
    display: flex;
}

.job-indicator .spinner {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(249, 214, 72, 0.25);
    border-top-color: #f9d648;
    animation: job-spin 1s linear infinite;
}

.job-indicator .label {
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 12px;
}

.job-orb {
    position: fixed;
    right: 1.6rem;
    bottom: 1.6rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(249, 214, 72, 0.6);
    background: #f9d648;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.job-orb.active {
    opacity: 0.9;
    animation: job-orb-pulse 1.6s ease-in-out infinite;
    transform: scale(1);
}

.system-box,
.initial-box,
.thinking,
.text {
    border-radius: 6px;
    padding: 12px;
    margin: 12px 0;
}

.system-box {
    background: #243443;
    border-left: 4px solid #5aa0ff;
    color: #d7eefc;
}

.initial-box {
    background: #2b2a28;
    border-left: 4px solid #a57d2a;
    color: #f2e6c9;
}

.system-title,
.initial-title,
.thinking-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.system-title { color: #d7eefc; }
.initial-title { color: #f2e6c9; }
.thinking-title { color: #cde6ff; }

.turn {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 14px 0;
}

.turn:first-of-type {
    border-top: none;
    padding-top: 4px;
}

.hdr {
    display: flex;
    gap: 12px;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
}

.role {
    font-weight: 600;
    text-transform: capitalize;
}

.message-number-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.message-number-link:hover {
    color: #5aa0ff;
    text-decoration: underline;
}

.message-number-link:visited {
    color: inherit;
}

.time {
    color: #9aa0a0;
    font-size: 12px;
}

.thinking {
    background: rgb(20, 20, 19);
    border-left: 4px solid #3a8fbf;
    color: #e6e6e6;
}

.text {
    background: #1f1f1e;
    border-left: 4px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
    font-family: "anthropicCode", "JetBrains Mono", "Noto Sans Mono", "DejaVu Sans Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
    color: #eaeaea;
}

.turn.user .text { border-left-color: #48f99f; }
.turn.assistant .text { border-left-color: #f9d648; }
.turn.system .text { border-left-color: #5aa0ff; }

.search-result__content.text,
.search-result__thinking.thinking {
    margin: 0;
}

.branch-note {
    color: #9aa0a0;
    font-size: 12px;
    margin-top: 8px;
}

/* Branch button styling */
.message-actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}

.branch-form {
    margin: 0;
    padding: 0;
}

.branch-button {
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid rgba(0, 255, 0, 0.2);
    color: #00ff00;
    padding: 6px 12px;
    font-size: 12px;
    font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, "DejaVu Sans Mono", monospace;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.branch-button:hover:not(:disabled) {
    background: rgba(0, 255, 0, 0.1);
    border-color: rgba(0, 255, 0, 0.4);
    transform: translateY(-1px);
}

.branch-button:active:not(:disabled) {
    transform: translateY(0);
    background: rgba(0, 255, 0, 0.15);
}

.branch-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.branch-icon {
    font-size: 14px;
    line-height: 1;
}

.model-tag,
.model {
    color: #8aa18a;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: "anthropicCode", "JetBrains Mono", "Noto Sans Mono", "DejaVu Sans Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
}

.model-tag {
    margin-top: 4px;
}

.model {
    margin-top: 6px;
}

footer.site-footer {
    margin-top: 24px;
    font-size: 12px;
    color: #8c8f8f;
    text-align: center;
}

.advanced-controls {
    margin-top: 24px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.advanced-controls label {
    display: block;
    font-size: 14px;
    color: var(--ink);
    margin-bottom: 8px;
}

.advanced-controls input[type="checkbox"] {
    accent-color: var(--accent);
    margin-right: 8px;
}

.advanced-controls select {
    width: 100%;
    max-width: 400px;
    padding: 8px 12px;
    background: var(--panel-bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--ink);
    font-family: inherit;
    font-size: 14px;
}

.advanced-controls select:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

@keyframes job-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes job-orb-pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 0.4; }
    100% { transform: scale(1); opacity: 0.8; }
}

/* Jobs listing filters */
.panel-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 0 1rem;
}

.panel-controls .checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 14px;
    color: #d4d7d5;
}

.panel-controls input[type="checkbox"] {
    accent-color: #f9d648;
}

/* Transcript export layout */
body.transcript-export {
    display: block;
    padding: 24px;
}

body.transcript-export .container {
    max-width: 980px;
    margin: 0 auto;
    background: #262624;
    padding: 18px 24px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}

body.transcript-export footer {
    margin-top: 24px;
    font-size: 12px;
    color: #8c8f8f;
    text-align: center;
}

/* SVG and Mermaid diagram containers */
.svg-container {
    margin: 1rem 0;
    padding: 1rem;
    background: #1a1a1a;
    border: 1px solid #00ff00;
    border-radius: 4px;
    overflow-x: auto;
}

.svg-container svg {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.svg-container.svg-omitted {
    color: #9aa0a0;
    font-family: "anthropicCode", "JetBrains Mono", "Noto Sans Mono", "DejaVu Sans Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
    border-style: dashed;
}

.mermaid {
    margin: 1rem 0;
    padding: 1rem;
    background: #000000;
    border: 1px solid #00ff00;
    border-radius: 4px;
    overflow-x: auto;
}

/* Ensure mermaid diagrams are visible and styled */
.mermaid svg {
    max-width: 100%;
    height: auto;
}

/* Healed block styling */
.healed-block-container {
    margin: 1rem 0;
    padding: 0;
}

.healed-block-wrapper {
    border: 2px solid #ffaa00;
    border-radius: 6px;
    background: #1a1a1a;
    overflow: hidden;
}

.healed-block-indicator {
    background: #ffaa00;
    color: #000000;
    padding: 0.5rem 1rem;
    font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, "DejaVu Sans Mono", monospace;
    font-size: 0.85rem;
    font-weight: bold;
    text-align: center;
}

.healed-block-wrapper .svg-container,
.healed-block-wrapper .mermaid {
    margin: 0;
    border: none;
    border-radius: 0;
}

.healed-block-wrapper pre {
    margin: 0;
    border-radius: 0;
}

/* Generated image containers */
.genimg-container {
    margin: 1rem 0;
    padding: 1rem;
    background: #1a1a1a;
    border: 2px solid #ff00ff;
    border-radius: 4px;
    text-align: center;
}

.generated-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 4px;
}

.genimg-caption {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    font-style: italic;
    color: #999;
    text-align: center;
}

.genimg-error {
    margin: 1rem 0;
    padding: 1rem;
    background: #2a1a1a;
    border: 2px solid #ff0000;
    border-radius: 4px;
    color: #ff6666;
    font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, "DejaVu Sans Mono", monospace;
}

/* Model tabs styling */
.model-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.tab-button {
    padding: 0.5rem 1rem;
    background: var(--panel-bg);
    border: 1px solid var(--border);
    color: var(--muted);
    cursor: pointer;
    font-family: "anthropicCode", monospace;
    font-size: 0.85rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.tab-button:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--ink);
}

.tab-button.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
    font-weight: 600;
}

.tab-button.disabled,
.tab-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--panel-bg);
    border-color: rgba(255, 255, 255, 0.05);
    color: #666;
}

.tab-button.disabled:hover,
.tab-button:disabled:hover {
    background: var(--panel-bg);
    border-color: rgba(255, 255, 255, 0.05);
    color: #666;
}
