/* Generator settings row: wraps instead of running off the screen. */
.generator-selectors { flex-wrap: wrap; row-gap: 10px; max-width: 100%; }
.generator-selectors > .chat-selector { max-width: 100%; }
.generator-selectors .display-dropdown-value { display: inline-block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

/* "Director" button + panel (Higgsfield Movie Studio, Cinema Studio mode). */
.cine-dir { position: relative; }
.cine-dir[hidden] { display: none !important; }
.cine-dir__btn { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: 1.25rem; cursor: pointer; white-space: nowrap; }
.cine-dir__state { padding: 2px 8px; border-radius: 999px; background: rgba(var(--cine-accent-rgb), .2); color: var(--cine-accent-2); font-size: .8em; }
.cine-dir__chev { font-size: .7em; opacity: .6; transition: transform .15s; }
.cine-dir.is-open .cine-dir__chev { transform: rotate(180deg); }
.cine-dir__panel { position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%); z-index: 1050; width: min(620px, calc(100vw - 32px)); padding: 16px; border-radius: 14px; background: #14110d; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 18px 50px rgba(0,0,0,.55); }
.cine-dir__panel[hidden] { display: none; }
.cine-dir__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 14px; }
.cine-dir__reset { border: 0; background: none; color: var(--cine-accent-2); font-size: 13px; cursor: pointer; padding: 0; }
.cine-dir__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cine-dir__grid > .chat-selector { padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); min-width: 0; }
.cine-dir__grid > .chat-selector[hidden] { display: none !important; }
.cine-dir__grid .dropdown-toggle { display: flex; align-items: center; min-width: 0; font-size: 14px; }
.cine-dir__grid .dropdown-toggle i { font-size: 14px !important; flex: 0 0 auto; }
.cine-dir__grid .display-dropdown-value { font-size: 14px !important; margin-left: 8px !important; max-width: none; flex: 1 1 auto; min-width: 0; }
@media (max-width: 767px) {
	.cine-dir__btn { font-size: 1rem; }
	.cine-dir__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cine-dir__panel { position: fixed; left: 16px; right: 16px; bottom: 90px; width: auto; transform: none; }
}

/* Native selects in plugin forms (the theme widget is switched off there). */
select.cine-select { display: block !important; width: 100%; min-height: 44px; padding: 10px 38px 10px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23fff' stroke-opacity='.6' stroke-width='1.6' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center; color: #fff; font: inherit; font-size: 15px; -webkit-appearance: none; appearance: none; cursor: pointer; }
select.cine-select:focus { outline: none; border-color: var(--cine-accent); }
select.cine-select option, select.cine-select optgroup { background: #14110d; color: #fff; }

/* Director: the same pill as the other settings; its panel opens inside the window */
/* in the chat bar Director looks like its neighbours (icon + text, no frame); a pill only where the
   other settings are pills too (Frame settings, modals) — owner 2026-11-16 */
.cine-dir__btn { height: auto; padding: 0; border: 0; border-radius: 0; font-size: inherit; line-height: inherit; color: inherit; }
.cine-dir__btn > .fa-clapperboard { opacity: .75; }
.cine-dir__state { padding: 1px 7px; font-size: .78em; line-height: 1.5; }
.cine-dir__chev { font-size: .7em; opacity: .6; }
.scene-settings .cine-dir__btn, .modal .cine-dir__btn { height: 46px; padding: 0 16px; border: 1px solid rgba(232, 168, 76, .35); border-radius: 999px; font-size: 15px; }
.cine-dir__btn:focus { outline: none; box-shadow: none; }
.cine-dir__btn:focus-visible { outline: 2px solid var(--cine-accent, #e8a84c); outline-offset: 2px; }
.cine-dir__panel { left: 0; right: auto; transform: none; max-width: calc(100vw - 32px); }
.scene-settings .cine-dir__panel, .modal .cine-dir__panel { left: auto; right: 0; width: min(560px, calc(100vw - 48px)); }
