/* ─── NARRATIVE ARC VIEW ──────────────────────────── */
.narc-layout {
    display: flex;
    gap: 2rem;
    padding: 2rem 1.5rem 3rem;
}
.narc-view {
    flex: 1 1 0;
    min-width: 0;
}
.narc-vis-panel {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 64px;
    align-self: flex-start;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
@media (max-width: 1000px) {
    .narc-layout { flex-direction: column; }
    .narc-vis-panel { width: 100%; max-width: none; position: static; max-height: none; }
}

/* ─── Arc dual perspective columns (stacked: initiator first, receiver second) ────────── */
.narc-dual-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
.narc-perspective-col {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-left: 0.75rem;
}
.narc-perspective-header {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 0.5rem;
}
.narc-perspective-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.narc-initiator-col .narc-perspective-label { color: var(--primary); }
.narc-receiver-col .narc-perspective-label { color: var(--rose); }
.narc-perspective-name {
    font-size: 0.78rem;
    color: var(--slate);
    font-weight: 500;
}
.narc-perspective-col .narc-textarea {
    margin-bottom: 0.25rem;
}

/* ─── Arc panel dual-arc tabs ─────────────── */
.narc-vis-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 0.75rem;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-light);
}
.narc-vis-tab {
    flex: 1;
    padding: 0.3rem 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--bg-surface);
    border: none;
    cursor: pointer;
    color: var(--slate);
    transition: all 0.15s ease;
}
.narc-vis-tab:not(:last-child) { border-right: 1px solid var(--border-light); }
.narc-vis-tab.active {
    background: var(--primary-tint-xs);
    color: var(--primary);
}
.narc-vis-tab.active-receiver {
    background: color-mix(in srgb, var(--rose) 10%, transparent);
    color: var(--rose);
}
.narc-vis-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}
.narc-vis-card:last-child {
    flex: 1;
    margin-bottom: 0;
}
.narc-vis-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--slate);
    margin-bottom: 0.85rem;
}
.narc-vis-svg { width: 100%; height: auto; }
.narc-vis-path-bg {
    fill: none;
    stroke: var(--border-light);
    stroke-width: 3;
    stroke-linecap: round;
}
.narc-vis-path-fill {
    fill: none;
    stroke: var(--primary);
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s ease;
}
.narc-vis-dot {
    fill: var(--bg-surface);
    stroke: var(--border-light);
    stroke-width: 2;
    transition: all 0.3s ease;
}
.narc-vis-dot.filled {
    fill: var(--primary);
    stroke: var(--primary);
    filter: drop-shadow(0 0 4px var(--shadow-primary));
}
.narc-vis-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 600;
    fill: var(--slate);
    text-anchor: middle;
}
.narc-vis-label.filled { fill: var(--primary); }
/* Synopsis card */
.narc-synopsis-empty {
    text-align: center;
    padding: 2rem 1.25rem;
    color: var(--slate);
    font-size: 0.82rem;
    line-height: 1.6;
    font-style: italic;
}
.narc-synopsis-step {
    margin-bottom: 0.75rem;
    padding-left: 0.85rem;
    animation: intakeSlideUp 0.35s ease-out;
}
.narc-synopsis-step-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--slate);
    margin-bottom: 0.15rem;
}
.narc-synopsis-step.filled .narc-synopsis-step-label { color: var(--primary); }
.narc-synopsis-step-text {
    font-size: 0.82rem;
    color: var(--charcoal);
    line-height: 1.5;
}
.narc-synopsis-step-empty {
    font-size: 0.72rem;
    color: var(--slate);
    opacity: 0.5;
    font-style: italic;
}
.narc-vis-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--slate);
}
.narc-vis-progress-bar {
    flex: 1;
    max-width: 180px;
    height: 4px;
    background: var(--border-light);
    border-radius: 2px;
    overflow: hidden;
}
.narc-vis-progress-fill {
    height: 100%;
    background: linear-gradient(to right, var(--narc-context), var(--narc-pattern), var(--narc-change), var(--narc-resolution), var(--narc-difference));
    border-radius: 2px;
    transition: width 0.4s ease;
}
.narc-view-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 0.25rem;
}
.narc-view-subtitle {
    font-size: 0.78rem;
    color: var(--slate);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}
.narc-question {
    margin-bottom: 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.narc-step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    flex-shrink: 0;
    padding-top: 0.15rem;
}
.narc-step-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    background: var(--bg-surface);
    border: 2px solid var(--border-light);
    color: var(--slate);
    transition: all 0.3s ease;
    flex-shrink: 0;
}
/* Per-step unfilled icon border tints */
[data-narc-step="0"] .narc-step-icon { border-color: var(--narc-context); color: var(--narc-context); }
[data-narc-step="1"] .narc-step-icon { border-color: var(--narc-pattern); color: var(--narc-pattern); }
[data-narc-step="2"] .narc-step-icon { border-color: var(--narc-change); color: var(--narc-change); }
[data-narc-step="3"] .narc-step-icon { border-color: var(--narc-resolution); color: var(--narc-resolution); }
[data-narc-step="4"] .narc-step-icon { border-color: var(--narc-difference); color: var(--narc-difference); }
/* Per-step filled icon backgrounds */
[data-narc-step="0"] .narc-step-icon.filled { background: var(--narc-context); border-color: var(--narc-context); color: var(--on-brand); }
[data-narc-step="1"] .narc-step-icon.filled { background: var(--narc-pattern); border-color: var(--narc-pattern); color: var(--on-brand); }
[data-narc-step="2"] .narc-step-icon.filled { background: var(--narc-change); border-color: var(--narc-change); color: var(--on-brand); }
[data-narc-step="3"] .narc-step-icon.filled { background: var(--narc-resolution); border-color: var(--narc-resolution); color: var(--on-brand); }
[data-narc-step="4"] .narc-step-icon.filled { background: var(--narc-difference); border-color: var(--narc-difference); color: var(--on-brand); }
.narc-step-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.58rem;
    font-weight: 600;
    color: var(--slate);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.25rem;
    text-align: center;
}
/* Per-step label colors */
[data-narc-step="0"] .narc-step-label { color: var(--narc-context); }
[data-narc-step="1"] .narc-step-label { color: var(--narc-pattern); }
[data-narc-step="2"] .narc-step-label { color: var(--narc-change); }
[data-narc-step="3"] .narc-step-label { color: var(--narc-resolution); }
[data-narc-step="4"] .narc-step-label { color: var(--narc-difference); }
.narc-step-connector {
    width: 2px;
    height: 100%;
    min-height: 2rem;
    flex: 1;
    background: var(--border-light);
    margin-top: 0.35rem;
    transition: background 0.3s ease;
}
.narc-step-connector.filled {
    background: var(--border-light);
}
/* Per-step filled connector gradients */
[data-narc-step="0"] .narc-step-connector.filled { background: linear-gradient(to bottom, var(--narc-context), var(--narc-pattern)); }
[data-narc-step="1"] .narc-step-connector.filled { background: linear-gradient(to bottom, var(--narc-pattern), var(--narc-change)); }
[data-narc-step="2"] .narc-step-connector.filled { background: linear-gradient(to bottom, var(--narc-change), var(--narc-resolution)); }
[data-narc-step="3"] .narc-step-connector.filled { background: linear-gradient(to bottom, var(--narc-resolution), var(--narc-difference)); }
.narc-question-body {
    flex: 1;
    min-width: 0;
}
/* Per-step filled question label colors */
[data-narc-step="0"].narc-question-filled .narc-question-label { color: var(--narc-context); }
[data-narc-step="1"].narc-question-filled .narc-question-label { color: var(--narc-pattern); }
[data-narc-step="2"].narc-question-filled .narc-question-label { color: var(--narc-change); }
[data-narc-step="3"].narc-question-filled .narc-question-label { color: var(--narc-resolution); }
[data-narc-step="4"].narc-question-filled .narc-question-label { color: var(--narc-difference); }
.narc-question-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 0.15rem;
    transition: color 0.2s ease;
}
.narc-question-note {
    font-size: 0.68rem;
    color: var(--slate);
    margin-bottom: 0.4rem;
    line-height: 1.4;
}
.narc-textarea {
    width: 100%;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.82rem;
    color: var(--charcoal);
    background: var(--bg-surface);
    resize: vertical;
    min-height: 2.5rem;
    line-height: 1.5;
    transition: border-color 0.15s;
}
.narc-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--shadow-primary);
}
/* Per-step textarea focus colors */
[data-narc-step="0"] .narc-textarea:focus { border-color: var(--narc-context); box-shadow: 0 0 0 3px color-mix(in srgb, var(--narc-context) 15%, transparent); }
[data-narc-step="1"] .narc-textarea:focus { border-color: var(--narc-pattern); box-shadow: 0 0 0 3px color-mix(in srgb, var(--narc-pattern) 15%, transparent); }
[data-narc-step="2"] .narc-textarea:focus { border-color: var(--narc-change); box-shadow: 0 0 0 3px color-mix(in srgb, var(--narc-change) 15%, transparent); }
[data-narc-step="3"] .narc-textarea:focus { border-color: var(--narc-resolution); box-shadow: 0 0 0 3px color-mix(in srgb, var(--narc-resolution) 15%, transparent); }
[data-narc-step="4"] .narc-textarea:focus { border-color: var(--narc-difference); box-shadow: 0 0 0 3px color-mix(in srgb, var(--narc-difference) 15%, transparent); }


/* ─── NAC VIEW ──────────────────────────────────── */
.nac-view {
    display: flex;
    flex-direction: row;
    gap: 1.25rem;
    padding: 1.5rem;
    height: 100%;
    overflow: hidden;
}
.nac-left-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    overflow-y: auto;
}
.nac-right-col {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
}
@media (max-width: 900px) {
    .nac-view { flex-direction: column; overflow-y: auto; }
    .nac-right-col { width: 100%; overflow-y: visible; }
    .nac-left-col { overflow-y: visible; }
}
.nac-narc-ref {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 1rem;
    flex-shrink: 0;
}
.nac-answers-ref {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 1rem;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}
.nac-answers-ref-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 0.75rem;
}
.nac-answers-ref-lens {
    margin-bottom: 0.75rem;
}
.nac-answers-ref-lens-title {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 0.3rem;
}
.nac-answers-ref-entry {
    font-size: 0.75rem;
    color: var(--charcoal);
    line-height: 1.4;
    padding: 0.2rem 0 0.2rem 0.6rem;
    border-left: 2px solid var(--border-light);
    margin-bottom: 0.25rem;
}
.nac-answers-ref-perspective {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.05rem 0.35rem;
    border-radius: 3px;
    margin-right: 0.3rem;
    vertical-align: baseline;
}
.nac-answers-ref-perspective--initiator {
    color: var(--primary);
    background: var(--primary-tint-xs);
}
.nac-answers-ref-perspective--receiver {
    color: var(--rose);
    background: color-mix(in srgb, var(--rose) 10%, transparent);
}
.nac-narc-ref-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 0.75rem;
}
.nac-narc-ref-item {
    margin-bottom: 0.6rem;
}
.nac-narc-ref-label {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    font-family: 'Montserrat', sans-serif;
}
.nac-narc-ref-value {
    font-size: 0.78rem;
    color: var(--charcoal);
    line-height: 1.4;
}

.nac-main {
    flex: 1;
    min-width: 0;
}
.nac-lens-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
    transition: all 0.25s ease;
}
@media (max-width: 700px) {
    .nac-lens-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 500px) {
    .nac-lens-grid { grid-template-columns: repeat(2, 1fr); }
}
.nac-lens-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 1rem 0.6rem;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    background: var(--bg-surface);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}
.nac-lens-btn:hover {
    border-color: color-mix(in srgb, var(--lens-color) 60%, transparent);
    background: color-mix(in srgb, var(--lens-color) 6%, var(--bg-surface));
}
.nac-lens-btn.current {
    border-color: var(--lens-color);
    background: color-mix(in srgb, var(--lens-color) 10%, var(--bg-surface));
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--lens-color) 20%, transparent);
}
.nac-lens-btn.has-entries {
    border-color: var(--lens-color);
    background: color-mix(in srgb, var(--lens-color) 8%, var(--bg-surface));
}
.nac-lens-btn.has-entries.current {
    border-color: var(--lens-color);
    background: color-mix(in srgb, var(--lens-color) 14%, var(--bg-surface));
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--lens-color) 20%, transparent);
}
.nac-lens-btn.suggested {
    border-color: var(--lens-color);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--lens-color) 25%, transparent);
    animation: nac-pulse 2s ease-in-out infinite;
}
@keyframes nac-pulse {
    0%, 100% { box-shadow: 0 0 0 2px color-mix(in srgb, var(--lens-color) 25%, transparent); }
    50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--lens-color) 15%, transparent); }
}
.nac-lens-suggested {
    font-size: 0.55rem;
    font-weight: 600;
    color: var(--lens-color);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.nac-lens-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}
.nac-lens-icon .i {
    width: 36px;
    height: 36px;
    stroke-width: 1.2;
    transition: all 0.2s ease;
}
.nac-lens-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--charcoal);
    line-height: 1.2;
    transition: all 0.2s ease;
}
.nac-lens-count {
    font-size: 0.5rem;
    font-weight: 700;
    color: var(--lens-color);
    background: color-mix(in srgb, var(--lens-color) 12%, white);
    border-radius: 10px;
    padding: 0.1rem 0.35rem;
    transition: all 0.2s ease;
}
.nac-lens-desc {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--slate);
    line-height: 1.4;
    margin-top: 0.15rem;
}

/* Collapsed lens grid: compact icon row with labels, shrink-to-fit */
.nac-lens-grid.collapsed {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.25rem;
}
.nac-lens-grid.collapsed .nac-lens-btn {
    flex: 1 1 0;
    min-width: 0;
    flex-direction: column;
    padding: 0.4rem 0.2rem 0.25rem;
    border-radius: 8px;
    gap: 0.15rem;
    border-width: 1.5px;
}
.nac-lens-grid.collapsed .nac-lens-icon {
    flex-shrink: 0;
}
.nac-lens-grid.collapsed .nac-lens-icon .i {
    width: 36px;
    height: 36px;
    stroke-width: 1.2;
}
.nac-lens-grid.collapsed .nac-lens-label {
    font-size: 0.55rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.nac-lens-grid.collapsed .nac-lens-count {
    display: none;
}
.nac-lens-grid.collapsed .nac-lens-desc {
    display: none;
}

.nac-status-screen {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}
.nac-status-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--charcoal);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.nac-status-title .i {
    width: 18px;
    height: 18px;
}
.nac-status-subtitle {
    font-size: 0.72rem;
    color: var(--slate);
    margin-bottom: 0.5rem;
}
.nac-status-desc {
    font-size: 0.78rem;
    color: var(--charcoal);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}
.nac-status-question {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.4;
    padding: 0.75rem;
    background: var(--primary-tint-xs);
    border-radius: 8px;
}

.nac-entry-input-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.nac-entry-input-row textarea { flex: 1; }
.nac-entry-add-btn {
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: var(--on-brand);
    border: none;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
    align-self: flex-start;
}
.nac-entry-add-btn:hover { background: var(--primary-mid); }

.nac-entry-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.nac-entry-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 6px;
}
.nac-entry-item-text {
    flex: 1;
    font-size: 0.8rem;
    color: var(--charcoal);
    line-height: 1.4;
}
.nac-entry-delete-btn {
    background: none;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    cursor: pointer;
    padding: 0.15rem 0.3rem;
    color: var(--slate);
    font-size: 0.65rem;
    transition: color 0.15s, border-color 0.15s;
}
.nac-entry-delete-btn:hover {
    color: var(--color-danger);
    border-color: var(--color-danger);
}

.nac-go-curation {
    margin-top: 1.5rem;
    padding: 0.65rem 1.5rem;
    background: var(--primary);
    color: var(--on-brand);
    border: none;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.nac-go-curation:hover { background: var(--primary-mid); }
.nac-go-curation:disabled { opacity: 0.4; cursor: not-allowed; }

/* ─── NAC DUAL-PERSPECTIVE COLUMNS (stacked: initiator first, receiver second) ────────────────── */
.nac-dual-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 1rem;
}
.nac-perspective-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-left: 0.75rem;
}
.nac-perspective-header {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
}
.nac-perspective-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.nac-initiator-col .nac-perspective-label { color: var(--primary); }
.nac-receiver-col .nac-perspective-label { color: var(--rose); }
.nac-perspective-name {
    font-size: 0.78rem;
    color: var(--slate);
    font-weight: 500;
}

/* ─── NARRATIVE TOOL KIT VIEW ──────────────────── */
.toolkit-view {
    display: flex;
    flex-direction: row;
    gap: 0;
    padding: 1rem;
    height: 100%;
    overflow: hidden;
}
.toolkit-sidebar-col {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow-y: auto;
}
.toolkit-canvas-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: row;
    gap: 0;
    overflow: hidden;
    /* Legacy — no longer used as wrapper */
}
.toolkit-right-col {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow-y: auto;
    margin-left: 1rem;
}
@media (max-width: 1100px) {
    .toolkit-view { flex-direction: column; overflow-y: auto; }
    .toolkit-right-col { width: 100%; overflow-y: visible; }
    .toolkit-nav-group { flex-direction: column; height: auto; }
    .toolkit-types-col { width: 100%; flex-direction: row; flex-wrap: wrap; border-radius: 12px 12px 0 0; border-left: 1px solid var(--border-light); }
    .toolkit-models-col { width: 100% !important; flex-direction: row; flex-wrap: wrap; border-left: 1px solid var(--border-light); border-radius: 0; padding: 0.5rem 0.25rem !important; }
    .toolkit-viz-area { border-left: 1px solid var(--border-light); border-radius: 0 0 12px 12px; }
}

/* Types column (left nav within canvas) */
.toolkit-types-col {
    width: 72px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0.25rem 0.25rem;
    overflow-y: auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 12px 0 0 12px;
    justify-content: space-evenly;
}
.toolkit-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.45rem 0.2rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    flex: 1 1 0;
    justify-content: center;
}
.toolkit-type-btn:hover {
    background: color-mix(in srgb, var(--cat-color, var(--primary)) 8%, transparent);
}
.toolkit-type-btn.active {
    background: color-mix(in srgb, var(--cat-color, var(--primary)) 12%, var(--bg-surface));
}
.toolkit-type-btn.active::after {
    content: '';
    position: absolute;
    right: -1px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--cat-color, var(--primary));
    border-radius: 0;
}
.toolkit-type-btn .i {
    width: 24px;
    height: 24px;
    stroke-width: 1.5;
    transition: width 0.2s ease, height 0.2s ease;
}
.toolkit-type-btn:hover .i {
    width: 32px;
    height: 32px;
}
.toolkit-type-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.5rem;
    font-weight: 600;
    color: var(--slate);
    line-height: 1.1;
    text-align: center;
    max-width: 64px;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: font-size 0.2s ease, max-width 0.2s ease;
}
.toolkit-type-btn:hover .toolkit-type-label {
    font-size: 0.7rem;
    max-width: 100px;
}
.toolkit-type-btn.active .toolkit-type-label {
    color: var(--cat-color, var(--primary));
}
.toolkit-type-count {
    font-size: 0.42rem;
    font-weight: 700;
    color: var(--on-brand);
    background: var(--cat-color, var(--primary));
    border-radius: 6px;
    padding: 0 0.2rem;
    min-width: 12px;
    text-align: center;
}

/* Nav group: types + models columns together for hover interaction */
.toolkit-nav-group {
    display: flex;
    flex-direction: row;
    flex-shrink: 0;
    height: 100%;
}

/* Models column (second nav within canvas) */
.toolkit-models-col {
    width: 150px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0.5rem 0.25rem;
    overflow: hidden;
    overflow-y: auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-left: none;
    border-radius: 0 12px 12px 0;
    white-space: nowrap;
}
.toolkit-models-col-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--slate);
    padding: 0.2rem 0.4rem;
    margin-bottom: 0.15rem;
}
.toolkit-model-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.4rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    transition: all 0.15s;
    text-align: left;
    width: 100%;
}
.toolkit-model-btn:hover {
    background: color-mix(in srgb, var(--model-color, var(--primary)) 8%, transparent);
}
.toolkit-model-btn.current {
    background: color-mix(in srgb, var(--model-color, var(--primary)) 12%, var(--bg-surface));
    border-radius: 0;
    box-shadow: inset 3px 0 0 var(--model-color, var(--primary));
}
.toolkit-model-btn.has-entries .toolkit-model-label {
    color: var(--model-color, var(--primary));
}
.toolkit-model-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    background: currentColor;
}
.toolkit-model-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--charcoal);
    line-height: 1.2;
    flex: 1;
    min-width: 0;
}
.toolkit-model-count {
    font-size: 0.48rem;
    font-weight: 700;
    color: var(--model-color, var(--primary));
    background: color-mix(in srgb, var(--model-color, var(--primary)) 12%, white);
    border-radius: 10px;
    padding: 0.05rem 0.25rem;
    flex-shrink: 0;
}

/* Visualization area (main content right of models col) */
.toolkit-viz-area {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-left: none;
    border-radius: 0 12px 12px 0;
    overflow: hidden;
}
.toolkit-viz-header {
    padding: 1rem 1.25rem 0.5rem;
    border-bottom: 1px solid var(--border-light);
}
.toolkit-viz-header-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--charcoal);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.toolkit-viz-header-title .i { width: 18px; height: 18px; }
.toolkit-viz-header-desc {
    font-size: 0.72rem;
    color: var(--slate);
    line-height: 1.4;
    margin-top: 0.25rem;
}
.toolkit-viz-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.25rem;
}
.toolkit-canvas-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--slate);
    gap: 0.75rem;
    padding: 2rem;
    text-align: center;
}
.toolkit-canvas-empty .i { width: 48px; height: 48px; stroke-width: 1; opacity: 0.4; }
.toolkit-canvas-empty-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--charcoal);
}
.toolkit-canvas-empty-desc {
    font-size: 0.78rem;
    line-height: 1.5;
    max-width: 380px;
}

/* Input area within visualization */
.toolkit-detail-section {
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}
.toolkit-detail-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.toolkit-detail-title .i { width: 16px; height: 16px; }
.toolkit-detail-desc {
    font-size: 0.75rem;
    color: var(--slate);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}
.toolkit-detail-question {
    font-size: 0.8rem;
    color: var(--charcoal);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.6rem;
}
.toolkit-input-row {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}
.toolkit-input-row textarea {
    flex: 1;
    font-size: 0.8rem;
    padding: 0.5rem 0.65rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    resize: vertical;
    min-height: 2.5rem;
    line-height: 1.4;
    background: var(--bg-surface);
    color: var(--charcoal);
}
.toolkit-input-row textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-tint-xs);
}
.toolkit-add-btn {
    padding: 0.45rem 0.85rem;
    background: var(--primary);
    color: var(--on-brand);
    border: none;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.toolkit-add-btn:hover { background: var(--primary-mid); }

/* Pattern: Grid 2x2 */
.toolkit-grid2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
@media (max-width: 700px) { .toolkit-grid2x2 { grid-template-columns: 1fr; } }
.toolkit-grid2x2-cell {
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 0.75rem;
    background: var(--bg);
    min-height: 80px;
}
.toolkit-grid2x2-cell-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.4rem;
    padding-bottom: 0.3rem;
    border-bottom: 2px solid var(--border-light);
}
.toolkit-grid2x2-input {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 0.4rem;
}
.toolkit-grid2x2-input input {
    flex: 1;
    font-size: 0.72rem;
    padding: 0.3rem 0.5rem;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    background: var(--bg-surface);
    color: var(--charcoal);
    font-family: 'Inter', sans-serif;
}
.toolkit-grid2x2-input input:focus { outline: none; border-color: var(--primary); }
.toolkit-grid2x2-input button {
    font-size: 0.6rem;
    padding: 0.25rem 0.5rem;
    border: none;
    border-radius: 4px;
    background: var(--primary);
    color: var(--on-brand);
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

/* Pattern: Chain */
.toolkit-chain {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.toolkit-chain-link {
    position: relative;
    padding-left: 2rem;
    padding-bottom: 0.75rem;
}
.toolkit-chain-link::before {
    content: '';
    position: absolute;
    left: 0.6rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-light);
}
.toolkit-chain-link:last-child::before { display: none; }
.toolkit-chain-link-marker {
    position: absolute;
    left: 0;
    top: 0.1rem;
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 50%;
    background: var(--model-color, var(--primary));
    color: var(--on-brand);
    font-size: 0.55rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    z-index: 1;
}
.toolkit-chain-link-marker.empty { background: var(--border-light); color: var(--slate); }

/* Pattern: Structured Fields */
.toolkit-structured-fields {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.toolkit-structured-field {
    padding-left: 0.75rem;
}
.toolkit-structured-field-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--model-color, var(--primary));
    margin-bottom: 0.25rem;
}
.toolkit-structured-field textarea {
    width: 100%;
    font-size: 0.78rem;
    padding: 0.5rem 0.65rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    resize: vertical;
    min-height: 2.2rem;
    line-height: 1.4;
    background: var(--bg-surface);
    color: var(--charcoal);
    box-sizing: border-box;
}
.toolkit-structured-field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-tint-xs); }

/* Canvas visualization items */
.toolkit-vis-node {
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    position: relative;
    transition: border-color 0.15s;
}
.toolkit-vis-node:hover { border-color: var(--primary-light); }
.toolkit-vis-node-header {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.3rem;
}
.toolkit-vis-node-text {
    font-size: 0.8rem;
    color: var(--charcoal);
    line-height: 1.4;
}
.toolkit-vis-node-actions {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.5rem;
}
.toolkit-vis-node-action {
    font-size: 0.65rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--border-light);
    background: var(--bg-surface);
    cursor: pointer;
    color: var(--slate);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.toolkit-vis-node-action:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.toolkit-vis-node-action .i { width: 12px; height: 12px; }
.toolkit-vis-node-action.danger:hover {
    border-color: var(--color-danger);
    color: var(--color-danger);
}

/* Five Whys specific - drill-down tree */
.toolkit-whys-chain {
    padding: 1.25rem;
}
.toolkit-why-level {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}
.toolkit-why-level::before {
    content: '';
    position: absolute;
    left: 0.45rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-light);
}
.toolkit-why-level:last-child::before { display: none; }
.toolkit-why-level-marker {
    position: absolute;
    left: 0;
    top: 0.15rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--primary);
    color: var(--on-brand);
    font-size: 0.55rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    z-index: 1;
}
.toolkit-why-level-marker.empty {
    background: var(--border-light);
    color: var(--slate);
}

/* Assumptions specific - two columns */
.toolkit-assumptions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1.25rem;
}
@media (max-width: 700px) {
    .toolkit-assumptions-grid { grid-template-columns: 1fr; }
}
.toolkit-assumptions-col-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--border-light);
}
.toolkit-assumption-status {
    display: inline-block;
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    margin-left: 0.3rem;
}
.toolkit-assumption-status.unverified { background: #FDF3E0; color: #9A6C08; }
.toolkit-assumption-status.confirmed { background: #D0E0E5; color: #0D5C6B; }
.toolkit-assumption-status.challenged { background: #FDE8E8; color: #9B1C1C; }
body.dark-mode .toolkit-assumption-status.unverified { background: #451A03; color: #FCD34D; }
body.dark-mode .toolkit-assumption-status.confirmed { background: #1E3A5F; color: #93C5FD; }
body.dark-mode .toolkit-assumption-status.challenged { background: #450A0A; color: #FCA5A5; }

/* Stakeholder map specific - concentric circles */
.toolkit-stakeholder-map {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.toolkit-stakeholder-ring {
    border: 2px dashed var(--border-light);
    border-radius: 50%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    padding: 1rem;
    position: relative;
}
.toolkit-stakeholder-ring.core { width: 200px; min-height: 200px; border-color: var(--primary); }
.toolkit-stakeholder-ring.influence { width: 320px; min-height: 160px; border-color: var(--primary-light); border-radius: 12px; }
.toolkit-stakeholder-ring.peripheral { width: 100%; min-height: 100px; border-color: var(--border-light); border-radius: 12px; }
.toolkit-stakeholder-ring-label {
    position: absolute;
    top: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-surface);
    padding: 0 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--slate);
}
.toolkit-stakeholder-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    font-size: 0.72rem;
    color: var(--charcoal);
    font-weight: 500;
}

/* Gap analysis specific - side by side */
.toolkit-gap-columns {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    padding: 1.25rem;
    align-items: start;
}
@media (max-width: 700px) {
    .toolkit-gap-columns { grid-template-columns: 1fr; }
    .toolkit-gap-bridge { transform: rotate(90deg); }
}
.toolkit-gap-col-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
    padding-bottom: 0.4rem;
}
.toolkit-gap-bridge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.5rem;
    color: var(--slate);
}
.toolkit-gap-bridge .i { width: 24px; height: 24px; opacity: 0.5; }
.toolkit-gap-bridge-label {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Montserrat', sans-serif;
}

/* Reframing specific - central hub with radiating items */
.toolkit-reframe-hub {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.toolkit-reframe-original {
    background: var(--primary-tint-xs);
    border: 2px solid var(--primary);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    max-width: 400px;
    text-align: center;
}
.toolkit-reframe-original-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    margin-bottom: 0.3rem;
}
.toolkit-reframe-original-text {
    font-size: 0.85rem;
    color: var(--charcoal);
    line-height: 1.4;
}
.toolkit-reframe-alts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
}

/* Values compass specific */
.toolkit-values-compass {
    padding: 1.25rem;
}
.toolkit-values-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
@media (max-width: 700px) {
    .toolkit-values-columns { grid-template-columns: 1fr; }
}
.toolkit-values-col {
    padding-left: 0.75rem;
}
.toolkit-values-col-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}
.toolkit-values-col.initiator .toolkit-values-col-title { color: var(--primary); }
.toolkit-values-col.receiver .toolkit-values-col-title { color: var(--rose); }

/* Fishbone specific */
.toolkit-fishbone {
    padding: 1.25rem;
}
.toolkit-fishbone-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}
@media (max-width: 700px) {
    .toolkit-fishbone-categories { grid-template-columns: repeat(2, 1fr); }
}
.toolkit-fishbone-cat {
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 0.75rem;
}
.toolkit-fishbone-cat-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.toolkit-fishbone-cat-title .i { width: 14px; height: 14px; }
.toolkit-fishbone-cause {
    font-size: 0.75rem;
    color: var(--charcoal);
    padding: 0.25rem 0 0.25rem 0.5rem;
    border-left: 2px solid var(--border-light);
    margin-bottom: 0.2rem;
    line-height: 1.3;
}

/* Ladder of Inference specific */
.toolkit-ladder {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.toolkit-ladder-rung {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-light);
}
.toolkit-ladder-rung:last-child { border-bottom: none; }
.toolkit-ladder-rung-number {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--primary-tint-xs);
    color: var(--primary);
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    flex-shrink: 0;
}
.toolkit-ladder-rung-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--slate);
    margin-bottom: 0.15rem;
}
.toolkit-ladder-rung-text {
    font-size: 0.78rem;
    color: var(--charcoal);
    line-height: 1.4;
}
.toolkit-ladder-rung.empty .toolkit-ladder-rung-number {
    background: var(--border-light);
    color: var(--slate);
}
.toolkit-ladder-rung.empty .toolkit-ladder-rung-label {
    color: var(--border-light);
}

/* Right panel reference sections */
.toolkit-ref-section {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 1rem;
}
.toolkit-ref-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 0.75rem;
}
.toolkit-continue-btn {
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.65rem 1.5rem;
    background: var(--primary);
    color: var(--on-brand);
    border: none;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.toolkit-continue-btn:hover { background: var(--primary-mid); }

/* ─── CURATION VIEW ─────────────────────────────── */
.curation-view {
    padding: 1.5rem;
    overflow-y: auto;
}
.curation-view-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 0.25rem;
}
.curation-view-subtitle {
    font-size: 0.78rem;
    color: var(--slate);
    margin-bottom: 1.5rem;
}
.curation-columns {
    display: flex;
    gap: 1.5rem;
}
@media (max-width: 800px) {
    .curation-columns { flex-direction: column; }
}
.curation-column {
    flex: 1;
    min-width: 0;
}
.curation-column-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 0.75rem;
}
.curation-group-label {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    font-family: 'Montserrat', sans-serif;
    margin-top: 0.75rem;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.curation-group-label .i {
    width: 14px;
    height: 14px;
}
.curation-card {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin-bottom: 0.4rem;
}
.curation-card-text {
    flex: 1;
    font-size: 0.8rem;
    color: var(--charcoal);
    line-height: 1.4;
}
.curation-card-source {
    font-size: 0.58rem;
    color: var(--slate);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.2rem;
}
.curation-send-btn {
    padding: 0.3rem 0.65rem;
    background: var(--primary);
    color: var(--on-brand);
    border: none;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.62rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
    flex-shrink: 0;
}
.curation-send-btn:hover { background: var(--primary-mid); }
.curation-send-btn.sent {
    background: var(--pillar-color);
    cursor: default;
}
.curation-nav-btns {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}
.curation-nav-btn {
    padding: 0.55rem 1.25rem;
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    background: var(--bg-surface);
    color: var(--charcoal);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.curation-nav-btn:hover { border-color: var(--primary); color: var(--primary); }
.curation-nav-btn.primary {
    background: var(--primary);
    color: var(--on-brand);
    border-color: var(--primary);
}
.curation-nav-btn.primary:hover { background: var(--primary-mid); }

/* ─── SOURCE METADATA ───────────────────────────── */
.node-source-meta {
    margin-top: 1rem;
    padding: 0.6rem 0.75rem;
    background: var(--primary-tint-xs);
    border: 1px solid var(--primary-light);
    border-radius: 6px;
}
.node-source-meta-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    margin-bottom: 0.2rem;
}
.node-source-meta-value {
    font-size: 0.75rem;
    color: var(--charcoal);
}
.node-source-warning {
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #FDF3E0;
    border: 1px solid #F59E0B;
    border-radius: 6px;
    font-size: 0.72rem;
    color: #9A6C08;
    line-height: 1.4;
}
body.dark-mode .node-source-warning {
    background: #422006;
    border-color: #B45309;
    color: #FDE68A;
}
.node-source-warning button {
    margin-top: 0.35rem;
    padding: 0.25rem 0.5rem;
    background: none;
    border: 1px solid #F59E0B;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    color: #9A6C08;
    cursor: pointer;
}
body.dark-mode .node-source-warning button { color: #FDE68A; border-color: #B45309; }

/* ── CLARITY SORT GAME ─────────────────────────────────────── */
.clarity-sort-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--canvas-bg, #F0F2F5);
    background-image: radial-gradient(circle, var(--canvas-dot, #D5DAE0) 0.8px, transparent 0.8px);
    background-size: 20px 20px;
    user-select: none;
}
body.dark-mode .clarity-sort-container {
    background-color: #1e2030;
    background-image: radial-gradient(circle, rgba(91, 184, 200, 0.06) 0.8px, transparent 0.8px);
}

/* Progress bar at top */
.cs-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--border-lighter);
    border-radius: 0 0 3px 3px;
    z-index: 10;
}
.cs-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-mid));
    transition: width 0.4s ease;
    border-radius: 0 3px 3px 0;
}

/* Round header */
.cs-round-header {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
    pointer-events: none;
}
.cs-round-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
    margin-bottom: 4px;
}
.cs-round-question {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--slate);
    max-width: 400px;
}
body.dark-mode .cs-round-label { color: #5bb8c8; }
body.dark-mode .cs-round-question { color: #c8cce0; }

/* Counter (e.g. "8 of 23") */
.cs-counter {
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--slate);
    z-index: 10;
}
body.dark-mode .cs-counter { color: #c8cce0; }

/* Streak badge */
.cs-streak {
    position: absolute;
    top: 20px;
    left: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--gamboge);
    background: rgba(154, 108, 8, 0.12);
    padding: 3px 12px;
    border-radius: 100px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}
.cs-streak.visible { opacity: 1; }
body.dark-mode .cs-streak { background: rgba(200, 160, 40, 0.15); }

/* Landing zones (edges) */
.cs-zone {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    border-radius: 16px;
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease, border-color 0.25s ease;
    z-index: 5;
    pointer-events: none;
}
.cs-zone-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.92rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.cs-zone-hint {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.78rem;
    opacity: 0.85;
}
.cs-zone.active {
    transform: scale(1.06);
}
.cs-zone.active .cs-zone-hint { opacity: 1; }

/* Zone — Up (Should Say / Key Idea) */
.cs-zone-up {
    top: 56px;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    height: 90px;
    background: transparent;
    border: 3px dashed rgba(43, 122, 138, 0.5);
}
.cs-zone-up .cs-zone-label { color: #3da5b8; }
.cs-zone-up .cs-zone-hint { color: #3da5b8; }
.cs-zone-up.active { background: rgba(43, 122, 138, 0.15); border-color: #5bb8c8; border-style: solid; box-shadow: 0 0 40px rgba(43, 122, 138, 0.35), inset 0 0 20px rgba(43, 122, 138, 0.1); }
body.dark-mode .cs-zone-up { border-color: rgba(91, 184, 200, 0.45); }
body.dark-mode .cs-zone-up .cs-zone-label,
body.dark-mode .cs-zone-up .cs-zone-hint { color: #6ec8d8; }
body.dark-mode .cs-zone-up.active { background: rgba(91, 184, 200, 0.12); border-color: #6ec8d8; box-shadow: 0 0 50px rgba(91, 184, 200, 0.3), inset 0 0 24px rgba(91, 184, 200, 0.08); }

/* Zone — Down (Could Say / Evidence) */
.cs-zone-down {
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    height: 90px;
    background: transparent;
    border: 3px dashed rgba(95, 75, 139, 0.45);
}
.cs-zone-down .cs-zone-label { color: #7b66b8; }
.cs-zone-down .cs-zone-hint { color: #7b66b8; }
.cs-zone-down.active { background: rgba(95, 75, 139, 0.12); border-color: #9580d0; border-style: solid; box-shadow: 0 0 40px rgba(95, 75, 139, 0.3), inset 0 0 20px rgba(95, 75, 139, 0.08); }
body.dark-mode .cs-zone-down { border-color: rgba(176, 160, 216, 0.4); }
body.dark-mode .cs-zone-down .cs-zone-label,
body.dark-mode .cs-zone-down .cs-zone-hint { color: #c0b0e8; }
body.dark-mode .cs-zone-down.active { background: rgba(176, 160, 216, 0.1); border-color: #c0b0e8; box-shadow: 0 0 50px rgba(176, 160, 216, 0.25), inset 0 0 24px rgba(176, 160, 216, 0.06); }

/* Zone — Right (Must Say / Story) */
.cs-zone-right {
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 140px;
    height: 220px;
    background: transparent;
    border: 3px dashed rgba(154, 108, 8, 0.45);
}
.cs-zone-right .cs-zone-label { color: #c8960a; }
.cs-zone-right .cs-zone-hint { color: #c8960a; }
.cs-zone-right.active { background: rgba(154, 108, 8, 0.12); border-color: #d4a830; border-style: solid; box-shadow: 0 0 40px rgba(154, 108, 8, 0.3), inset 0 0 20px rgba(154, 108, 8, 0.08); }
body.dark-mode .cs-zone-right { border-color: rgba(212, 168, 48, 0.4); }
body.dark-mode .cs-zone-right .cs-zone-label,
body.dark-mode .cs-zone-right .cs-zone-hint { color: #e8c040; }
body.dark-mode .cs-zone-right.active { background: rgba(212, 168, 48, 0.1); border-color: #e8c040; box-shadow: 0 0 50px rgba(212, 168, 48, 0.25), inset 0 0 24px rgba(212, 168, 48, 0.06); }

/* Zone — Left (Won't Need / Context) */
.cs-zone-left {
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 140px;
    height: 220px;
    background: transparent;
    border: 3px dashed rgba(168, 81, 110, 0.4);
}
.cs-zone-left .cs-zone-label { color: #c06080; }
.cs-zone-left .cs-zone-hint { color: #c06080; }
.cs-zone-left.active { background: rgba(168, 81, 110, 0.1); border-color: #d4909a; border-style: solid; box-shadow: 0 0 40px rgba(168, 81, 110, 0.25), inset 0 0 20px rgba(168, 81, 110, 0.06); }
body.dark-mode .cs-zone-left { border-color: rgba(212, 144, 154, 0.38); }
body.dark-mode .cs-zone-left .cs-zone-label,
body.dark-mode .cs-zone-left .cs-zone-hint { color: #e0a0aa; }
body.dark-mode .cs-zone-left.active { background: rgba(212, 144, 154, 0.08); border-color: #e0a0aa; box-shadow: 0 0 50px rgba(212, 144, 154, 0.2), inset 0 0 24px rgba(212, 144, 154, 0.05); }

/* The draggable card */
.cs-card {
    position: relative;
    width: 360px;
    max-width: 80%;
    background: #ffffff;
    border: 2px solid rgba(43, 122, 138, 0.25);
    border-radius: 14px;
    padding: 28px 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06), 0 0 0 1px rgba(43, 122, 138, 0.08);
    cursor: grab;
    z-index: 20;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
    touch-action: none;
}
.cs-card:hover { box-shadow: 0 10px 40px rgba(0,0,0,0.15), 0 4px 12px rgba(0,0,0,0.08), 0 0 0 2px rgba(43, 122, 138, 0.15); }
.cs-card:active { cursor: grabbing; transform: scale(1.02); box-shadow: 0 14px 48px rgba(0,0,0,0.18), 0 0 0 2px rgba(43, 122, 138, 0.25); }
.cs-card.cs-card-exit {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
    pointer-events: none;
}
.cs-card.cs-card-enter {
    animation: csCardEnter 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes csCardEnter {
    from { opacity: 0; transform: translateY(30px) scale(0.88); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
body.dark-mode .cs-card {
    background: #323650;
    border-color: rgba(91, 184, 200, 0.3);
    box-shadow: 0 8px 32px rgba(0,0,0,0.35), 0 2px 8px rgba(0,0,0,0.2), 0 0 0 1px rgba(91, 184, 200, 0.12), 0 0 24px rgba(91, 184, 200, 0.06);
}
body.dark-mode .cs-card:hover {
    box-shadow: 0 10px 40px rgba(0,0,0,0.4), 0 0 0 2px rgba(91, 184, 200, 0.2), 0 0 32px rgba(91, 184, 200, 0.1);
}
body.dark-mode .cs-card:active {
    box-shadow: 0 14px 48px rgba(0,0,0,0.45), 0 0 0 2px rgba(91, 184, 200, 0.3), 0 0 40px rgba(91, 184, 200, 0.12);
}

.cs-card-source {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 100px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
}
.cs-card-source.source-arc     { background: var(--primary-lightest); color: var(--primary); }
.cs-card-source.source-nac     { background: var(--rose-light); color: var(--rose); }
.cs-card-source.source-toolkit { background: var(--ultraviolet-light); color: var(--ultraviolet); }
.cs-card-source.source-manual  { background: var(--neutral-light); color: var(--neutral); }

.cs-card-text {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #1a1a2e;
    font-weight: 500;
    margin-bottom: 10px;
    word-break: break-word;
}
body.dark-mode .cs-card-text { color: #eef0f8; }

.cs-card-context {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.75rem;
    color: var(--slate);
    line-height: 1.4;
    font-style: italic;
}
body.dark-mode .cs-card-context { color: #8a8fb0; }

/* Conviction stars shown on card in Round 2 */
.cs-card-stars {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 0.72rem;
    color: var(--gamboge);
}

/* Undo button */
.cs-undo-btn {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--slate);
    cursor: pointer;
    z-index: 10;
    transition: background 0.15s;
    opacity: 0;
    pointer-events: none;
}
.cs-undo-btn.visible { opacity: 1; pointer-events: auto; }
.cs-undo-btn:hover { background: var(--cream); }
body.dark-mode .cs-undo-btn { background: #2a2d3e; border-color: #3a3d50; color: var(--charcoal); }

/* Keyboard hint */
.cs-keyboard-hint {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.7rem;
    color: var(--slate);
    z-index: 10;
}
body.dark-mode .cs-keyboard-hint { color: #7a7f98; }

/* ── Interstitial (between rounds) ── */
.cs-interstitial {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
    animation: csCardEnter 0.4s ease forwards;
}
.cs-interstitial-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}
.cs-interstitial-stats {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.88rem;
    color: var(--slate);
    margin-bottom: 28px;
    line-height: 1.7;
}
.cs-interstitial-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 14px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.82rem;
    margin: 3px 4px;
}
.cs-interstitial-stat.must { background: var(--gamboge-light); color: var(--gamboge); }
.cs-interstitial-stat.should { background: var(--primary-lightest); color: var(--primary); }
.cs-interstitial-stat.could { background: var(--ultraviolet-light); color: var(--ultraviolet); }
.cs-interstitial-stat.wont { background: var(--rose-light); color: var(--rose); }
body.dark-mode .cs-interstitial-title { color: var(--primary-light); }
body.dark-mode .cs-interstitial-stats { color: #d8dce8; }
body.dark-mode .cs-interstitial-stats strong { color: #ffffff; }
body.dark-mode .cs-interstitial-stat.must { background: rgba(154, 108, 8, 0.2); color: #e8c040; }
body.dark-mode .cs-interstitial-stat.should { background: rgba(43, 122, 138, 0.2); color: #6ec8d8; }
body.dark-mode .cs-interstitial-stat.could { background: rgba(95, 75, 139, 0.2); color: #c0b0e8; }
body.dark-mode .cs-interstitial-stat.wont { background: rgba(168, 81, 110, 0.2); color: #e0a0aa; }

.cs-continue-btn {
    padding: 10px 28px;
    background: var(--primary);
    color: var(--on-brand);
    border: none;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.cs-continue-btn:hover { background: var(--primary-mid); }

/* ── Results screen ── */
.cs-results-container {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 24px;
}
.cs-results-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--charcoal);
    text-align: center;
    margin-bottom: 6px;
}
.cs-results-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.82rem;
    color: var(--slate);
    text-align: center;
    margin-bottom: 24px;
}
body.dark-mode .cs-results-title { color: var(--charcoal); }
body.dark-mode .cs-results-subtitle { color: #b0b4c8; }

.cs-results-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
@media (max-width: 700px) {
    .cs-results-columns { grid-template-columns: repeat(2, 1fr); }
}
.cs-results-column {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.cs-results-col-header {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding-bottom: 8px;
    border-bottom: 2.5px solid var(--border-lighter);
    margin-bottom: 6px;
}
.cs-results-col-header.type-idea    { color: var(--primary); border-color: var(--primary); }
.cs-results-col-header.type-story   { color: var(--green); border-color: var(--green); }
.cs-results-col-header.type-data    { color: var(--ultraviolet); border-color: var(--ultraviolet); }
.cs-results-col-header.type-context { color: var(--rose); border-color: var(--rose); }

.cs-result-card {
    padding: 10px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border-lighter);
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.78rem;
    color: var(--charcoal);
    line-height: 1.5;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.cs-result-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 2px 8px var(--shadow-sm);
}
body.dark-mode .cs-result-card { background: #2a2d3e; border-color: #3a3d50; color: var(--charcoal); }
.cs-result-stars {
    font-size: 0.6rem;
    color: var(--gamboge);
    margin-bottom: 3px;
}
.cs-result-text {
    word-break: break-word;
}
.cs-result-promote {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 8px;
    border: 1px solid var(--primary-light);
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.58rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    background: none;
    transition: background 0.15s;
}
.cs-result-promote:hover { background: var(--primary-lightest); }
body.dark-mode .cs-result-promote { border-color: rgba(106, 170, 184, 0.3); }
body.dark-mode .cs-result-promote:hover { background: rgba(106, 170, 184, 0.12); }
body.dark-mode .cs-result-card:hover { border-color: rgba(106, 170, 184, 0.3); }

/* Results actions */
.cs-results-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}
.cs-results-done-btn {
    padding: 10px 28px;
    background: var(--primary);
    color: var(--on-brand);
    border: none;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}
.cs-results-done-btn:hover { background: var(--primary-mid); }
.cs-results-skip-btn {
    padding: 10px 20px;
    background: none;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--slate);
    cursor: pointer;
}
.cs-results-skip-btn:hover { background: var(--cream); }
body.dark-mode .cs-results-skip-btn { color: #b0b4c8; border-color: #3a3d50; }
body.dark-mode .cs-results-skip-btn:hover { background: rgba(200, 204, 224, 0.08); color: #d8dce8; }

/* ── Sort sidebar buckets ── */
.cs-sidebar-section {
    margin-bottom: 6px;
}
.cs-sidebar-bucket-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
}
.cs-sidebar-bucket-count {
    margin-left: auto;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 100px;
    background: var(--neutral-light);
    color: var(--slate);
}
.cs-sidebar-bucket-items {
    padding: 0 12px 6px 24px;
}
.cs-sidebar-item {
    padding: 5px 10px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.75rem;
    color: var(--charcoal);
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background 0.12s;
}
.cs-sidebar-item:hover { background: var(--primary-lightest); }
body.dark-mode .cs-sidebar-item { color: var(--charcoal); }
body.dark-mode .cs-sidebar-item:hover { background: rgba(43, 122, 138, 0.15); }
body.dark-mode .cs-sidebar-bucket-count { background: rgba(200, 204, 224, 0.12); color: #b0b4c8; }
body.dark-mode .cs-sidebar-exit-btn { color: #b0b4c8; border-color: #3a3d50; }
body.dark-mode .cs-sidebar-exit-btn:hover { background: rgba(200, 204, 224, 0.08); }

.cs-sidebar-exit-btn {
    display: block;
    width: calc(100% - 24px);
    margin: 10px 12px;
    padding: 8px 0;
    background: none;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--slate);
    cursor: pointer;
    text-align: center;
}
.cs-sidebar-exit-btn:hover { background: var(--cream); }



/* ══════════════════════════════════════════════════════════════
   PHONE-SPECIFIC TOOL VIEW TWEAKS (≤600px)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
    /* ── Arc view: tighter spacing ─────────────────────────── */
    .narc-layout { padding: 0.75rem 0.5rem 4rem; gap: 1rem; }
    .narc-step-row { gap: 0.5rem; }
    .narc-step-number { width: 28px; height: 28px; font-size: 0.7rem; }
    .narc-textarea { font-size: 0.9rem; min-height: 60px; }
    .narc-perspective-name { font-size: 0.7rem; }

    /* ── NAC view: tighter lens grid ───────────────────────── */
    .nac-lens-grid { gap: 0.4rem; }
    .nac-lens-btn { padding: 0.4rem 0.5rem; font-size: 0.7rem; }
    .nac-layout { padding: 0.75rem 0.5rem 4rem; }
    .nac-input-area textarea { font-size: 0.9rem; }

    /* ── Toolkit: hide nav when model selected on phone ─── */
    .toolkit-view.toolkit-model-active .toolkit-nav-group {
        display: none;
    }
    .toolkit-view.toolkit-model-active .toolkit-viz-area {
        border-radius: 12px;
        border-left: 1px solid var(--border-light);
    }
    .toolkit-phone-back {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        padding: 0.6rem 1rem;
        background: none;
        border: none;
        border-bottom: 1px solid var(--border-light);
        font-family: 'Montserrat', sans-serif;
        font-size: 0.78rem;
        font-weight: 600;
        color: var(--primary);
        cursor: pointer;
        width: 100%;
    }

    /* ── Toolkit: compact nav on phone ─────────────────── */
    .toolkit-types-col {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0 !important;
        padding: 0.25rem !important;
    }
    .toolkit-type-btn { flex-shrink: 0; }
    .toolkit-type-label { font-size: 0.55rem; }
    .toolkit-models-col {
        gap: 1px !important;
        padding: 0.35rem 0.25rem !important;
    }
    .toolkit-model-btn { font-size: 0.72rem; padding: 0.35rem 0.5rem; }
    .toolkit-view { padding: 0.5rem; }

    /* ── Recommendations / Journey: pad bottom for tab bar ── */
    .journey-layout { padding-bottom: 4rem !important; }

    /* ── General: all tool views clear the bottom tab bar ──── */
    .pipeline-view,
    .narc-layout,
    .nac-layout,
    .toolkit-layout { padding-bottom: 4rem; }
}
