/* Remix: existing kit choices assembled into a live, source-attributed brief. */
.remix-page { max-width: 1220px; margin: 28px auto 64px; }
.remix-page [hidden] { display: none !important; }
.remix-back { font-size: 13px; text-decoration: none; }
.remix-heading { margin: 32px 0; }
.remix-eyebrow { color: var(--accent-green-light); font: 12px/1.5 var(--font-mono); letter-spacing: .06em; }
.remix-heading h1 { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.15; margin: 14px 0; letter-spacing: -.035em; }
.remix-heading h1 span { color: var(--accent-green-light); }
.remix-intro { max-width: 620px; margin: 0; font-size: 16px; }
.remix-plan-note { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: var(--text-secondary); font-size: 12px; }
.remix-plan-note .kit-plan-badge { flex-shrink: 0; }
.remix-download-area #remix-upgrade { color: var(--bg-primary); text-decoration: none; justify-content: center; }
.remix-brief-jump { display: none; margin-top: 14px; font-size: 14px; }
.remix-workspace { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(340px, 1fr); gap: 28px; align-items: start; }
.remix-editor { min-width: 0; }
.remix-editor-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 14px; }
.remix-editor-heading h2 { font-size: 17px; font-weight: 600; }
.remix-editor-heading > span { font-size: 12px; color: var(--text-muted); }
.remix-sources { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.remix-source { padding: 24px; border-color: var(--border-subtle); background: var(--bg-secondary); }
.remix-source-heading { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.remix-source-letter { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid var(--border-glow); border-radius: 10px; background: rgba(34, 197, 94, .07); font: 18px var(--font-mono); }
.remix-source-role { color: var(--text-muted); font-size: 12px; margin-bottom: 2px; }
.remix-source h3 { font-size: 19px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.remix-source label { font-size: 12px; }
.remix-source input[type="search"] { border-color: var(--border-subtle); font-size: 14px; }
.remix-search-results:empty { margin: 0; }
.remix-search-results button { min-height: 44px; font: 14px/1.5 var(--font-sans); }
.remix-card-choices { margin-top: 20px; }
.remix-choice-empty { border: 1px dashed var(--border-subtle); padding: 20px; border-radius: 8px; color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.remix-card-choices fieldset { min-width: 0; border: 0; margin: 0; padding: 0; }
.remix-card-choices fieldset + fieldset { border-top: 1px solid var(--border-subtle); padding-top: 20px; margin-top: 20px; }
.remix-card-choices legend { font-size: 13px; font-weight: 600; padding: 0; margin-bottom: 10px; }
.remix-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.remix-source .remix-choice { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 12px; min-height: 46px; border: 1px solid var(--border-subtle); border-radius: 8px; font-size: 13px; line-height: 1.5; cursor: pointer; background: var(--bg-primary); }
.remix-choice span { overflow-wrap: anywhere; min-width: 0; }
.remix-choice input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--accent-green); flex: 0 0 16px; }
.remix-choice:has(input:checked) { background: rgba(34, 197, 94, .065); border-color: var(--border-glow); color: var(--text-primary); }
.remix-choice:has(input:disabled) { cursor: wait; opacity: .65; }
.remix-choice-hint { color: var(--text-muted); font-size: 12px; line-height: 1.6; margin: 0 0 12px; }
.remix-style-note { color: var(--text-secondary); font-size: 13px; line-height: 1.6; margin: 0 0 12px; }
.remix-source-status { font-size: 12px; min-height: 0; margin: 18px 0 8px; }
.remix-source-actions { gap: 10px; font-size: 12px; }
.remix-toolbar { margin: 14px 0 24px; }
.remix-secondary { min-height: 40px; border-color: var(--border-subtle); }
.remix-page button:disabled { cursor: not-allowed; opacity: .55; }
.remix-personalize { border: 1px solid var(--border-subtle); background: var(--bg-secondary); border-radius: 12px; padding: 24px; }
.remix-personalize .make-it-yours { margin: 0; }
.remix-personalize textarea { border-color: var(--border-subtle); }
.remix-personalize .remix-exclusions-label { font-size: 13px; margin-top: 24px; }
.remix-exclusions-label span { margin-left: 6px; font-size: 12px; }
.remix-brief { border: 1px solid var(--border-glow); border-radius: 12px; padding: 26px; background: linear-gradient(150deg, rgba(34, 197, 94, .05), transparent 240px), var(--bg-secondary); min-width: 0; scroll-margin-top: 120px; }
.remix-brief-body { min-height: 0; }
.remix-brief-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.remix-brief-header h2 { font-size: 23px; margin: 8px 0 0; line-height: 1.3; letter-spacing: -.02em; }
.remix-live-label { border: 1px solid var(--border-subtle); color: var(--text-secondary); padding: 4px 8px; border-radius: 5px; font: 10px/1.5 var(--font-mono); white-space: nowrap; }
.remix-brief-count { color: var(--text-muted); font: 12px/1.6 var(--font-mono); margin: 12px 0 24px; }
.remix-brief-section { border-top: 1px solid var(--border-subtle); padding-top: 18px; margin-top: 18px; }
.remix-brief-section h3 { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.remix-brief-section p { color: var(--text-secondary); font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; white-space: pre-line; }
.remix-brief-list { display: grid; gap: 9px; list-style: none; padding: 0; margin: 0; }
.remix-brief-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; line-height: 1.5; }
.remix-brief-list li > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.remix-source-tag { color: var(--text-muted); font-size: 11px; text-align: right; max-width: 43%; overflow-wrap: anywhere; flex-shrink: 0; }
.remix-brief-empty { margin: 28px 0; }
.remix-brief-empty strong { display: block; font-size: 16px; font-weight: 500; margin-bottom: 8px; }
.remix-brief-empty p { color: var(--text-muted); font-size: 13px; line-height: 1.7; }
.remix-brief-style { color: var(--accent-green-light) !important; margin-bottom: 8px; }
.remix-agent-note { border-top: 1px solid var(--border-subtle); padding-top: 18px; margin-top: 24px; color: var(--text-secondary); font-size: 12px; line-height: 1.7; }
.remix-download-area { margin-top: 20px; }
.remix-download-area .btn-copy-prompt { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; padding: 14px 18px; border-radius: 8px; font: 600 14px var(--font-sans); }
.remix-download-area .remix-status { font-size: 12px; margin: 12px 0; }
.remix-download-detail { font-size: 11px; line-height: 1.7; color: var(--text-muted); }
.remix-after { margin-top: 22px; padding-left: 14px; }
.remix-after strong { font-size: 14px; }
.remix-after ol { padding-left: 18px; font-size: 13px; line-height: 1.7; margin: 12px 0; color: var(--text-secondary); }
.remix-after code { background: var(--bg-primary); border: 1px solid var(--border-subtle); padding: 12px; border-radius: 6px; font-size: 12px; }
.remix-after p { font-size: 12px; color: var(--text-muted); }
@media (min-width: 861px) and (min-height: 760px) {
    .remix-brief:not(:has(.remix-after:not([hidden]))) { position: sticky; top: 116px; display: flex; flex-direction: column; max-height: calc(100dvh - 140px); }
    .remix-brief:not(:has(.remix-after:not([hidden]))) > :not(.remix-brief-body) { flex-shrink: 0; }
    .remix-brief:not(:has(.remix-after:not([hidden]))) .remix-brief-body { overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--border-glow) transparent; padding-right: 10px; margin-right: -10px; }
}
@media (max-width: 860px) {
    .remix-workspace { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .remix-brief-jump { display: inline-block; }
    .remix-heading { margin-top: 24px; }
}
@media (max-width: 480px) {
    .remix-page { margin-top: 20px; }
    .remix-source, .remix-personalize, .remix-brief { padding: 18px; }
    .remix-choice-grid { grid-template-columns: minmax(0, 1fr); }
    .remix-editor-heading { display: block; }
    .remix-editor-heading > span { display: block; margin-top: 4px; }
    .remix-brief-header h2 { font-size: 21px; }
}
/* Multi-source cards stay compact as the brief grows. */
.remix-source { border-radius: 8px; padding: 18px; }
.remix-source > summary { list-style: none; cursor: pointer; margin: 0; }
.remix-source > summary::-webkit-details-marker { display: none; }
.remix-source[open] > summary { margin-bottom: 20px; }
.remix-source-letter { width: 34px; height: 34px; flex-basis: 34px; font-size: 14px; border-radius: 5px; }
.remix-source-summary { display: grid; gap: 4px; flex: 1; min-width: 0; }
.remix-source-summary strong { font-size: 15px; overflow-wrap: anywhere; }
.remix-card-chevron { font: 18px var(--font-mono); color: var(--accent-green-light); }
.remix-source[open] .remix-card-chevron { transform: rotate(90deg); }
.remix-add { width: 100%; display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 16px; min-height: 48px; border: 1px dashed var(--border-glow); border-radius: 6px; background: rgba(34,197,94,.035); color: var(--accent-green-light); font: 13px var(--font-mono); cursor: pointer; }
.remix-add:hover { background: rgba(34,197,94,.09); }
.remix-remove { background: transparent; color: var(--text-muted); border: 0; padding: 10px; cursor: pointer; font: inherit; margin-left: auto; }
.remix-design > label { display: block; font-size: 14px; font-weight: 600; }
.remix-design > p { margin: 8px 0 12px; }
.remix-design select { width: 100%; min-height: 44px; padding: 10px; border: 1px solid var(--border-glow); border-radius: 5px; background: var(--bg-primary); color: var(--text-primary); font: 13px var(--font-sans); }
.remix-design .remix-choice { display: flex; gap: 8px; padding: 8px; border: 1px solid var(--border-subtle); border-radius: 5px; font-size: 12px; cursor: pointer; }
.remix-heading h1 { font-size: clamp(30px,3.6vw,44px); }
.remix-personalize, .remix-brief { border-radius: 8px; }
.remix-source > summary:focus-visible, .remix-add:focus-visible, .remix-design select:focus-visible { outline: 2px solid var(--accent-green-light); outline-offset: 4px; }
.remix-source > summary::before { content: none; display: none; }

.remix-cloud { margin: 24px 0; padding: 20px; border: 1px solid var(--border-color, #29372d); border-radius: 12px; background: #0b120e; }
.remix-cloud input { display: block; width: 100%; max-width: 480px; margin-top: 8px; padding: 10px; background: #080d0a; color: #f2f5f3; border: 1px solid #334439; border-radius: 6px; font: inherit; }
.remix-conflict-columns { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:20px; }
.remix-conflict-columns pre { white-space:pre-wrap; overflow-wrap:anywhere; font:inherit; }
@media(max-width:600px) { .remix-conflict-columns { grid-template-columns:1fr; } }
