[data-scene-trigger] {
  position: relative;
  display: block;
  width: 100%;
  height: 128px;
  min-height: 128px;
  overflow: hidden;
  padding: 0;
  isolation: isolate;
  border: 1px solid var(--sc-color-border);
  border-radius: var(--sc-radius-lg);
  background: var(--sc-color-surface-muted);
  color: var(--sc-color-ink);
  font: inherit;
  text-align: start;
  cursor: pointer;
}
[data-scene-trigger]::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, var(--sc-color-overlay), transparent 85%);
}
[data-scene-trigger] [data-scene-banner-image] {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}
[data-scene-trigger] .sc-scene-label {
  position: absolute;
  left: var(--sc-space-4);
  right: var(--sc-space-4);
  bottom: var(--sc-space-4);
  display: flex;
  align-items: center;
  gap: var(--sc-space-2);
  color: var(--sc-color-on-brand);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
[data-scene-trigger] .sc-scene-label svg { flex: 0 0 auto; width: 20px; height: 20px; }
[data-scene-trigger] .sc-scene-change {
  position: absolute;
  top: var(--sc-space-3);
  right: var(--sc-space-3);
  display: inline-flex;
  align-items: center;
  gap: var(--sc-space-1);
  max-width: calc(100% - var(--sc-space-6));
  padding: var(--sc-space-1) var(--sc-space-2);
  border: 1px solid var(--sc-color-border-strong);
  border-radius: var(--sc-radius-pill);
  background: var(--sc-color-overlay);
  color: var(--sc-color-on-brand);
  font-size: 0.75rem;
  line-height: 1.5;
  font-weight: 500;
}
[data-scene-trigger] .sc-scene-change svg { flex: 0 0 auto; width: 14px; height: 14px; }
[data-scene-trigger]:disabled { cursor: wait; opacity: .6; }
[data-scene-picker] {
  position: fixed;
  inset: auto 0 0;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  height: 90vh;
  height: 90dvh;
  max-height: 90dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--sc-color-border);
  border-bottom: 0;
  border-radius: var(--sc-radius-xl) var(--sc-radius-xl) 0 0;
  background: var(--sc-color-surface);
  color: var(--sc-color-ink);
  font-family: var(--sc-font-sans);
  box-shadow: var(--sc-shadow-lg);
}
[data-scene-picker][open] { display: flex; flex-direction: column; }
[data-scene-picker][hidden] { display: none; }
[data-scene-picker]::backdrop { background: var(--sc-color-overlay); }
.sc-scene-header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: var(--sc-space-2);
  padding: var(--sc-space-3) var(--sc-space-4) 0;
  border-bottom: 1px solid var(--sc-color-border);
}
.sc-scene-tabs { display: flex; min-width: 0; gap: var(--sc-space-4); align-self: stretch; }
.sc-scene-tab {
  position: relative;
  min-height: 48px;
  min-width: 44px;
  padding: var(--sc-space-3) 0;
  border: 0;
  background: transparent;
  color: var(--sc-color-muted);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.sc-scene-tab[aria-selected="true"] { color: var(--sc-color-ink); }
.sc-scene-tab[aria-selected="true"]::after { content: ''; position: absolute; inset: auto 0 -1px; height: 2px; background: var(--sc-color-brand-500); }
.sc-scene-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin-bottom: var(--sc-space-2);
  padding: var(--sc-space-3);
  border: 0;
  border-radius: var(--sc-radius-pill);
  background: transparent;
  color: var(--sc-color-muted);
  cursor: pointer;
}
.sc-scene-icon { display: inline-flex; width: 28px; height: 28px; }
.sc-scene-icon svg { width: 100%; height: 100%; }
.sc-scene-close .sc-scene-icon { width: 20px; height: 20px; }
.sc-scene-content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: var(--sc-space-6) var(--sc-space-4) max(var(--sc-space-6), env(safe-area-inset-bottom)); }
.sc-scene-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; gap: var(--sc-space-6) var(--sc-space-3); }
.sc-scene-grid[hidden] { display: none; }
.sc-scene-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: var(--sc-space-2);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--sc-radius-sm);
  background: transparent;
  color: var(--sc-color-text);
  font: inherit;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}
[data-scene-picker] .sc-scene-card::before { content: none; display: none; }
.sc-scene-card-art {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border: 1px solid var(--sc-color-border);
  border-radius: var(--sc-radius-lg);
  background: var(--sc-color-surface-muted);
  color: var(--sc-color-ink);
}
.sc-scene-card[aria-pressed="true"] .sc-scene-card-art { border: 2px solid var(--sc-color-brand-500); background: var(--sc-color-selected); }
.sc-scene-card-label { display: block; width: 100%; font-size: 0.75rem; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.sc-scene-card:disabled { cursor: wait; opacity: .5; }
.sc-scene-close:hover, .sc-scene-tab:hover { color: var(--sc-color-ink); }
.sc-scene-card:hover .sc-scene-card-art { background: var(--sc-color-control-hover); }
[data-scene-trigger]:focus-visible, .sc-scene-card:focus-visible, .sc-scene-close:focus-visible, .sc-scene-tab:focus-visible { outline: 2px solid var(--sc-color-focus); outline-offset: 3px; }
@media (max-width: 359px) {
  .sc-scene-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sc-scene-tabs { gap: var(--sc-space-3); }
  .sc-scene-tab { font-size: 0.875rem; }
}
@media (min-width: 768px) { [data-scene-trigger] { display: none; } }
