/* Scene art changes independently of the city that supplies time and weather. */
.scene-sheet { width: 860px; overflow: hidden; }
.scene-sheet[open] {
  display: flex; flex-direction: column;
  height: min(730px,calc(100svh - 48px)); max-height: calc(100svh - 48px);
}
.scene-sheet .sheet-header { flex: 0 0 auto; margin-bottom: 15px; }
.scene-view-options {
  display: grid; grid-template-columns: 1fr 1fr; flex: 0 0 auto;
  gap: 4px; padding: 4px; margin-bottom: 18px;
  border: 1px solid #d9e4df1c; border-radius: 12px; background: #081f294d;
}
.scene-view-options button {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 38px; padding: 0 14px; border: 1px solid transparent;
  border-radius: 8px; color: #cbd9d3; font-size: 12px;
  transition: color .2s,background .2s,border-color .2s;
}
.scene-view-options button .icon { width: 16px; height: 16px; }
.scene-view-options button:hover { background: #d5c9ac0e; color: #f0e5cd; }
.scene-view-options button[aria-pressed="true"] {
  color: #243e47; background: #ead8b4; border-color: #ead8b4; font-weight: 600;
  box-shadow: 0 2px 8px #04182324;
}
.scene-render-status { flex: 0 0 auto; margin: -8px 0 14px; color: #e0cba5; font-size: 10px; line-height: 1.5; }
.scene-render-status[hidden],.scene-view-badge[hidden] { display: none; }
.theme-button .footer-eyebrow { position: relative; width: max-content; }
.scene-view-badge {
  position: absolute; left: calc(100% + 5px); top: 1px;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 16px; height: 11px; padding: 0 3px; border-radius: 3px;
  color: #eddfbd; background: #d8ca9f1f; border: 1px solid #e6d0a82e;
  font-size: 7px; line-height: 1; font-weight: 600; letter-spacing: 0;
}
.scene-weather-controls { flex: 0 0 auto; margin-bottom: 18px; }
.scene-section-label { display: block; margin: 0 0 9px; color: #d5ded6b8; font-size: 10px; }
.scene-city-heading { margin: 0 0 12px; color: #d5ded6b8; font-size: 11px; flex: 0 0 auto; }
.scene-city-heading[hidden] { display: none; }
.weather-preview-bar { display: flex; flex-wrap: wrap; gap: 6px; }
.weather-preview-bar button {
  flex: 1 0 auto; min-height: 36px; padding: 0 12px;
  border: 1px solid #d6e0d224; border-radius: 9px;
  font-size: 11px; color: #d1dbd2; background: #0b23344d;
  transition: background .2s,border-color .2s,color .2s;
}
.weather-preview-bar button:hover { border-color: #dac6a772; background: #d5c9ac12; }
.weather-preview-bar button[aria-pressed="true"] {
  color: #223b44; background: #ebd9b4; border-color: #ebd9b4; font-weight: 600;
}
.scene-grid {
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 13px; align-content: start; grid-auto-rows: max-content;
  flex: 1 1 auto; min-height: 100px;
  margin: 0 -3px; padding: 3px; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: #6a7a76 transparent;
}
.scene-card {
  display: block; position: relative; min-width: 0; padding: 0;
  text-align: left; border: 1px solid #e1e7d51c; border-radius: 13px;
  overflow: hidden; background: #ffffff06;
  transition: border-color .2s,background .2s,box-shadow .2s;
}
.scene-card:hover { border-color: #d6d6b65c; background: #ffffff0a; }
.scene-card[aria-pressed="true"] {
  border-color: #ead2a5; box-shadow: 0 0 0 1px #ead2a53d; background: #d8c5a010;
}
.scene-theme-art {
  display: block; height: 130px; overflow: hidden; position: relative;
  background: linear-gradient(160deg,#365970,#a7aaa1);
}
.scene-theme-art > svg { width: 100%; height: 100%; display: block; }
.scene-sheet[data-view="3d"] .scene-theme-art {
  background: radial-gradient(ellipse at 50% 30%,#75929361,transparent 75%),linear-gradient(155deg,#24495a,#48666c);
}
.scene-sheet[data-view="3d"] .scene-theme-copy small { letter-spacing: .02em; }
.scene-theme-art * { animation: none !important; }
.scene-theme-copy { display: block; padding: 13px 37px 13px 13px; min-height: 62px; }
.scene-theme-copy strong { display: block; font-size: 12px; line-height: 1.4; font-weight: 500; color: #f1ebd9; }
.scene-theme-copy small { display: block; margin-top: 4px; font-size: 9px; line-height: 1.5; color: #c6d5c8a6; }
.scene-selected {
  position: absolute; bottom: 20px; right: 13px; display: inline-flex;
  width: 15px; height: 15px; color: #efd5a6; opacity: 0;
}
.scene-selected .icon { width: 15px; height: 15px; }
.scene-card[aria-pressed="true"] .scene-selected { opacity: 1; }
.scene-picker-footer { flex: 0 0 auto; padding-top: 13px; }
.scene-picker-footer .inline-button { min-height: 34px; }
.scene-picker-footer .inline-button > span:last-child .icon { width: 11px; height: 11px; opacity: .6; }
.scene-picker-footer p { margin: 5px 0 0; color: #bdcec19c; font-size: 10px; line-height: 1.5; }
.scene-card:focus-visible,.weather-preview-bar button:focus-visible,.scene-view-options button:focus-visible { outline: 2px solid #f0d8a6; outline-offset: 2px; }

@media (max-width: 720px) {
  .scene-sheet[open] { height: min(730px,calc(100svh - 36px)); max-height: calc(100svh - 36px); }
  .scene-sheet .sheet-header { margin-bottom: 13px; }
  .scene-view-options { margin-bottom: 14px; }
  .scene-view-options button { min-height: 36px; font-size: 11px; gap: 7px; }
  .scene-view-badge { top: 0; height: 10px; min-width: 15px; font-size: 6px; }
  .scene-weather-controls { margin-bottom: 13px; }
  .scene-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .scene-theme-art { height: 100px; }
  .scene-theme-copy { padding: 11px 27px 11px 10px; min-height: 62px; }
  .scene-theme-copy strong { font-size: 11px; }
  .scene-theme-copy small { font-size: 9px; }
  .scene-selected { right: 9px; bottom: 20px; width: 12px; height: 12px; }
  .scene-selected .icon { width: 12px; height: 12px; }
  .weather-preview-bar { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 5px; }
  .weather-preview-bar button { min-height: 34px; padding: 0 6px; font-size: 10px; }
  .weather-preview-bar button[data-weather-preview="storm"] { grid-column: span 2; }
}
@media (max-width: 370px), (max-height: 650px) and (max-width: 720px) {
  .scene-sheet[open] { height: calc(100svh - 32px); max-height: calc(100svh - 32px); }
  .scene-sheet .sheet-header { margin-bottom: 12px; }
  .scene-sheet .sheet-eyebrow { font-size: 7px; letter-spacing: .15em; }
  .scene-view-options { margin-bottom: 11px; padding: 3px; border-radius: 10px; }
  .scene-view-options button { min-height: 34px; padding: 0 10px; font-size: 11px; }
  .scene-view-options button .icon { width: 14px; height: 14px; }
  .scene-render-status { margin: -3px 0 10px; font-size: 9px; }
  .scene-weather-controls { margin-bottom: 10px; }
  .scene-section-label { font-size: 9px; margin-bottom: 7px; }
  .scene-theme-art { height: 90px; }
  .scene-theme-copy { min-height: 60px; padding: 10px 24px 10px 9px; }
  .scene-theme-copy strong { font-size: 10px; }
  .scene-theme-copy small { font-size: 8px; }
  .scene-picker-footer { padding-top: 10px; }
  .scene-picker-footer .inline-button { min-height: 32px; font-size: 10px; }
  .scene-picker-footer p { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .scene-card,.weather-preview-bar button,.scene-view-options button { transition: none; }
}
