*{margin:0;padding:0;border:none}body{font-family:SF Pro Text,SF Pro Icons,Helvetica Neue,Helvetica,Arial,sans-serif}input,textarea,select,button{font-family:inherit}html,body,#fullscreen_area{width:100%;height:100%;font-size:1em}::-webkit-scrollbar{display:none}h1,h2,h3,h4,h5{padding:.4em .2em}p{padding:.2em}a{text-decoration:none;color:#55f}hr{margin-top:.5em;margin-bottom:.5em;border:0;height:1px;background-image:linear-gradient(to right,rgba(0,0,0,0),rgba(0,0,0,.75),rgba(0,0,0,0))}.center{text-align:center}.small{font-size:small}.nodisplay{display:none}.gray{color:gray}#loading-status{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;z-index:2147483647;background-color:#fff}html.dark-theme #loading-status,body.dark-theme #loading-status{background-color:#1a1a1a}#loading-content{text-align:center;padding:20px;font-size:18px;color:#333}html.dark-theme #loading-content,body.dark-theme #loading-content{color:#ccc}#loading-text{display:block}#loading-error{color:#d32f2f}html.dark-theme #loading-error,body.dark-theme #loading-error{color:#ef5350}#loading-error #error-message{font-size:18px;margin-bottom:16px}#loading-error #error-details{text-align:left;font-size:14px;color:#666;cursor:pointer}html.dark-theme #loading-error #error-details,body.dark-theme #loading-error #error-details{color:#999}#loading-error #error-details summary{margin-bottom:8px;outline:none}#loading-error #error-details summary:focus{outline:2px solid currentColor;outline-offset:2px}#loading-error #error-details pre{background-color:#f5f5f5;padding:12px;border-radius:4px;overflow-x:auto;white-space:pre-wrap;word-wrap:break-word;font-family:monospace;font-size:12px;line-height:1.4;max-width:80vw;max-height:60vh;overflow:auto}html.dark-theme #loading-error #error-details pre,body.dark-theme #loading-error #error-details pre{background-color:#2a2a2a}#msg-banner{z-index:99999;position:fixed;display:none;width:100%;top:0;left:0;padding:.2em;text-align:center}body.rotate-90 #msg-banner{width:100vh;top:0;right:0;left:auto;transform-origin:top right;transform:rotate(90deg);z-index:100000}body.rotate-90{position:fixed;width:100%;height:100%;overflow:hidden;margin:0;padding:0}.error-boundary{position:fixed;top:0;left:0;width:100%;height:100%;z-index:2147483646;display:none}.error-boundary.visible{display:block}.error-boundary-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.5)}.error-boundary-content{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background-color:#fff;padding:24px;border-radius:8px;max-width:90vw;max-height:80vh;overflow:auto;text-align:center}html.dark-theme .error-boundary-content,body.dark-theme .error-boundary-content{background-color:#1a1a1a;color:#fff}.error-boundary-icon{font-size:48px;margin-bottom:16px}.error-boundary-message{font-size:16px;margin-bottom:16px;line-height:1.5}.error-boundary-close{position:absolute;top:8px;right:12px;background:none;border:none;font-size:24px;cursor:pointer;color:inherit;opacity:.6}.error-boundary-details{text-align:left;margin-top:16px;font-size:12px}.error-boundary-details summary{cursor:pointer;margin-bottom:8px}.error-boundary-details summary:focus{outline:2px solid currentColor;outline-offset:2px}.error-boundary-details pre{background-color:#f5f5f5;padding:12px;border-radius:4px;overflow-x:auto;white-space:pre-wrap;word-wrap:break-word;font-family:monospace;font-size:11px;line-height:1.4;max-height:200px;overflow:auto}html.dark-theme .error-boundary-details pre,body.dark-theme .error-boundary-details pre{background-color:#2a2a2a}#clock{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100vh;padding:0;font-family:var(--font-clock, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);-moz-user-select:none;-webkit-user-select:none;user-select:none;overflow:hidden}#clock h1,#clock h2,#clock h3,#clock h4,#clock h5,#clock p{padding:0;margin:0}body.rotate-90 #clock{position:fixed;width:100vh;height:100vw;top:50%;left:50%;transform:translate(-50%,-50%) rotate(90deg);transform-origin:center center;overflow:hidden;margin:0;padding:0;z-index:1}#clock.format-24h.format-sec #hms{font-size:19vw}#clock.format-24h.format-nosec #hms{font-size:32vw}#clock.format-12h.format-sec #hms{font-size:15vw}#clock.format-12h.format-sec #ampm{font-size:5vw}#clock.format-12h.format-nosec #hms{font-size:25vw}#clock.format-12h.format-nosec #ampm{font-size:8vw}#time{margin:0;padding:0;width:100%;display:flex;justify-content:center;align-items:baseline;white-space:nowrap;line-height:1}#ampm{display:flex;flex-direction:column;justify-content:center;margin-right:.2em;font-weight:700}#ampm div{line-height:1.2}#hms{margin:0;padding:0;font-weight:900;display:flex;align-items:baseline}#hour,#minute{padding:0;margin:0}#second{font-size:.5em;padding-left:.1em}#date,#lunar{display:block;width:100%;text-align:center;white-space:nowrap;font-weight:600;font-style:italic;margin-top:1vh}#date{font-size:6vw;margin-top:2vh}#lunar{font-size:3.5vw}#date-left,#week{padding:0 .5em}body.rotate-90 #clock{width:100%;height:100%}body.rotate-90 #clock.format-24h.format-sec #hms{font-size:15vh}body.rotate-90 #clock.format-24h.format-nosec #hms{font-size:27vh}body.rotate-90 #clock.format-12h.format-sec #hms{font-size:12vh}body.rotate-90 #clock.format-12h.format-sec #ampm{font-size:4vh}body.rotate-90 #clock.format-12h.format-nosec #hms{font-size:20vh}body.rotate-90 #clock.format-12h.format-nosec #ampm{font-size:7vh}body.rotate-90 #date{font-size:5vh;margin-top:2vw}body.rotate-90 #lunar{font-size:2.5vh}#btn_settings{position:fixed;top:max(1rem,env(safe-area-inset-top));right:max(1rem,env(safe-area-inset-right));background:transparent;border:none;cursor:pointer;padding:.5rem;z-index:100;opacity:0;transition:opacity .3s ease-in-out;color:inherit}#btn_settings.visible,#btn_settings:hover{opacity:1}body.rotate-90 #btn_settings{top:auto;left:auto;bottom:max(1rem,env(safe-area-inset-bottom));right:max(1rem,env(safe-area-inset-right));transform:rotate(90deg)}.modal{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.5);display:flex;justify-content:center;align-items:center;z-index:1000}.modal[hidden]{display:none}.modal-content{width:90%;max-width:400px;max-height:90vh;max-height:90dvh;height:auto;overflow:hidden;border-radius:16px;padding:1.5rem;box-shadow:0 10px 25px rgba(0,0,0,.2);display:flex;flex-direction:column}.light-theme .modal-content{background-color:#fff;color:#000}.dark-theme .modal-content{background-color:#1a1a1a;color:#fff;border:1px solid #333}.modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem;flex-shrink:0}.modal-header h2{margin:0;font-size:1.25rem;font-weight:600}.modal-body{flex:1;overflow-y:auto;min-height:0}.modal-body::-webkit-scrollbar{width:4px}.modal-body::-webkit-scrollbar-thumb{background-color:rgba(128,128,128,.3);border-radius:2px}#btn_close_settings{background:transparent;border:none;cursor:pointer;padding:.25rem;color:inherit;opacity:.6}#btn_close_settings:hover{opacity:1}.setting-item{display:flex;justify-content:space-between;align-items:center;padding:1rem 0;border-bottom:1px solid rgba(128,128,128,.1)}.setting-item:last-child{border-bottom:none}.setting-item .setting-label-group{display:flex;flex-direction:column}.setting-item .setting-label-group small{font-size:.75rem;opacity:.6;margin-top:.25rem}.setting-item label{font-size:1rem;font-weight:500}.switch{position:relative;display:inline-block;width:50px;height:28px}.switch input{opacity:0;width:0;height:0}.switch .slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;transition:.4s;border-radius:34px}.dark-theme .switch .slider{background-color:#444}.switch .slider:before{position:absolute;content:"";height:20px;width:20px;left:4px;bottom:4px;background-color:#fff;transition:.4s;border-radius:50%}.switch input:checked+.slider{background-color:#55f}.switch input:checked+.slider:before{transform:translate(22px)}.segment-control{display:flex;background-color:rgba(128,128,128,.1);border-radius:8px;padding:2px}.segment-control .segment-btn{border:none;background:transparent;padding:6px 12px;border-radius:6px;cursor:pointer;font-size:.9rem;color:inherit;opacity:.7;transition:all .2s}.segment-control .segment-btn.active{background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.1);opacity:1;font-weight:500}.dark-theme .segment-control .segment-btn.active{background-color:#444}.number-control{display:flex;align-items:center;background-color:rgba(128,128,128,.1);border-radius:8px;padding:2px}.number-control button{border:none;background:transparent;width:32px;height:32px;cursor:pointer;font-size:1.2rem;color:inherit;display:flex;justify-content:center;align-items:center}.number-control button:hover{background-color:rgba(128,128,128,.1);border-radius:6px}.number-control input{width:40px;text-align:center;border:none;background:transparent;font-size:1rem;color:inherit;font-weight:500;-moz-appearance:textfield}.number-control input::-webkit-outer-spin-button,.number-control input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.modal-footer{margin-top:2rem;margin-bottom:1rem;text-align:center}.modal-footer .link-btn{display:inline-flex;align-items:center;color:inherit;text-decoration:none;font-size:.9rem;opacity:.7;padding:8px 16px;border-radius:20px;background-color:rgba(128,128,128,.1);transition:opacity .2s;margin:6px}.modal-footer .link-btn:hover{opacity:1;background-color:rgba(128,128,128,.2)}.version-info{text-align:center;padding-bottom:1.5rem;opacity:.4;font-size:.75rem}@media(max-width:480px){.modal-content{width:100%;height:100%;max-height:100%;max-width:100%;border-radius:0;padding-top:max(1rem,env(safe-area-inset-top));padding-bottom:max(1rem,env(safe-area-inset-bottom));padding-left:max(1rem,env(safe-area-inset-left));padding-right:max(1rem,env(safe-area-inset-right))}.setting-item{padding:1rem 0}.modal-body{margin-right:0;padding-right:0}}.setting-select{padding:.5rem 2rem .5rem .75rem;border-radius:8px;border:1px solid rgba(128,128,128,.2);background-color:rgba(128,128,128,.05);color:inherit;font-size:.9rem;font-family:inherit;outline:none;min-width:140px;max-width:200px;cursor:pointer;-webkit-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .5rem center}.dark-theme .setting-select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");background-color:rgba(255,255,255,.1)}.dark-theme .setting-select option{background-color:#1a1a1a;color:#fff}.error-boundary{position:fixed;top:0;left:0;right:0;bottom:0;z-index:9999;display:flex;align-items:center;justify-content:center;padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));opacity:0;pointer-events:none;transition:opacity .25s ease-out}.error-boundary.visible{opacity:1;pointer-events:auto}.error-boundary-overlay{position:absolute;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,.4);cursor:pointer}.error-boundary-content{position:relative;max-width:90vw;min-width:280px;max-height:calc(100vh - max(32px,2 * env(safe-area-inset-top)) - max(32px,2 * env(safe-area-inset-bottom)));padding:16px 20px;border-radius:12px;box-shadow:0 4px 20px rgba(0,0,0,.15);display:flex;flex-direction:column;gap:8px;overflow:hidden}.light-theme .error-boundary-content{background-color:#fff;border:1px solid #e0e0e0;color:#333}.dark-theme .error-boundary-content{background-color:#2a2a2a;border:1px solid #444;color:#f0f0f0}.device-kindle .error-boundary-content{border-width:2px;box-shadow:none}.error-boundary-icon{font-size:1.2rem;text-align:center}.error-boundary-message{font-size:.9rem;text-align:center;line-height:1.4}.error-boundary-close{position:absolute;top:8px;right:8px;font-size:1.5rem;cursor:pointer;padding:6px 10px;line-height:1;border-radius:6px;border-width:1px;border-style:solid;transition:opacity .2s,background-color .2s}.light-theme .error-boundary-close{background-color:rgba(0,0,0,.08);border-color:rgba(0,0,0,.15);color:#333}.light-theme .error-boundary-close:hover{background-color:rgba(0,0,0,.15)}.dark-theme .error-boundary-close{background-color:rgba(255,255,255,.1);border-color:rgba(255,255,255,.2);color:#f0f0f0}.dark-theme .error-boundary-close:hover{background-color:rgba(255,255,255,.2)}.error-boundary-close:hover{opacity:1}.device-kindle .error-boundary-close{border-width:2px}.error-boundary-details{font-size:.75rem;opacity:.7;overflow:hidden;display:flex;flex-direction:column;min-height:0}.error-boundary-details summary{cursor:pointer;text-align:center;padding:4px 0;flex-shrink:0}.error-boundary-details summary:hover{opacity:1}.error-boundary-details[open]{display:flex;flex-direction:column;flex:1;min-height:0}.error-boundary-detail-content{margin:8px 0 0;padding:8px;border-radius:4px;font-family:monospace;font-size:.7rem;white-space:pre-wrap;word-break:break-all;max-height:calc(100vh - 200px - max(32px,2 * env(safe-area-inset-top)) - max(32px,2 * env(safe-area-inset-bottom)));overflow-y:auto;flex:1;min-height:80px}.light-theme .error-boundary-detail-content{background-color:rgba(0,0,0,.05)}.dark-theme .error-boundary-detail-content{background-color:rgba(255,255,255,.05)}.light-theme{background-color:#fff;color:#000}.light-theme button{color:#333}.light-theme #msg-banner{background-color:#333;color:#fff}.light-theme .infobox{background-color:#fff;border:1px solid #999;color:#000}.light-theme .infobox a{color:#000;text-decoration:none;border-bottom:black 1px solid;padding-bottom:.1em}.light-theme .infobox a:hover{color:#000}.light-theme .info-close{background-color:#000;color:#fff}.light-theme .switches li{border:1px solid #ddd}.light-theme .gray{color:#666}.dark-theme{background-color:#000;color:#fff}.dark-theme button{color:#333}.dark-theme #msg-banner{background-color:#333;color:#fff}.dark-theme .infobox{background-color:#000;border:1px solid #999;color:#fff}.dark-theme .infobox a{color:#fff;text-decoration:none;border-bottom:white 1px solid;padding-bottom:.1em}.dark-theme .infobox a:hover{color:#fff}.dark-theme .info-close{background-color:#fff;color:#000}.dark-theme .switches li{border:1px solid #666}.dark-theme .switches label{color:#000}.dark-theme .gray{color:#999}body.device-kindle,body.device-kindle *{transition:none!important;animation:none!important}body.device-kindle.light-theme{background-color:#fff!important;color:#000!important}body.device-kindle.light-theme h1,body.device-kindle.light-theme h2,body.device-kindle.light-theme h3,body.device-kindle.light-theme h4,body.device-kindle.light-theme h5,body.device-kindle.light-theme p,body.device-kindle.light-theme span,body.device-kindle.light-theme div,body.device-kindle.light-theme a,body.device-kindle.light-theme button,body.device-kindle.light-theme label{color:#000!important}body.device-kindle.light-theme svg{stroke:#000!important;fill:none}body.device-kindle.light-theme .gray{color:#000!important}body.device-kindle.light-theme .modal-content{background-color:#fff!important;border:2px solid #000000!important;color:#000!important;box-shadow:none!important}body.device-kindle.light-theme .switch .slider{background-color:#fff!important;border:2px solid #000000!important}body.device-kindle.light-theme .switch .slider:before{background-color:#000!important}body.device-kindle.light-theme input:checked+.slider{background-color:#000!important}body.device-kindle.light-theme input:checked+.slider:before{background-color:#fff!important}body.device-kindle.dark-theme{background-color:#000!important;color:#fff!important}body.device-kindle.dark-theme h1,body.device-kindle.dark-theme h2,body.device-kindle.dark-theme h3,body.device-kindle.dark-theme h4,body.device-kindle.dark-theme h5,body.device-kindle.dark-theme p,body.device-kindle.dark-theme span,body.device-kindle.dark-theme div,body.device-kindle.dark-theme a,body.device-kindle.dark-theme button,body.device-kindle.dark-theme label{color:#fff!important}body.device-kindle.dark-theme svg{stroke:#fff!important;fill:none}body.device-kindle.dark-theme .gray{color:#fff!important}body.device-kindle.dark-theme .modal-content{background-color:#000!important;border:2px solid #ffffff!important;color:#fff!important;box-shadow:none!important}body.device-kindle.dark-theme .switch .slider{background-color:#000!important;border:2px solid #ffffff!important}body.device-kindle.dark-theme .switch .slider:before{background-color:#fff!important}body.device-kindle.dark-theme input:checked+.slider{background-color:#fff!important}body.device-kindle.dark-theme input:checked+.slider:before{background-color:#000!important}html.invert-colors{-webkit-filter:invert(100%);filter:invert(100%);background-color:#000;transition:none!important}
