/**
 * /characterforge/css/builder_frame.css
 * Shared gold frame and connected folder tabs for the standard, custom and
 * Shadowdark character editors, preserving their existing content and controls.
 */
.cf-builder-frame {
    margin: 20px 20px 30px; min-width: 0; flex: 1;
    display: flex; flex-direction: column;
    border: 1px solid var(--gold); border-top: 0;
    border-radius: 0 8px 8px 8px; background: var(--panel-bg);
    box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.cf-builder-frame > .tab-wrapper {
    margin: 0 -1px; padding: 0; gap: 4px;
    border: 0; background: linear-gradient(var(--gold),var(--gold)) left bottom / 100% 1px no-repeat, #121212;
    scrollbar-width: none;
}
.cf-builder-frame > .tab-wrapper::-webkit-scrollbar { display: none; }
.cf-builder-frame > .tab-wrapper .folder-tab {
    box-sizing: border-box; flex: 0 0 auto; margin: 0;
    border: 1px solid #333; border-bottom: 1px solid var(--gold);
    box-shadow: none;
    padding: 12px 20px; background: #111; color: #aaa;
}
.cf-builder-frame > .tab-wrapper .folder-tab.active {
    border-color: var(--gold); border-bottom-color: var(--panel-bg);
    background: var(--panel-bg); color: var(--gold-bright);
}
.cf-builder-frame > .forge-container, .cf-builder-frame .forge-main { min-width: 0; }
@media (max-width: 768px) {
    .cf-builder-frame { margin: 12px 10px 20px; }
    .cf-builder-frame > .tab-wrapper .folder-tab { padding: 12px 16px; }
}

.cf-builder-frame #forge-tabs .folder-tab.active { border-bottom-color: var(--panel-bg); box-shadow: none; }

/* Keep long race and origin card headings readable inside the phone frame. */
@media (max-width: 600px) {
    .cf-builder-frame #sec-2 .choice-column,
    .cf-builder-frame #sec-3 .choice-column { grid-template-columns: minmax(0, 1fr); }
}

.cf-builder-frame #forge-tabs .folder-tab:not(.active) { border-bottom-color: var(--gold); }
