.llq-model-switcher { position: relative; }
.llq-model-trigger,
.llq-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 10px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle, rgba(255,255,255,.12));
    background: var(--bg-panel, #14141d);
    color: var(--text-primary, #f2f2f7);
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
}
.llq-model-trigger:hover,
.llq-chip:hover { background: var(--bg-hover, rgba(255,255,255,.05)); }
.llq-model-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    width: min(360px, 80vw);
    max-height: 360px;
    overflow: auto;
    z-index: 40;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle, rgba(255,255,255,.12));
    background: var(--bg-elevated, #1a1a25);
    box-shadow: var(--shadow-elevated, 0 16px 48px rgba(0,0,0,.45));
}
.llq-model-group-label {
    font-size: 11px;
    color: var(--text-muted, #6c6c7c);
    padding: 6px 8px 4px;
}
.llq-model-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-align: left;
}
.llq-model-item small { color: var(--text-muted, #6c6c7c); }
.llq-model-item.is-active,
.llq-model-item:hover { background: var(--bg-active, rgba(139,122,255,.14)); }
.llq-shell-user { display: flex; align-items: center; gap: 8px; }
.llq-user-name { cursor: default; }
.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: var(--bg-body, #0c0d12);
    color: var(--text-primary, #f2f2f7);
}
.auth-panel {
    width: min(400px, 92vw);
    padding: 32px 28px;
    border-radius: 18px;
    background: var(--bg-panel, #14141d);
    border: 1px solid var(--border-subtle, rgba(255,255,255,.08));
    display: grid;
    gap: 14px;
    text-align: center;
}
.auth-brand { font-size: 22px; font-weight: 700; }
.range-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin: 10px 0;
    align-items: center;
}
#confirmMessage { line-height: 1.7; white-space: pre-wrap; }

.workbench-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}
.work-card {
    text-align: left;
    padding: 24px 22px;
    border-radius: 16px;
    border: 1px solid var(--border-subtle, rgba(255,255,255,.1));
    background: var(--bg-panel, #14141d);
    color: inherit;
    cursor: pointer;
}
.work-card:hover { border-color: var(--accent, #8b7aff); }
.work-card-kicker {
    font-size: 12px;
    color: var(--text-muted, #8a8a98);
    margin-bottom: 8px;
}
.work-card h2 { font-size: 22px; margin: 0 0 8px; }
.work-card p { margin: 0; color: var(--text-secondary, #c8c8d4); line-height: 1.6; }
.recent-books-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
}
.recent-books-head h3 { margin: 0; font-size: 16px; }
.book-meta { color: var(--text-secondary, #c8c8d4); font-size: 13px; line-height: 1.6; }
.book-running { color: var(--accent, #8b7aff); font-size: 13px; margin-top: 8px; }
.stage-code { opacity: .55; font-weight: 400; margin-left: 6px; }
.llq-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 24px 12px;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--bg-panel, #14141d);
    border: 1px solid var(--border-subtle, rgba(255,255,255,.1));
    color: var(--text-primary, #f2f2f7);
    font-size: 14px;
    line-height: 1.5;
}
.llq-progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent, #8b7aff);
    animation: llq-pulse 1.2s ease-in-out infinite;
}
@keyframes llq-pulse {
    0%, 100% { opacity: .35; }
    50% { opacity: 1; }
}
html[data-theme="light"] .work-card,
html[data-theme="light"] .llq-progress {
    background: #fff;
    border-color: rgba(28,25,23,.1);
    color: #1c1917;
}
html[data-theme="light"] .work-card p,
html[data-theme="light"] .book-meta { color: #44403c; }
