/* ==========================================================================
   FiveMRides Clothing Studio - Advanced mode BETA (FMR_Clothing_Hosted)
   1. Inside the hosted Studio page: BETA banner on top, BETA strip in every dialog.
   2. On /clothing-studio/: "Easy | Advanced (BETA)" switch, project list, "Open in Advanced".
   ========================================================================== */

/* ---------- 1. hosted Studio ---------- */
/* Same framing as the shared Studio UI top bar (fmr-studio-ui.css .fsu-top): dark bar, pink/cyan hairline, BETA tag. */
.fcs-hosted-banner {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    min-height: 54px;
    padding: 8px 16px;
    background: linear-gradient(180deg, rgba(14, 18, 27, .97), rgba(10, 13, 21, .97));
    border-bottom: 1px solid #1f2839;
    box-shadow: 0 1px 0 rgba(255, 47, 158, .35), 0 8px 30px rgba(0, 0, 0, .35);
    color: #c9d2e0;
    font: 500 13px/1.45 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.fcs-hosted-banner::before {
    content: "";
    width: 30px;
    height: 30px;
    flex: none;
    border-radius: 9px;
    background: linear-gradient(120deg, #ff2f9e 0%, #a855f7 52%, #00d9ff 100%);
    box-shadow: 0 0 18px rgba(255, 47, 158, .35), inset 0 0 0 1px rgba(255, 255, 255, .2);
}
.fcs-hosted-banner .fcs-hosted-text { flex: 1 1 420px; min-width: 0; color: #8d98ab; }
.fcs-hosted-banner .fcs-hosted-text strong { color: #e8edf5; font: 700 15px/1 Rajdhani, Inter, sans-serif; letter-spacing: .02em; }
.fcs-hosted-banner b { color: #fff; }
.fcs-hosted-chip {
    display: inline-block;
    padding: 4px 6px 3px;
    border-radius: 5px;
    border: 1px solid rgba(255, 47, 158, .55);
    background: rgba(255, 47, 158, .08);
    color: #ff2f9e;
    font: 800 9px/1 Rajdhani, Inter, sans-serif;
    letter-spacing: .16em;
    vertical-align: middle;
}
.fcs-hosted-link {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 240, 255, .35);
    background: rgba(0, 240, 255, .07);
    color: #c9fbff;
    font-weight: 600;
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
}
.fcs-hosted-link:hover { background: rgba(0, 240, 255, .14); border-color: rgba(0, 240, 255, .6); }
.fcs-hosted-dialog-beta {
    margin: 0 0 10px;
    padding: 6px 10px;
    border: 1px solid #ff2f9e;
    border-radius: 8px;
    background: rgba(255, 47, 158, .12);
    color: #ffd0e8;
    font: 500 12px/1.4 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- 2. /clothing-studio/ and /clothing-studio/advanced/ ---------- */
/* The Easy | Advanced switch itself is styled by clothing-studio.css (.fcs-app.fsu .fcs-mode-switch), it sits in the Studio top bar.
   Plain fallback when the page has no .fsu root: */
.fcs-mode-switch {
    display: flex;
    gap: 4px;
    width: max-content;
    max-width: 100%;
    margin: 0 0 18px;
    padding: 4px;
    border: 1px solid var(--fcs-line, #2a3245);
    border-radius: 999px;
    background: var(--fcs-panel, #12171f);
}
.fcs-mode-switch a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 999px;
    color: var(--fcs-muted, #9ba4af);
    font-weight: 700;
    text-decoration: none;
}
.fcs-mode-switch a[aria-current="page"] { background: var(--fcs-pink, #ff2f9e); color: #12020c; }
.fcs-mode-switch a[aria-current="page"] .fcs-beta-chip { background: #12020c; color: #ff2f9e; }

/* Advanced projects list (shared Studio UI: .fsu root, top bar, hero left, projects card right) */
.fcs-app.fsu.fcs-advanced-chooser { min-height: 0; }
.fcs-app.fsu.fcs-advanced-chooser .fcs-advanced-body .fsu-hero { width: 100%; align-items: center; }
.fcs-app.fsu.fcs-advanced-chooser .fcs-hero-copy { min-width: 0; }
.fcs-app.fsu.fcs-advanced-chooser .fsu-hero h1 { font-size: clamp(34px, 4.2vw, 56px); }
.fcs-app.fsu.fcs-advanced-chooser .fcs-beta-badge { font-size: .3em; top: -.9em; }
.fcs-advanced-side { display: grid; gap: 12px; align-content: center; min-width: 0; }
.fcs-app.fsu .fcs-advanced-side .fsu-card { padding: 16px; gap: 12px; }
.fcs-app.fsu .fcs-advanced-side .fsu-card-head h2 { font: 700 18px/1.15 var(--fsu-display, Rajdhani, Inter, sans-serif); color: var(--fsu-text, #e8edf5); }
.fcs-app.fsu .fcs-advanced-side .fcs-lead { color: var(--fsu-muted, #8d98ab); font-size: 13px; line-height: 1.55; }
.fcs-app.fsu .fcs-advanced-list { list-style: none; margin: 0; padding: 0 4px 0 0 !important; display: grid; gap: 8px; max-height: min(46vh, 420px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #2a3448 transparent; }
.fcs-advanced-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--fsu-line, var(--fcs-line, #2a3245));
    border-radius: 11px;
    background: var(--fsu-panel2, var(--fcs-panel-2, #1a2030));
}
.fcs-advanced-list li:hover { border-color: var(--fsu-line2, #2c3850); }
.fcs-advanced-list li span { display: grid; gap: 2px; min-width: 0; flex: 1 1 200px; }
.fcs-advanced-list li strong { color: var(--fsu-text, #e8edf5); font: 600 13px/1.3 var(--fsu-mono, ui-monospace, Consolas, monospace); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fcs-advanced-list small { color: var(--fsu-dim, var(--fcs-muted, #9ba4af)); font-size: 11.5px; line-height: 1.4; }
.fcs-advanced-list .fsu-btn { flex: none; }
.fcs-advanced-open {
    margin: 14px 0 4px;
    padding: 12px 14px;
    border: 1px dashed var(--fcs-pink, #ff2f9e);
    border-radius: 12px;
}
.fcs-advanced-open p { margin: 0 0 8px; }
@media (max-width: 1100px) {
        .fcs-app.fsu .fcs-advanced-list { max-height: none; }
}
@media (max-width: 760px) {
    .fcs-advanced-list li .fsu-btn { width: 100%; }
    .fcs-app.fsu.fcs-advanced-chooser .fcs-advanced-side .fcs-actions .fsu-btn { width: 100%; }
}

/* ---------- 1b. hosted Studio: "Add these files" panel (smart packs) ---------- */
.fcs-hosted-need { max-width: min(680px, calc(100vw - 32px)); }
.fcs-hosted-need h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 1.15rem; }
.fcs-hosted-need-list {
    max-height: 240px;
    overflow: auto;
    margin: 10px 0;
    padding: 8px 12px 8px 28px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    font: 12px/1.5 ui-monospace, Consolas, monospace;
    overflow-wrap: anywhere;
}
.fcs-hosted-need-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 6px; }
.fcs-hosted-need-status { min-height: 1.4em; margin: 6px 0 0; }
