/* Hallmark · component: soundscape sheet · genre: atmospheric · theme: ClearLoop moonlight
 * states: default · hover · focus · active · disabled · loading · error · success
 * pre-emit critique: P5 H5 E4 S5 R5 V4
 */
.soundscape-layer[hidden],
.soundscape-layer:not([open]) { display: none; }
.soundscape-layer {
  position: fixed;
  inset: 0;
  z-index: 1800;
  display: grid;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  align-items: end;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: inherit;
  background: transparent;
  border: 0;
}
.soundscape-layer::backdrop { background: transparent; }
.soundscape-backdrop { position: absolute; inset: 0; border: 0; background: rgba(29, 25, 48, 0.54); backdrop-filter: blur(5px); }
.soundscape-sheet { position: relative; width: min(100%, 540px); max-height: min(88vh, 760px); margin: 0 auto; padding: 12px 20px calc(22px + env(safe-area-inset-bottom)); overflow: auto; border: 1px solid rgba(95, 82, 134, 0.16); border-bottom: 0; border-radius: 18px 18px 0 0; background: linear-gradient(180deg, #f8f5fb, #f7f5ef 58%, #edf5f2); color: #302d43; box-shadow: 0 -18px 48px rgba(39, 32, 67, 0.2); }
.soundscape-grabber { display: block; width: 42px; height: 4px; margin: 0 auto 14px; border-radius: 2px; background: rgba(88, 78, 118, 0.2); }
.soundscape-sheet header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.soundscape-sheet header small { color: #71669a; font-size: 12px; }
.soundscape-sheet h2 { margin: 4px 0 0; font-size: 22px; font-weight: 650; line-height: 1.35; letter-spacing: 0; }
.soundscape-sheet header > button { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border: 0; border-radius: 50%; background: rgba(103, 93, 158, 0.08); color: #51477f; }
.soundscape-sheet header svg { width: 19px; height: 19px; }
.soundscape-intro { margin: 12px 0 18px; color: #686272; font-size: 13px; line-height: 1.7; }
.soundscape-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.soundscape-list > button { display: grid; grid-template-columns: 32px minmax(0, 1fr); grid-template-rows: auto auto; gap: 0 10px; min-width: 0; min-height: 68px; padding: 11px; border: 1px solid rgba(91, 78, 128, 0.12); border-radius: 8px; background: rgba(255, 255, 255, 0.58); color: #484357; text-align: left; }
.soundscape-list > button > svg { grid-row: 1 / 3; align-self: center; width: 22px; height: 22px; color: #675d9e; }
.soundscape-list > button span { min-width: 0; }
.soundscape-list > button strong, .soundscape-list > button small { display: block; overflow-wrap: anywhere; }
.soundscape-list > button strong { font-size: 13px; font-weight: 650; }
.soundscape-list > button small { margin-top: 3px; color: #80798d; font-size: 11px; }
.soundscape-list > button b { grid-column: 2; margin-top: 4px; color: #675d9e; font-size: 11px; font-weight: 600; }
.soundscape-list > button:hover, .soundscape-list > button.is-active { border-color: rgba(103, 93, 158, 0.32); background: rgba(238, 234, 248, 0.8); }
.soundscape-list > button:active { transform: translateY(1px); }
.soundscape-controls { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 16px; margin-top: 18px; }
.soundscape-controls strong, .soundscape-controls label > span { display: block; margin-bottom: 8px; color: #625b71; font-size: 12px; font-weight: 600; }
.soundscape-segment { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 3px; border-radius: 8px; background: rgba(103, 93, 158, 0.08); }
.soundscape-segment button { min-height: 36px; padding: 0 6px; border: 0; border-radius: 6px; background: transparent; color: #6d6678; font-size: 11px; }
.soundscape-segment button.is-active { background: #ffffff; color: #51477f; box-shadow: 0 2px 8px rgba(61, 52, 88, 0.1); }
.soundscape-controls input { width: 100%; accent-color: #675d9e; }
.soundscape-now { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; margin-top: 18px; padding: 12px; border-radius: 8px; background: rgba(225, 242, 237, 0.72); }
.soundscape-now > span { width: 9px; height: 9px; border-radius: 50%; background: #79b8ad; box-shadow: 0 0 0 5px rgba(121, 184, 173, 0.14); }
.soundscape-now small, .soundscape-now strong { display: block; }
.soundscape-now small { color: #6e7774; font-size: 10px; }
.soundscape-now strong { margin-top: 2px; font-size: 13px; }
.soundscape-now time { color: #5d5671; font-size: 12px; font-variant-numeric: tabular-nums; }
.soundscape-now button { min-height: 36px; padding: 0 12px; border: 1px solid rgba(81, 71, 127, 0.16); border-radius: 8px; background: rgba(255, 255, 255, 0.72); color: #51477f; }
.soundscape-check { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(91, 78, 128, 0.12); }
.soundscape-check > strong { font-size: 13px; font-weight: 650; }
.soundscape-check > div { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.soundscape-check button { min-height: 38px; padding: 0 12px; border: 1px solid rgba(91, 78, 128, 0.14); border-radius: 8px; background: rgba(255, 255, 255, 0.65); color: #5d5671; font-size: 12px; }
.soundscape-check p { margin: 8px 0 0; color: #51477f; font-size: 13px; line-height: 1.65; }
.soundscape-status { min-height: 18px; margin: 10px 0 0; color: #756d80; font-size: 12px; }
.soundscape-sheet button { cursor: pointer; transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1), opacity 160ms cubic-bezier(0.16, 1, 0.3, 1), background-color 160ms cubic-bezier(0.16, 1, 0.3, 1); }
.soundscape-sheet button:focus-visible, .soundscape-sheet input:focus-visible { outline: 3px solid rgba(85, 74, 142, 0.42); outline-offset: 2px; }
.soundscape-sheet button:disabled { opacity: 0.5; cursor: not-allowed; }
@media (max-width: 360px) { .soundscape-sheet { padding-inline: 14px; } .soundscape-list { grid-template-columns: 1fr; } .soundscape-controls { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .soundscape-sheet button { transition-duration: 100ms; } }
