/* Compact selectors. Canonical native inputs and existing choice hooks are retained. */
.model-workbench .model-picker-field { min-width: 0; align-self: start; grid-column: 1; }
.model-workbench .model-picker { min-width: 0; border: 1px solid #cbd5cc; border-radius: 6px; background: #fff; }
.model-picker-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto 16px; align-items: center; gap: 12px; min-height: 44px; padding: 10px 12px; list-style: none; cursor: pointer; }
.model-picker-summary::-webkit-details-marker { display: none; }
.model-picker-label, .model-picker-price { color: #536359; font-size: 12px; line-height: 1.5; }
.model-picker-label { display: block; margin-bottom: 6px; }
.model-picker-name { min-width: 0; color: #263c30; font-size: 14px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.model-picker-price { white-space: nowrap; font-variant-numeric: tabular-nums; }
.model-picker-chevron { width: 14px; color: #536359; font-size: 16px; line-height: 1; text-align: center; transition: transform .15s; }
.model-picker[open] > .model-picker-summary { border-bottom: 1px solid #e0e6e0; }
.model-picker[open] .model-picker-chevron { transform: rotate(180deg); }
.model-picker-summary:focus-visible, .model-picker button:focus-visible, .model-search input:focus-visible, .design-task-select:focus-visible, .task-segments .design-task:focus-visible { outline: 2px solid #2d7957; outline-offset: 2px; }
.model-picker-panel { min-width: 0; max-height: min(420px, 60dvh); padding: 10px; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-color: #acb9ae transparent; }
.model-search { position: sticky; top: -10px; z-index: 1; display: block; margin: -1px 0 8px; padding-top: 1px; background: #fff; }
.model-search-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.model-search input { display: block; box-sizing: border-box; width: 100%; min-height: 44px; margin: 0; padding: 9px 11px; border: 1px solid #cbd5cc; border-radius: 5px; background: #fafcf9; color: #263c30; font: inherit; font-size: 14px; line-height: 1.5; }
.model-search input::placeholder { color: #657169; }
.model-list-heading { margin: 12px 8px 6px; color: #66736b; font-size: 12px; line-height: 1.5; font-weight: 400; }
.model-picker .model-cards { display: flex; flex-direction: column; grid-auto-flow: unset; grid-auto-columns: unset; grid-template-columns: none; gap: 0; padding: 0; overflow: visible; scroll-snap-type: none; }
.model-picker .model-cards:empty { min-height: 0; background: transparent; }
.model-picker .model-card { display: grid; flex: initial; grid-template-columns: minmax(0, 1fr) 9.5em 16px; align-items: center; min-width: 0; width: 100%; min-height: 58px; padding: 9px 8px; gap: 3px 10px; border: 0; border-bottom: 1px solid #edf0eb; border-radius: 0; background: #fff; color: #263c30; font-size: 12px; box-shadow: none; scroll-snap-align: none; }
.model-picker .model-card:last-child { border-bottom: 0; }
.model-picker .model-card:hover:not(:disabled) { background: #f3f6f1; }
.model-picker .model-card[aria-pressed=true] { background: #edf4eb; box-shadow: none; }
.model-picker .model-card-mark { display: none; }
.model-picker .model-card-copy { grid-column: 1; grid-row: 1; min-width: 0; }
.model-picker .model-card-name { padding: 0; color: inherit; font-size: 14px; line-height: 1.5; font-weight: 500; overflow-wrap: anywhere; }
.model-picker .model-card-description { margin-top: 1px; color: #627067; font-size: 12px; line-height: 1.5; white-space: normal; overflow: visible; text-overflow: unset; overflow-wrap: anywhere; }
.model-picker .model-card-price { grid-column: 2; grid-row: 1; margin: 0; color: #536359; font-size: 12px; line-height: 1.5; text-align: right; white-space: nowrap; }
.model-picker .model-card-check { position: static; grid-column: 3; grid-row: 1; display: block; visibility: hidden; width: 16px; height: auto; border-radius: 0; background: transparent; color: #216447; font-size: 14px; line-height: 1.5; text-align: center; }
.model-picker .model-card[aria-pressed=true] .model-card-check { visibility: visible; }
.model-picker .model-card:disabled { opacity: .6; }
.unavailable-model-list { display: flex; flex-direction: column; }
.unavailable-model-row { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-height: 58px; padding: 9px 8px; border: 0; border-bottom: 1px solid #edf0eb; border-radius: 0; background: #fff; text-align: left; color: #6b756f; cursor: not-allowed; opacity: 1; }
.unavailable-model-name { font-size: 14px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.unavailable-model-reason, .model-search-status { color: #66736b; font-size: 12px; line-height: 1.5; }
.unavailable-model-reason { overflow-wrap: anywhere; }
.model-search-status { margin: 12px 8px; }
.model-picker [hidden], .task-selector[hidden], .selected-task-hint [hidden], .model-pixel-details[hidden] { display: none !important; }
.model-workbench .model-output-row { display: flex; flex-direction: row; align-items: flex-start; min-width: 0; align-self: start; gap: 12px; }
.model-workbench .resolution-field { display: block; flex: 1; min-width: 0; }
.model-workbench .resolution-field .setting-label, .model-workbench .model-count { display: block; color: #536359; font-size: 12px; line-height: 1.5; }
.model-workbench .resolution-field .setting-label { margin: 0 0 6px; }
.model-workbench .resolution-choices { display: flex; flex-wrap: wrap; align-items: stretch; gap: 6px; margin: 0; }
.model-workbench .resolution-card { flex: 1; flex-direction: row; justify-content: center; min-width: 0; min-height: 46px; padding: 7px 10px; gap: 6px; }
.model-workbench .resolution-card-label { font-size: 14px; font-weight: 500; }
.model-workbench .resolution-card-price { color: #627067; font-size: 12px; }
.model-workbench .model-count { flex: 0 0 72px; }
.model-workbench .model-count .select-wrap { width: 100%; margin: 6px 0 0; }
.model-workbench .model-count select { height: 46px; min-height: 46px; font-size: 14px; }
.model-workbench .model-count .select-wrap svg { top: 50%; right: 9px; transform: translateY(-50%) rotate(90deg); }
.model-workbench .model-feedback .model-selection-status { font-size: 12px; }
.model-pixel-details { color: #627067; font-size: 12px; line-height: 1.5; }
.model-pixel-summary { padding-block: 4px; cursor: pointer; }
.model-pixel-details p { margin: 4px 0 0; }
.model-workbench-heading .model-pixel-details { margin-left: auto; max-width: 65%; text-align: right; }
.model-workbench-heading .model-pixel-summary { padding-block: 0; }
.model-workbench-heading > .model-selection-status { margin: 0 0 0 auto; color: #627067; font-size: 12px; line-height: 1.5; text-align: right; }
.task-grid.task-selector { display: block; margin-bottom: 0; }
.design-task-select { display: block; box-sizing: border-box; width: 100%; min-height: 44px; padding: 10px 32px 10px 12px; border: 1px solid #cbd5cc; border-radius: 5px; background-color: #fff; color: #263c30; font: inherit; font-size: 14px; line-height: 1.5; }
.task-grid.task-segments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin-bottom: 0; padding: 3px; border-radius: 6px; background: #edf1e8; }
.task-segments .design-task { min-height: 44px; padding: 9px 10px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: #536359; text-align: center; }
.task-segments .design-task strong { font-size: 14px; font-weight: 500; }
.task-segments .design-task[aria-pressed=true] { border-color: #cbd5cc; background: #fff; color: #254e37; }
.selected-task-hint { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: 8px 0 12px; color: #627067; font-size: 12px; line-height: 1.5; }
.task-image-required { flex-shrink: 0; color: #80522c; font-weight: 500; }
.selected-task-description { min-width: 0; }
.workspace-capability-warning { margin: 0 0 14px; color: #89502d; font-size: 12px; line-height: 1.6; }
.workspace-capability-warning[hidden], .ratio-options label[hidden] { display: none !important; }
.general-modes button:disabled, .generation-modes button:disabled { cursor: not-allowed; color: #718077; opacity: .7; }
.drop-zone[aria-disabled=true] { cursor: not-allowed; opacity: .7; }
@media (min-width: 821px) {
  .model-workbench:has(.model-picker[open]) { position: relative; z-index: 10; }
  .model-workbench .model-picker { position: relative; }
  .model-picker[open] > .model-picker-summary { border-bottom: 0; }
  .model-picker-panel { position: absolute; z-index: 1; top: calc(100% + 6px); left: -1px; right: -1px; max-height: min(420px, var(--model-panel-space, 60dvh)); border: 1px solid #cbd5cc; border-radius: 6px; background: #fff; box-shadow: 0 8px 24px #263c3020; }
  .model-picker[data-placement=above] > .model-picker-panel { top: auto; bottom: calc(100% + 6px); }
}
@media (min-width: 1280px) {
  .model-workbench:has(.model-picker) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .model-workbench .model-output-row { border-left: 0; padding-left: 0; }
  .model-workbench .model-picker-summary { padding-block: 10px; }
  .selected-task-hint { margin-block: 6px 8px; }
}
@media (max-width: 820px) {
  .model-search input, .design-task-select, .model-workbench .model-count select { font-size: 16px; }
}
@media (max-width: 560px) {
  .model-picker-summary { gap: 8px; padding-inline: 10px; }
  .model-picker-panel { padding: 8px; }
  .model-picker .model-card { grid-template-columns: minmax(0, 1fr) 8.5em 16px; gap: 3px 8px; padding-inline: 6px; }
  .model-workbench .resolution-card { flex-direction: column; min-height: 54px; gap: 2px; padding: 6px 8px; }
  .model-workbench .model-count { flex-basis: 64px; }
  .model-workbench .model-count select { height: 54px; min-height: 54px; }
}
@media (prefers-reduced-motion: reduce) { .model-picker-chevron { transition: none; } }
