:root {
    color-scheme: dark;
    font-family: Verdana, "DejaVu Sans", sans-serif;
    background: #0a0d0c;
    color: #f2f5ef;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 0%, rgba(161, 225, 90, 0.12), transparent 32rem),
        #0a0d0c;
}

button,
a,
input,
select,
textarea {
    font: inherit;
}

.app-frame {
    min-height: 100vh;
}

.login-shell { display: grid; min-height: 85vh; padding: 1rem; place-items: center; }
.login-panel { width: min(460px, 100%); }
.login-panel h1 { font-size: clamp(2.8rem, 8vw, 4.5rem); }
.login-panel form { display: grid; gap: 1rem; }
.logout-form { margin: 0; }

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.25rem 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.nav-links a {
    border-radius: 0.55rem;
    padding: 0.45rem 0.55rem;
    color: #89928b;
    font-size: 0.78rem;
    text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(161, 225, 90, 0.08);
    color: #c9f49a;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #f2f5ef;
    font-weight: 750;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    border-radius: 0.7rem;
    background: #a1e15a;
    color: #10200b;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

.local-badge,
.status-pill,
.status-line {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border: 1px solid #343b36;
    border-radius: 0.35rem;
    padding: 0.4rem 0.7rem;
    color: #aeb7b0;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dashboard-shell {
    display: grid;
    gap: 2rem;
    width: min(1120px, calc(100% - 2rem));
    margin: 4rem auto;
}

.page-shell {
    display: grid;
    gap: 1.25rem;
    width: min(1120px, calc(100% - 2rem));
    margin: 3rem auto 6rem;
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1rem;
}

.page-header h1,
.empty-state h1 {
    max-width: 900px;
    font-size: clamp(2.5rem, 6vw, 5rem);
}

.hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
}

.eyebrow,
.card-label {
    margin: 0 0 0.65rem;
    color: #a1e15a;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1,
h2,
h3,
.brand {
    font-family: Bahnschrift, "Arial Narrow", "DejaVu Sans Condensed", sans-serif;
}

h1 {
    max-width: 760px;
    margin-bottom: 1.25rem;
    font-size: clamp(2.7rem, 7vw, 5.9rem);
    line-height: 0.96;
    letter-spacing: -0.065em;
}

h1:focus {
    outline: none;
}

h2 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.hero-copy {
    max-width: 680px;
    color: #aeb7b0;
    font-size: 1.05rem;
    line-height: 1.7;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
}

.metric-card {
    display: grid;
    gap: 0.45rem;
    border: 1px solid #252b27;
    border-radius: 1rem;
    padding: 1.15rem;
    background: rgba(20, 24, 21, 0.82);
}

.metric-card span { color: #7f8981; font-size: 0.75rem; font-weight: 750; text-transform: uppercase; }
.metric-card strong { font-size: 1.7rem; letter-spacing: -0.04em; }
.metric-card a { color: #a9d978; font-size: 0.78rem; }
.feed-panel { align-content: start; }
.feed-url { overflow: hidden; border: 1px solid #303831; border-radius: 0.65rem; padding: 0.7rem; background: #0b0f0c; color: #b7c1b9; text-overflow: ellipsis; white-space: nowrap; }

.panel.discovery-panel {
    padding: 0;
    overflow: hidden;
}

.discovery-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.45rem 1.6rem 1.25rem;
}

.discovery-heading h2 {
    margin-bottom: 0.35rem;
}

.discovery-summary {
    margin: 0;
    color: #7f8981 !important;
    font-size: 0.78rem;
}

.discovery-all-link {
    flex: 0 0 auto;
    margin-top: 0.1rem;
    color: #a9d978;
    font-size: 0.78rem;
    font-weight: 700;
}

.dashboard-view-switch {
    display: inline-flex;
    flex: 0 0 auto;
    border: 1px solid #343c36;
    border-radius: 0.55rem;
    padding: 0.18rem;
    background: #0c100d;
}

.dashboard-view-switch button {
    min-height: 2.15rem;
    border: 0;
    border-radius: 0.38rem;
    padding: 0.42rem 0.7rem;
    background: transparent;
    color: #99a39b;
    font-size: 0.75rem;
    box-shadow: none;
}

.dashboard-view-switch button:hover,
.dashboard-view-switch button.active {
    background: #202a20;
    color: #eef3ed;
}

.dashboard-view-switch button span {
    margin-left: 0.3rem;
    color: #a1e15a;
    font-variant-numeric: tabular-nums;
}

.dashboard-radar-groups,
.dashboard-radar-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dashboard-radar-day {
    border-top: 1px solid #2b322d;
}

.dashboard-radar-day-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.72rem 1.6rem 0.62rem;
    background: #101612;
}

.dashboard-radar-day-heading h3 {
    margin: 0;
    color: #dbe3dc;
    font-family: Bahnschrift, "Arial Narrow", "DejaVu Sans Condensed", sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.dashboard-radar-day-heading span {
    color: #77827a;
    font-size: 0.68rem;
    font-variant-numeric: tabular-nums;
}

.dashboard-radar-list > li {
    display: grid;
    grid-template-columns: 3.2rem minmax(0, 1fr) auto;
    align-items: start;
    gap: 1rem;
    border-top: 1px solid #2b322d;
    padding: 1rem 1.6rem;
}

.dashboard-score {
    display: grid;
    place-items: center;
    width: 2.65rem;
    height: 2.65rem;
    border: 1px solid #4b633d;
    border-radius: 50%;
    color: #b5eb7c;
    font-family: Bahnschrift, "Arial Narrow", "DejaVu Sans Condensed", sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.dashboard-pick-copy {
    display: grid;
    min-width: 0;
    gap: 0.25rem;
}

.dashboard-pick-heading {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
}

.dashboard-pick-heading a {
    color: #eef3ed;
    font-family: Bahnschrift, "Arial Narrow", "DejaVu Sans Condensed", sans-serif;
    font-size: 0.98rem;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.manual-label {
    flex: 0 0 auto;
    color: #b7e98a;
    font-size: 0.61rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.dashboard-pick-copy > span,
.dashboard-pick-info small {
    color: #7f8981;
    font-size: 0.72rem;
}

.dashboard-pick-copy > p {
    margin: 0.15rem 0 0;
    color: #c1c9c2;
    font-size: 0.8rem;
    line-height: 1.5;
}

.dashboard-pick-info,
.discovery-inspector {
    margin-top: 0.15rem;
}

.dashboard-pick-info summary,
.discovery-inspector summary {
    width: fit-content;
    cursor: pointer;
    color: #a9d978;
    font-size: 0.72rem;
    font-weight: 700;
}

.dashboard-pick-info p,
.discovery-inspector p {
    max-width: 760px;
    margin: 0.5rem 0 0;
    color: #9da79f;
    font-size: 0.76rem;
    line-height: 1.55;
}

.dashboard-pick-state {
    border: 1px solid #39443a;
    border-radius: 0.35rem;
    padding: 0.35rem 0.52rem;
    color: #aab4ac;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.discovery-timeline {
    margin: 0;
    padding: 0;
    list-style: none;
}

.discovery-timeline li {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr) auto;
    align-items: start;
    gap: 1.25rem;
    min-height: 4.6rem;
    border-top: 1px solid #2b322d;
    padding: 0.9rem 1.6rem;
}

.discovery-time {
    position: relative;
    display: grid;
    align-self: stretch;
    align-content: start;
    gap: 0.15rem;
    border-left: 1px solid #3a463b;
    padding: 0.12rem 0 0 1.1rem;
    color: #bcc5bd;
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
}

.discovery-time::before {
    content: "";
    position: absolute;
    top: 0.48rem;
    left: -0.34rem;
    width: 0.55rem;
    height: 0.55rem;
    border: 1px solid #0a0d0c;
    border-radius: 50%;
    background: #a1e15a;
    box-shadow: 0 0 0 2px #344234;
}

.discovery-time small {
    color: #707a72;
    font-size: 0.7rem;
}

.discovery-details {
    display: grid;
    min-width: 0;
    gap: 0.28rem;
}

.discovery-title-line {
    display: flex;
    min-width: 0;
    align-items: baseline;
    gap: 0.6rem;
}

.discovery-title-line a {
    color: #eef3ed;
    font-family: Bahnschrift, "Arial Narrow", "DejaVu Sans Condensed", sans-serif;
    font-size: 0.95rem;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.discovery-details > span {
    overflow: hidden;
    color: #78827a;
    font-size: 0.73rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.discovery-new {
    flex: 0 0 auto;
    color: #b8e888;
    font-size: 0.62rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.discovery-origin {
    max-width: 12rem;
    color: #939d95;
    font-size: 0.7rem;
    text-align: right;
}

.discovery-inspector {
    color: #9da79f;
}

.discovery-inspector strong,
.discovery-inspector small {
    display: block;
}

.discovery-inspector strong {
    margin-top: 0.55rem;
    color: #e2e8e3;
    font-size: 0.8rem;
}

.discovery-inspector small {
    margin-top: 0.2rem;
    color: #7f8981;
    font-size: 0.68rem;
}

.discovery-inspector .candidate-reason {
    border-left: 1px solid #617a4d;
    padding-left: 0.65rem;
}

.compact-button {
    min-height: 2.25rem;
    margin-top: 0.65rem;
    padding: 0.42rem 0.7rem;
    font-size: 0.72rem;
}

.dashboard-panel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid #2b322d;
    padding: 0.8rem 1.6rem;
    color: #7f8981;
    font-size: 0.72rem;
}

.dashboard-panel-footer a {
    flex: 0 0 auto;
    color: #a9d978;
    font-weight: 700;
}

.discovery-empty {
    display: grid;
    gap: 0.35rem;
    border-top: 1px solid #2b322d;
    padding: 1.25rem 1.6rem 1.4rem;
    color: #7f8981;
    font-size: 0.8rem;
}

.discovery-empty strong {
    color: #c9d0ca;
}

.status-card,
.next-step,
.panel {
    border: 1px solid #252b27;
    border-radius: 1.25rem;
    background: rgba(20, 24, 21, 0.82);
    box-shadow: 0 1rem 4rem rgba(0, 0, 0, 0.16);
}

.panel {
    padding: 1.6rem;
}

.panel p {
    color: #a4ada6;
    line-height: 1.6;
}

.panel-muted {
    border-color: #1c211e;
    opacity: 0.72;
}

.step-grid,
.two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.setup-card {
    display: flex;
    min-height: 220px;
    gap: 1.2rem;
}

.step-number {
    display: grid;
    width: 2.6rem;
    height: 2.6rem;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #394139;
    border-radius: 50%;
    color: #a1e15a;
    font-size: 0.76rem;
    font-weight: 800;
}

.grow {
    width: 100%;
}

.section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.interview-panel {
    display: grid;
    gap: 1rem;
    padding: 0;
    overflow: hidden;
}

.interview-panel > .section-heading,
.interview-panel > .empty-state {
    padding: 1.5rem 1.5rem 0;
}

.interview-panel > .empty-state {
    padding-bottom: 1.5rem;
}

.interview-conversation {
    display: grid;
    height: clamp(560px, 72vh, 760px);
    min-height: 0;
    grid-template-rows: minmax(0, 1fr) auto;
    border-top: 1px solid #252c27;
    background: #0d110f;
}

.chat-log {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1.75rem clamp(1rem, 4vw, 3.25rem) 2.5rem;
    scroll-behavior: smooth;
    scrollbar-color: #4a514c transparent;
    scrollbar-width: thin;
}

.chat-message {
    display: grid;
    width: min(100%, 800px);
    margin: 0 auto 1.5rem;
    grid-template-columns: 2.15rem minmax(0, 1fr);
    align-items: start;
    gap: 0.85rem;
}

.chat-message.user {
    display: flex;
    justify-content: flex-end;
    padding-left: min(18%, 9rem);
}

.chat-avatar {
    display: grid;
    width: 2.15rem;
    height: 2.15rem;
    place-items: center;
    border: 1px solid rgba(161, 225, 90, 0.32);
    border-radius: 0.7rem;
    background: rgba(161, 225, 90, 0.11);
    color: #c8f39a;
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.04em;
}

.chat-message-content {
    min-width: 0;
    padding-top: 0.12rem;
}

.chat-message.user .chat-message-content {
    max-width: min(82%, 650px);
    border-radius: 1.25rem 1.25rem 0.35rem 1.25rem;
    padding: 0.8rem 1rem;
    background: #202720;
}

.chat-message-label {
    color: #a1e15a;
    font-size: 0.71rem;
    font-weight: 800;
}

.chat-message p {
    margin: 0.35rem 0 0;
    color: #e5eae5;
    line-height: 1.65;
    white-space: pre-wrap;
}

.chat-message.user p {
    margin-top: 0.2rem;
}

.chat-message.pending {
    opacity: 0.92;
}

.thinking-dots {
    display: flex;
    align-items: center;
    height: 1.8rem;
    gap: 0.32rem;
}

.thinking-dots i {
    width: 0.36rem;
    height: 0.36rem;
    border-radius: 50%;
    background: #8d978f;
    animation: interview-thinking 1.2s infinite ease-in-out;
}

.thinking-dots i:nth-child(2) { animation-delay: 0.15s; }
.thinking-dots i:nth-child(3) { animation-delay: 0.3s; }

@keyframes interview-thinking {
    0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-0.2rem); }
}

.interview-composer {
    position: relative;
    z-index: 2;
    padding: 0 1.25rem 1.1rem;
    background: linear-gradient(to bottom, transparent, #0d110f 18%);
}

.composer-surface {
    display: flex;
    width: min(100%, 800px);
    margin: 0 auto;
    align-items: flex-end;
    gap: 0.7rem;
    border: 1px solid #3b443d;
    border-radius: 1.35rem;
    padding: 0.65rem 0.7rem 0.65rem 1rem;
    background: #171c19;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

.composer-surface:focus-within {
    border-color: #66785a;
    box-shadow: 0 0 0 3px rgba(161, 225, 90, 0.08), 0 12px 36px rgba(0, 0, 0, 0.28);
}

.composer-surface textarea {
    max-height: 160px;
    min-height: 2.25rem;
    flex: 1;
    resize: none;
    overflow-y: auto;
    border: 0;
    border-radius: 0;
    padding: 0.38rem 0;
    background: transparent;
    line-height: 1.5;
}

.composer-surface textarea:focus {
    border: 0;
    box-shadow: none;
}

.chat-send-button {
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    flex: 0 0 auto;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #a1e15a;
    color: #10200b;
    cursor: pointer;
    font-size: 1.3rem;
    font-weight: 900;
}

.chat-send-button:disabled {
    background: #343b36;
    color: #788079;
    cursor: not-allowed;
}

.composer-footer {
    display: flex;
    width: min(100%, 800px);
    margin: 0.4rem auto 0;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 0.35rem;
}

.composer-hint {
    color: #69726b;
    font-size: 0.7rem;
}

.composer-actions {
    display: flex;
    gap: 0.15rem;
}

.composer-actions .text-button {
    padding: 0.35rem 0.5rem;
    color: #8f9991;
    font-size: 0.72rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.reply-box,
.editor-panel,
.settings-panel {
    display: grid;
    gap: 0.85rem;
}

label {
    display: grid;
    gap: 0.4rem;
    color: #cbd1cc;
    font-size: 0.82rem;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #384039;
    border-radius: 0.7rem;
    padding: 0.75rem 0.85rem;
    outline: none;
    background: #0c100e;
    color: #f2f5ef;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #89c84a;
    box-shadow: 0 0 0 3px rgba(161, 225, 90, 0.1);
}

textarea {
    resize: vertical;
    line-height: 1.55;
}

.code-editor {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.78rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.setting-name {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.setting-help {
    position: static;
    display: inline-grid;
    flex: 0 0 auto;
    width: 1.15rem;
    height: 1.15rem;
    place-items: center;
    border: 1px solid #4b574e;
    border-radius: 50%;
    color: #a1e15a;
    cursor: help;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1;
    outline: none;
}

.setting-help:focus-visible {
    border-color: #a1e15a;
    box-shadow: 0 0 0 3px rgba(161, 225, 90, 0.12);
}

.setting-tooltip {
    position: absolute;
    z-index: 30;
    top: calc(100% + 0.45rem);
    left: 0;
    width: max-content;
    min-width: 14rem;
    max-width: min(23rem, calc(100vw - 3rem));
    padding: 0.65rem 0.75rem;
    visibility: hidden;
    border: 1px solid #465047;
    border-radius: 0.4rem;
    background: #111713;
    box-shadow: 0 0.7rem 1.7rem rgba(0, 0, 0, 0.38);
    color: #d7ded7;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.45;
    opacity: 0;
    pointer-events: none;
    white-space: normal;
}

.setting-help:hover .setting-tooltip,
.setting-help:focus .setting-tooltip {
    visibility: visible;
    opacity: 1;
}

.compact-grid {
    margin-bottom: 1rem;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.primary-button,
.secondary-button,
.text-button {
    width: fit-content;
    border-radius: 0.7rem;
    padding: 0.72rem 0.9rem;
    cursor: pointer;
    font-weight: 800;
}

.primary-button {
    border: 1px solid #a1e15a;
    background: #a1e15a;
    color: #10200b;
}

.secondary-button {
    border: 1px solid #3d493f;
    background: #171d19;
    color: #dce5dc;
}

.text-button {
    border: 1px solid transparent;
    background: transparent;
    color: #9ba49c;
}

.primary-button:disabled,
.secondary-button:disabled,
.text-button:disabled {
    cursor: wait;
    opacity: 0.5;
}

.link-button {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.empty-state {
    text-align: left;
}

.profile-summary {
    color: #e7ece7 !important;
    font-size: 1.1rem;
}

.metadata-list {
    display: grid;
    gap: 0.65rem;
    margin: 1.5rem 0;
}

.metadata-list div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #282e29;
    padding-bottom: 0.5rem;
}

.metadata-list dt {
    color: #858e87;
}

.metadata-list dd {
    margin: 0;
    color: #e4e9e4;
}

.history-list {
    display: grid;
    gap: 0.65rem;
}

.operation-list { display: grid; }
.operation-list article { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; border-top: 1px solid #2c332e; padding: 1rem 0; }
.operation-list article:first-child { border-top: 0; }
.operation-list h3, .operation-list p { margin: 0 0 0.3rem; }
.operation-list small { color: #7f8981; }
.operation-list small { display: block; margin-top: 0.3rem; }
.operation-list .job-error { color: #e4a3a3; }
.operation-status { display: grid; justify-items: end; gap: 0.5rem; }
.operation-status a { color: #a9d978; font-size: 0.78rem; }

.jobs-shell {
    --log-divider: #303731;
}

.attention-metric strong,
.status-danger {
    color: #f1aaa4;
}

.resolved-note {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.85rem;
    border: 1px solid #344131;
    border-left: 3px solid #8fc754;
    padding: 0.85rem 1rem;
    background: #101610;
    color: #aeb8af;
    font-size: 0.82rem;
}

.resolved-note strong {
    color: #d8e9c9;
}

.danger-button {
    color: #e3a09a;
}

.danger-button:hover {
    color: #ffd0cb;
}

.live-job-log {
    border-color: #3b493d;
}

.live-job-events {
    display: grid;
    max-height: 22rem;
    overflow: auto;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.live-job-events li {
    display: grid;
    grid-template-columns: 5.5rem 12rem minmax(0, 1fr) 8rem;
    align-items: center;
    gap: 0.85rem;
    border-top: 1px solid #2b332d;
    padding: 0.65rem 0;
    font-size: 0.76rem;
}

.live-job-events time,
.live-job-events span:not(.status-line) {
    overflow: hidden;
    color: #89938b;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-job-events strong {
    overflow: hidden;
    color: #e1e8e1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attention-panel {
    padding: 0;
    overflow: hidden;
    border-color: #5a3835;
}

.attention-panel > .section-heading,
.attention-panel > .muted-copy {
    margin-right: 1.4rem;
    margin-left: 1.4rem;
}

.attention-panel > .section-heading {
    margin-top: 1.25rem;
}

.attention-panel > .muted-copy {
    margin-bottom: 1.1rem;
}

.attention-list {
    border-top: 1px solid #49312f;
}

.attention-item {
    padding: 1.15rem 1.4rem 1.25rem;
    border-bottom: 1px solid #352c2b;
    background: #100f0f;
}

.attention-item:last-child {
    border-bottom: 0;
}

.attention-item header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
}

.attention-item h3 {
    margin: 0.15rem 0 0;
    color: #f0e8e6;
    font-size: 1rem;
}

.attention-item time {
    flex: 0 0 auto;
    color: #a98a86;
    font-size: 0.74rem;
}

.attention-guidance {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 1rem 0;
    border-top: 1px solid #352c2b;
    border-bottom: 1px solid #352c2b;
}

.attention-guidance div {
    min-width: 0;
    padding: 0.8rem 1rem;
    border-left: 1px solid #352c2b;
}

.attention-guidance div:first-child {
    padding-left: 0;
    border-left: 0;
}

.attention-guidance dt {
    color: #a98a86;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.attention-guidance dd {
    margin: 0.35rem 0 0;
    color: #cfc7c5;
    font-size: 0.8rem;
    line-height: 1.45;
}

.technical-disclosure {
    margin-top: 0.9rem;
    border-top: 1px solid #292624;
    padding-top: 0.75rem;
}

.technical-disclosure summary {
    width: fit-content;
    color: #a9b2aa;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 750;
}

.technical-disclosure[open] summary {
    margin-bottom: 0.9rem;
}

.technical-disclosure .job-output {
    margin-top: 0.8rem;
}

.job-log-panel {
    padding: 0;
    overflow: hidden;
}

.job-log-heading {
    margin: 0;
    padding: 1.25rem 1.4rem;
}

.log-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.log-filters button {
    border: 0;
    border-radius: 0.3rem;
    padding: 0.45rem 0.6rem;
    background: transparent;
    color: #8f9991;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
}

.log-filters button span {
    margin-left: 0.25rem;
    color: #647069;
    font-variant-numeric: tabular-nums;
}

.log-filters button:hover,
.log-filters button.active {
    background: #202920;
    color: #c6ee98;
}

.job-log {
    border-top: 1px solid var(--log-divider);
}

.credit-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1.4rem;
    border-top: 1px solid var(--log-divider);
    padding: 0.75rem 1.4rem;
    background: #0d110e;
    color: #7f8981;
    font-size: 0.7rem;
}

.credit-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.credit-legend strong {
    color: #b9c2bb;
}

.credit-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #68716a;
}

.credit-dot.uses-ai {
    background: #a5dc68;
}

.credit-dot.paid-external {
    background: #d8a95a;
}

.settings-ready {
    margin: 0;
    border-left: 3px solid #8fca59;
    padding: 0.55rem 0.7rem;
    background: rgba(104, 157, 75, 0.12);
    color: #cbd9c0 !important;
    font-size: 0.8rem;
}

.job-log-entry {
    border-bottom: 1px solid var(--log-divider);
}

.job-log-entry:last-child {
    border-bottom: 0;
}

.job-log-entry summary {
    display: grid;
    grid-template-columns: 7.25rem 13rem minmax(12rem, 1fr) 17.5rem;
    align-items: center;
    gap: 1rem;
    min-height: 3.6rem;
    padding: 0.65rem 1.4rem;
    cursor: pointer;
    list-style: none;
}

.job-log-entry summary::-webkit-details-marker {
    display: none;
}

.job-log-entry summary::before {
    content: "+";
    position: absolute;
    margin-left: -0.85rem;
    color: #667169;
}

.job-log-entry[open] summary::before {
    content: "−";
}

.job-log-entry summary:hover {
    background: #111612;
}

.job-log-entry.needs-attention summary {
    box-shadow: inset 3px 0 #b9665e;
}

.job-log-entry time,
.job-log-message {
    overflow: hidden;
    color: #78837b;
    font-size: 0.76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.job-log-entry time {
    padding-left: 0.4rem;
}

.job-log-name {
    overflow: hidden;
    color: #e5ebe4;
    font-size: 0.84rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.job-log-entry .status-line {
    padding: 0.3rem 0.5rem;
    font-size: 0.65rem;
}

.job-log-badges {
    display: grid;
    grid-template-columns: 8.75rem 8.25rem;
    align-items: center;
    justify-self: end;
    gap: 0.5rem;
}

.job-log-badges .credit-badge,
.job-log-badges .status-line {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
}

.job-diagnostic-toggle {
    grid-column: 1 / -1;
    justify-self: end;
    color: #a9d978;
    font-size: 0.68rem;
    font-weight: 750;
}

.credit-badge {
    border: 1px solid #343c36;
    border-radius: 0.3rem;
    padding: 0.3rem 0.5rem;
    color: #8c968e;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.035em;
    text-transform: uppercase;
    white-space: nowrap;
}

.credit-badge.uses-ai {
    border-color: #52653e;
    color: #b7e987;
}

.credit-badge.may-use-ai {
    border-color: #665c3d;
    color: #d8c587;
}

.credit-badge.paid-external {
    border-color: #745d35;
    color: #e2bc73;
}

.job-log-detail {
    display: grid;
    gap: 1rem;
    border-top: 1px solid #262d28;
    padding: 1.25rem 1.4rem 1.4rem;
    background: #0d110e;
}

.job-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem 1.5rem;
    margin: 0;
}

.job-facts div {
    min-width: 0;
}

.job-facts dt,
.job-output span {
    color: #707b73;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.job-facts dd {
    margin: 0.25rem 0 0;
    color: #c7cec8;
    font-size: 0.78rem;
}

.job-facts code {
    overflow-wrap: anywhere;
    color: #a8b3aa;
}

.job-output {
    border-left: 2px solid #667666;
    padding-left: 0.8rem;
}

.job-output p {
    margin: 0.3rem 0 0;
    color: #cbd1cb;
    font-size: 0.82rem;
}

.job-output-error {
    border-left-color: #b9665e;
}

.job-output-error p {
    color: #e4aaa5;
}

.ai-usage-detail {
    border-left-color: #4f6540;
}

.settings-section-tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    border: 1px solid #303832;
    border-radius: 0.7rem;
    margin-bottom: 1rem;
    background: #111613;
    scrollbar-width: thin;
}

.settings-section-tabs button {
    min-width: max-content;
    flex: 1 0 auto;
    border: 0;
    border-right: 1px solid #303832;
    border-bottom: 3px solid transparent;
    padding: 0.8rem 1rem 0.7rem;
    background: transparent;
    color: #89938b;
    cursor: pointer;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 750;
}

.settings-section-tabs button:last-child {
    border-right: 0;
}

.settings-section-tabs button:hover {
    background: #171d19;
    color: #c4cdc5;
}

.settings-section-tabs button:focus-visible {
    position: relative;
    z-index: 1;
    outline: 2px solid #9ad45c;
    outline-offset: -3px;
}

.settings-section-tabs button.active {
    border-bottom-color: #9ad45c;
    background: #181f1a;
    color: #e3eadf;
}

.settings-tab-panel {
    display: grid;
    gap: 1rem;
}

.provider-usage-tabs {
    display: flex;
    gap: 1.25rem;
    margin-top: 1rem;
    border-bottom: 1px solid #303832;
}

.provider-usage-tabs button {
    border: 0;
    border-bottom: 2px solid transparent;
    padding: 0.65rem 0.1rem;
    background: transparent;
    color: #89938b;
    cursor: pointer;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 750;
}

.provider-usage-tabs button:hover {
    color: #c4cdc5;
}

.provider-usage-tabs button:focus-visible {
    outline: 2px solid #9ad45c;
    outline-offset: 3px;
}

.provider-usage-tabs button.active {
    border-bottom-color: #9ad45c;
    color: #dce7d5;
}

.provider-model-activity {
    margin-top: 1.2rem;
}

.provider-model-activity h3 {
    margin: 0 0 0.65rem;
    color: #cbd3cc;
    font-size: 0.85rem;
}

.provider-model-list {
    display: grid;
    gap: 0;
    margin: 0;
    border-top: 1px solid #303832;
}

.provider-model-list > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #252d27;
    padding: 0.65rem 0;
}

.provider-model-list dt {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #cbd3cc;
}

.provider-model-list dd {
    margin: 0;
    color: #89938b;
    white-space: nowrap;
}

.setting-summary {
    display: grid;
    gap: 0.35rem;
    align-content: start;
}

.setting-summary span {
    color: #7d887f;
    font-size: 0.72rem;
    font-weight: 750;
}

.setting-summary strong {
    color: #dce7d5;
}

.setting-summary small {
    color: #7f8981;
    line-height: 1.45;
}

.usage-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
    margin: 1.25rem 0 0.9rem;
}

.usage-card {
    display: grid;
    align-content: start;
    gap: 0.4rem;
    min-height: 8.2rem;
    border: 1px solid #303832;
    border-radius: 0.45rem;
    padding: 0.9rem;
    background: #101411;
}

.usage-card > span {
    color: #7d887f;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.usage-card strong {
    color: #e3e9e3;
    font-size: 1.15rem;
}

.usage-card small {
    align-self: end;
    color: #727d74;
    line-height: 1.45;
}

.usage-card progress {
    width: 100%;
    height: 0.35rem;
    border: 0;
    border-radius: 0;
    background: #252d27;
    accent-color: #9ad45c;
}

.usage-card progress::-webkit-progress-bar {
    background: #252d27;
}

.usage-card progress::-webkit-progress-value {
    background: #9ad45c;
}

.usage-cost-card {
    grid-column: span 3;
    min-height: 0;
}

.usage-note {
    border-left: 2px solid #59675b;
    padding-left: 0.8rem;
    color: #89938b;
    font-size: 0.78rem;
}

.model-heading {
    margin-top: 2rem;
}

.job-actions {
    display: flex;
    gap: 0.6rem;
}

.job-actions:empty {
    display: none;
}

.compact-empty {
    border-top: 1px solid var(--log-divider);
}

.history-list article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid #2c332e;
    padding: 1rem 0;
}

.source-add-panel {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 2rem;
}

.source-add-form {
    display: grid;
    align-content: center;
    gap: 0.7rem;
}

.inline-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.7rem;
}

.source-list {
    display: grid;
}

.source-list article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.5rem;
    border-top: 1px solid #2a312c;
    padding: 1rem 0;
}

.source-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    min-width: 0;
    gap: 0.9rem;
}

.source-copy {
    min-width: 0;
}

.source-copy h3 {
    overflow-wrap: anywhere;
}

.source-actions {
    flex-wrap: nowrap;
    justify-content: flex-end;
}

.source-main h3,
.source-main p {
    margin: 0 0 0.25rem;
}

.source-main small {
    display: block;
    max-width: 650px;
    overflow: hidden;
    color: #747e76;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.source-art {
    display: grid;
    width: 3rem;
    height: 3rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 0.75rem;
    background: #273223;
    color: #bcec86;
    font-weight: 900;
}

.history-list p {
    margin: 0.3rem 0;
}

.history-list small,
.muted-copy {
    color: #7f8981 !important;
}

.inline-success {
    border: 1px solid rgba(161, 225, 90, 0.4);
    border-radius: 0.8rem;
    padding: 0.9rem 1rem;
    background: rgba(161, 225, 90, 0.08);
    color: #c9f49a;
}

.action-notification {
    position: fixed;
    top: max(1rem, env(safe-area-inset-top));
    left: 50%;
    z-index: 1100;
    display: grid;
    grid-template-columns: 0.25rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.85rem;
    width: min(42rem, calc(100vw - 2rem));
    border: 1px solid #465047;
    border-radius: 0.65rem;
    padding: 0.8rem 0.85rem 0.8rem 0.65rem;
    box-shadow: 0 1rem 2.75rem rgba(0, 0, 0, 0.48);
    background: #121714;
    color: #eef3ec;
    transform: translateX(-50%);
    animation: action-notification-enter 140ms ease-out;
}

.action-notification-mark {
    align-self: stretch;
    border-radius: 999px; /* unslop-ignore: narrow status rail, not a repeated pill control */
    background: #a1e15a;
}

.action-notification-error {
    border-color: #874141;
    background: #211313;
}

.action-notification-error .action-notification-mark {
    background: #ef7777;
}

.action-notification-copy {
    min-width: 0;
}

.action-notification-copy strong {
    display: block;
    margin-bottom: 0.2rem;
    color: #a1e15a;
    font-size: 0.7rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.action-notification-error .action-notification-copy strong {
    color: #ff9b9b;
}

.action-notification-copy p {
    margin: 0;
    color: #e4e9e2;
    font-size: 0.88rem;
    line-height: 1.45;
}

.action-notification-dismiss {
    border: 0;
    padding: 0.4rem;
    background: transparent;
    color: #aeb7b0;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
}

.action-notification-dismiss:hover,
.action-notification-dismiss:focus-visible {
    color: #f2f5ef;
}

@keyframes action-notification-enter {
    from {
        opacity: 0;
        transform: translate(-50%, -0.5rem);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.profile-sync-status {
    margin: 0;
    border-top: 1px solid rgba(161, 225, 90, 0.18);
    padding: 0.75rem 1rem 0;
    color: #bdec87;
    font-size: 0.82rem;
}

.radar-shell:focus {
    outline: none;
}

.view-switcher {
    display: inline-flex;
    align-items: center;
    border: 1px solid #394139;
    border-radius: 0.45rem;
    padding: 0.22rem;
    background: #0b100c;
}

.view-switcher a {
    border-radius: 0.25rem;
    padding: 0.55rem 0.9rem;
    color: #9aa59c;
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
}

.view-switcher a.active {
    background: #273223;
    color: #c8f497;
}

.radar-card {
    display: grid;
    grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
    min-height: 480px;
    padding: 0;
    overflow: hidden;
}

.radar-art {
    position: relative;
    display: grid;
    width: 100%;
    aspect-ratio: 1;
    align-self: center;
    place-items: center;
    overflow: hidden;
    background-color: #222b24;
}

.radar-art img,
.radar-list-art img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.radar-art .score-badge {
    position: absolute;
    display: grid;
    width: 6rem;
    height: 6rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(7, 11, 8, 0.82);
    color: #c5f28f;
    font-size: 2.2rem;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

.art-placeholder {
    color: #61705f;
    font-family: Bahnschrift, "Arial Narrow", sans-serif;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.radar-content {
    display: grid;
    align-content: center;
    gap: 1rem;
    padding: clamp(1.5rem, 4vw, 3.5rem);
}

.radar-content h2 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 3.3rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.radar-meta,
.topic-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.radar-meta span,
.topic-row span {
    border: 1px solid #394139;
    border-radius: 0.35rem;
    padding: 0.3rem 0.55rem;
    color: #aab3ac;
    font-size: 0.72rem;
}

.radar-summary {
    color: #e3e9e3 !important;
    font-size: 1.05rem;
}

.episode-preview {
    display: grid;
    grid-template-columns: minmax(10rem, 0.7fr) minmax(14rem, 1.3fr);
    align-items: center;
    gap: 1rem;
    border: 1px solid #394139;
    border-radius: 1rem;
    padding: 0.9rem 1rem;
    background: rgba(7, 11, 8, 0.56);
}

.episode-preview div {
    display: grid;
    gap: 0.25rem;
}

.episode-preview small,
.directory-coverage {
    color: #8f9a91;
}

.episode-preview-player {
    width: 100%;
    height: 2.6rem;
    color-scheme: dark;
}

.why-box {
    border-left: 2px solid #a1e15a;
    padding-left: 1rem;
}

.why-box p {
    margin: 0.35rem 0 0;
}

.episode-link {
    color: #bdec87;
}

.radar-list {
    display: grid;
    gap: 1.15rem;
}

.radar-list-card {
    display: grid;
    grid-template-columns: 13.5rem minmax(0, 1fr);
    padding: 0;
    overflow: hidden;
}

.radar-list-media {
    padding: 1.25rem 0 1.25rem 1.25rem;
}

.radar-list-art {
    position: relative;
    display: grid;
    width: 100%;
    aspect-ratio: 1;
    align-self: start;
    place-items: center;
    border: 1px solid #344035;
    border-radius: 0.55rem;
    overflow: hidden;
    background-color: #222b24;
}

.radar-list-art .score-badge {
    position: absolute;
    top: 1rem;
    display: grid;
    width: 3.8rem;
    height: 3.8rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(7, 11, 8, 0.86);
    color: #c5f28f;
    font-size: 1.25rem;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

.radar-list-content {
    display: grid;
    gap: 0.9rem;
    padding: clamp(1.2rem, 3vw, 2rem);
}

.radar-list-content h2,
.speaker-section h3 {
    margin: 0;
}

.published-date {
    margin: 0.25rem 0 0;
    color: #7f8981 !important;
    font-size: 0.8rem;
}

.list-insight {
    display: grid;
    gap: 0.3rem;
}

.list-insight span {
    color: #a9de70;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.list-insight p {
    margin: 0;
    color: #e3e9e3;
}

.why-list-box {
    border-left: 2px solid #a1e15a;
    padding-left: 0.9rem;
}

.compact-player {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
    border: 1px solid #394139;
    border-radius: 0.9rem;
    padding: 0.65rem 0.8rem;
    background: rgba(7, 11, 8, 0.56);
}

.compact-player audio {
    width: 100%;
    height: 2.35rem;
    color-scheme: dark;
}

.play-mark {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border: 1px solid #a1e15a;
    border-radius: 50%;
    background: #a1e15a;
    color: #10150f;
    cursor: pointer;
    padding: 0;
}

.play-mark:hover {
    background: #b3eb76;
}

.play-mark:focus-visible {
    outline: 2px solid #f2f5ef;
    outline-offset: 3px;
}

.play-mark[aria-pressed="true"] {
    background: #d8f6b7;
}

.play-mark svg {
    width: 0.85rem;
    height: 0.85rem;
    fill: currentColor;
}

.speaker-section {
    display: grid;
    gap: 0.65rem;
    border-top: 1px solid #303830;
    padding-top: 0.9rem;
}

.speaker-section h3 {
    color: #c6cec7;
    font-size: 0.9rem;
}

.speaker-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 0.6rem;
}

.speaker-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.7rem;
    border: 1px solid #303830;
    border-radius: 0.8rem;
    padding: 0.75rem;
    background: #0d120e;
}

.speaker-card div {
    display: grid;
    gap: 0.12rem;
}

.speaker-card small {
    color: #9bcf67;
}

.speaker-card p {
    margin: 0.3rem 0 0;
    color: #aab3ac;
    font-size: 0.82rem;
}

.speaker-avatar {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border-radius: 50%;
    background: #273223;
    color: #c8f497;
    font-size: 0.75rem;
    font-weight: 900;
}

.feedback-panel {
    display: grid;
    gap: 1rem;
}

.feedback-actions {
    justify-content: center;
}

.feedback-negative,
.feedback-positive {
    border-radius: 0.8rem;
    padding: 0.85rem 1.2rem;
    cursor: pointer;
    font-weight: 850;
}

.feedback-negative {
    border: 1px solid #814848;
    background: #2b1717;
    color: #f2b2b2;
}

.feedback-positive {
    border: 1px solid #91d150;
    background: #a1e15a;
    color: #10200b;
}

.reason-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.8rem;
}

.reason-chip {
    border: 1px solid #353d36;
    border-radius: 0.35rem;
    padding: 0.35rem 0.6rem;
    background: #111613;
    color: #a6afa8;
    cursor: pointer;
    font-size: 0.75rem;
}

.reason-chip.selected {
    border-color: #81ba48;
    background: rgba(161, 225, 90, 0.12);
    color: #c9f49a;
}

.destructive-row {
    justify-content: flex-end;
}

.keyboard-help {
    color: #747d76;
    text-align: center;
}

.status-card {
    display: flex;
    min-height: 210px;
    flex-direction: column;
    padding: 1.4rem;
}

.status-card > p:not(.card-label),
.next-step p:not(.card-label) {
    color: #8f9991;
    line-height: 1.55;
}

.status-card .status-line {
    margin-top: auto;
}

.status-ready {
    border-color: rgba(161, 225, 90, 0.35);
    background: rgba(161, 225, 90, 0.08);
    color: #b7ef78;
}

.next-step {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.75rem;
}

.next-step p:last-child {
    margin-bottom: 0;
}

.next-step button {
    flex: 0 0 auto;
    border: 1px solid #343b36;
    border-radius: 0.8rem;
    padding: 0.8rem 1rem;
    background: #a1e15a;
    color: #10200b;
    cursor: pointer;
    font-weight: 800;
}

.next-step button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.next-step a {
    color: #b7ef78;
}

.device-code {
    display: inline-block;
    margin-left: 0.25rem;
    border: 1px solid #4d5b50;
    border-radius: 0.4rem;
    padding: 0.12rem 0.38rem;
    color: #f4f7f4;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: 0.08em;
}

.inline-error {
    border: 1px solid #8c3434;
    border-radius: 0.8rem;
    padding: 0.9rem 1rem;
    background: #351717;
    color: #ffb5b5;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #ff7777;
}

#blazor-error-ui {
    display: none;
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    z-index: 1000;
    border: 1px solid #8c3434;
    border-radius: 0.8rem;
    padding: 1rem;
    background: #351717;
    color: #fff;
}

#blazor-error-ui .dismiss {
    float: right;
    cursor: pointer;
}

.profile-overview {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
}

.friendly-profile-editor {
    display: grid;
    gap: 1.4rem;
}

.profile-metrics {
    display: grid;
    gap: 0.8rem;
    border-top: 1px solid #303830;
    padding-top: 1.3rem;
}

.metric-editor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.metric-editor-grid label {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.3rem 0.7rem;
    border: 1px solid #303830;
    border-radius: 0.85rem;
    padding: 0.8rem;
    background: #0d120e;
}

.metric-editor-grid label > span {
    grid-column: 1 / -1;
    color: #7f8981;
    font-size: 0.74rem;
    font-weight: 500;
}

.metric-editor-grid input[type="range"] {
    min-width: 0;
}

.metric-editor-grid output {
    color: #bdec87;
    font-size: 0.78rem;
}

.preference-list {
    display: grid;
    gap: 0.75rem;
}

.preference-row {
    display: grid;
    grid-template-columns: minmax(12rem, 1.4fr) minmax(12rem, 1fr) auto;
    align-items: end;
    gap: 1rem;
    border: 1px solid var(--border);
    border-radius: 0.9rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.015);
}

.preference-row label {
    margin: 0;
}

.preference-row label:nth-child(2) {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 0.75rem;
}

.preference-row label:nth-child(2) input {
    grid-row: 2;
}

.preference-row output {
    grid-row: 2;
    min-width: 3rem;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

.profile-text-fields textarea {
    min-height: 6rem;
}

.profile-details,
.source-details {
    border: 1px solid var(--border);
    border-radius: 0.8rem;
    padding: 0.85rem 1rem;
}

.profile-details > summary,
.source-details > summary {
    color: var(--text);
    cursor: pointer;
    font-weight: 750;
}

.profile-details[open] > summary {
    margin-bottom: 1.25rem;
}

.compact-heading {
    margin-bottom: 0.75rem;
}

.source-details {
    margin-top: 0.7rem;
    max-width: 42rem;
    padding: 0.55rem 0.75rem;
}

.source-details p {
    margin: 0.55rem 0 0.25rem;
}

.source-details code {
    display: block;
    overflow-wrap: anywhere;
    color: var(--muted);
    white-space: normal;
}

@media (max-width: 760px) {
    .dashboard-shell {
        margin: 2rem auto;
    }

    .hero,
    .next-step,
    .page-header {
        align-items: stretch;
        flex-direction: column;
    }

    .status-grid {
        grid-template-columns: 1fr;
    }

    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .discovery-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 1rem;
    }

    .dashboard-view-switch {
        align-self: flex-start;
    }

    .dashboard-radar-day-heading {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .dashboard-radar-list > li {
        grid-template-columns: 2.8rem minmax(0, 1fr);
        padding: 1rem;
    }

    .dashboard-pick-state {
        grid-column: 2;
        width: fit-content;
    }

    .discovery-timeline li {
        grid-template-columns: 6.2rem minmax(0, 1fr);
        gap: 0.9rem;
        padding-right: 1rem;
    }

    .discovery-origin {
        grid-column: 2;
        max-width: none;
        margin-top: -0.25rem;
        text-align: left;
    }

    .dashboard-panel-footer {
        align-items: flex-start;
        flex-direction: column;
        padding: 0.8rem 1rem;
    }

    .discovery-time {
        grid-row: 1 / span 2;
    }

    .step-grid,
    .two-column,
    .form-grid,
    .source-add-panel {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .interview-conversation {
        height: min(76vh, 680px);
        min-height: 520px;
    }

    .chat-log {
        padding: 1.25rem 0.85rem 2rem;
    }

    .chat-message {
        width: 100%;
    }

    .chat-message.user {
        padding-left: 2.75rem;
    }

    .chat-message.user .chat-message-content {
        max-width: 100%;
    }

    .interview-composer {
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }

    .composer-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.2rem;
    }

    .source-list article {
        align-items: flex-start;
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }

    .source-actions {
        justify-content: flex-start;
    }

    .resolved-note {
        grid-template-columns: 1fr;
        gap: 0.3rem;
    }

    .attention-item header {
        flex-direction: column;
        gap: 0.35rem;
    }

    .attention-guidance {
        grid-template-columns: 1fr;
    }

    .attention-guidance div,
    .attention-guidance div:first-child {
        padding: 0.75rem 0;
        border-top: 1px solid #352c2b;
        border-left: 0;
    }

    .attention-guidance div:first-child {
        border-top: 0;
    }

    .job-log-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .live-job-events li {
        grid-template-columns: 4.5rem minmax(0, 1fr) auto;
    }

    .live-job-events li > span:not(.status-line) {
        grid-column: 1 / -1;
        white-space: normal;
    }

    .job-log-entry summary {
        grid-template-columns: 1fr auto;
        gap: 0.35rem 0.75rem;
        padding-top: 0.85rem;
        padding-bottom: 0.85rem;
    }

    .job-log-name,
    .job-log-message {
        grid-column: 1 / -1;
    }

    .job-log-message {
        white-space: normal;
    }

    .job-log-badges {
        grid-column: 2;
        grid-row: 1;
        align-items: end;
        grid-template-columns: auto;
        justify-items: end;
    }

    .job-log-badges .credit-badge,
    .job-log-badges .status-line {
        width: auto;
    }

    .usage-grid {
        grid-template-columns: 1fr 1fr;
    }

    .usage-cost-card {
        grid-column: span 2;
    }

    .job-facts {
        grid-template-columns: 1fr 1fr;
    }

    .profile-overview {
        flex-direction: column;
    }

    .preference-row {
        grid-template-columns: 1fr;
    }

    .radar-card {
        grid-template-columns: 1fr;
    }

    .episode-preview {
        grid-template-columns: 1fr;
    }

    .radar-list-card,
    .metric-editor-grid {
        grid-template-columns: 1fr;
    }

    .radar-list-art {
        width: min(15rem, 100%);
        min-height: 0;
        margin: 0 auto;
    }

    .radar-list-media {
        padding: 1rem 1rem 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .chat-log {
        scroll-behavior: auto;
    }

    .thinking-dots i,
    .action-notification {
        animation: none;
    }
}
.radar-header-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.radar-sort-control {
    display: flex;
    align-items: center;
    gap: .55rem;
    white-space: nowrap;
}

.radar-sort-control span {
    color: #89928b;
    font-size: .7rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.radar-sort-control select {
    width: auto;
    min-width: 13.5rem;
    padding: .62rem 2.25rem .62rem .75rem;
    border-radius: .45rem;
    background-color: #0b100c;
}

@media (max-width: 720px) {
    .radar-header-actions {
        justify-content: flex-start;
    }

    .radar-sort-control,
    .radar-sort-control select {
        width: 100%;
    }
}
.transcript-open-button {
    margin-left: .9rem;
}

.transcript-dialog {
    width: min(860px, calc(100vw - 2rem));
    height: min(82dvh, 900px);
    max-height: calc(100dvh - 2rem);
    padding: 0;
    overflow: hidden;
    color: #f2f5ef;
    background: #111612;
    border: 1px solid #303931;
    border-radius: 14px;
    box-shadow: 0 24px 80px rgb(0 0 0 / 55%);
}

.transcript-dialog[open] {
    display: flex;
    flex-direction: column;
}

.transcript-dialog::backdrop {
    background: rgb(0 0 0 / 72%);
}

.transcript-dialog header {
    display: flex;
    flex: 0 0 auto;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.35rem 1rem;
    border-bottom: 1px solid #303931;
}

.transcript-dialog h2 {
    margin: .2rem 0 0;
    font-size: 1.25rem;
}

.dialog-close {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 1px solid #303931;
    border-radius: 50%;
    color: #f2f5ef;
    background: transparent;
    font-size: 1.45rem;
    line-height: 1;
}

.transcript-meta,
.transcript-note {
    margin: 0 0 1rem;
    color: #9aa59c;
}

.transcript-dialog-body {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
    padding: 1rem 1.35rem 1.35rem;
    overflow: hidden;
}

.transcript-reader {
    flex: 1 1 auto;
    min-height: 0;
    padding: 1rem;
    overflow: auto;
    white-space: pre-wrap;
    line-height: 1.65;
    background: #0c110e;
    border: 1px solid #303931;
    border-radius: 8px;
}

@media (max-width: 720px) {
    .transcript-dialog {
        width: calc(100vw - 1rem);
        height: calc(100dvh - 1rem);
        max-height: calc(100dvh - 1rem);
    }
}
