/* OpenArt workshop structure, adapted to FYBRI content and light brand palette. */
.rm-breadcrumb { display: none; }
#rm-panel-toggle { display: none; }
.app[data-current-view="studio"] {
  --bg: #f6f7f9; --bg-2: #ffffff; --panel: #ffffff; --panel-2: #f5f6f8;
  --text: #1b2432; --muted: #667286; --dim: #737f91;
  --line: #e0e4eb; --line-soft: #edf0f4;
  --accent: #ff790a; --accent-2: #ed6c00; --ok: #27835b; --grad: #ff790a;
  --font: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-family: var(--font); color: var(--text); color-scheme: light;
  background: var(--bg); grid-template-columns: 244px minmax(0,1fr);
  grid-template-rows: 64px minmax(0,1fr); min-height: 0;
}
.app[data-current-view="studio"] :is(button,a,input,textarea,select,summary):focus-visible {
  outline: 2px solid #efb689; outline-offset: 3px;
}
.app[data-current-view="studio"] ::-webkit-scrollbar { width: 6px; height: 6px; }
.app[data-current-view="studio"] ::-webkit-scrollbar-thumb { background: #3c3f43; border: 0; }
.app[data-current-view="studio"] .topbar {
  background: #ffffff; border: 1px solid #e0e4eb; border-radius: 18px;
  margin: 12px 0 12px 12px; padding: 0 8px 14px; box-shadow: none;
}
.app[data-current-view="studio"] .topbar__brand { height: 57px; padding: 0 4px; margin: 0 0 8px; border: 0; }
.app[data-current-view="studio"] .ws-brand { color: #263142; gap: 4px; }
.app[data-current-view="studio"] .ws-brand img { width: 37px; height: 37px; }
.app[data-current-view="studio"] .ws-brand strong { font-size: 23px; letter-spacing: -1px; }
.app[data-current-view="studio"] .topbar__nav { gap: 4px; }
.app[data-current-view="studio"] .ws-nav-group { margin-top: 18px; gap: 4px; }
.app[data-current-view="studio"] .ws-nav-group h2 {
  display: block; margin: 0 7px 8px; font-size: 10px; letter-spacing: .05em;
  font-weight: 650; color: #738096;
}
.app[data-current-view="studio"] .ws-nav-copy small { display: none; }
.app[data-current-view="studio"] .navbtn {
  background: transparent; border: 1px solid transparent; border-radius: 9px;
  padding: 10px 12px; gap: 11px; min-height: 39px; color: #263142;
  font-size: 12px; font-weight: 600; text-align: left;
}
.app[data-current-view="studio"] .navbtn .ph { font-size: 19px; color: #627086; }
.app[data-current-view="studio"] .navbtn:hover { background: #f2f4f7; border-color: #e0e4eb; }
.app[data-current-view="studio"] .navbtn.is-active {
  color: #263142; background: #fff1e5; border-color: #efb689;
  box-shadow: inset 0 -2px 7px #d970251a; font-weight: 650;
}
.app[data-current-view="studio"] .navbtn.is-active .ph { color: #263142; }
.app[data-current-view="studio"] #ws-projects-open { background: #f1f3f6; border-color: #e0e4eb; }
.app[data-current-view="studio"] [data-view="workspace"].navbtn,
.app[data-current-view="studio"] [data-view="montage"].navbtn { background: #f3f5f8; border-color: #e0e4eb; min-height: 48px; }
.app[data-current-view="studio"] .ws-expenses { margin: auto 0 8px; width: 100%; border-top: 1px solid var(--line-soft); }
.app[data-current-view="studio"] .topbar__tagline { color: #738096; margin: 0; font-size: 11px; padding: 10px 12px; border: 0; }
.app[data-current-view="studio"] .utilitybar { background: var(--bg); border: 0; padding: 0 22px 0 26px; }
.app[data-current-view="studio"] .rm-breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #263142; }
.app[data-current-view="studio"] .rm-breadcrumb>span,.app[data-current-view="studio"] .rm-breadcrumb>.ph { color: #738096; }
.app[data-current-view="studio"] .ws-project-title { display: none; }
.app[data-current-view="studio"] .topbar__right { gap: 20px; }
.app[data-current-view="studio"] .credits { color: #27835b; border: 1px solid #e0e4eb; padding: 7px 12px; border-radius: 24px; background: #edf8f2; font-size: 12px; }
.app[data-current-view="studio"] .ws-producer { color: #627086; font-size: 12px; }
.app[data-current-view="studio"] .ws-producer>.ph { color: #627086; font-size: 26px; }
.app[data-current-view="studio"] #btn-logout { color: #738096; font-size: 11px; }
.app[data-current-view="studio"] .view--studio {
  display: grid; grid-template-columns: 480px minmax(0,1fr); gap: 8px;
  padding: 0 12px 12px 8px; overflow: hidden;
}
.view--studio .oa-editor,.view--studio .studio__main { background: #ffffff; border: 1px solid #e0e4eb; border-radius: 18px; min-width: 0; min-height: 0; }
.view--studio .oa-editor { display: flex; flex-direction: column; overflow: hidden; }
.view--studio .oa-editor-scroll { overflow-y: auto; min-height: 0; flex: 1; padding: 10px 10px 18px; scrollbar-width: thin; }
.view--studio .modeswitch { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); width: 100%; background: transparent; border: 0; padding: 0 18px; gap: 10px; margin-bottom: 10px; }
.view--studio .modeswitch__btn { display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; border-radius: 24px; min-height: 36px; padding: 8px; background: transparent; color: #738096; font-size: 12px; font-weight: 600; border: 1px solid transparent; box-shadow: none; }
.view--studio .modeswitch__btn .ph { font-size: 17px; }
.view--studio .modeswitch__btn.is-active { background: #ffffff; border-color: #e0e4eb; color: #263142; }
.view--studio .modeswitch__btn:hover { color: #263142; background: #f1f3f6; }
.view--studio .rm-heading { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px; margin-bottom: 8px; border: 1px solid #e0e4eb; border-radius: 16px; background: linear-gradient(110deg,#fff2e5,#f5f0fc 52%,#edf8fa); }
.view--studio .rm-heading>.ph { font-size: 25px; color: #27835b; padding: 9px; border-radius: 10px; background: #ffffffb0; }
.view--studio .rm-heading h1 { font-size: 16px; font-weight: 650; letter-spacing: -.02em; line-height: 1.4; margin: 0; }
.view--studio .rm-heading p { font-size: 11px; margin: 2px 0 0; color: #627086; }
.view--studio .modelpick { padding: 12px 14px; gap: 12px; border: 1px solid #e0e4eb; border-radius: 14px; background: #f6f7f9; margin-bottom: 8px; box-shadow: none; min-height: 64px; }
.view--studio .modelpick:hover { background: #f2f4f7; border-color: #e0e4eb; }
.view--studio .modelpick__label { font-size: 11px; letter-spacing: 0; text-transform: none; color: #738096; }
.view--studio .modelpick__name { font-size: 14px; color: #263142; font-weight: 650; line-height: 1.45; }
.view--studio .modelpick__price { font-size: 10px; color: #738096; }
.view--studio .modelpick__chev { color: #738096; }
.view--studio .studio__composer { padding: 14px; background: #ffffff; border: 1px solid #e0e4eb; border-radius: 16px; box-shadow: none; gap: 10px; margin-bottom: 8px; }
.view--studio .prompt { gap: 10px; }
.view--studio .prompt>.field__head { position: static; width: auto; height: auto; clip-path: none; overflow: visible; }
.view--studio .prompt>.field__head label { font-size: 14px; color: #263142; font-weight: 600; }
.view--studio #prompt-count { font-size: 10px; color: #738096; }
.view--studio .prompt #prompt { background: #fbfcfd; border: 1px solid #e0e4eb; border-radius: 12px; color: #263142; min-height: 130px; height: 130px; padding: 13px; font-size: 13px; line-height: 1.65; box-shadow: none; resize: vertical; order: 2; }
.view--studio .prompt #prompt::placeholder { color: #738096; }
.view--studio .prompt #prompt:focus { border-color: #efb689; box-shadow: 0 0 0 2px #17273a18; outline: none; }
.view--studio .rm-composer-foot { display: flex; position: relative; }
.view--studio .rm-composer-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.view--studio .rm-composer-tools .btn { background: transparent; border: 0; color: #627086; padding: 4px 0; font-size: 11px; font-weight: 500; gap: 6px; }
.view--studio .rm-composer-tools .btn:hover { color: #263142; }
.view--studio .rm-composer-tools .ph { font-size: 16px; }
.view--studio .rm-prompt-extra { position: static; color: #627086; font-size: 11px; }
.view--studio .rm-prompt-extra summary,.view--studio .rm-advanced summary,.view--studio .rm-ratio-extra summary { list-style: none; cursor: pointer; }
.view--studio .rm-prompt-extra summary:after { content: '\e136'; font-family: Phosphor; margin-left: 5px; }
.view--studio .rm-prompt-popover { position: absolute; top: calc(100% + 8px); left: 0; right: 0; width: 100%; background: #ffffff; border: 1px solid #d9dfe8; border-radius: 14px; padding: 16px; z-index: 20; max-height: 45vh; overflow: auto; box-shadow: 0 12px 35px #17273a18; }
.view--studio .ptools,.view--studio .chips--presets,.view--studio .plang { flex-wrap: wrap; }
.view--studio .ptool { background: #f4f6f9; border-color: #e0e4eb; color: #263142; }
.view--studio .pe-shelf { background: transparent; border-color: #e0e4eb; padding: 0 0 12px; }
.view--studio .pe-shelf-head,.view--studio .pe-shelf-head strong { color: #263142; }
.view--studio .pe-add,.view--studio .pe-card,.view--studio .pe-open { background: #f4f6f9; color: #263142; border-color: #e0e4eb; }
.view--studio .pe-card small,.view--studio .pe-hint { color: #738096; }
.view--studio .pe-selected { flex-wrap: wrap; }
.view--studio #oa-reference-slot:empty { display: none; }
.view--studio #oa-reference-slot { order: 1; }
.view--studio .prompt { order: 0; }
.view--studio .rm-composer-foot { order: 2; }
.view--studio #oa-reference-slot .group { padding: 0; background: transparent; border: 0; gap: 8px; }
.view--studio #oa-reference-slot .group__title { color: #263142; font-size: 12px; }
.view--studio .drop { display: grid; grid-template-columns: 24px minmax(0,1fr); align-items: center; text-align: left; min-height: 56px; padding: 9px 12px; background: #fffaf5; border: 1px dashed #efb689; border-radius: 10px; color: #263142; font-size: 11px; column-gap: 10px; row-gap: 3px; }
.view--studio .drop>.ph { grid-row: 1/3; }
.view--studio .drop>.ph { color: #d26a20; font-size: 20px; }
.view--studio .drop__hint { font-size: 10px; color: #627086; line-height: 1.5; }
.view--studio .thumbs { gap: 8px; }
.view--studio .thumb { width: 64px; height: 64px; border-color: #e0e4eb; border-radius: 9px; }
.view--studio #oa-reference-slot .row__sub { font-size: 10px; color: #738096; }
.view--studio .panel { padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; gap: 8px; overflow: visible; }
.view--studio .rm-panel-heading { display: none; }
.view--studio .rm-profile-block { padding: 12px 14px; background: #f6f7f9; border: 1px solid #e0e4eb; border-radius: 14px; }
.view--studio .rm-profile-block h3 { font-size: 12px; color: #738096; font-weight: 500; margin: 0 0 10px; }
.view--studio .profile { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; border: 0; }
.view--studio .profile__btn { background: #f1f3f6; color: #627086; border: 1px solid #e0e4eb; border-radius: 8px; padding: 8px 5px; box-shadow: none; text-align: center; }
.view--studio .profile__btn b { font-size: 12px; color: inherit; font-weight: 600; }
.view--studio .profile__btn>span { display: none; }
.view--studio .profile__btn.is-active { background: #fff1e5; border-color: #efb689; color: #263142; box-shadow: none; }
.view--studio #params { display: flex; flex-direction: column; gap: 8px; }
.view--studio #params>.group { padding: 13px 14px; border: 1px solid #e0e4eb; border-radius: 14px; background: #f6f7f9; gap: 14px; }
.view--studio #params>.group:has([data-param])>.group__title { display: none; }
.view--studio .field { gap: 8px; margin: 0; }
.view--studio .field__label { font-size: 12px; font-weight: 500; color: #627086; letter-spacing: 0; text-transform: none; }
.view--studio .chips { gap: 6px; flex-wrap: wrap; }
.view--studio .chip { background: #f1f3f6; border: 1px solid #e0e4eb; color: #627086; font-size: 11px; border-radius: 7px; padding: 6px 10px; min-height: 30px; box-shadow: none; }
.view--studio .chip:hover { background: #e9edf3; border-color: #e0e4eb; }
.view--studio .chip.is-active { color: #263142; background: #f1f3f5; border-color: #e0e4eb; font-weight: 600; box-shadow: none; }
.view--studio .rm-ratio-extra { font-size: 10px; color: #738096; margin-top: 8px; }
.view--studio .rm-ratio-extra[open]>summary { margin-bottom: 8px; }
.view--studio .row__label { font-size: 12px; color: #627086; font-weight: 500; }
.view--studio .row__sub { font-size: 10px; color: #738096; line-height: 1.55; }
.view--studio .stepper { background: #f1f3f6; border: 1px solid #e0e4eb; border-radius: 8px; }
.view--studio .stepper button { background: transparent; border: 0; color: #263142; width: 32px; height: 32px; }
.view--studio .stepper__value { min-width: 30px; font-size: 12px; color: #263142; }
.view--studio .badge { background: #f0f3f8; color: #627086; border-color: #e0e4eb; font-size: 10px; }
.view--studio .rm-advanced { background: #f6f7f9; border: 1px solid #e0e4eb; border-radius: 14px; padding: 13px 14px; color: #627086; font-size: 12px; }
.view--studio .rm-advanced>summary { display: flex; justify-content: space-between; align-items: center; }
.view--studio .rm-advanced>summary:after { content: '\e136'; font-family: Phosphor; color: #738096; }
.view--studio .rm-advanced[open]>summary { margin-bottom: 18px; }
.view--studio .rm-advanced .group { padding: 0; border: 0; background: transparent; margin: 16px 0; gap: 12px; }
.view--studio .group__title { font-size: 12px; color: #627086; text-transform: none; letter-spacing: 0; }
.view--studio .rm-advanced>.field,.view--studio .rm-advanced>.row { margin-bottom: 16px; }
.view--studio .input:not(#prompt) { background: #ffffff; color: #263142; border-color: #e0e4eb; box-shadow: none; border-radius: 8px; font-size: 12px; }
.view--studio .panel__foot { position: static; margin: 0; padding: 0 4px; background: transparent; }
.view--studio #btn-request { font-size: 10px; color: #738096; border: 0; background: transparent; padding: 6px; justify-content: flex-start; }
.view--studio .oa-editor-foot { background: #ffffff; border-top: 1px solid #e0e4eb; padding: 13px 14px 9px; flex-shrink: 0; }
.view--studio .rm-create { display: flex; gap: 12px; align-items: center; }
.view--studio .estimate { padding: 0; border: 0; background: transparent; min-width: 88px; max-width: 140px; display: flex; flex-direction: column; gap: 2px; }
.view--studio .estimate__value { font-size: 14px; color: #263142; font-weight: 650; }
.view--studio .estimate__note { color: #738096; font-size: 9px; overflow-wrap: anywhere; }
.view--studio #btn-generate { flex: 1; min-height: 44px; background: #ff790a; border: 1px solid #efb689; border-radius: 12px; color: #263142; box-shadow: none; font-size: 14px; font-weight: 700; white-space: nowrap; }
.view--studio #btn-generate:before { content: '\e6a2'; font-family: Phosphor; font-size: 19px; margin-right: 8px; font-weight: 400; }
.view--studio #btn-generate:hover { background: #ed6c00; border-color: #e0e4eb; }
.view--studio .oa-shortcut { display: block; text-align: center; font-size: 10px; color: #738096; margin-top: 8px; }
.view--studio .studio__main { display: flex; flex-direction: column; overflow-y: auto; padding: 16px; gap: 14px; scrollbar-width: thin; }
.view--studio .canvas { border: 0; background: transparent; border-radius: 0; box-shadow: none; min-height: 250px; overflow: visible; flex: 1 0 auto; order: 2; }
.view--studio .canvas__head { background: transparent; border: 0; padding: 0 0 17px; margin: 0; gap: 12px; flex-wrap: wrap; }
.view--studio .canvas__title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.view--studio .canvas__title h2 { margin: 0; font-size: 16px; font-weight: 650; letter-spacing: -.02em; }
.view--studio .rm-work-count { color: #738096; font-size: 11px; background: #edf0f4; padding: 2px 7px; border-radius: 5px; }
.view--studio #canvas-sub { display: none; }
.view--studio #live-note { margin: 0; color: #738096; background: #f4f6f8; border: 1px solid #e0e4eb; font-size: 10px; border-radius: 6px; padding: 3px 7px; }
.view--studio .canvas__tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.view--studio .rm-filter select { width: auto; height: 32px; background: #f1f3f5; color: #263142; border: 1px solid #e0e4eb; border-radius: 20px; padding: 5px 25px 5px 12px; font-size: 11px; font-weight: 600; }
.view--studio .rm-gallery-menu,.view--studio .rm-job-history { position: relative; }
.view--studio .rm-gallery-menu summary,.view--studio .rm-job-history>summary { list-style: none; cursor: pointer; border: 1px solid #e0e4eb; background: #ffffff; border-radius: 8px; padding: 6px 10px; font-size: 11px; color: #627086; }
.view--studio .rm-gallery-menu summary { font-size: 18px; padding: 6px; }
.view--studio .rm-gallery-menu[open]>button { position: absolute; right: 0; top: 40px; z-index: 15; background: #ffffff; border: 1px solid #e0e4eb; color: #263142; white-space: nowrap; }
.view--studio .results { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; padding: 0; overflow: visible; flex: none; }
.view--studio .rm-work { border: 1px solid #e0e4eb; border-radius: 12px; background: #ffffff; box-shadow: none; overflow: visible; min-width: 0; align-self: start; }
.view--studio .rm-work .card__media { aspect-ratio: 1.5!important; background: #f2f4f7; border-radius: 11px 11px 0 0; overflow: hidden; }
.view--studio .rm-work .card__media img,.view--studio .rm-work .card__media video { width: 100%; height: 100%; object-fit: contain; }
.card__media--filled img { cursor: zoom-in; }
.card__media--filled :is(img,video) { object-fit: contain; }
.card__media--filled > :is(img,video) ~ :is(img,video) { display: none; }
.card__media--filled>.work-open { display: block; position: absolute; top: 8px; right: 8px; z-index: 2; border: 1px solid #e0e4eb; border-radius: 7px; padding: 5px 9px; background: #ffffffed; color: #263142; font: inherit; font-size: 11px; cursor: pointer; box-shadow: 0 2px 8px #17273a14; }
.work-open:focus-visible { outline: 2px solid #ff790a; outline-offset: 2px; }
.work-viewer { box-sizing: border-box; width: min(1180px,calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 1px solid #e0e4eb; border-radius: 16px; background: #fff; color: #263142; color-scheme: light; overflow: auto; }
.work-viewer::backdrop { background: #14203399; }
.work-viewer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #e0e4eb; }
.work-viewer__head h2 { font-size: 16px; margin: 0; }
.work-viewer .btn { background: #f5f6f8; color: #263142; border: 1px solid #e0e4eb; }
.work-viewer__stage { display: flex; justify-content: center; align-items: center; height: min(70dvh,800px); min-height: 120px; padding: 12px; background: #f2f4f7; }
.work-viewer__stage :is(img,video) { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.work-viewer__stage audio { width: min(100%,600px); }
.work-viewer__foot,.work-viewer__navigation,.work-viewer__downloads { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.work-viewer__foot { justify-content: space-between; padding: 12px 16px; }
.work-viewer__count { font-size: 12px; color: #627086; }
.work-viewer__details { padding: 0 16px 14px; font-size: 12px; overflow-wrap: anywhere; }
.work-viewer__details summary { cursor: pointer; color: #627086; }
.work-viewer__details p { white-space: pre-wrap; line-height: 1.6; }
@media(max-width:760px) {
  .work-viewer { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 12px; }
  .work-viewer__stage { height: 58dvh; padding: 8px; }
  .work-viewer__head,.work-viewer__foot { padding: 10px 12px; }
}
.view--studio .rm-work .card__body { padding: 11px 30px 12px 12px; position: relative; gap: 7px; }
.view--studio .rm-work .card__prompt { color: #263142; font-size: 12px; line-height: 1.4; font-weight: 500; margin: 0; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; display: block; }
.view--studio .rm-work-caption { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 10px; color: #738096; justify-content: space-between; }
.view--studio .rm-work-caption>span:first-child { min-width: 0; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.view--studio .rm-work[hidden] { display: none; }
.view--studio .rm-work-menu { position: absolute; right: 7px; top: 8px; }
.view--studio .rm-work-menu summary { list-style: none; cursor: pointer; padding: 3px; font-size: 20px; color: #627086; }
.view--studio .rm-work-actions { position: absolute; right: 0; bottom: 30px; width: 265px; max-height: 60vh; overflow-y: auto; background: #ffffff; color: #263142; border: 1px solid #e0e4eb; border-radius: 12px; padding: 13px; box-shadow: 0 8px 24px #17273a18; z-index: 15; display: flex; flex-direction: column; gap: 10px; }
.view--studio .rm-work-actions .btn { background: #f3f5f8; color: #263142; border-color: #e0e4eb; }
.view--studio .rm-work-actions .card__meta { flex-wrap: wrap; }
.view--studio .empty { background: #fbfcfd; border: 1px dashed #e0e4eb; border-radius: 14px; min-height: 360px; padding: 24px; gap: 12px; }
.view--studio .empty>.ph { font-size: 36px; color: #d26a20; }
.view--studio .empty h2 { font-size: 20px; color: #263142; }
.view--studio .empty p { color: #738096; font-size: 13px; }
.view--studio .generation-monitor { order: 0; position: static; background: #fafbfc; border: 1px solid #e0e4eb; border-radius: 12px; padding: 12px; box-shadow: none; }
.view--studio .gm-status { color: #263142; }
.view--studio .gm-clocks small,.view--studio .gm-count { color: #738096; }
.view--studio .gm-head select { background: #f1f3f7; color: #263142; border-color: #e0e4eb; }
.view--studio .gm-panel>button { background: #ffffff; color: #263142; border: 0; font-size: 11px; }
.view--studio .rm-job-history .generation-monitor { position: absolute; right: 0; top: 38px; width: 470px; max-width: calc(100vw - 100px); z-index: 15; }
body:has(.app[data-current-view="studio"]:not([hidden])) :is(.modal,.gm-dialog) { --text: #1b2432; --muted: #667286; --dim: #737f91; --line: #e0e4eb; --line-soft: #edf0f4; --panel: #ffffff; --panel-2: #f5f6f8; --accent: #ff790a; --grad: #ff790a; color: #263142; color-scheme: light; }
body:has(.app[data-current-view="studio"]:not([hidden])) :is(.modal__box,.gm-dialog) { background: #ffffff; color: #263142; border-color: #e0e4eb; }
body:has(.app[data-current-view="studio"]:not([hidden])) :is(.modal__head,.modal__filters,.modal__foot) { background: #ffffff; border-color: #e0e4eb; }
body:has(.app[data-current-view="studio"]:not([hidden])) .modal :is(.input,.pick,.chip) { background: #ffffff; color: #263142; border-color: #e0e4eb; }
@media(max-width:1350px) {
  .app[data-current-view="studio"] { grid-template-columns: 220px minmax(0,1fr); }
  .app[data-current-view="studio"] .view--studio { grid-template-columns: 420px minmax(0,1fr); }
  .view--studio .results { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:1000px) {
  .app[data-current-view="studio"] { grid-template-columns: 72px minmax(0,1fr); }
  .app[data-current-view="studio"] .topbar { margin: 8px 0 8px 8px; padding: 0 4px 10px; border-radius: 14px; }
  .app[data-current-view="studio"] .topbar__brand { justify-content: center; padding: 0; }
  .app[data-current-view="studio"] .ws-brand strong { display: none; }
  .app[data-current-view="studio"] .navbtn { flex-direction: column; justify-content: center; gap: 5px; padding: 9px 0; font-size: 8px; }
  .app[data-current-view="studio"] .ws-nav-group { margin-top: 10px; padding: 0; border: 0; }
  .app[data-current-view="studio"] .ws-nav-group h2 { display: none; }
  .app[data-current-view="studio"] .topbar__tagline { padding: 10px 0; font-size: 9px; text-align: center; }
  .app[data-current-view="studio"] .view--studio { grid-template-columns: 380px minmax(0,1fr); }
  .view--studio .results { grid-template-columns: minmax(0,1fr); }
  .view--studio .canvas__tools { margin-left: 0; }
}
@media(max-width:760px) {
  .app[data-current-view="studio"] { grid-template-columns: 58px minmax(0,1fr); grid-template-rows: 52px minmax(0,1fr); height: 100dvh; }
  .app[data-current-view="studio"] .topbar { margin: 5px 0 5px 5px; padding: 0 3px 10px; }
  .app[data-current-view="studio"] .topbar__brand { height: 48px; margin: 0 0 6px; }
  .app[data-current-view="studio"] .ws-brand img { width: 32px; height: 32px; }
  .app[data-current-view="studio"] .utilitybar { padding: 0 12px; }
  .app[data-current-view="studio"] .rm-breadcrumb { font-size: 11px; gap: 6px; }
  .app[data-current-view="studio"] .view--studio { display: flex; flex-direction: column; overflow-y: auto; padding: 0 8px 12px; gap: 10px; }
  .view--studio .oa-editor { overflow: visible; flex-shrink: 0; }
  .view--studio .oa-editor-scroll { overflow: visible; padding: 10px; }
  .view--studio .studio__main { display: flex; overflow: visible; padding: 12px; flex: 0 0 auto; }
  .view--studio .modeswitch { padding: 0; gap: 5px; }
  .view--studio .modeswitch__btn { padding: 7px 3px; font-size: 11px; gap: 5px; }
  .view--studio .rm-heading { gap: 8px; padding: 10px; min-height: 60px; }
  .view--studio .rm-heading h1 { font-size: 14px; }
  .view--studio .rm-heading>.ph { font-size: 21px; padding: 6px; }
  .view--studio .modelpick { padding: 11px; }
  .view--studio .modelpick__name { font-size: 12px; }
  .view--studio .studio__composer { padding: 11px; }
  .view--studio .prompt #prompt { min-height: 130px; height: 130px; font-size: 12px; padding: 10px; }
  .view--studio .prompt>.field__head label { font-size: 12px; }
  .view--studio #prompt-count { font-size: 9px; }
  .view--studio .rm-composer-tools { gap: 10px; }
  .view--studio .rm-composer-tools .btn { font-size: 10px; }
  .view--studio .rm-prompt-popover { max-height: 45vh; }
  .view--studio .rm-panel-heading { display: block; }
  .view--studio .rm-panel-heading h2 { display: none; }
  .view--studio #rm-panel-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; background: #f6f7f9; border: 1px solid #e0e4eb; color: #263142; padding: 11px 12px; border-radius: 10px; font-size: 12px; }
  .view--studio .panel:not(.is-open)>:not(.rm-panel-heading) { display: none!important; }
  .view--studio .panel.is-open #rm-panel-toggle .ph { transform: rotate(180deg); }
  .view--studio .oa-editor-foot { padding: 12px; border-radius: 0 0 18px 18px; }
  .view--studio .estimate { min-width: 64px; max-width: 100px; }
  .view--studio #btn-generate { font-size: 12px; padding: 10px; min-height: 42px; }
  .view--studio .canvas__title h2 { font-size: 15px; }
  .view--studio .canvas__tools { margin-left: auto; }
  .view--studio .rm-work .card__media { aspect-ratio: 1.4!important; }
  .view--studio .rm-work-actions { width: min(265px,calc(100vw - 105px)); }
  .view--studio .empty { min-height: 220px; padding: 18px; }
  .view--studio .empty h2 { font-size: 17px; }
}
@media(prefers-reduced-motion:reduce) { .view--studio * { scroll-behavior: auto; } }

/* Brand accents follow the FYBRI bird; white and warm neutrals remain dominant. */
.app[data-current-view="studio"] .navbtn.is-active { color: #bb580b; border-color: #f4c298; }
.app[data-current-view="studio"] .navbtn.is-active .ph { color: #df6b12; }
.view--studio .profile__btn.is-active { color: #a74d08; border-color: #eeb580; }
.view--studio .chip.is-active { background: #fff1e4; border-color: #eeae76; color: #a14b0b; }
.view--studio #btn-generate { color: #fff; border-color: #ff790a; }
.view--studio #btn-generate:hover { border-color: #ed6c00; }
.view--studio .modeswitch__btn.is-active { color: #222b39; box-shadow: 0 2px 6px #2334500c; }
.view--studio .rm-heading>.ph { color: #db6b15; }
.view--studio .prompt #prompt:focus { border-color: #df944f; box-shadow: 0 0 0 2px #efb78324; }
.view--studio .profile__btn b { color: inherit; }
.view--studio #oa-reference-slot { order: 1; }
.view--studio .prompt>.field__head { order: 0; }
.view--studio .studio__composer:has(#prompt-field[hidden]) { display: none; }
.view--studio .ttsmodel { border-radius: 10px; }
.view--studio .ttsmodel small { color: #657287; }
.view--studio .ttsmodel.is-active { border: 1px solid #e9b486; background: #fff6ee; box-shadow: none; }
.view--studio .pe-selected,.view--studio .pe-suggest { order: 3; }
@media(min-width:761px) {
  .view--studio .prompt #prompt { min-height: 104px; height: 104px; }
  .view--studio .modelpick { min-height: 58px; padding: 9px 13px; }
  .view--studio .rm-profile-block { padding: 10px 13px; }
  .view--studio .rm-profile-block h3 { margin-bottom: 6px; }
  .view--studio .profile__btn { padding: 6px 5px; }
  .view--studio .studio__composer { padding: 12px; }
  .view--studio #params>.group { padding: 11px 13px; gap: 10px; }
  .view--studio .row[data-param="n"] .row__sub { display: none; }
  .view--studio #params>.group:has([data-param="aspect_ratio"]) { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .view--studio #params>.group [data-param="n"] { grid-column: 1/-1; }
}
