#class-timer{box-sizing:border-box;width:390px;max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px);overflow:auto;background:#292b2f;color:#fff;border:2px solid #a9d8ff;border-radius:20px;padding:20px;box-shadow:0 12px 45px #16171955}#class-timer .timer-title{flex-wrap:nowrap;margin-bottom:0}#timer-drag{font-size:18px}#class-timer button{box-shadow:none;min-height:42px;border:1px solid #747880;background:#3b3e44;color:#fff;border-radius:10px;font-size:14px;padding:10px 8px;margin:0}#class-timer button:hover:not(:disabled){background:#4c5058}#class-timer button:focus-visible{outline:3px solid #ffcc66;outline-offset:3px}#class-timer button:disabled{opacity:.45}#class-timer #timer-start{background:#d1f5e9;color:#123d35;border-color:#d1f5e9;font-weight:700}#class-timer #timer-display{font-size:clamp(68px,8vw,96px);font-weight:750;line-height:1.1;letter-spacing:-.04em;margin:20px 0 8px;color:#fff;font-variant-numeric:tabular-nums}#class-timer #timer-display[data-warning="true"],#class-timer #timer-display[data-finished="true"]{color:#ffcc66}#timer-message{min-height:1.5em;text-align:center;color:#ffdc94;margin:0 0 14px}#class-timer .timer-presets{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}#class-timer .timer-presets button[aria-pressed="true"]{background:#fff;color:#292b2f;border-color:#fff;font-weight:700}.timer-custom{display:flex;align-items:center;gap:8px;margin:14px 0;font-size:14px}#class-timer #timer-minutes{box-sizing:border-box;width:65px;margin:0;background:#fff;color:#292b2f;border:1px solid #747880;padding:7px;font-size:16px}.timer-current-time{margin-left:auto;color:#d0d2d6;font-size:13px}#class-timer .timer-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}#class-timer .timer-position-actions{display:flex;gap:8px;margin-top:12px}#class-timer .timer-position-actions button{flex:1;font-size:12px;min-height:36px}#class-timer.timer-expanded{inset:0!important;width:100vw;max-width:none;height:100dvh;max-height:none;border-radius:0;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:24px}#class-timer.timer-expanded[hidden]{display:none}#class-timer.timer-expanded #timer-display{font-size:clamp(86px,22vw,340px);cursor:default}#class-timer.timer-expanded>div{width:min(540px,100%)}#class-timer.timer-expanded .timer-title{position:absolute;top:20px;width:calc(100% - 48px)}#class-timer.timer-expanded #timer-move,#class-timer.timer-expanded #timer-position{display:none}@media(max-width:420px){#class-timer{padding:16px}.timer-current-time{font-size:12px}}
#class-timer .timer-current-time{display:flex;flex-direction:column;align-items:center;margin:18px 0 0;color:#fff;font-variant-numeric:tabular-nums}#class-timer .timer-current-time span{font-size:14px;color:#d0d2d6}#class-timer #timer-clock{display:block;font-size:clamp(56px,7vw,80px);font-weight:750;line-height:1.15;letter-spacing:-.04em}#class-timer #timer-display{margin-top:16px}#class-timer .timer-position-actions button{flex:0 1 auto;padding-inline:18px}#class-timer .timer-close-row{display:flex;justify-content:flex-end;margin-top:12px}#class-timer.timer-expanded .timer-current-time{width:100%;margin:0}#class-timer.timer-expanded #timer-clock{font-size:clamp(66px,12vw,180px)}#class-timer.timer-expanded #timer-display{font-size:clamp(86px,18vw,260px);margin:16px 0 8px}#class-timer.timer-expanded .timer-close-row{position:absolute;bottom:20px;right:24px;width:auto}#class-timer.timer-expanded .timer-title{justify-content:flex-start}@media(max-height:650px){#class-timer.timer-expanded #timer-clock{font-size:64px}#class-timer.timer-expanded #timer-display{font-size:90px}#class-timer.timer-expanded{justify-content:flex-start;padding-top:64px}}

#class-timer .timer-custom{display:flex;gap:8px;flex-wrap:nowrap;margin:14px 0}#class-timer .timer-custom label{font-size:13px}#class-timer .timer-custom #timer-minutes{width:56px}#class-timer .timer-custom #timer-fullscreen{margin-left:auto}#class-timer .timer-custom button{font-size:13px;padding:8px;min-height:38px;white-space:nowrap}#class-timer #timer-clock{font-size:clamp(72px,9vw,104px)}#class-timer .timer-countdown-label{font-size:14px;color:#d0d2d6;text-align:center;margin:16px 0 0;line-height:1.2}#class-timer #timer-display{font-size:clamp(86px,11vw,120px);margin:0 0 8px}#class-timer.timer-expanded #timer-clock{font-size:clamp(80px,14vw,210px)}#class-timer.timer-expanded #timer-display{font-size:clamp(100px,21vw,300px);margin:0 0 8px}#class-timer.timer-expanded .timer-countdown-label{margin:8px 0 0}@media(max-width:380px){#class-timer .timer-custom{gap:5px}#class-timer .timer-custom button{font-size:12px;padding:7px}#class-timer #timer-clock{font-size:68px}#class-timer #timer-display{font-size:82px}}@media(max-height:750px){#class-timer.timer-expanded #timer-clock{font-size:clamp(70px,14vh,120px)}#class-timer.timer-expanded #timer-display{font-size:clamp(90px,20vh,160px)}}

#class-timer.timer-simple{width:520px;cursor:pointer;padding:24px}#class-timer.timer-simple .timer-title,#class-timer.timer-simple #timer-message,#class-timer.timer-simple .timer-presets,#class-timer.timer-simple .timer-custom,#class-timer.timer-simple .timer-actions{display:none}#class-timer.timer-simple .timer-current-time{margin:0}#class-timer.timer-simple #timer-clock{font-size:clamp(76px,13vw,145px);cursor:pointer}#class-timer.timer-simple #timer-display{font-size:clamp(86px,15vw,166px);cursor:pointer;touch-action:manipulation}#class-timer .timer-current-time,#class-timer .timer-countdown-label,#class-timer #timer-display{cursor:pointer;touch-action:manipulation}#class-timer:focus-visible{outline:3px solid #ffcc66;outline-offset:3px}#class-timer.timer-simple .timer-countdown-label{margin-top:18px}#class-timer.timer-simple.timer-expanded{width:100vw;justify-content:center;padding:24px}#class-timer.timer-simple.timer-expanded #timer-clock{font-size:clamp(90px,16vw,250px)}#class-timer.timer-simple.timer-expanded #timer-display{font-size:clamp(110px,24vw,360px)}@media(max-height:650px){#class-timer.timer-simple.timer-expanded #timer-clock{font-size:24vh}#class-timer.timer-simple.timer-expanded #timer-display{font-size:32vh}}

#class-timer{top:18px;right:18px;bottom:auto}@media(max-width:650px){#class-timer{top:10px;right:10px;bottom:auto}}

#class-timer button{background:#eef0f2;color:#292b2f;border-color:#c9cdd2;font-size:16px;font-weight:700;min-height:44px}#class-timer button:hover:not(:disabled){background:#fff;color:#292b2f}#class-timer button:disabled{opacity:1;background:#b9bdc3;color:#44474d;border-color:#a9aeb5;cursor:default}#class-timer #timer-start{background:#d1f5e9;color:#123d35;border-color:#d1f5e9}#class-timer #timer-start:hover:not(:disabled){background:#e5fff5;color:#123d35}#class-timer #timer-start:disabled{background:#b9bdc3;color:#44474d;border-color:#a9aeb5}#class-timer .timer-presets button[aria-pressed="true"]{background:#fff;color:#292b2f;border:2px solid #a2dfcc}#class-timer .timer-custom button{font-size:15px;min-height:42px;padding:8px}#class-timer .timer-custom label{font-size:14px;font-weight:600}#class-timer .timer-custom{gap:6px}@media(max-width:380px){#class-timer .timer-custom{flex-wrap:wrap}#class-timer .timer-custom button{font-size:15px}#class-timer button{font-size:16px}}

#class-timer #timer-pause,#class-timer #timer-pause:disabled{background:#d1f5e9;color:#123d35;border-color:#d1f5e9}#class-timer #timer-pause:hover:not(:disabled){background:#e5fff5;color:#123d35}#class-timer #timer-pause:disabled{color:#47685e}#class-timer{touch-action:none;user-select:none}#class-timer .timer-current-time,#class-timer .timer-countdown-label,#class-timer #timer-display{touch-action:none}#class-timer button,#class-timer input{touch-action:manipulation}#class-timer input{user-select:text}#class-timer.timer-dragging,#class-timer.timer-dragging *{cursor:grabbing!important}#class-timer.timer-dragging{outline:2px solid #a2dfcc;outline-offset:2px}

#class-timer,#class-timer.timer-simple,#class-timer .timer-current-time,#class-timer .timer-current-time *,#class-timer .timer-countdown-label,#class-timer #timer-display,#class-timer.timer-simple #timer-display{touch-action:none!important;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}#class-timer input{touch-action:manipulation!important;-webkit-user-select:text;user-select:text}

#class-timer.timer-simple,#class-timer.timer-simple .timer-current-time,#class-timer.timer-simple #timer-display{cursor:grab}

#class-timer #timer-clock{color:#a9d8ff}#class-timer #timer-display{color:#ffcc66}#class-timer #timer-display[data-warning="true"],#class-timer #timer-display[data-finished="true"]{color:#ff9b8e}
/* Float above resource screens; native dialogs receive the same movable panel. */
#class-timer{position:fixed!important;z-index:2147482000!important;right:18px;top:18px;bottom:auto}
#class-timer[hidden]{display:none!important}

#class-timer:not(.timer-expanded){top:calc(var(--dc-space, 0px) + 18px);max-height:calc(100dvh - var(--dc-space, 0px) - 36px)}

/* Close on the left; the draggable title on the right. */
#class-timer .timer-title,#class-timer.timer-expanded .timer-title{display:flex;align-items:center;justify-content:space-between;gap:12px}
#class-timer #timer-drag{margin-left:auto;text-align:right}
#class-timer #timer-reset{background:#e3d5ff;color:#3c245a;border-color:#bc9de7}
#class-timer #timer-reset:hover:not(:disabled){background:#efe5ff;color:#3c245a}
#class-timer.timer-simple .timer-title{display:none}
