[data-theme="light"], :root:not([data-theme="dark"]) {
    --pico-primary: #e67e22;
    --pico-primary-hover: #d35400;
    --pico-primary-focus: rgba(230, 126, 34, 0.25);
}
.pipeline-card {
    border: 1px solid var(--pico-muted-border-color);
    border-radius: var(--pico-border-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: box-shadow 0.2s;
}
.pipeline-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.pipeline-card h3 { margin-bottom: 0.5rem; }
.pipeline-card p { color: var(--pico-muted-color); margin-bottom: 1rem; }
.status-badge { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 1rem; font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.status-badge.secondary { background: #95a5a6; color: white; }
.status-badge.primary   { background: #3498db; color: white; }
.status-badge.success   { background: #27ae60; color: white; }
.status-badge.danger    { background: #e74c3c; color: white; }
.log-box { background: #1e1e1e; color: #d4d4d4; padding: 1rem; border-radius: var(--pico-border-radius); font-family: monospace; font-size: 0.85rem; line-height: 1.5; max-height: 500px; overflow-y: auto; white-space: pre-wrap; word-break: break-all; }
.task-meta { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1.5rem; margin-bottom: 1.5rem; }
.task-meta dt { font-weight: 600; color: var(--pico-muted-color); }
.header-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
details summary { cursor: pointer; color: var(--pico-primary); margin-bottom: 1rem; }
sup { color: #e74c3c; }
footer { margin-top: 3rem; padding: 1rem 0; text-align: center; color: var(--pico-muted-color); }
.btn-sm { padding: 0.25rem 0.5rem; font-size: 0.8rem; margin-bottom: 0; }
.file-breadcrumb { margin-bottom: 1rem; font-size: 0.9rem; }
.file-breadcrumb a { color: var(--pico-primary); text-decoration: none; }
.file-breadcrumb a:hover { text-decoration: underline; }
.file-table { width: 100%; }
.file-table td, .file-table th { padding: 0.5rem 0.75rem; }
.file-table tbody tr:hover { background: var(--pico-primary-focus); }
.file-table a { text-decoration: none; }
.file-table a:hover { text-decoration: underline; }
.task-label { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.9rem; }
.view-toggle { display: flex; gap: 0.25rem; }
.btn-view { padding: 0.3rem 0.6rem; font-size: 1.1rem; line-height: 1; cursor: pointer; margin-bottom: 0; }
.view-list table { margin-bottom: 0; }
.node-badge { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 0.75rem; font-size: 0.75rem; font-weight: 600; background: #3498db; color: white; }

/* Compact nav for smaller screens */
nav ul { gap: 0; }
nav li a { padding: 0.5rem 0.4rem; font-size: 0.9rem; white-space: nowrap; }

/* Compact task table */
#task-table { font-size: 0.85rem; }
#task-table td, #task-table th { padding: 0.4rem 0.6rem; }
#task-table .col-actions { white-space: nowrap; }
#task-table .col-user { white-space: nowrap; }
#task-table .col-time { white-space: nowrap; }
#task-table .col-pipeline { white-space: nowrap; }

/* Workspace Drawer */
.ws-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; width: 320px;
    background: var(--pico-background-color); border-left: 1px solid var(--pico-muted-border-color);
    box-shadow: -2px 0 12px rgba(0,0,0,0.1);
    transform: translateX(100%); transition: transform 0.25s ease;
    z-index: 999; display: flex; flex-direction: column;
    font-size: 0.9rem;
}
.ws-drawer.open { transform: translateX(0); }
.ws-drawer-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.75rem 1rem; border-bottom: 1px solid var(--pico-muted-border-color);
}
.ws-drawer-actions {
    display: flex; gap: 0.5rem; padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--pico-muted-border-color);
}
.ws-file-list { flex: 1; overflow-y: auto; padding: 0; }
.ws-table { width: 100%; margin: 0; font-size: 0.85rem; }
.ws-table td { padding: 0.35rem 0.75rem; vertical-align: middle; }
.ws-table tr:hover { background: var(--pico-primary-focus); }
.ws-fname { word-break: break-all; line-height: 1.3; }
.ws-fsize { text-align: right; color: var(--pico-muted-color); white-space: nowrap; }
.ws-factions { text-align: right; white-space: nowrap; }

/* File field with workspace picker */
.ws-file-field { margin-bottom: 0; }
.ws-file-mode { display: flex; gap: 0.5rem; align-items: center; }
.ws-file-mode input[type="file"] { flex: 1; margin-bottom: 0; }
.ws-pick-btn { white-space: nowrap; margin-bottom: 0; }
.ws-picked-info {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.4rem 0.75rem; border-radius: var(--pico-border-radius);
    background: var(--pico-primary-focus); margin-top: 0.25rem;
}
.ws-picked-tag { font-size: 0.85rem; }
.ws-picked-name { font-weight: 600; }

/* Pin button success state */
.ws-pin-btn { white-space: nowrap; }
.ws-pin-btn.success { color: #27ae60; border-color: #27ae60; }

/* Tab buttons */
.tab-btn {
    padding: 0.4rem 1rem; font-size: 0.9rem; cursor: pointer;
    border: 1px solid var(--pico-muted-border-color);
    background: transparent; color: var(--pico-muted-color);
    border-radius: var(--pico-border-radius);
    margin-right: 0.25rem;
}
.tab-btn.active {
    background: var(--pico-primary); color: white;
    border-color: var(--pico-primary);
}
