@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=DM+Sans:wght@400;500;600;700&display=swap');
:root{--accent:#d5bb7d;--accent-soft:#a98c56;--text:#f1ece2;--muted:#a6a396;--line:rgba(220,199,150,.2);--panel:#181815;--font-serif:'Cormorant Garamond',Georgia,serif}*{box-sizing:border-box}body{margin:0;background:#10100f;color:var(--text);font-family:'DM Sans',Arial,sans-serif;min-height:100svh}button,input,a{-webkit-tap-highlight-color:transparent}button,a,input{outline-offset:6px}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--accent)}button{transition:background .2s,border-color .2s,transform .2s}button:active{transform:translateY(1px)}a{color:inherit}button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}button:disabled{cursor:wait;opacity:.65}[hidden]{display:none!important}.scenery,.shade,.grain{position:fixed;inset:0;pointer-events:none}.scenery{background-position:center;background-size:cover;transition:opacity 1s;z-index:-4}.scenery-couture{background-image:url('assets/couture.webp')}.scenery-thesis{background-image:url('assets/thesis.webp');opacity:0}.shade{z-index:-3;background:linear-gradient(90deg,rgba(10,11,10,.71),rgba(10,11,10,.35) 43%,transparent 73%),linear-gradient(0deg,rgba(10,11,10,.95),transparent 36%,transparent 75%,rgba(10,11,10,.65))}.grain{z-index:-2;opacity:.03;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' opacity='.5' d='M0 0h180v180H0z'/%3E%3C/svg%3E")}.app{min-height:100svh;display:flex;flex-direction:column;padding:0 4.2vw}header{height:116px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:24px}.brand{text-decoration:none;display:flex;align-items:center;gap:15px;width:300px}.brand-mark{font-family:var(--font-serif);font-size:26px;color:var(--accent);border:1px solid var(--accent-soft);width:48px;height:48px;display:grid;place-items:center;position:relative}.brand-mark>span{position:absolute;top:-10px;font-size:15px;background:#151511;padding:0 4px}.brand-copy{display:flex;flex-direction:column;gap:8px}.brand-copy strong{font-size:11px;font-weight:500;letter-spacing:2.4px}.brand-copy small{font-size:8px;letter-spacing:2.5px;color:var(--muted)}.event-switch{display:flex;padding:5px;border:1px solid var(--line);background:rgba(16,16,15,.55);border-radius:8px;backdrop-filter:blur(12px)}.event-switch button{border:0;background:none;color:var(--muted);padding:12px 20px;border-radius:4px;font-size:11px;letter-spacing:.3px;white-space:nowrap}.event-switch button.selected{background:rgba(213,187,125,.13);color:var(--accent)}.nav-number{font-size:9px;margin-right:8px;opacity:.6}.icon-button{background:rgba(20,20,18,.35);border:1px solid var(--line);color:var(--text);border-radius:50%;width:40px;height:40px;display:grid;place-items:center}.icon-button:hover,.secondary-button:hover{background:rgba(213,187,125,.12)}main{flex:1;display:flex;align-items:center;min-height:660px;position:relative;padding:44px 0 68px}.stage{width:min(660px,58%);animation:enter 1s ease-out}.eyebrow{font-size:9px;font-weight:500;letter-spacing:2.5px;color:var(--accent);display:flex;align-items:center;gap:12px}.tiny-line{display:block;width:27px;height:1px;background:var(--accent-soft)}h1{font-family:var(--font-serif);font-weight:400;font-size:clamp(65px,7.6vw,116px);line-height:.86;letter-spacing:5px;margin:32px 0 22px;position:relative;display:inline-block}h1 em{font-style:normal;color:var(--accent);font-size:.87em;letter-spacing:7px}.title-star{position:absolute;right:-29px;top:-9px;font-size:25px;color:var(--accent)}.event-description{font-family:var(--font-serif);font-style:italic;font-size:20px;color:#d0c8b9;margin:0 0 42px}.timer-caption{display:flex;align-items:center;gap:8px;font-size:8px;letter-spacing:1.9px;color:#c4bda9;min-height:13px}.status-dot,.clock-dot{width:5px;height:5px;border-radius:50%;background:var(--accent);display:inline-block;flex-shrink:0}.mode-label{font-size:7px;letter-spacing:1.3px;margin-left:auto;color:var(--muted)}.digits{display:flex;gap:13px;align-items:flex-start;margin:12px 0 27px;max-width:100%;font-variant-numeric:tabular-nums}.digit-unit{display:flex;flex-direction:column;align-items:center;min-width:0}.digit-value{font-family:var(--font-serif);font-size:clamp(80px,8.4vw,126px);font-weight:400;line-height:1.05;letter-spacing:1px;color:#f4f0e9}.digit-label{font-size:7px;letter-spacing:3px;color:var(--muted);margin-top:3px}.colon{font-family:var(--font-serif);font-size:clamp(48px,5.8vw,80px);color:var(--accent-soft);line-height:1.4;font-weight:400}.digits.has-days{gap:9px}.digits.has-days .digit-value{font-size:clamp(44px,5.1vw,74px)}.digits.has-days .colon{font-size:44px}.digits.has-days .digit-label{letter-spacing:1.4px}.timer-actions{display:flex;align-items:center;gap:10px}.primary-button{border:1px solid var(--accent);background:var(--accent);color:#181812;display:inline-flex;align-items:center;justify-content:center;gap:13px;font-size:11px;font-weight:600;letter-spacing:.3px;padding:16px 24px;border-radius:4px;min-height:48px}.primary-button:hover{background:#e6d3a3;border-color:#e6d3a3}.primary-button svg{width:14px;height:14px;fill:currentColor;stroke-width:1.2}.secondary-button{width:48px;height:48px;border:1px solid var(--line);background:rgba(15,15,14,.3);border-radius:4px;color:var(--accent);display:grid;place-items:center}.settings-button{border:0;background:none;color:#ccc6b9;display:flex;align-items:center;gap:8px;font-size:10px;padding:15px}.settings-button:hover{color:var(--accent)}.progress-track{height:1px;background:var(--line);margin-top:28px;width:100%}#progress{height:100%;background:var(--accent);width:0;transition:width .3s linear}.timer-meta{margin-top:12px;font-size:7px;letter-spacing:1.7px;color:var(--muted);display:flex;justify-content:space-between;gap:12px}.image-note{position:absolute;right:0;bottom:73px;display:flex;flex-direction:column;gap:10px;text-align:right;color:var(--accent);font-size:13px;font-family:var(--font-serif);letter-spacing:3px}.image-note small{font-family:'DM Sans',sans-serif;font-size:6px;letter-spacing:2px;color:#bfb49b}.vertical-rule{height:44px;border-right:1px solid var(--accent-soft);margin-bottom:7px;opacity:.7}footer{border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:79px;padding-right:280px;font-size:7px;color:var(--muted);letter-spacing:1.4px}.footer-left{display:flex;align-items:center;gap:15px}.footer-star{font-size:18px;color:var(--accent)}.footer-right{display:flex;align-items:center;gap:8px;white-space:nowrap}.clock-place{opacity:.5}.clock-dot{width:3px;height:3px}.music-chip{position:fixed;right:4.2vw;bottom:21px;padding:13px 17px;border:1px solid var(--line);color:var(--accent);background:rgba(25,24,21,.78);backdrop-filter:blur(15px);border-radius:5px;font-size:9px;display:flex;align-items:center;gap:12px;z-index:5}dialog{border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--text);max-width:480px;width:calc(100% - 32px);padding:30px;box-shadow:0 30px 120px #0009}dialog::backdrop{background:#060908b8;backdrop-filter:blur(10px)}.dialog-top{display:flex;align-items:center;justify-content:space-between}.dialog-top .eyebrow{font-size:7px;letter-spacing:2px}h2{font-family:var(--font-serif);font-weight:400;font-size:36px;margin:17px 0 6px}.dialog-sub{font-size:10px;color:var(--muted);margin:0 0 25px}.mode-switch{display:flex;gap:15px;border-bottom:1px solid var(--line);padding-bottom:20px;margin-bottom:22px}.mode-switch label{font-size:11px;display:flex;gap:7px;align-items:center}.mode-switch input,.checkbox-label input{accent-color:var(--accent);margin:0}.time-inputs{display:flex;gap:12px}.time-inputs label{display:flex;flex-direction:column;gap:9px;width:33%;color:var(--muted);font-size:10px}.time-inputs input,.date-label input{background:#0b0e0c;border:1px solid var(--line);color:var(--text);border-radius:4px;padding:12px;width:100%;font-size:24px;color-scheme:dark}.presets{display:flex;gap:8px;margin-top:15px}.presets button{flex:1;background:transparent;border:1px solid var(--line);color:var(--muted);border-radius:3px;font-size:9px;padding:8px 2px}.presets button:hover{color:var(--accent);border-color:var(--accent)}.checkbox-label{display:flex;gap:9px;align-items:center;font-size:10px;color:var(--muted);margin-top:22px}.apply-button{width:100%;justify-content:space-between}.dialog-foot{font-size:9px;color:var(--muted);text-align:center;margin:15px 0 0}.form-error{font-size:11px;color:#f0aa95;min-height:12px;margin:14px 0}.date-label{font-size:11px;color:var(--muted);display:flex;flex-direction:column;gap:10px}.date-label input{font-size:15px}.hint{display:block;font-size:9px;color:var(--muted);margin-top:10px}.date-note{font-size:10px;color:var(--muted);margin:-9px 0 20px}.completed .digit-value{color:var(--accent)}.running .status-dot{animation:pulse 2s infinite}#toast{position:fixed;bottom:95px;left:50%;transform:translateX(-50%);z-index:30;background:var(--panel);border:1px solid var(--line);padding:13px 19px;border-radius:5px;color:var(--text);font-size:12px;max-width:90%;text-align:center}body[data-theme=thesis]{--accent:#8ed2ef;--accent-soft:#548faf;--line:rgba(142,210,239,.2);--panel:#111f2c}body[data-theme=thesis] .scenery-couture{opacity:0}body[data-theme=thesis] .scenery-thesis{opacity:1}body[data-theme=thesis] h1{font-family:'DM Sans',sans-serif;font-size:clamp(55px,5.6vw,85px);line-height:1.12;letter-spacing:-3px;font-weight:500}body[data-theme=thesis] h1 em{letter-spacing:-3px;font-size:1em;font-weight:400}body[data-theme=thesis] .brand-mark{font-family:'DM Sans',sans-serif;font-size:14px;font-weight:500}body[data-theme=thesis] .event-description{font-family:'DM Sans',sans-serif;font-style:normal;font-size:13px;max-width:320px;line-height:1.7}body[data-theme=thesis] .event-switch button.selected{background:rgba(142,210,239,.13)}body[data-theme=thesis] .image-note{font-family:'DM Sans',sans-serif;font-size:11px}body[data-theme=thesis] .shade{background:linear-gradient(90deg,rgba(3,13,26,.83),rgba(3,13,26,.4) 48%,transparent 80%),linear-gradient(0deg,rgba(3,13,26,.96),transparent 50%,rgba(3,13,26,.3))}@keyframes enter{from{opacity:0;transform:translateY(15px)}to{opacity:1;transform:none}}@keyframes bars{to{height:3px}}@keyframes pulse{50%{opacity:.35}}
@media(min-width:1600px){.app{padding:0 6vw}.stage{width:650px}main{min-height:740px}.event-description{margin-bottom:50px}}
@media(max-width:1100px){header{height:98px}.brand{width:auto}.brand-copy{display:none}main{min-height:650px}.stage{width:59%}.event-switch button{padding:11px 15px}h1{font-size:8.6vw;letter-spacing:3px}h1 em{letter-spacing:4px}.digits{gap:7px}.digit-value{font-size:9vw}.mode-label{display:none}.timer-caption{font-size:7px;letter-spacing:1.3px}.footer-right{display:none}.eyebrow{font-size:7px;letter-spacing:2px}.timer-meta{font-size:6px;letter-spacing:1px}}
@media(max-width:700px){.app{padding:0 6vw}.scenery{background-position:65% center}.shade{background:linear-gradient(90deg,rgba(9,10,10,.8),rgba(9,10,10,.45)),linear-gradient(0deg,#0a0b0af5,transparent 60%,#0a0b0a60)}header{height:92px;gap:10px}.brand-mark{width:34px;height:38px;font-size:21px}.event-switch{padding:3px}.event-switch button{font-size:9px;padding:10px 11px}.nav-number{display:none}.icon-button{width:33px;height:33px}.icon-button svg{width:14px}.stage{width:100%;max-width:540px}main{min-height:610px;padding:48px 0 65px;align-items:center}h1{font-size:clamp(64px,15vw,100px);margin-top:32px}h1 em{letter-spacing:5px}.title-star{right:-20px;font-size:18px}.eyebrow{font-size:7px;letter-spacing:1.7px}.event-description{font-size:20px;margin-bottom:36px}.digits{gap:10px;margin-bottom:28px}.digit-value{font-size:clamp(64px,16vw,99px)}.colon{font-size:11vw}.timer-caption{font-size:7px}.mode-label{display:none}.primary-button{padding:15px 20px;font-size:10px}.settings-button{font-size:10px;padding:10px}.timer-meta{font-size:6px;letter-spacing:1px}.image-note{display:none}footer{min-height:110px;padding:18px 0 65px;align-items:flex-start;font-size:6px;letter-spacing:1px}.footer-left{gap:9px}.music-chip{bottom:18px;right:6vw;left:6vw;justify-content:center}body[data-theme=thesis] h1{font-size:clamp(55px,12vw,80px)}body[data-theme=thesis] .event-description{font-size:12px;margin-bottom:40px}body[data-theme=thesis] .shade{background:linear-gradient(90deg,rgba(3,13,26,.9),rgba(3,13,26,.5)),linear-gradient(0deg,#030d1afa,transparent 80%)}.digits.has-days .digit-value{font-size:11vw}.digits.has-days .colon{font-size:8vw}.digits.has-days .digit-label{font-size:6px}.digits.has-days{gap:5px}.dialog-top .eyebrow{font-size:6px}dialog{padding:24px}.mode-switch{gap:10px}.mode-switch label{font-size:10px}}
@media(max-height:850px) and (min-width:701px){header{height:86px}main{min-height:540px;padding:32px 0 45px}h1{font-size:80px;margin:25px 0 18px}.event-description{margin-bottom:27px}.digit-value{font-size:99px}.digits{margin:8px 0 20px}footer{min-height:65px}.music-chip{bottom:14px}body[data-theme=thesis] h1{font-size:65px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
body[data-theme=thesis] .event-description{white-space:pre-line}
/* Center the event and countdown as one clear presentation stage. */
main{justify-content:center;min-height:calc(100svh - 195px);padding:44px 0 52px}
.stage{width:100%;max-width:1120px;text-align:center}
.stage>.eyebrow{justify-content:center;font-size:10px}
h1{font-size:clamp(42px,5.2vw,76px);line-height:1.05;margin:26px 0 16px}
h1 br{display:none}h1 em{margin-left:.22em;font-size:1em;letter-spacing:5px}
body[data-theme=thesis] h1{font-size:clamp(42px,4.8vw,70px);line-height:1.05}
body[data-theme=thesis] h1 em{margin-left:.2em}
.event-description{margin:0 auto 34px;font-size:22px}
body[data-theme=thesis] .event-description{max-width:none;margin:0 auto 34px;font-size:14px}
.countdown-block{width:100%;max-width:1120px;margin:auto}
.timer-caption{justify-content:center;font-size:10px;letter-spacing:2.5px}
.mode-label{display:none}.digits,.digits.has-days{justify-content:center;align-items:flex-start;gap:20px;margin:22px auto 30px}
.digit-value,.digits.has-days .digit-value{font-size:clamp(100px,13vw,192px);line-height:1;font-weight:500;letter-spacing:-3px;text-shadow:0 4px 40px #0005}
.digit-label,.digits.has-days .digit-label{font-size:10px;letter-spacing:3px;margin-top:12px;color:#d0c7b6}
.colon,.digits.has-days .colon{font-size:clamp(60px,8vw,112px);line-height:1.36;opacity:.8}
.date-note{font-size:14px;letter-spacing:1px;color:var(--text);margin:0 0 27px}
.timer-actions{justify-content:center}.settings-button{font-size:12px;background:#1118;border:1px solid var(--line);border-radius:4px;padding:12px 18px;backdrop-filter:blur(12px)}
.timer-meta{justify-content:center;font-size:9px;letter-spacing:2px;margin-top:20px;gap:22px}
.progress-track{max-width:680px;margin:28px auto 0}
body[data-mode=date] .progress-track{display:none}body[data-mode=date] #durationLabel{display:none}
.image-note{display:none}
.shade{background:radial-gradient(ellipse at 50% 48%,rgba(8,9,8,.66),rgba(8,9,8,.28) 65%),linear-gradient(0deg,rgba(8,9,8,.95),transparent 35%,rgba(8,9,8,.55))}
body[data-theme=thesis] .shade{background:radial-gradient(ellipse at 50% 48%,rgba(3,13,26,.8),rgba(3,13,26,.35) 70%),linear-gradient(0deg,rgba(3,13,26,.96),transparent 50%,rgba(3,13,26,.4))}
body[data-theme=thesis] .digit-value{font-family:'DM Sans',sans-serif;font-size:clamp(88px,11.7vw,170px);font-weight:400;letter-spacing:-5px;line-height:1.12}
body[data-theme=thesis] .digit-label{color:#bed9e5}
@media(min-width:1600px){main{min-height:calc(100svh - 195px)}.stage{width:100%}}
@media(max-width:1100px){main{min-height:calc(100svh - 177px)}.stage{width:100%}.digits,.digits.has-days{gap:14px}.digit-value,.digits.has-days .digit-value{font-size:12.7vw}body[data-theme=thesis] .digit-value{font-size:11.6vw}.digit-label,.digits.has-days .digit-label{font-size:9px;letter-spacing:2px}.colon,.digits.has-days .colon{font-size:7.5vw}}
@media(max-width:700px){main{min-height:calc(100svh - 202px);padding:50px 0 60px}.stage{max-width:none;width:100%}.stage>.eyebrow{font-size:7px;letter-spacing:1.7px}h1{font-size:clamp(31px,7.7vw,50px);letter-spacing:2px;line-height:1.25;margin:26px 0 15px}h1 em{letter-spacing:2px}.title-star{font-size:15px;right:-15px;top:-12px}body[data-theme=thesis] h1{font-size:10vw}.event-description{font-size:18px;margin-bottom:38px}body[data-theme=thesis] .event-description{font-size:12px;max-width:310px;margin-bottom:38px}.timer-caption{font-size:7px;letter-spacing:1.6px}.digits,.digits.has-days{gap:5px;margin:27px auto}.digit-value,.digits.has-days .digit-value{font-size:13vw;letter-spacing:-1px}body[data-theme=thesis] .digit-value{font-size:12vw;letter-spacing:-2px}.digit-label,.digits.has-days .digit-label{font-size:6px;letter-spacing:1px;margin-top:9px}.colon,.digits.has-days .colon{font-size:8vw;line-height:1.3}.date-note{font-size:11px;line-height:1.7;letter-spacing:.4px}.timer-meta{font-size:7px}.shade{background:radial-gradient(ellipse at 50% 48%,rgba(8,9,8,.8),rgba(8,9,8,.4) 75%),linear-gradient(0deg,#080908f5,transparent 65%,#08090870)}}
@media(max-height:850px) and (min-width:701px){main{min-height:calc(100svh - 151px);padding:25px 0 35px}h1{font-size:55px;margin:20px 0 14px}body[data-theme=thesis] h1{font-size:52px}.event-description,body[data-theme=thesis] .event-description{margin-bottom:24px}.digits,.digits.has-days{margin:15px auto 22px}.digit-value,.digits.has-days .digit-value{font-size:min(12.5vw,152px)}body[data-theme=thesis] .digit-value{font-size:min(11.5vw,140px)}}
@media(max-width:1100px) and (min-width:701px){}
@media(max-width:700px){}

/* A single quiet sound control replaces the video panel. */
.music-chip{width:44px;height:44px;left:auto;right:4.2vw;bottom:18px;padding:0;display:grid;place-items:center;border-radius:50%;gap:0;color:var(--accent);background:rgba(15,18,17,.72)}
.music-chip svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5}
.music-chip .sound-waves{display:none}.music-chip .sound-off{display:block;opacity:.7}
.music-chip.sound-enabled .sound-waves{display:block}.music-chip.sound-enabled .sound-off{display:none}
.music-chip.needs-gesture{box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 10%,transparent)}
@media(max-width:700px){.music-chip{left:auto;right:6vw;bottom:20px;width:40px;height:40px}}



/* Responsive layout, safe areas, and touch controls. */
html{min-width:280px}
body{overflow-wrap:break-word}
.app{min-height:100dvh;padding-left:max(4.2vw,env(safe-area-inset-left));padding-right:max(4.2vw,env(safe-area-inset-right))}
header,footer{flex-shrink:0}
header{padding-top:env(safe-area-inset-top)}
header .brand{min-width:0}.brand-mark{flex-shrink:0}
.event-switch{min-width:0}.event-switch button{min-height:44px}
.icon-button,.music-chip{width:44px;height:44px;min-width:44px;min-height:44px;flex-shrink:0}
.settings-button,.close-button,.presets button,.mode-switch label{min-height:44px}
.close-button{min-width:44px;display:grid;place-items:center}
footer{padding-right:64px;font-size:8px;line-height:1.6}
.footer-left{min-width:0}.footer-left>span:last-child{overflow-wrap:break-word}
.music-chip{right:max(4.2vw,env(safe-area-inset-right));bottom:calc(18px + env(safe-area-inset-bottom))}
.digits.has-days{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;align-items:start}
.digits.has-days>.colon{display:none}
.digits.has-days>.digit-unit{position:relative}
.digits.has-days>.digit-unit~.digit-unit::before{content:':';position:absolute;left:-14px;top:4px;transform:translateX(-50%);font-family:var(--font-serif);font-size:clamp(60px,8vw,112px);line-height:1.25;color:var(--accent-soft);opacity:.8}
.digit-value{max-width:100%;white-space:nowrap}
.date-note{line-height:1.6}
.timer-actions{flex-wrap:wrap}
dialog{max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain}
.time-inputs label{width:0;flex:1;min-width:0}
.mode-switch{flex-wrap:wrap;gap:8px 18px}
.date-label input{min-width:0;font-size:16px}
.checkbox-label{min-height:44px;line-height:1.5}
@media(min-width:1600px){.app{padding-left:max(6vw,env(safe-area-inset-left));padding-right:max(6vw,env(safe-area-inset-right))}.music-chip{right:max(6vw,env(safe-area-inset-right))}}
@media(max-width:1100px){.digits.has-days{gap:14px}.digits.has-days>.digit-unit~.digit-unit::before{left:-7px;font-size:7.5vw}}
@media(max-width:700px){
 .app{padding-left:max(6vw,env(safe-area-inset-left));padding-right:max(6vw,env(safe-area-inset-right))}
 header{height:84px;gap:8px}.brand-mark{width:38px;height:40px}
 .event-switch{flex:1;max-width:260px;justify-content:center}.event-switch button{flex:1;font-size:10px;padding:8px 9px}
 .stage{min-width:0}.stage>.eyebrow{font-size:7px;line-height:1.7;gap:8px}.tiny-line{width:20px;flex-shrink:0}
 main{min-height:0;padding:34px 0 36px}
 h1{max-width:calc(100% - 20px);font-size:clamp(28px,7.7vw,50px);line-height:1.18;margin:24px 0 15px}
 h1 em{margin-left:.12em}body[data-theme=thesis] h1{font-size:10vw}
 .event-description{margin-bottom:28px;font-size:18px;line-height:1.5}
 body[data-theme=thesis] .event-description{margin-bottom:28px;line-height:1.6}
 .digits.has-days{gap:9px;margin:24px auto}
 .digits.has-days .digit-value{font-size:12.5vw;letter-spacing:-1px}
 body[data-theme=thesis] .digits.has-days .digit-value{font-size:12vw;letter-spacing:-2px}
 .digit-label,.digits.has-days .digit-label{font-size:9px;letter-spacing:.7px;margin-top:9px}
 .digits.has-days>.digit-unit~.digit-unit::before{left:-4.5px;top:1px;font-size:8vw}
 .date-note{font-size:11px;margin-bottom:20px;letter-spacing:.2px}
 .timer-meta{font-size:8px;letter-spacing:1px;line-height:1.6;margin-top:16px}
 footer{min-height:84px;padding:16px 54px calc(20px + env(safe-area-inset-bottom)) 0;font-size:7px;align-items:center}
 .music-chip{right:max(6vw,env(safe-area-inset-right));bottom:calc(18px + env(safe-area-inset-bottom))}
 .settings-button{padding:11px 18px}.timer-caption{line-height:1.6}
 dialog{padding:20px}.dialog-top .eyebrow{font-size:7px;letter-spacing:1.4px}
 .time-inputs{gap:8px}.time-inputs input{font-size:22px;padding:10px}
 .presets{gap:6px}.presets button{font-size:10px}
 .mode-switch{margin-bottom:16px;padding-bottom:10px}.mode-switch label{font-size:11px}
 .dialog-sub{line-height:1.5}.checkbox-label{font-size:11px}.dialog-foot{line-height:1.5}
}
@media(max-width:700px) and (max-height:700px){
 header{height:76px}main{padding:22px 0 24px}
 h1{margin:17px 0 12px}.event-description,body[data-theme=thesis] .event-description{margin-bottom:18px}
 .digits,.digits.has-days{margin:16px auto 18px}.date-note{margin-bottom:15px}
 .timer-meta{margin-top:12px}.progress-track{margin-top:18px}
 footer{min-height:72px;padding-top:14px;padding-bottom:calc(14px + env(safe-area-inset-bottom))}
}
@media(max-height:500px) and (orientation:landscape){
 header{height:68px}main{min-height:0;padding:20px 0 24px}
 .stage>.eyebrow{font-size:8px}.event-description,body[data-theme=thesis] .event-description{margin-bottom:18px;font-size:13px;line-height:1.5}
 h1,body[data-theme=thesis] h1{font-size:38px;line-height:1.1;margin:16px 0 10px}
 .digits,.digits.has-days{max-width:650px;margin:14px auto 18px}
 .digits.has-days .digit-value{font-size:clamp(60px,10vw,94px)}
 body[data-theme=thesis] .digits.has-days .digit-value{font-size:clamp(56px,9.3vw,88px)}
 .digits.has-days>.digit-unit~.digit-unit::before{font-size:6.5vw;line-height:1.15}
 .date-note{font-size:11px;margin-bottom:16px}.timer-meta{margin-top:12px}
 footer{min-height:64px;padding-top:12px;padding-bottom:12px}
 dialog{max-height:calc(100dvh - 24px);padding:18px 24px}
}

@media(max-height:850px) and (min-width:701px){
 h1{font-size:50px;margin:18px 0 12px}body[data-theme=thesis] h1{font-size:48px}
 .event-description,body[data-theme=thesis] .event-description{margin-bottom:20px}
 .digits.has-days .digit-value{font-size:min(12.5vw,140px)}
 body[data-theme=thesis] .digits.has-days .digit-value{font-size:min(11.5vw,130px)}
}
/* Keep the model's full face inside the phone and tablet crop. */
@media(max-width:1100px){.scenery-couture{background-position:85% top}}

/* URBAN COUTURE: warm gold and open spacing from the supplied reference. */
body[data-theme=couture]{--accent:#cfc064;--accent-soft:#91813b;--text:#efeddf;--muted:#b7b09b;--line:rgba(207,192,100,.22)}
body[data-theme=couture] .digits .digit-value{color:#f3f1e7}
body[data-theme=couture] .digits .digit-label{color:#d5c877}
body[data-theme=couture] .timer-caption{color:#e7dbb2}
body[data-theme=couture] .timer-meta{color:#c8bc83}
@media(min-width:701px){
 body[data-theme=couture] header{height:100px;display:grid;grid-template-columns:1fr auto 1fr}
 body[data-theme=couture] .brand{width:auto;justify-self:start}
 body[data-theme=couture] .brand-copy{display:none}
 body[data-theme=couture] .brand-mark{width:56px;height:56px;font-size:30px}
 body[data-theme=couture] .brand-mark>span{font-size:18px;top:-12px}
 body[data-theme=couture] .event-switch{padding:6px}
 body[data-theme=couture] .event-switch button{font-size:12px;padding:17px 18px;min-height:52px}
 body[data-theme=couture] main{min-height:max(650px,calc(100svh - 180px));padding:42px 0 54px}
 body[data-theme=couture] .stage>.eyebrow{font-size:11px;letter-spacing:2.5px}
 body[data-theme=couture] h1{font-size:clamp(48px,6vw,76px);letter-spacing:5px;margin:26px 0 16px}
 body[data-theme=couture] h1 em{letter-spacing:7px}
 body[data-theme=couture] .event-description{font-size:24px;margin-bottom:28px}
 body[data-theme=couture] .digits{margin:22px auto 30px}
 body[data-theme=couture] .digits .digit-value{font-size:clamp(100px,12.5vw,192px)}
 body[data-theme=couture] .digits .digit-label{font-size:10px;letter-spacing:2px}
 body[data-theme=couture] .date-note{font-size:17px;letter-spacing:.5px}
 body[data-theme=couture] .settings-button{font-size:14px;padding:14px 20px;min-height:50px;background:#16150ee6}
 body[data-theme=couture] .timer-meta{font-size:10px;letter-spacing:2px;margin-top:22px}
 body[data-theme=couture] footer{min-height:80px}
}
@media(min-width:701px) and (max-width:1100px){body[data-theme=couture] .scenery-couture{background-position:78% top}}
@media(min-width:701px) and (max-height:500px){
 body[data-theme=couture] header{height:76px}
 body[data-theme=couture] main{min-height:0;padding:24px 0 32px}
 body[data-theme=couture] h1{font-size:38px;margin:16px 0 10px}
 body[data-theme=couture] .event-description{font-size:18px;margin-bottom:18px}
 body[data-theme=couture] .digits .digit-value{font-size:clamp(60px,10vw,94px)}
 body[data-theme=couture] .digits{margin:14px auto 18px}
}

body[data-theme=couture].completed .digits .digit-value{color:var(--accent)}

/* Keep the event selector centered after removing the fullscreen control. */
header{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
.event-switch{grid-column:2;justify-self:center}
@media(max-width:700px){
 header{grid-template-columns:38px minmax(0,1fr) 38px}
 .event-switch{width:100%}
}
