:root{color-scheme:light;--paper:#F6F2EA;--ink:#3F4941;--muted:#667166;--line:#D8DBD4;--progress:0;font-family:Pretendard,"Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}body{margin:0}button,a,input{-webkit-tap-highlight-color:transparent}button,input{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #71877A;outline-offset:5px}button:disabled{cursor:default;opacity:.45}[hidden]{display:none!important}.app-shell{max-width:560px;margin:auto;padding:calc(24px + env(safe-area-inset-top)) 28px calc(18px + env(safe-area-inset-bottom));min-height:100svh;display:flex;flex-direction:column}.header{display:flex;justify-content:space-between;align-items:center}.brand{text-decoration:none;font-family:Georgia,serif;font-size:27px;letter-spacing:-1px;color:var(--ink)}.brand span{font-style:italic}.icon-button{display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--ink)}.icon-button svg{width:22px;fill:var(--paper);stroke:var(--ink);stroke-width:1.5}main{text-align:center;flex:1}.intro{margin-top:36px}.eyebrow{font-size:10px;letter-spacing:3px;margin:0 0 18px;color:var(--muted)}h1{font-size:26px;font-weight:400;line-height:1.5;letter-spacing:-1px;margin:0}h1 em{font-style:normal;font-size:40px;font-weight:400}.subtitle{font-size:13px;color:var(--muted);margin:14px 0 0}.hourglass-wrap{position:relative;width:240px;margin:22px auto 0}.hourglass{width:216px;height:270px;position:relative;z-index:1}.orbit{position:absolute;border:1px solid #D8DBD4;border-radius:50%;width:236px;height:236px;top:17px;left:2px}.orbit-two{width:268px;height:268px;top:1px;left:-14px;opacity:.35}.sand-stream{opacity:0}main[data-state=running] .sand-stream{opacity:1;animation:fall .5s linear infinite}main[data-state=complete] .hourglass-wrap{opacity:.75}main[data-state=paused] .hourglass-wrap{opacity:.65}.time{font-family:"Noto Serif KR",serif;font-variant-numeric:tabular-nums;font-size:38px;font-weight:400;letter-spacing:3px;margin:12px 0;line-height:1.2}.time.is-hidden{visibility:hidden}.ritual-message{font-size:13px;color:var(--muted);margin:14px 0 24px}.actions{max-width:340px;margin:auto;min-height:100px}.primary-button{width:100%;min-height:56px;background:var(--ink);color:var(--paper);border:0;border-radius:5px;padding:16px 24px;letter-spacing:.3px;font-size:14px;display:flex;justify-content:center;gap:24px;align-items:center;transition:background .2s}.primary-button:hover{background:#505D52}.text-button{background:transparent;border:0;color:var(--muted);font-size:12px;min-height:44px;padding:12px 16px;text-decoration:underline;text-underline-offset:4px}footer{text-align:center}footer>p:first-child{font-size:9px;letter-spacing:2.5px;margin:8px 0;color:#667166}.connection{font-size:10px;color:var(--muted);min-height:14px;margin:10px 0 0}.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}dialog{width:min(440px,calc(100% - 32px));border:1px solid var(--line);border-radius:16px;background:var(--paper);color:var(--ink);padding:24px;max-height:85svh;overflow-y:auto}dialog::backdrop{background:#3F4941a6;backdrop-filter:blur(4px)}.dialog-header{display:flex;align-items:center;justify-content:space-between}.dialog-header h2{font-size:21px;font-weight:500;margin:0}.settings-intro{color:var(--muted);font-size:13px;margin:12px 0 22px}.setting-row{display:flex;gap:12px;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding:20px 0;font-size:14px}.setting-row small{display:block;max-width:245px;font-size:11px;color:var(--muted);line-height:1.6;margin-top:7px}.setting-row input{appearance:none;flex:none;width:42px;height:26px;border-radius:20px;background:#c7cbbd;position:relative;margin:0;cursor:pointer}.setting-row input:before{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;background:#fff;border-radius:50%;transition:transform .2s}.setting-row input:checked{background:var(--ink)}.setting-row input:checked:before{transform:translateX(16px)}.settings-note{font-size:11px;line-height:1.8;color:var(--muted)}@keyframes fall{to{stroke-dashoffset:-12}}@media(min-width:700px){.app-shell{padding-top:36px}.intro{margin-top:45px}}@media(max-height:740px){.intro{margin-top:18px}.eyebrow{margin-bottom:10px}.hourglass-wrap{margin-top:10px}.hourglass{height:220px;width:176px}.orbit{width:196px;height:196px;left:22px;top:12px}.orbit-two{width:216px;height:216px;left:12px;top:2px}.time{margin:6px 0}.ritual-message{margin:10px 0 18px}}@media(prefers-reduced-motion:reduce){*,*:before{animation:none!important;transition:none!important}}

.brand{display:flex;align-items:center;min-height:44px}.brand img{display:block;width:157px;height:auto;max-width:55vw}
.sound-hint{font-size:11px;line-height:1.8;color:var(--muted);margin:14px 0 0;word-break:keep-all}
.connection:empty{display:none}
.intro{margin-top:48px}@media(max-height:740px){.intro{margin-top:30px}}
.duration-options{display:flex;justify-content:center;gap:6px;margin:20px auto 0;width:fit-content;padding:4px;border:1px solid var(--line);border-radius:28px}
.duration-options button{border:0;border-radius:22px;min-width:70px;min-height:44px;padding:10px 18px;background:transparent;color:var(--muted);font-size:13px}
.duration-options button[aria-pressed=true]{background:var(--ink);color:var(--paper)}
main[data-state=running] .intro,main[data-state=paused] .intro{margin-bottom:30px}
@media(max-height:740px){.duration-options{margin-top:12px}.duration-options button{min-height:44px}main[data-state=running] .intro,main[data-state=paused] .intro{margin-bottom:20px}}
/* Size the ritual to the smallest visible viewport, including browser chrome.
   Keep natural scrolling available for large text and very short screens. */
.app-shell{padding:calc(clamp(12px,2svh,22px) + env(safe-area-inset-top)) 24px calc(12px + env(safe-area-inset-bottom))}
.header{flex-shrink:0}
.intro{margin-top:clamp(8px,2svh,20px)}
h1{font-size:24px;line-height:1.25}h1 em{font-size:36px}
.subtitle{font-size:12px;line-height:1.5;margin:6px 0 0}
.duration-options{margin-top:10px;padding:2px}.duration-options button{min-height:44px}
.hourglass-wrap{width:240px;margin:8px auto 0;height:clamp(110px,calc(100svh - 530px),260px);display:flex;justify-content:center;align-items:center}
.hourglass{display:block;width:auto;height:100%;max-width:100%;flex-shrink:0}
.orbit{width:min(236px,calc(100svh - 530px));height:auto;aspect-ratio:1;top:50%;left:50%;transform:translate(-50%,-50%)}
.orbit-two{width:min(268px,calc(100svh - 505px))}
.time{font-size:32px;line-height:1.1;margin:6px 0}
.ritual-message{font-size:12px;line-height:1.5;margin:8px 0 12px}
.actions{min-height:0;width:100%;margin:12px auto 0}
.primary-button{min-height:52px;padding:14px 20px}
.sound-hint{font-size:10px;line-height:1.7;margin:8px 0 0}
.sound-hint{font-size:12px;line-height:1.7}
.secondary-actions{display:flex;justify-content:center;gap:8px;margin-top:10px}
.secondary-button{display:inline-flex;justify-content:center;align-items:center;gap:7px;min-height:44px;padding:10px 14px;border:1px solid #B7C0B7;border-radius:5px;background:transparent;color:var(--ink);font-size:12px;line-height:1.5;text-decoration:none}
.secondary-actions .secondary-button{flex:1}
.secondary-button:hover{background:#E6EDE8}
.secondary-button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.button-icon{width:18px;height:18px;fill:currentColor;flex-shrink:0}
.app-version{font-size:11px;color:var(--muted);margin:0 0 6px}
.update-controls{display:flex;align-items:center;gap:10px;margin:0 0 12px}
.update-controls>button{flex-shrink:0}
.update-status{margin:0;min-width:0;font-size:12px;line-height:1.5;color:var(--ink);overflow-wrap:anywhere}
#update-apply{margin-bottom:12px}
.brand-credit{font-size:clamp(10px,3vw,12px);color:var(--muted);line-height:1.8;border-top:1px solid var(--line);padding-top:16px;margin:20px 0 0;white-space:nowrap;text-align:center}
.settings-feature-title{font-size:13px;color:var(--ink);margin:16px 0 0}
footer{padding-top:12px}footer>p:first-child{line-height:1.4;margin:0}
main[data-state=running] .intro,main[data-state=paused] .intro{margin-bottom:0}
@media(max-height:620px){
  .app-shell{padding-top:calc(10px + env(safe-area-inset-top));padding-bottom:calc(10px + env(safe-area-inset-bottom))}
  .intro{margin-top:8px}h1{font-size:22px;line-height:1.2}h1 em{font-size:30px}
  .subtitle{font-size:11px;margin-top:4px}.duration-options{margin-top:8px}
  .hourglass-wrap{height:clamp(96px,calc(100svh - 472px),140px);margin-top:6px}
  .orbit{width:132px}.orbit-two{width:152px}
  .time{font-size:28px;margin:4px 0}.actions{margin-top:8px}.primary-button{min-height:48px;padding:12px 20px}
  footer{padding-top:8px}
}

/* Notion brand typography: practical UI in Pretendard, restrained serif accents. */
h1,.subtitle{font-family:"Noto Serif KR",serif;font-weight:400}
h1{letter-spacing:-.6px}
.time{letter-spacing:1px;line-height:1.3}
footer>p:first-child{font-family:"Cormorant Garamond",serif;font-size:13px;letter-spacing:1.5px;color:var(--ink)}

/* Brand guide: two type families on screen, clear information and quiet accents. */
.subtitle{font-family:Pretendard,system-ui,sans-serif;font-size:13px}
footer>p:first-child{font-family:Pretendard,system-ui,sans-serif;font-size:10px;letter-spacing:1.6px;color:var(--muted)}
.duration-options{width:100%;max-width:340px;gap:4px;padding:4px}
.duration-options button{flex:1;min-width:0;padding:10px 6px;font-size:13px;white-space:nowrap}
.duration-options #custom-open{flex:1.65;font-size:12px}
.primary-button{font-weight:500}
.setting-row small,.settings-note{font-size:12px}
.custom-dialog{max-width:400px;padding:24px;border-radius:12px}
.custom-dialog .dialog-header{gap:12px}
.custom-dialog h2{font-family:"Noto Serif KR",serif;font-size:23px;font-weight:400;line-height:1.4;letter-spacing:-.4px}
.custom-dialog .icon-button{flex-shrink:0}
.custom-description{font-size:14px;line-height:1.6;margin:14px 0 28px;color:var(--muted);word-break:keep-all}
.custom-label{display:block;font-size:13px;font-weight:500;margin-bottom:10px}
.minutes-field{display:flex;align-items:baseline;justify-content:center;gap:10px;border:1px solid var(--line);border-radius:6px;padding:12px 20px;background:var(--paper)}
.minutes-field:focus-within{border-color:var(--ink)}
.minutes-field input{width:3ch;text-align:center;border:0;background:transparent;color:var(--ink);font-family:"Noto Serif KR",serif;font-size:44px;line-height:1.3;padding:0;border-radius:2px}
.minutes-field span{font-size:16px}
.custom-range{font-size:12px;line-height:1.6;color:var(--muted);margin:12px 0 0;word-break:keep-all}
.custom-error{font-size:13px;line-height:1.6;color:var(--ink);margin:8px 0 0;font-weight:500}
.custom-actions{display:flex;gap:10px;margin-top:28px}
.custom-actions .secondary-button{min-width:72px;font-size:14px}
.custom-actions .primary-button{font-size:14px;flex:1;width:auto;min-width:0}
@media(max-width:350px){.custom-dialog{padding:20px}.custom-dialog h2{font-size:21px}.custom-description{font-size:13px}}
.bell-options{margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}
.bell-options>label{display:block;font-size:13px;font-weight:500;margin:14px 0 8px}
.bell-options>label:first-child{margin-top:0}
.bell-options select,.finish-select{font:inherit;min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:5px;background:var(--paper);color:var(--ink)}
.bell-options select{width:100%;font-size:14px}
.finish-select{flex-shrink:0;font-size:14px}
.interval-field{margin-top:12px;display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;font-size:12px}
.interval-field>div{display:flex;align-items:center;gap:8px}
.interval-field input{width:66px;min-height:44px;border:1px solid var(--line);border-radius:5px;padding:8px;text-align:center;font-size:16px;background:var(--paper);color:var(--ink)}
.custom-dialog .dialog-header{position:sticky;top:0;background:var(--paper);z-index:2}
.custom-dialog .custom-description{margin:8px 0 14px}
.custom-dialog .minutes-field{padding:8px 20px}
.custom-dialog .minutes-field input{font-size:36px}
.custom-dialog .bell-options{margin-top:16px;padding-top:12px}
.custom-dialog .bell-options>label{margin:10px 0 6px}
.custom-dialog .bell-options>label:first-child{margin-top:0}
.custom-dialog .custom-range{margin-top:8px}
.custom-dialog .custom-actions{margin-top:20px}
.brand-links{display:grid;gap:10px;border-top:1px solid var(--line);padding-top:18px;margin-top:20px}
.brand-home{width:100%;justify-content:space-between}
.share-row{display:flex;align-items:center;gap:12px}
.share-row>button{flex-shrink:0}
#share-status{font-size:12px;line-height:1.5;margin:0;min-width:0;color:var(--ink);word-break:keep-all;overflow-wrap:anywhere}
.share-link-field{font-size:12px;color:var(--muted)}
.share-link-field input{display:block;width:100%;min-width:0;min-height:44px;margin-top:6px;padding:10px;border:1px solid var(--line);border-radius:5px;background:var(--paper);color:var(--ink);font-size:16px}
.bowl-dialog{width:min(420px,calc(100% - 28px));text-align:center;padding:22px}
.bowl-dialog h2{font-family:Pretendard,sans-serif;font-size:20px;font-weight:500;text-align:left;letter-spacing:-.4px}
.bowl-dialog .dialog-header{gap:12px}.bowl-dialog .icon-button{flex-shrink:0}
.bowl-description{font-size:13px;line-height:1.8;color:var(--muted);margin:16px 0 8px}
.bowl-surface{--bowl-energy:0;position:relative;display:block;width:min(100%,300px);aspect-ratio:1;margin:8px auto;border:0;border-radius:50%;padding:0;background:transparent;touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab}
.bowl-surface:active{cursor:grabbing}.bowl-surface svg{display:block;width:100%;height:100%;pointer-events:none}
.bowl-contact{position:absolute;left:50%;top:50%;width:12px;height:12px;margin:-6px;pointer-events:none;background:var(--paper);border-radius:50%;opacity:var(--bowl-energy);transform:rotate(var(--bowl-angle,0rad)) translateX(var(--bowl-radius,126px));box-shadow:0 0 12px #F6F2EA}
.bowl-wave{position:absolute;inset:8%;border:1px solid #C69A4B;border-radius:50%;opacity:0;pointer-events:none}
.bowl-surface.is-struck .bowl-wave{animation:bowl-wave 1.6s ease-out}
.bowl-surface[data-state=rubbing] .bowl-wave{opacity:calc(var(--bowl-energy) * .65);transform:scale(1.06)}
.bowl-status{font-size:12px;color:var(--muted);line-height:1.6;min-height:39px;margin:6px 0 10px;word-break:keep-all}
.bowl-strike{min-width:150px;font-size:13px}.bowl-note{font-size:12px;line-height:1.7;color:var(--muted);margin:16px 0 0}
@keyframes bowl-wave{from{transform:scale(.95);opacity:.7}to{transform:scale(1.22);opacity:0}}
@media(max-height:650px){.bowl-dialog{padding:18px}.bowl-surface{width:min(100%,230px)}.bowl-description{margin-top:10px}.bowl-note{margin-top:10px}}
#settings-open{position:relative}
#settings-open.has-update:after{content:"";position:absolute;top:2px;right:2px;width:8px;height:8px;background:#C69A4B;border:2px solid var(--paper);border-radius:50%}
.main-update{margin-top:10px;padding:8px 12px;border:1px solid var(--line);border-radius:6px;flex-shrink:0}
.main-update-row{display:flex;align-items:center;justify-content:space-between;gap:8px}
.main-update-row>p{font-size:12px;line-height:1.5;margin:0;word-break:keep-all}
.main-update-row>button{flex-shrink:0;font-size:12px;min-height:44px;padding:8px 10px}
.update-notes{font-size:12px;line-height:1.5;color:var(--muted);margin:6px 0 0;overflow-wrap:anywhere}
#settings-update-notes{margin:0 0 12px}
.app-shell.has-update .hourglass-wrap{height:max(60px,calc(clamp(110px,calc(100svh - 530px),260px) - var(--update-space,90px)))}
.app-shell.has-update .orbit,.app-shell.has-update .orbit-two{max-width:100%;max-height:100%;width:auto;height:100%}
@media(max-height:620px){.app-shell.has-update .hourglass-wrap{height:max(42px,calc(clamp(96px,calc(100svh - 472px),140px) - var(--update-space,90px)))}.app-shell.has-update .intro{margin-top:6px}.app-shell.has-update .sound-hint{margin-top:6px}.app-shell.has-update .secondary-actions{margin-top:8px}}
#main-update-notes{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
/* Match PARTNER's supplied wordmark and centered service descriptor. */
.app-shell{padding-top:env(safe-area-inset-top);padding-inline:24px}
.header{height:83px;min-height:83px;align-items:center}
.header .brand{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;flex-shrink:0;min-height:44px;letter-spacing:normal}
.header .brand img{width:155px;max-width:none;height:auto}
.header .brand .brand-app-name{display:block;width:100%;text-align:center;font:400 10px/1 Pretendard,sans-serif;font-style:normal;letter-spacing:2.8px;margin-top:9px;padding-left:0;color:var(--ink)}
.hourglass-wrap{height:clamp(90px,calc(100svh - 550px),240px)}
.app-shell.has-update .hourglass-wrap{height:max(40px,calc(clamp(90px,calc(100svh - 550px),240px) - var(--update-space,90px)))}
@media(max-width:760px){.app-shell{padding-inline:20px}.header{height:77px;min-height:77px}.header .brand img{width:138px}.header .brand .brand-app-name{font-size:9px;letter-spacing:2.3px;margin-top:8px}}
@media(max-height:620px){.hourglass-wrap{height:clamp(76px,calc(100svh - 492px),120px)}.app-shell.has-update .hourglass-wrap{height:max(22px,calc(clamp(76px,calc(100svh - 492px),120px) - var(--update-space,90px)))}.app-shell.has-update .secondary-actions{margin-top:6px}}
.install-link{display:block;margin:4px auto 0;font-size:12px;line-height:1.5;min-height:44px;color:var(--ink)}
.install-description{font-size:13px;line-height:1.8;color:var(--muted);margin:18px 0 0;word-break:keep-all}
.install-steps{margin:20px 0 0;padding-left:22px;font-size:14px;line-height:1.8;word-break:keep-all}
.install-steps li+li{margin-top:12px}
.update-details{flex:1;min-width:0}
.current-update-summary{font-size:12px;line-height:1.6;margin:0;color:var(--muted);word-break:keep-all;overflow-wrap:anywhere}
.update-details .update-status:not(:empty){margin-top:4px}

/* A contained illustration and a quieter main screen, with no overlapping orbits. */
#ritual{display:flex;flex-direction:column;align-items:center;flex:1;min-width:0}
#ritual>.intro,#ritual>.timer-area{width:100%}
#ritual .intro{margin:16px 0 0}
#ritual h1{font-size:22px;line-height:1.5;letter-spacing:-.6px;word-break:keep-all}
#ritual .subtitle{font-size:13px;line-height:1.6;margin:6px 0 0}
#ritual .duration-options{flex-shrink:0;margin:16px auto 0;border-radius:12px}
#ritual .duration-options button{border-radius:8px}
#ritual .hourglass-wrap{isolation:isolate;flex-shrink:0;width:min(240px,100%);height:clamp(76px,calc(100svh - 500px),260px);margin:16px auto 0}
#ritual .hourglass{height:100%;width:auto;max-width:100%;object-fit:contain}
#ritual .time{font-size:36px;line-height:1.3;letter-spacing:1px;margin:8px 0 0}
#ritual .actions{flex-shrink:0;max-width:340px;margin:16px auto 0}
#ritual .primary-button{min-height:52px;border-radius:8px;font-size:15px}
#ritual .sound-hint{font-size:12px;line-height:1.7;margin:10px 0 0}
#ritual .secondary-actions{margin-top:10px}
#ritual .secondary-button{border-radius:8px;font-size:13px}
#ritual .install-link{margin:4px auto 0;color:var(--muted)}
.app-shell>footer{padding-top:0}
.app-shell>footer .connection{font-family:Pretendard,sans-serif;font-size:11px;letter-spacing:0;line-height:1.5;margin:8px 0 0}
.app-shell.has-update #ritual .hourglass-wrap{height:max(48px,calc(clamp(76px,calc(100svh - 500px),260px) - var(--update-space,90px)))}
@media(max-height:650px){
  #ritual .intro{margin-top:8px}
  #ritual h1{font-size:20px}
  #ritual .duration-options{margin-top:10px}
  #ritual .hourglass-wrap{margin-top:10px}
  #ritual .actions{margin-top:10px}
  #ritual .time{font-size:32px;margin-top:6px}
}
@media(min-width:761px) and (min-height:800px){
  #ritual .intro{margin-top:28px}
  #ritual h1{font-size:26px}
  #ritual .duration-options{margin-top:22px}
  #ritual .hourglass-wrap{margin-top:24px}
}
