.td-tools-dialog {box-sizing:border-box;width:min(470px,calc(100% - 24px));max-height:85dvh;margin:auto;padding:0;overflow:auto;border:1px solid #acd7d6;border-radius:21px;background:#fffdf8;color:#102d49;font:600 1rem/1.45 Nunito,system-ui,sans-serif;box-shadow:0 16px 60px #103c4d38}
.td-tools-dialog::backdrop {background:#0d324980}
.td-tools-dialog header,.td-tool-body {padding:16px 20px}
.td-tools-dialog header {display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #cce7e6;background:#e0f6f1}
.td-tools-dialog h2,.td-tools-dialog p {margin:0}
.td-tools-dialog h2 {font-size:1.3rem}
.td-tool-body {display:grid;gap:14px}
.td-tools-dialog button,.td-tools-dialog input {min-height:44px;padding:7px 14px;border:1px solid #aacdcc;border-radius:12px;background:white;color:#104357;font:inherit}
.td-tools-dialog button {cursor:pointer}
.td-tools-dialog button:focus-visible,.td-tools-dialog a:focus-visible,.td-tools-dialog input:focus-visible {outline:3px solid #00848b;outline-offset:2px}
.td-tools-dialog .td-tools-close {font-size:1.45rem;line-height:1;padding:4px 12px}
.td-tools-choices,.td-timer-presets,.td-timer-controls,.td-month-controls {display:flex;justify-content:center;align-items:center;gap:6px;flex-wrap:wrap}
.td-tools-choices button {display:inline-flex;align-items:center;justify-content:center;gap:.4rem}
.td-tools-choices .td-icon {width:1.3rem;height:1.3rem;flex:none}
.td-timer-controls button:first-child,.td-tool-body>button {background:#00747b;border-color:#00747b;color:white}
.td-big-time,.td-center-date {text-align:center}
.td-big-time {font-size:clamp(2.6rem,10vw,4.7rem);font-variant-numeric:tabular-nums;line-height:1.2}
.td-month-controls {justify-content:space-between}
.td-month-grid {display:grid;grid-template-columns:repeat(7,1fr);gap:3px;text-align:center}
.td-month-grid>* {display:grid;place-items:center;min-height:2rem}
.td-month-grid small {color:#526670}
.td-month-grid [aria-current=date] {color:#fff;background:#00747b;border-radius:9px}
.td-search-list {list-style:none;padding:0;margin:0;overflow:auto;max-height:46dvh}
.td-search-list a {display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:45px;border-bottom:1px solid #dae8e5;color:#0c4346;text-decoration:none}
.td-search-list small {font-size:.8rem;color:#526670}
.td-tool-body p:empty {display:none}

.td-live-clock {display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:clamp(.65rem,1.6vw,1.6rem);min-width:0;color:#14394a}
.td-clock-face {display:block;width:clamp(6.25rem,11vw,10rem);max-width:100%;height:auto;flex:none;filter:drop-shadow(0 3px 3px #153d4618)}
.td-clock-rim {fill:#fffefa;stroke:#166a70;stroke-width:4}
.td-clock-ticks {stroke:#48656b}
.td-clock-numbers {fill:#18394b;font:700 16px Nunito,system-ui,sans-serif;text-anchor:middle;dominant-baseline:central}
.td-clock-face [data-hand=hour] {stroke:#193b4d;stroke-width:7}
.td-clock-face [data-hand=minute] {stroke:#147780;stroke-width:4}
.td-clock-face [data-hand=second] {stroke:#bf4b37;stroke-width:2}
.td-clock-pin {fill:#18394b}
.td-clock-details {display:grid;gap:.2rem;min-width:0;max-width:18rem;flex:1 1 9rem}
.td-clock-zone {font-size:.9rem;font-weight:750;color:#246467}
.td-clock-time {color:#103749;font:850 clamp(1.65rem,3.3vw,3.25rem)/1.1 Nunito,system-ui,sans-serif;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.td-clock-date {color:#365766;font-size:1rem;line-height:1.35}
.td-live-month {width:100%;min-width:0;max-width:32rem;justify-self:center}
.td-live-month .td-month-controls {gap:.3rem .65rem;margin-bottom:.3rem}
.td-live-month .td-month-controls strong {font-size:1.12rem;color:#153b4c}
.td-month-nav {display:flex;align-items:center;gap:.25rem}
.td-month-nav button {appearance:none;color:#144952;background:transparent;border:0;border-radius:.5rem;cursor:pointer;font:inherit}
.td-month-nav button,.td-tools-dialog .td-month-nav button {min-width:2.25rem;min-height:2.25rem;padding:.25rem .45rem;border:1px solid #bcd6d5;background:#fff;font-size:.9rem;font-weight:750}
.td-month-nav button:first-child,.td-month-nav button:last-child {font-size:1.35rem;line-height:1}
.td-live-month .td-month-grid {grid-template-columns:repeat(7,minmax(0,1fr))}
.td-live-month button:hover {box-shadow:inset 0 0 0 2px #37868c}
.td-tools-dialog .td-live-clock {flex-direction:column;gap:.75rem;text-align:center}
.td-tools-dialog .td-clock-face {width:min(15rem,65vw)}
.td-tools-dialog .td-clock-details {flex:none}

.td-tools-dialog .tw-clock-button .td-live-clock {flex-flow:row nowrap;gap:.5rem;text-align:start}
.td-tools-dialog .tw-clock-button .td-clock-face {width:3rem}
.td-clock-calendar-zoom {width:min(58rem,calc(100% - 1rem));max-height:94dvh}
.td-clock-calendar-zoom header {position:sticky;top:0;z-index:1}
.td-clock-calendar-zoom .td-tool-body {grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);align-items:center}
.td-clock-calendar-zoom .td-clock-face {width:min(17rem,90%)}
.td-clock-calendar-zoom .td-month-grid button {padding:.25rem;min-width:0}
.td-clock-calendar-zoom .td-live-month+button {margin-top:.65rem}
@media(max-width:620px) {
  .td-clock-calendar-zoom .td-tool-body {grid-template-columns:minmax(0,1fr);padding:12px}
  .td-clock-calendar-zoom .td-clock-face {width:min(9rem,26dvh)}
  .td-clock-calendar-zoom .td-live-clock {gap:.25rem}
}
