.wr2-writing-room {
    --wr2-ink: #172033;
    --wr2-muted: #526073;
    --wr2-line: #d9dee7;
    --wr2-panel: #ffffff;
    --wr2-primary-strong: #172033;
    --wr2-accent: #b45309;
    --wr2-accent-soft: #fff7ed;
    --wr2-danger: #9f1239;
    --wr2-danger-soft: #fff1f2;
    --wr2-focus: #2563eb;
    color: var(--wr2-ink);
    font-size: 15px;
    line-height: 1.6;
}

.wr2-writing-room * {
    box-sizing: border-box;
}

.wr2-hero,
.wr2-card,
.wr2-workbench {
    border: 1px solid var(--wr2-line);
    border-radius: 20px;
    background: var(--wr2-panel);
}

.wr2-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    padding: 24px;
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 52%, #f8fafc 100%);
    border-color: #f0d8ac;
}

.wr2-eyebrow {
    margin: 0;
    color: #8a4b08;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wr2-hero h2,
.wr2-section-heading h3,
.wr2-workbench-heading h3 {
    margin: 5px 0 0;
    color: var(--wr2-ink);
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.wr2-section-heading h3,
.wr2-workbench-heading h3 {
    font-size: 18px;
}

.wr2-hero p:not(.wr2-eyebrow),
.wr2-section-heading p:not(.wr2-eyebrow),
.wr2-workbench-heading p:not(.wr2-eyebrow),
.wr2-option-card p,
.wr2-object-card p {
    margin: 8px 0 0;
    color: var(--wr2-muted);
}

.wr2-hero-status,
.wr2-hero-actions,
.wr2-inline-actions,
.wr2-object-footer,
.wr2-action-row,
.wr2-learning-tiers {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.wr2-hero-status {
    align-self: start;
    justify-content: end;
}

.wr2-hero-actions {
    grid-column: 1 / -1;
}

.wr2-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.wr2-pill-lock {
    border-color: #f0b6c2;
    background: var(--wr2-danger-soft);
    color: var(--wr2-danger);
}

.wr2-pill-muted {
    border-color: #cad5e3;
    background: #f8fafc;
    color: #40516a;
}

.wr2-primary-button,
.wr2-secondary-button,
.wr2-action-button,
.wr2-link-button,
.wr2-chip-input button {
    min-height: 44px;
    border-radius: 10px;
    padding: 10px 14px;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.wr2-primary-button {
    border: 1px solid var(--wr2-primary-strong);
    background: var(--wr2-primary-strong);
    color: #ffffff;
}

.wr2-primary-button:hover {
    background: #334155;
}

.wr2-secondary-button {
    border: 1px solid #aeb9c8;
    background: #ffffff;
    color: #26364d;
}

.wr2-secondary-button:hover,
.wr2-link-button:hover {
    border-color: #64748b;
    background: #f8fafc;
}

.wr2-primary-button:disabled,
.wr2-secondary-button:disabled,
.wr2-action-button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.wr2-primary-button:focus-visible,
.wr2-secondary-button:focus-visible,
.wr2-action-button:focus-visible,
.wr2-link-button:focus-visible,
.wr2-chip-input button:focus-visible,
.wr2-stage-button:focus-visible,
.wr2-writing-room input:focus-visible,
.wr2-writing-room textarea:focus-visible,
.wr2-writing-room select:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--wr2-focus) 70%, transparent);
    outline-offset: 2px;
}

.wr2-boundary-note {
    margin: 12px 0;
    border-left: 3px solid var(--wr2-accent);
    border-radius: 4px;
    background: var(--wr2-accent-soft);
    padding: 10px 14px;
    color: #78350f;
    font-size: 13px;
    font-weight: 600;
}

.wr2-stage-rail {
    display: grid;
    grid-template-columns: repeat(14, minmax(140px, 1fr));
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 12px;
    scrollbar-color: #94a3b8 transparent;
}

.wr2-stage-button {
    display: flex;
    min-width: 140px;
    min-height: 76px;
    gap: 9px;
    border: 1px solid var(--wr2-line);
    border-radius: 12px;
    background: #ffffff;
    padding: 10px;
    color: #40516a;
    text-align: left;
    cursor: pointer;
}

.wr2-stage-button:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.wr2-stage-button.is-active {
    border-color: #b45309;
    background: #fffbeb;
    color: #78350f;
}

.wr2-stage-number {
    display: grid;
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    place-items: center;
    border-radius: 999px;
    background: #eef2f7;
    color: #40516a;
    font-size: 11px;
    font-weight: 800;
}

.wr2-stage-button.is-active .wr2-stage-number {
    background: #fed7aa;
    color: #7c2d12;
}

.wr2-stage-copy {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.wr2-stage-copy strong {
    color: inherit;
    font-size: 12px;
    line-height: 1.35;
}

.wr2-stage-copy small {
    color: #64748b;
    font-size: 11px;
    line-height: 1.3;
}

.wr2-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: 16px;
    align-items: start;
}

.wr2-primary-column {
    display: grid;
    gap: 16px;
}

.wr2-card,
.wr2-workbench {
    padding: 20px;
}

.wr2-section-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
}

.wr2-section-heading h4,
.wr2-option-card h4,
.wr2-object-card h4,
.wr2-proposal-panel h4 {
    margin: 0;
    color: var(--wr2-ink);
    font-size: 15px;
    line-height: 1.4;
}

.wr2-input-grid,
.wr2-intent-grid,
.wr2-option-grid,
.wr2-object-grid,
.wr2-lower-grid,
.wr2-mirror-grid,
.wr2-gate-summary {
    display: grid;
    gap: 12px;
}

.wr2-input-grid {
    grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
    margin-top: 16px;
}

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

.wr2-writing-room label {
    display: grid;
    gap: 6px;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
}

.wr2-writing-room input,
.wr2-writing-room textarea,
.wr2-writing-room select {
    width: 100%;
    min-height: 44px;
    border: 1px solid #b8c4d3;
    border-radius: 10px;
    background: #ffffff;
    padding: 10px 12px;
    color: var(--wr2-ink);
    font: inherit;
    font-size: 14px;
    font-weight: 500;
}

.wr2-writing-room textarea {
    resize: vertical;
    line-height: 1.55;
}

.wr2-inline-actions {
    margin-top: 12px;
}

.wr2-intent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
}

.wr2-intent-grid > div {
    border: 1px solid #dde5ee;
    border-radius: 14px;
    padding: 14px;
    background: #fbfcfe;
}

.wr2-intent-heading {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.wr2-intent-heading h4 {
    margin: 0;
    color: #334155;
    font-size: 13px;
}

.wr2-intent-heading span {
    color: #7c2d12;
    font-size: 11px;
    font-weight: 800;
}

.wr2-chip-input {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.wr2-chip-input input {
    min-width: 0;
}

.wr2-chip-input button {
    flex: 0 0 auto;
    border: 1px solid #94a3b8;
    background: #ffffff;
    color: #334155;
    padding-inline: 11px;
}

.wr2-reference-input {
    display: grid;
    grid-template-columns: minmax(140px, 0.45fr) minmax(0, 1fr) auto;
    gap: 8px;
    margin-top: 10px;
}

.wr2-reference-input button,
.wr2-reference-chip button {
    min-height: 44px;
    border: 1px solid #94a3b8;
    border-radius: 10px;
    background: #ffffff;
    padding: 8px 11px;
    color: #334155;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.wr2-reference-list {
    display: grid;
    gap: 7px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.wr2-reference-chip {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    border: 1px solid #d6dee8;
    border-radius: 10px;
    background: #ffffff;
    padding: 8px 10px;
    color: #334155;
    font-size: 12px;
}

.wr2-reference-chip select {
    min-width: 150px;
    max-width: 220px;
    font-size: 11px;
}

.wr2-option-actions .is-selected {
    box-shadow: inset 0 0 0 2px currentColor;
}

.wr2-reference-policy {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 6px 10px;
    margin-top: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f8fafc;
    padding: 10px 12px;
    color: #526073;
    font-size: 11px;
}

.wr2-reference-policy strong {
    color: var(--wr2-ink);
}

.wr2-chip-list {
    display: flex;
    min-height: 36px;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.wr2-chip,
.wr2-empty-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 11px;
    line-height: 1.3;
}

.wr2-chip {
    min-height: 44px;
    border: 1px solid #fed7aa;
    background: #fff7ed;
    color: #7c2d12;
}

.wr2-chip button {
    min-width: 44px;
    min-height: 36px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: inherit;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: underline;
}

.wr2-empty-item {
    color: #64748b;
}

.wr2-status-line {
    margin: 14px 0 0;
    border-top: 1px solid #e5eaf0;
    padding-top: 12px;
    color: #40516a;
    font-size: 12px;
    font-weight: 600;
}

.wr2-option-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 16px;
}

.wr2-option-card,
.wr2-object-card {
    display: grid;
    gap: 12px;
    border: 1px solid #dfe7ef;
    border-radius: 14px;
    padding: 14px;
    background: #fbfcfe;
}

.wr2-option-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.wr2-option-label {
    color: #334155;
    font-size: 12px;
    font-weight: 800;
}

.wr2-option-reference {
    border-top: 1px solid #e5eaf0;
    padding-top: 9px;
    color: #64748b;
    font-size: 11px;
    line-height: 1.45;
}

.wr2-option-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.wr2-option-actions span,
.wr2-learning-tiers span {
    border: 1px solid #d4dde8;
    border-radius: 999px;
    background: #ffffff;
    padding: 3px 7px;
    color: #526073;
    font-size: 10px;
    font-weight: 800;
}

.wr2-object-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 16px;
}

.wr2-object-card {
    min-height: 166px;
}

.wr2-object-footer {
    align-self: end;
    justify-content: space-between;
}

.wr2-link-button {
    min-height: 44px;
    border: 0;
    background: transparent;
    padding: 5px 0;
    color: #1d4ed8;
    text-decoration: underline;
}

.wr2-scope-note {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    margin-top: 14px;
    border-left: 3px solid #64748b;
    border-radius: 4px;
    background: #f8fafc;
    padding: 10px 12px;
    color: #526073;
    font-size: 12px;
}

.wr2-scope-note strong {
    color: #334155;
}

.wr2-workbench {
    position: sticky;
    top: 20px;
    display: grid;
    gap: 14px;
    border-color: #cbd5e1;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.wr2-action-row {
    gap: 6px;
}

.wr2-action-button {
    min-height: 44px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    padding: 7px 10px;
    color: #40516a;
}

.wr2-action-button.is-selected {
    border-color: #b45309;
    background: #fffbeb;
    color: #78350f;
}

.wr2-full-button {
    width: 100%;
}

.wr2-proposal-panel {
    display: grid;
    gap: 12px;
    border: 1px solid #fdba74;
    border-radius: 14px;
    background: #fffaf0;
    padding: 14px;
}

.wr2-proposal-panel dl {
    display: grid;
    gap: 8px;
    margin: 0;
}

.wr2-proposal-panel dl div {
    display: grid;
    gap: 3px;
}

.wr2-proposal-panel dt {
    color: #7c2d12;
    font-size: 11px;
    font-weight: 800;
}

.wr2-proposal-panel dd {
    margin: 0;
    color: #334155;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.wr2-proposal-panel ul {
    display: grid;
    gap: 4px;
    margin: 6px 0 0;
    padding-left: 18px;
    color: #526073;
    font-size: 12px;
}

.wr2-confirmation {
    display: grid;
    gap: 10px;
    border-top: 1px solid #e5eaf0;
    padding-top: 14px;
}

.wr2-check-label {
    display: flex !important;
    align-items: start;
    min-height: 44px;
    gap: 8px;
    font-weight: 600 !important;
}

.wr2-check-label input {
    width: 18px !important;
    height: 18px;
    flex: 0 0 auto;
    margin-top: 1px;
}

.wr2-lower-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 16px;
}

.wr2-check-list {
    display: grid;
    gap: 0;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    border: 1px solid #e1e7ee;
    border-radius: 14px;
    overflow: hidden;
}

.wr2-check-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid #e8edf3;
    padding: 10px 12px;
    color: #40516a;
    font-size: 12px;
}

.wr2-check-list li:first-child {
    border-top: 0;
}

.wr2-check-list strong {
    flex: 0 0 auto;
    color: #64748b;
    font-size: 11px;
}

.wr2-gate-summary,
.wr2-mirror-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 14px;
}

.wr2-gate-summary div,
.wr2-mirror-grid div {
    display: grid;
    gap: 4px;
    border: 1px solid #dce5ef;
    border-radius: 10px;
    background: #fbfcfe;
    padding: 10px;
}

.wr2-gate-summary span,
.wr2-mirror-grid span {
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
}

.wr2-gate-summary strong,
.wr2-mirror-grid strong {
    color: #334155;
    font-size: 12px;
    line-height: 1.35;
}

.wr2-negative-note {
    margin: 14px 0 0;
    border-left: 3px solid #be123c;
    border-radius: 4px;
    background: #fff1f2;
    padding: 10px 12px;
    color: #881337;
    font-size: 12px;
    font-weight: 700;
}

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

.wr2-learning-tiers {
    margin-top: 14px;
}

@media (max-width: 960px) {
    .wr2-main-grid,
    .wr2-lower-grid {
        grid-template-columns: 1fr;
    }

    .wr2-workbench {
        position: static;
    }

    .wr2-option-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .wr2-writing-room {
        font-size: 14px;
    }

    .wr2-hero,
    .wr2-section-heading {
        display: flex;
        flex-direction: column;
    }

    .wr2-hero {
        padding: 18px;
    }

    .wr2-hero-status {
        justify-content: start;
    }

    .wr2-card,
    .wr2-workbench {
        padding: 16px;
    }

    .wr2-input-grid,
    .wr2-intent-grid,
    .wr2-object-grid,
    .wr2-gate-summary,
    .wr2-mirror-grid,
    .wr2-scope-note {
        grid-template-columns: 1fr;
    }

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

    .wr2-chip-input {
        align-items: stretch;
        flex-direction: column;
    }

    .wr2-reference-input {
        grid-template-columns: 1fr;
    }

    .wr2-reference-policy {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .wr2-reference-chip {
        grid-template-columns: 1fr auto;
    }

    .wr2-reference-chip strong {
        grid-column: 1 / -1;
    }

    .wr2-check-list li {
        align-items: start;
        flex-direction: column;
        gap: 5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wr2-writing-room *,
    .wr2-writing-room *::before,
    .wr2-writing-room *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* Dark-theme integration: WR2 follows the existing Studio UCA designer skin. */
html.designer-dashboard-skin.theme-dark #content-area .wr2-writing-room {
    --wr2-ink: var(--designer-ink);
    --wr2-muted: var(--designer-muted);
    --wr2-line: var(--designer-line);
    --wr2-panel: var(--designer-panel);
    --wr2-primary-strong: #f6f5f1;
    --wr2-accent: #f59e0b;
    --wr2-accent-soft: rgba(245, 158, 11, 0.12);
    --wr2-danger: #fb7185;
    --wr2-danger-soft: rgba(244, 63, 94, 0.12);
    --wr2-focus: #60a5fa;
    color: var(--designer-ink) !important;
}

html.designer-dashboard-skin.theme-dark #content-area .wr2-hero,
html.designer-dashboard-skin.theme-dark #content-area .wr2-card,
html.designer-dashboard-skin.theme-dark #content-area .wr2-workbench {
    background: var(--designer-panel) !important;
    border-color: var(--designer-line) !important;
    color: var(--designer-ink) !important;
}

html.designer-dashboard-skin.theme-dark #content-area .wr2-hero {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.10) 0%, rgba(255,255,255,0.035) 52%, rgba(255,255,255,0.015) 100%) !important;
    border-color: rgba(245, 158, 11, 0.26) !important;
}

html.designer-dashboard-skin.theme-dark #content-area .wr2-eyebrow,
html.designer-dashboard-skin.theme-dark #content-area .wr2-intent-heading span,
html.designer-dashboard-skin.theme-dark #content-area .wr2-proposal-panel dt {
    color: #fbbf24 !important;
}

html.designer-dashboard-skin.theme-dark #content-area .wr2-writing-room h2,
html.designer-dashboard-skin.theme-dark #content-area .wr2-writing-room h3,
html.designer-dashboard-skin.theme-dark #content-area .wr2-writing-room h4,
html.designer-dashboard-skin.theme-dark #content-area .wr2-writing-room strong,
html.designer-dashboard-skin.theme-dark #content-area .wr2-option-label,
html.designer-dashboard-skin.theme-dark #content-area .wr2-scope-note strong,
html.designer-dashboard-skin.theme-dark #content-area .wr2-proposal-panel dd,
html.designer-dashboard-skin.theme-dark #content-area .wr2-gate-summary strong,
html.designer-dashboard-skin.theme-dark #content-area .wr2-mirror-grid strong {
    color: var(--designer-ink) !important;
}

html.designer-dashboard-skin.theme-dark #content-area .wr2-writing-room p,
html.designer-dashboard-skin.theme-dark #content-area .wr2-stage-copy small,
html.designer-dashboard-skin.theme-dark #content-area .wr2-empty-item,
html.designer-dashboard-skin.theme-dark #content-area .wr2-status-line,
html.designer-dashboard-skin.theme-dark #content-area .wr2-proposal-panel ul,
html.designer-dashboard-skin.theme-dark #content-area .wr2-check-list li,
html.designer-dashboard-skin.theme-dark #content-area .wr2-check-list strong,
html.designer-dashboard-skin.theme-dark #content-area .wr2-gate-summary span,
html.designer-dashboard-skin.theme-dark #content-area .wr2-mirror-grid span,
html.designer-dashboard-skin.theme-dark #content-area .wr2-scope-note {
    color: var(--designer-muted) !important;
}

html.designer-dashboard-skin.theme-dark #content-area .wr2-pill-muted,
html.designer-dashboard-skin.theme-dark #content-area .wr2-option-actions span,
html.designer-dashboard-skin.theme-dark #content-area .wr2-learning-tiers span {
    border-color: var(--designer-line) !important;
    background: rgba(255,255,255,0.045) !important;
    color: var(--designer-muted) !important;
}

html.designer-dashboard-skin.theme-dark #content-area .wr2-pill-lock {
    border-color: rgba(251, 113, 133, 0.34) !important;
    background: var(--wr2-danger-soft) !important;
    color: #fda4af !important;
}

html.designer-dashboard-skin.theme-dark #content-area .wr2-primary-button {
    border-color: #f6f5f1 !important;
    background: #f6f5f1 !important;
    color: #090909 !important;
}

html.designer-dashboard-skin.theme-dark #content-area .wr2-primary-button:hover {
    background: #e7e5e4 !important;
}

html.designer-dashboard-skin.theme-dark #content-area .wr2-secondary-button,
html.designer-dashboard-skin.theme-dark #content-area .wr2-action-button,
html.designer-dashboard-skin.theme-dark #content-area .wr2-chip-input button,
html.designer-dashboard-skin.theme-dark #content-area .wr2-reference-input button,
html.designer-dashboard-skin.theme-dark #content-area .wr2-reference-chip button,
html.designer-dashboard-skin.theme-dark #content-area .wr2-stage-button,
html.designer-dashboard-skin.theme-dark #content-area .wr2-writing-room input,
html.designer-dashboard-skin.theme-dark #content-area .wr2-writing-room textarea,
html.designer-dashboard-skin.theme-dark #content-area .wr2-writing-room select {
    border-color: var(--designer-line) !important;
    background: rgba(255,255,255,0.035) !important;
    color: var(--designer-ink) !important;
}

html.designer-dashboard-skin.theme-dark #content-area .wr2-secondary-button:hover,
html.designer-dashboard-skin.theme-dark #content-area .wr2-action-button:hover,
html.designer-dashboard-skin.theme-dark #content-area .wr2-link-button:hover,
html.designer-dashboard-skin.theme-dark #content-area .wr2-chip-input button:hover,
html.designer-dashboard-skin.theme-dark #content-area .wr2-stage-button:hover {
    border-color: var(--designer-line-strong) !important;
    background: rgba(255,255,255,0.075) !important;
}

html.designer-dashboard-skin.theme-dark #content-area .wr2-writing-room input::placeholder,
html.designer-dashboard-skin.theme-dark #content-area .wr2-writing-room textarea::placeholder {
    color: var(--designer-subtle) !important;
}

html.designer-dashboard-skin.theme-dark #content-area .wr2-boundary-note {
    border-left-color: #f59e0b !important;
    background: rgba(245, 158, 11, 0.10) !important;
    color: #fde68a !important;
}

html.designer-dashboard-skin.theme-dark #content-area .wr2-stage-button.is-active,
html.designer-dashboard-skin.theme-dark #content-area .wr2-action-button.is-selected {
    border-color: rgba(245, 158, 11, 0.52) !important;
    background: rgba(245, 158, 11, 0.12) !important;
    color: #fde68a !important;
}

html.designer-dashboard-skin.theme-dark #content-area .wr2-stage-number {
    background: rgba(255,255,255,0.07) !important;
    color: var(--designer-muted) !important;
}

html.designer-dashboard-skin.theme-dark #content-area .wr2-stage-button.is-active .wr2-stage-number {
    background: rgba(245, 158, 11, 0.22) !important;
    color: #fde68a !important;
}

html.designer-dashboard-skin.theme-dark #content-area .wr2-intent-grid > div,
html.designer-dashboard-skin.theme-dark #content-area .wr2-option-card,
html.designer-dashboard-skin.theme-dark #content-area .wr2-object-card,
html.designer-dashboard-skin.theme-dark #content-area .wr2-reference-chip,
html.designer-dashboard-skin.theme-dark #content-area .wr2-reference-policy,
html.designer-dashboard-skin.theme-dark #content-area .wr2-gate-summary div,
html.designer-dashboard-skin.theme-dark #content-area .wr2-mirror-grid div {
    border-color: var(--designer-line) !important;
    background: rgba(255,255,255,0.025) !important;
    color: var(--designer-ink) !important;
}

html.designer-dashboard-skin.theme-dark #content-area .wr2-chip {
    border-color: rgba(245, 158, 11, 0.34) !important;
    background: rgba(245, 158, 11, 0.10) !important;
    color: #fde68a !important;
}

html.designer-dashboard-skin.theme-dark #content-area .wr2-status-line,
html.designer-dashboard-skin.theme-dark #content-area .wr2-confirmation,
html.designer-dashboard-skin.theme-dark #content-area .wr2-check-list,
html.designer-dashboard-skin.theme-dark #content-area .wr2-check-list li {
    border-color: var(--designer-line) !important;
}

html.designer-dashboard-skin.theme-dark #content-area .wr2-workbench {
    box-shadow: var(--designer-glow) !important;
}

html.designer-dashboard-skin.theme-dark #content-area .wr2-proposal-panel {
    border-color: rgba(245, 158, 11, 0.36) !important;
    background: rgba(245, 158, 11, 0.08) !important;
}

html.designer-dashboard-skin.theme-dark #content-area .wr2-negative-note {
    border-left-color: #fb7185 !important;
    background: rgba(244, 63, 94, 0.10) !important;
    color: #fda4af !important;
}

html.designer-dashboard-skin.theme-dark #content-area .wr2-scope-note {
    border-left-color: var(--designer-line-strong) !important;
    background: rgba(255,255,255,0.025) !important;
}

html.designer-dashboard-skin.theme-dark #content-area .wr2-link-button {
    color: #93c5fd !important;
}

/* WR2 live API additions */
.wr2-project-loader {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto auto;
    gap: 10px;
    align-items: end;
    margin-top: 16px;
}
.wr2-project-loader label { min-width: 0; }
.wr2-generated-body {
    margin-top: 12px;
    max-height: 320px;
    overflow: auto;
    white-space: pre-wrap;
    border: 1px solid var(--wr2-line);
    border-radius: 10px;
    background: #f8fafc;
    padding: 12px;
    color: var(--wr2-muted);
    font-size: 13px;
    line-height: 1.6;
}
.wr2-object-help { min-height: 42px; }
.wr2-pill-live {
    border-color: #86efac !important;
    background: #f0fdf4 !important;
    color: #166534 !important;
}
.wr2-subheading {
    margin: 18px 0 10px;
    color: var(--wr2-ink);
    font-size: 14px;
}
.wr2-check-list li[data-state="pass"] strong { color: #15803d; }
.wr2-check-list li[data-state="hold"] strong { color: #b45309; }
.wr2-writing-room [hidden] { display: none !important; }

html.designer-dashboard-skin.theme-dark #content-area .wr2-generated-body {
    border-color: var(--designer-line) !important;
    background: rgba(255,255,255,0.025) !important;
    color: var(--designer-muted) !important;
}
html.designer-dashboard-skin.theme-dark #content-area .wr2-pill-live {
    border-color: rgba(74, 222, 128, 0.45) !important;
    background: rgba(34, 197, 94, 0.12) !important;
    color: #86efac !important;
}
html.designer-dashboard-skin.theme-dark #content-area .wr2-subheading {
    color: var(--designer-ink) !important;
}
html.designer-dashboard-skin.theme-dark #content-area .wr2-check-list li[data-state="pass"] strong { color: #86efac !important; }
html.designer-dashboard-skin.theme-dark #content-area .wr2-check-list li[data-state="hold"] strong { color: #fcd34d !important; }

@media (max-width: 760px) {
    .wr2-project-loader { grid-template-columns: 1fr; align-items: stretch; }
}
