:root {
  color-scheme: dark;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  color: #f2f5f3;
  background: #152429;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; border: 0; }
button { touch-action: manipulation; }
button:focus, a:focus, input:focus { outline: 2px solid #b5dfd1; outline-offset: 5px; }
button:focus:not(:focus-visible), a:focus:not(:focus-visible) { outline: none; }
button:hover { color: #fff; }
[hidden] { display: none !important; }
svg { width: 22px; height: 22px; flex-shrink: 0; }
.landscape, .landscape-image, .shade, .effect { position: fixed; top: 0; right: 0; bottom: 0; left: 0; }
.landscape { z-index: -1; background: #152429; }
.landscape-image { background-position: center; background-size: cover; transition: opacity 1.2s ease; }
.landscape-video { position: fixed; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s ease; pointer-events: none; }
.shade { background: linear-gradient(180deg, rgba(4, 15, 19, .31), rgba(6, 17, 24, .04) 28%, rgba(5, 17, 24, .1) 61%, rgba(3, 13, 20, .66)); }
.topbar { position: fixed; top: 0; right: 0; left: 0; padding: 29px 42px; display: flex; align-items: center; justify-content: space-between; z-index: 2; }
.brand { text-decoration: none; color: inherit; display: flex; align-items: center; text-shadow: 0 1px 14px #14262a; }
.brand > svg { width: 37px; height: 37px; margin-right: 12px; }
.brand > span { font-size: 24px; letter-spacing: -.8px; font-weight: 500; }
.brand-by { display: block; font-size: 10px; letter-spacing: 1px; opacity: .65; margin-top: 2px; }
.top-actions { display: flex; align-items: center; }
.top-actions > * { margin-left: 18px; }
.clock { font-size: 14px; font-variant-numeric: tabular-nums; opacity: .85; margin-right: 8px; }
#account-open { position: relative; }
#account-open.account-connected::after { content: ''; width: 5px; height: 5px; background: #c6dfcd; border-radius: 50%; position: absolute; right: 4px; bottom: 4px; }
.account { width: 100%; max-width: 460px; padding: 30px; max-height: 90vh; overflow: auto; }
#google-signin { min-height: 44px; margin-top: 30px; }
.account-note, #account-status { font-size: 12px; line-height: 1.7; color: #adc3b8; }
.account-note { margin: 22px 0; }
.account-email { margin: 30px 0 22px; overflow-wrap: anywhere; color: #e1ebe6; font-size: 14px; }
.account-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.account-action { border: 1px solid #ffffff30; border-radius: 24px; background: #233b3e; padding: 12px 18px; font-size: 12px; }
.account-action:disabled { opacity: .5; cursor: wait; }
#account-status { margin-top: 24px; min-height: 40px; }
.account-privacy { font-size: 11px; color: #b4c9bf; text-underline-offset: 3px; }
.icon-button { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: transparent; transition: background .2s; }
.icon-button:hover { background: rgba(255,255,255,.13); }
main { height: 100vh; height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 120px 20px 160px; }
.timer { text-align: center; text-shadow: 0 2px 25px rgba(0, 15, 23, .38); width: 100%; max-width: 620px; }
.modes { display: inline-flex; align-items: center; background: rgba(15, 31, 35, .3); border: 1px solid rgba(255,255,255,.15); padding: 4px; border-radius: 30px; backdrop-filter: blur(14px); }
.modes button { background: transparent; padding: 10px 18px; border-radius: 24px; font-size: 13px; color: rgba(255,255,255,.72); transition: background .2s, color .2s; }
.modes button[aria-pressed=true] { color: #213c3e; background: #f0f4ef; text-shadow: none; }
.time { font-family: "Avenir Next", "Segoe UI", sans-serif; font-size: 142px; line-height: 1.1; letter-spacing: -7px; font-weight: 300; font-variant-numeric: tabular-nums; margin: 24px 0 8px; }
.timer-caption { font-size: 14px; letter-spacing: .3px; margin: 0 0 30px; color: rgba(255,255,255,.82); }
.wall-clock .time { display: block; margin-top: 0; }
.wall-clock .timer-caption { margin-top: 18px; margin-bottom: 0; }
.display-settings { width: 100%; max-width: 460px; padding: 30px; max-height: 90vh; overflow: auto; }
.display-options { display: grid; gap: 10px; margin-top: 26px; }
.display-options > button { display: flex; align-items: center; text-align: left; width: 100%; padding: 17px 16px; background: #1c3237; border: 1px solid #ffffff24; border-radius: 12px; }
.display-options > button[aria-pressed=true] { border-color: #a5c9b6; background: #2a4343; }
.display-preview { display: inline-block; width: 78px; font-size: 23px; letter-spacing: -1px; font-weight: 300; font-variant-numeric: tabular-nums; color: #d7e7df; }
.display-preview.scene-preview { text-align: center; font-size: 34px; padding-right: 15px; }
.display-copy { flex: 1; }
.display-copy strong { display: block; font-weight: 500; font-size: 13px; margin-bottom: 5px; }
.display-copy > span { font-size: 10px; color: #a9bfba; }
.display-check { visibility: hidden; margin-left: 12px; color: #bddbc6; }
.display-options > button[aria-pressed=true] .display-check { visibility: visible; }
.timer-actions { display: flex; align-items: center; justify-content: center; padding-left: 44px; }
.start-button { display: flex; align-items: center; justify-content: center; padding: 12px 28px 12px 23px; min-width: 162px; min-height: 48px; background: #edf1e9; color: #233d3d; border: 1px solid rgba(255,255,255,.4); border-radius: 28px; font-size: 14px; font-weight: 600; text-shadow: none; transition: background .2s, transform .2s; }
.start-button svg { width: 18px; height: 18px; margin-right: 8px; }
.start-button:hover { color: #1b3739; background: #fff; transform: translateY(-1px); }
.reset-button { margin-left: 10px; opacity: .8; }
.timer-progress { margin: 32px auto 0; height: 2px; width: 168px; background: rgba(255,255,255,.16); overflow: hidden; }
.timer-progress span { display: block; width: 100%; height: 100%; background: rgba(232,242,236,.78); transform-origin: left; transition: transform .3s linear; }
.bottom-bar { position: fixed; bottom: 0; left: 0; right: 0; padding: 30px 42px 32px; display: flex; justify-content: space-between; align-items: center; z-index: 2; }
.scene-caption { display: flex; align-items: center; width: 30%; }
.scene-dot { width: 6px; height: 6px; border-radius: 50%; background: #b7d4c7; margin-right: 14px; box-shadow: 0 0 12px #b7d4c73b; flex-shrink: 0; }
.scene-caption div > span { display: block; font-size: 13px; font-weight: 500; }
.scene-caption #scene-detail { font-size: 11px; opacity: .58; font-weight: 400; margin-top: 6px; }
.scene-caption #scene-source { display: inline-block; font-size: 9px; color: #c2d4ca; text-underline-offset: 3px; margin-top: 5px; opacity: .8; }
.toolbar { display: flex; align-items: center; padding: 7px; border: 1px solid rgba(255,255,255,.18); background: rgba(24,39,42,.55); border-radius: 40px; backdrop-filter: blur(18px); box-shadow: 0 6px 30px #00000012; }
.tool-button { display: flex; align-items: center; background: transparent; border-radius: 26px; font-size: 12px; padding: 11px 15px; min-height: 44px; color: rgba(255,255,255,.8); white-space: nowrap; transition: background .2s; }
.tool-button svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin-right: 9px; }
.tool-button:hover { background: rgba(255,255,255,.1); }
.tool-button[aria-pressed=true] { color: #fff; }
.tool-button[aria-pressed=false] { color: rgba(255,255,255,.5); }
.tool-button.icon-only { padding-left: 12px; padding-right: 12px; }
.tool-button.icon-only svg { margin: 0; }
.toolbar-divider { height: 19px; width: 1px; background: rgba(255,255,255,.16); margin: 0 4px; }
.sound-indicator { display: block; width: 5px; height: 5px; margin-left: 7px; border-radius: 50%; background: #b8dcc8; }
.sounds-playing { background: rgba(171,209,189,.1); }
.sounds { width: 100%; max-width: 740px; max-height: 88vh; padding: 26px 30px 22px; overflow: auto; animation: panel-enter .25s ease; }
.sound-master { display: flex; align-items: center; padding: 17px 0 22px; border-bottom: 1px solid #ffffff15; margin-bottom: 22px; }
.master-volume { flex: 1; margin-right: 30px; }
.master-volume label { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 12px; color: #c9d9d5; }
.master-volume output { font-variant-numeric: tabular-nums; color: #a2b9b2; }
.audio-pause { min-width: 108px; padding: 11px 16px; border-radius: 24px; background: #d4e5db; color: #243b37; font-size: 11px; font-weight: 600; }
.audio-pause:hover { background: #e8f2e9; color: #243b37; }
.audio-pause:disabled, .stop-sounds:disabled { opacity: .35; cursor: default; }
.sound-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sound-card { padding: 15px; border: 1px solid #ffffff1c; border-radius: 13px; background: #1a2d32; transition: border-color .2s, background .2s; }
.sound-card.sound-selected { border-color: #8ab8a2; background: #243c3e; }
.sound-toggle { background: transparent; display: flex; align-items: center; text-align: left; padding: 0; width: 100%; min-height: 39px; }
.sound-toggle > svg { width: 27px; height: 27px; stroke: #b2c9c2; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; margin-right: 12px; }
.sound-copy { display: block; flex: 1; }
.sound-name { display: block; font-size: 12px; color: #e0eae5; margin-bottom: 5px; }
.sound-detail { display: block; font-size: 9px; color: #92abaa; }
.sound-power { display: inline-flex; align-items: center; justify-content: center; width: 29px; height: 29px; border: 1px solid #ffffff24; border-radius: 50%; margin-left: 6px; color: #8ca29f; }
.sound-power svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sound-selected .sound-power { color: #213c32; background: #c6dfcd; border-color: #c6dfcd; }
.sound-volume { display: flex; align-items: center; margin-top: 17px; }
.sound-volume output { margin-left: 12px; min-width: 28px; text-align: right; font-size: 10px; color: #a7bdb5; font-variant-numeric: tabular-nums; }
.sounds input[type=range] { display: block; width: 100%; min-width: 0; height: 18px; margin: 0; padding: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.sounds input[type=range]::-webkit-slider-runnable-track { height: 3px; border-radius: 5px; background: #5b7874; }
.sounds input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border: 0; border-radius: 50%; background: #d4e5db; margin-top: -4.5px; }
.sounds input[type=range]::-moz-range-track { height: 3px; border-radius: 5px; background: #5b7874; }
.sounds input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #d4e5db; }
.sound-footer { display: flex; align-items: center; justify-content: space-between; margin: 21px 0 10px; }
.sound-footer p { color: #a2b7b3; font-size: 10px; line-height: 1.5; margin: 0; padding-right: 15px; }
.stop-sounds { white-space: nowrap; background: transparent; border: 1px solid #ffffff29; border-radius: 20px; padding: 8px 12px; font-size: 10px; color: #bdd0c9; }
.stop-sounds:hover { background: #ffffff09; }
.sound-credits { border-top: 1px solid #ffffff13; margin-top: 20px; padding-top: 15px; font-size: 10px; color: #93aaa6; line-height: 1.8; }
.sound-credits summary { cursor: pointer; width: max-content; }
.sound-credits p { margin: 12px 0 7px; }
.sound-credits ul { margin: 0; padding-left: 17px; }
.sound-credits a { color: #c0d4ca; text-underline-offset: 3px; }
.keyboard-hint { width: 30%; text-align: right; font-size: 10px; color: rgba(255,255,255,.4); }
.chrome, .modes, .timer-actions, .timer-progress { transition: opacity .4s, visibility .4s; }
.ui-hidden .chrome, .ui-hidden .modes, .ui-hidden .timer-actions, .ui-hidden .timer-progress { opacity: 0; visibility: hidden; pointer-events: none; }
.ui-hidden .timer-caption { opacity: .7; }
.reveal-button { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); background: rgba(13,30,35,.4); padding: 10px 18px; color: rgba(255,255,255,.65); border-radius: 25px; font-size: 11px; opacity: .5; }
.reveal-button:hover, .reveal-button:focus { opacity: 1; }
.dialog-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(4,15,20,.45); z-index: 5; display: flex; align-items: flex-end; justify-content: center; padding: 26px; backdrop-filter: blur(7px); }
.panel { background: rgba(21,36,41,.97); border: 1px solid rgba(216,238,231,.15); border-radius: 22px; box-shadow: 0 24px 100px #00101766; outline: none !important; }
.gallery { display: flex; flex-direction: column; width: 100%; max-width: 1040px; max-height: 88vh; overflow: hidden; padding: 26px 30px 22px; animation: panel-enter .25s ease; }
.gallery > .panel-heading, .gallery-tools, .gallery-count, .gallery-bottom { flex-shrink: 0; }
.gallery-tools { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.gallery #scene-search { width: 240px; min-width: 0; border: 1px solid #ffffff24; border-radius: 9px; background: #20363b; padding: 10px 12px; color: #e1ece7; font-size: 12px; }
.gallery #scene-search::placeholder { color: #93aaa6; }
.gallery-count { font-size: 10px; color: #99afaa; margin: 0 0 11px; }
.gallery-empty { font-size: 12px; color: #baccc5; padding: 35px 0; line-height: 1.6; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.panel-heading h1, .panel-heading h2 { font-size: 25px; font-weight: 400; letter-spacing: -.5px; margin: 0 0 8px; }
.panel-heading p { font-size: 12px; color: #a3b4b5; margin: 0; }
.close-button { font-size: 29px; font-weight: 300; line-height: 1; margin: -5px -8px 0 12px; }
.gallery-filters { display: flex; }
.gallery-filters button { background: transparent; border: 1px solid transparent; color: #aebebd; border-radius: 20px; font-size: 12px; padding: 8px 15px; margin-right: 5px; }
.gallery-filters button[aria-pressed=true] { background: #d4e5db; color: #243b37; }
.gallery-filters button:hover { border-color: #7c9994; }
.scene-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); grid-auto-rows: max-content; align-content: start; gap: 18px 20px; min-height: 0; overflow-y: auto; padding: 5px 7px 5px 5px; margin-left: -5px; scrollbar-width: thin; scrollbar-color: #5c7b72 transparent; }
.scene-card { padding: 0; text-align: left; background: transparent; border-radius: 11px; }
.scene-thumbnail { display: block; position: relative; height: 138px; border-radius: 10px; overflow: hidden; background: #1c3541; border: 2px solid transparent; transition: border-color .2s, transform .2s; }
.scene-thumbnail img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.scene-card:hover img { transform: scale(1.035); }
.scene-card[aria-pressed=true] .scene-thumbnail { border-color: #cae2d6; }
.scene-card-name { display: block; padding: 8px 2px 1px; font-size: 12px; font-weight: 500; color: #d4e0df; }
.scene-badge { position: absolute; left: 9px; bottom: 9px; color: #f5f7f3; background: rgba(10,26,32,.62); backdrop-filter: blur(8px); font-size: 9px; border: 1px solid #ffffff26; border-radius: 13px; padding: 4px 8px; }
.scene-check { position: absolute; top: 10px; right: 10px; border-radius: 50%; background: #d4e5db; color: #213e36; width: 22px; height: 22px; display: none; align-items: center; justify-content: center; font-size: 12px; }
.scene-card[aria-pressed=true] .scene-check { display: flex; }
.gallery-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; font-size: 10px; color: #8ba2a3; }
.gallery-bottom > a { color: #a3bdb2; text-underline-offset: 3px; }
.switch-label { display: inline-flex; align-items: center; position: relative; cursor: pointer; font-size: 12px; color: #d2dfdd; min-height: 30px; }
.switch-label input { position: absolute; z-index: 1; left: 0; top: 0; width: 36px; height: 100%; opacity: 0; cursor: pointer; }
.switch { display: inline-block; position: relative; width: 32px; height: 18px; border-radius: 12px; background: #4c6264; margin-right: 9px; transition: background .2s; }
.switch:after { content: ''; position: absolute; left: 3px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: #e6eeeb; transition: transform .2s; }
.switch-label input:checked + .switch { background: #91b9a7; }
.switch-label input:checked + .switch:after { transform: translateX(14px); background: #203c37; }
.switch-label input:focus + .switch { outline: 2px solid #b5dfd1; outline-offset: 4px; }
.settings-backdrop { align-items: center; }
.settings { width: 100%; max-width: 480px; padding: 30px; max-height: 90vh; overflow: auto; animation: panel-enter .25s ease; }
.duration-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin: 28px 0 18px; }
.duration-fields label { display: block; font-size: 11px; color: #bccdcc; }
.duration-fields label > span { display: flex; align-items: center; background: #20383e; border: 1px solid #ffffff1f; border-radius: 9px; margin-top: 10px; padding: 8px 10px; font-size: 11px; color: #90a6a8; }
.duration-fields input { display: block; min-width: 0; width: 100%; border: none; background: transparent; color: #eef3ee; font-size: 24px; padding: 0; appearance: textfield; -moz-appearance: textfield; }
.duration-fields input::-webkit-inner-spin-button { -webkit-appearance: none; }
.sound-label { margin: 3px 0 10px; }
.settings-note { font-size: 11px; line-height: 1.7; color: #9ab0b2; max-width: 340px; margin: 5px 0 24px; }
.save-button { padding: 13px 20px; background: #d9e8de; color: #203e37; border-radius: 9px; width: 100%; font-size: 13px; font-weight: 600; }
.save-button:hover { color: #183229; background: #f1f6ef; }
.toast { position: fixed; z-index: 10; bottom: 115px; left: 50%; transform: translateX(-50%); width: max-content; max-width: 90vw; padding: 13px 20px; background: #e4ede7; color: #244039; border: 1px solid #fff8; border-radius: 12px; font-size: 12px; line-height: 1.5; box-shadow: 0 8px 30px #0003; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.effect { pointer-events: none; overflow: hidden; }
.rain i { position: absolute; width: 1px; height: 65px; background: linear-gradient(transparent, #d6ebf44a, transparent); animation: rain-fall 1.4s linear infinite; }
.fireflies i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #e8f1b5; box-shadow: 0 0 12px 3px #dbea9b4d; animation: firefly 9s ease-in-out infinite; }
.aurora { background: radial-gradient(ellipse at 50% 105%, #224759, transparent 60%), linear-gradient(#061323, #102d3c); }
.aurora:after, .aurora-thumbnail:after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 25%; background: #071c28; clip-path: polygon(0 72%, 8% 54%, 17% 76%, 28% 43%, 35% 59%, 44% 25%, 55% 65%, 64% 32%, 73% 65%, 83% 50%, 90% 68%, 100% 43%, 100% 100%, 0 100%); }
.aurora i { position: absolute; left: -15%; top: 8%; width: 130%; height: 48%; background: linear-gradient(140deg, transparent 18%, #5ba99c08 28%, #56c6a152 43%, #93cbb93d 48%, #477a9717 55%, transparent 68%); border-radius: 50%; filter: blur(35px); transform: rotate(-14deg); animation: aurora-flow 28s ease-in-out infinite; }
.aurora i:nth-child(2) { top: 16%; background: linear-gradient(125deg, transparent 20%, #8c7bb12b 39%, #6898a833 48%, transparent 65%); animation-delay: -9s; animation-duration: 37s; }
.aurora i:nth-child(3) { top: 29%; opacity: .65; animation-delay: -17s; animation-duration: 32s; }
.aurora-thumbnail { background: radial-gradient(ellipse at 40% 40%, #66bba885, transparent 55%), linear-gradient(155deg, #182939 20%, #498d84 48%, #163846 64%); }
.aurora-thumbnail:after { height: 28%; z-index: 0; }
.aurora-thumbnail .scene-badge, .aurora-thumbnail .scene-check { z-index: 1; }
.motion-off .effect i { animation-play-state: paused; }
.motion-off .rain { display: none; }
.motion-off .fireflies i { opacity: .35; }
@keyframes rain-fall { from { transform: translate(20px,-130px) rotate(12deg); opacity: 0; } 15% { opacity: .6; } 80% { opacity: .4; } to { transform: translate(-80px,420px) rotate(12deg); opacity: 0; } }
@keyframes firefly { 0%, 100% { transform: translate(0,0); opacity: .1; } 30% { opacity: .8; } 50% { transform: translate(25px,-35px); opacity: .25; } 75% { opacity: .9; } }
@keyframes aurora-flow { 0%,100% { transform: translate(-3%,2%) rotate(-14deg) scaleY(1); opacity: .6; } 50% { transform: translate(5%,-4%) rotate(-6deg) scaleY(1.3); opacity: 1; } }
@keyframes panel-enter { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 1800px) { .time { font-size: 170px; } .topbar { padding: 40px 56px; } .bottom-bar { padding: 40px 56px; } }
@media (max-width: 1050px) {
  .keyboard-hint { display: none; }
  .scene-caption { width: auto; padding-right: 20px; }
  .topbar { padding: 24px 28px; }
  .bottom-bar { padding: 24px 28px; }
  .time { font-size: 126px; }
}
@media (max-width: 650px) {
  .topbar { padding: 21px 20px; padding-top: max(21px, env(safe-area-inset-top)); }
  .brand > svg { width: 30px; height: 30px; margin-right: 8px; }
  .brand > span { font-size: 21px; }
  .brand-by { font-size: 8px; }
  .top-actions > * { margin-left: 7px; }
  .clock { font-size: 12px; margin-right: 2px; }
  .top-actions .icon-button { width: 36px; height: 36px; }
  .top-actions svg { width: 20px; height: 20px; }
  main { padding: 110px 15px 180px; }
  .time { font-size: 104px; letter-spacing: -5px; margin-top: 27px; }
  .modes button { padding: 10px 15px; font-size: 12px; }
  .timer-caption { font-size: 12px; margin-bottom: 25px; }
  .bottom-bar { flex-direction: column; padding: 18px 15px 22px; padding-bottom: max(22px, env(safe-area-inset-bottom)); }
  .scene-caption { order: 2; padding: 0; margin-top: 19px; }
  .scene-caption div > span { font-size: 11px; }
  .scene-caption #scene-detail { display: none; }
  .scene-dot { width: 5px; height: 5px; margin-right: 8px; }
  .tool-button { padding-left: 11px; padding-right: 11px; }
  .toolbar { padding: 5px; }
  .dialog-backdrop { padding: 12px; }
  .gallery { padding: 23px 18px 18px; max-height: 89vh; border-radius: 18px; }
  .gallery-tools { align-items: stretch; flex-direction: column; }
  .gallery #scene-search { width: 100%; margin-top: 12px; min-height: 42px; }
  .panel-heading h1, .panel-heading h2 { font-size: 23px; }
  .panel-heading p { font-size: 11px; }
  .scene-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px 12px; }
  .scene-thumbnail { height: 105px; }
  .scene-card-name { font-size: 10px; }
  .gallery-bottom { align-items: flex-start; flex-direction: column; }
  .gallery-bottom > span { margin-top: 9px; font-size: 9px; }
  .gallery-bottom > a { margin-top: 8px; font-size: 10px; }
  .settings { padding: 27px 22px; }
  .display-settings { padding: 27px 20px; }
  .display-options > button { padding-left: 12px; padding-right: 12px; }
  .display-preview { width: 70px; font-size: 21px; }
  .duration-fields { gap: 10px; }
  .duration-fields label > span { padding: 8px; }
  .toast { bottom: 150px; }
  .sounds { padding: 23px 18px 18px; max-height: 89vh; border-radius: 18px; }
  .sound-grid { grid-template-columns: 1fr; gap: 10px; }
  .sound-card { padding: 12px 14px; }
  .sound-volume { margin-top: 10px; }
  .sound-master { padding-top: 8px; margin-bottom: 16px; }
  .master-volume { margin-right: 20px; }
  .sound-detail { font-size: 10px; }
  .sound-footer { margin-top: 18px; }
}
@media (max-width: 360px) {
  .top-actions .clock { display: none; }
  .tool-button { padding-left: 8px; padding-right: 8px; font-size: 11px; }
  .tool-button svg { margin-right: 7px; }
  .top-actions > * { margin-left: 2px; }
}
@media (max-height: 580px) and (min-width: 651px) {
  .topbar { padding: 14px 24px; }
  .bottom-bar { padding: 14px 24px; }
  main { padding: 65px 15px 90px; }
  .time { font-size: 92px; margin: 12px 0 3px; }
  .timer-caption { margin-bottom: 14px; }
  .timer-progress { margin-top: 16px; }
  .gallery { max-height: 95vh; }
}
@media (max-width: 650px) and (max-height: 620px) {
  main { padding-top: 90px; padding-bottom: 145px; }
  .time { font-size: 82px; margin-top: 15px; }
  .timer-caption { margin-bottom: 18px; }
  .timer-progress { margin-top: 20px; }
  .scene-thumbnail { height: 85px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rain { display: none; }
}
