/* Alarm Clock Tools — component styles. Light, minimal, mobile-first. */
:root {
  --act-bg: #ffffff;
  --act-surface: #f6f7fb;
  --act-surface-2: #eef0f6;
  --act-border: #e3e6ef;
  --act-text: #131a2c;
  --act-muted: #5a6377;
  --act-accent: #4f46e5;
  --act-accent-hover: #4338ca;
  --act-accent-soft: #eef0ff;
  --act-accent-ink: #3730a3;
  --act-good: #15803d;
  --act-good-soft: #e9f8ef;
  --act-bad: #c2410c;
  --act-bad-soft: #fff1e8;
  --act-danger: #dc2626;
  --act-radius: 16px;
  --act-radius-sm: 10px;
  --act-shadow: 0 1px 2px rgba(19, 26, 44, .04), 0 6px 24px rgba(19, 26, 44, .06);
  --act-focus: 0 0 0 3px rgba(79, 70, 229, .35);
  --act-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
}

.act-tool { color: var(--act-text); font-variant-numeric: tabular-nums; margin-block: 0 2.5rem; }
.act-tool *, .act-tool *::before, .act-tool *::after { box-sizing: border-box; }
.act-tool [hidden] { display: none !important; }
.act-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.act-noscroll, .act-noscroll body { overflow: hidden; }

/* ---------- Layout ---------- */
.act-grid { display: grid; gap: 1.25rem; }
@media (min-width: 960px) { .act-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; } }
.act-side { display: grid; gap: 1.25rem; }
.act-grid > *, .act-side > * { min-width: 0; }
@media (max-width: 360px) {
  .act-select--big { font-size: 1.3rem; padding: .4rem 1.5rem .4rem .5rem; background-position: right .25rem center; }
  .act-card { padding: .9rem; }
}
.act-card { background: var(--act-bg); border: 1px solid var(--act-border); border-radius: var(--act-radius); box-shadow: var(--act-shadow); padding: clamp(1rem, 3vw, 1.75rem); }
.act-card + .act-card { margin-top: 1.25rem; }
.act-grid > .act-card + .act-card, .act-side > .act-card + .act-card { margin-top: 0; }
.act-card__head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.act-card__title { font-size: 1.05rem !important; font-weight: 650; margin: 0 !important; letter-spacing: -.01em; line-height: 1.3; }
.act-card > .act-card__title { margin-bottom: .9rem !important; }
.act-row { display: flex; gap: 1rem; align-items: flex-end; }
.act-row--wrap { flex-wrap: wrap; align-items: center; gap: .6rem 1.25rem; margin-top: .25rem; }
@media (max-width: 560px) { .act-row:not(.act-row--wrap) { flex-direction: column; align-items: stretch; } }
.act-inline { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.act-inline > .act-select { flex: 1 1 10rem; }
.act-field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; min-width: 0; }
.act-row .act-field { margin-bottom: 1rem; }
.act-field--grow { flex: 1 1 auto; }
.act-grid3 { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

/* ---------- Form controls ---------- */
.act-label { font-size: .875rem; font-weight: 600; color: var(--act-text); }
.act-optional { font-weight: 400; color: var(--act-muted); }
.act-input, .act-select {
  font: inherit; font-size: 1rem; color: var(--act-text); background: var(--act-bg);
  border: 1px solid var(--act-border); border-radius: var(--act-radius-sm);
  min-height: 44px; padding: .55rem .8rem; width: 100%; transition: border-color .15s, box-shadow .15s;
}
.act-select { appearance: none; -webkit-appearance: none; padding-right: 2.2rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='18' height='18'%3E%3Cpath fill='%235a6377' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .6rem center; }
.act-input:hover, .act-select:hover { border-color: #c9cede; }
.act-input:focus, .act-select:focus { outline: none; border-color: var(--act-accent); box-shadow: var(--act-focus); }
.act-input:disabled { background: var(--act-surface); color: var(--act-muted); }
.act-check { display: inline-flex; align-items: center; gap: .55rem; font-size: .95rem; cursor: pointer; min-height: 36px; }
.act-check input { width: 18px; height: 18px; accent-color: var(--act-accent); margin: 0; }
.act-range { width: 100%; accent-color: var(--act-accent); min-height: 32px; }

/* ---------- Buttons ---------- */
.act-btn {
  font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2; display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 44px; padding: .6rem 1.1rem; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  background: var(--act-surface); color: var(--act-text); transition: background-color .15s, color .15s, border-color .15s, transform .05s;
  -webkit-tap-highlight-color: transparent; text-decoration: none; white-space: nowrap;
}
.act-btn:hover { background: var(--act-surface-2); }
.act-btn:active { transform: translateY(1px); }
.act-btn:focus-visible, .act-chip:focus-visible, .act-icon-btn:focus-visible, .act-seg__btn:focus-visible, .act-tab:focus-visible, .act-switch input:focus-visible + .act-switch__ui, .act-table-wrap:focus-visible { outline: none; box-shadow: var(--act-focus); }
.act-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.act-btn--primary { background: var(--act-accent); color: #fff; }
.act-btn--primary:hover { background: var(--act-accent-hover); }
.act-btn--soft { background: var(--act-accent-soft); color: var(--act-accent-ink); }
.act-btn--soft:hover { background: #e2e5ff; }
.act-btn--ghost { background: transparent; border-color: var(--act-border); color: var(--act-text); }
.act-btn--ghost:hover { background: var(--act-surface); }
.act-btn--sm { min-height: 36px; padding: .4rem .85rem; font-size: .875rem; }
.act-btn--lg { min-height: 52px; padding: .8rem 1.6rem; font-size: 1.05rem; }
.act-btn--xl { min-height: 60px; min-width: 7.5rem; padding: .9rem 1.5rem; font-size: 1.1rem; }
.act-btn--main { min-width: 9.5rem; }
.act-btn--main.is-running { background: #fff; color: var(--act-accent-ink); border-color: var(--act-accent); }
.act-btn--main.is-running:hover { background: var(--act-accent-soft); }
.act-icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 0; background: transparent; color: var(--act-muted); cursor: pointer; }
.act-icon-btn:hover { background: var(--act-surface); color: var(--act-text); }
.act-icon-btn--danger:hover { background: #fdecec; color: var(--act-danger); }
.act-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: .5rem; }
.act-actions .act-btn--primary { flex: 1 1 12rem; }

.act-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.act-chips--center { justify-content: center; margin: 1rem 0 0; }
.act-chip { font: inherit; font-size: .875rem; font-weight: 500; min-height: 36px; padding: .35rem .85rem; border-radius: 999px; border: 1px solid var(--act-border); background: var(--act-bg); color: var(--act-text); cursor: pointer; display: inline-flex; align-items: center; gap: .3rem; }
.act-chip:hover { border-color: var(--act-accent); color: var(--act-accent-ink); background: var(--act-accent-soft); }
.act-chip--custom { border-style: dashed; }
.act-chip__x { border: 0; background: transparent; color: var(--act-muted); font-size: 1.05rem; line-height: 1; padding: 0 0 0 .2rem; cursor: pointer; }
.act-chip__x:hover { color: var(--act-danger); }

.act-seg { display: inline-flex; padding: 3px; background: var(--act-surface); border-radius: 999px; border: 1px solid var(--act-border); }
.act-seg__btn { font: inherit; font-size: .85rem; font-weight: 600; min-height: 32px; padding: .25rem .8rem; border: 0; border-radius: 999px; background: transparent; color: var(--act-muted); cursor: pointer; }
.act-seg__btn[aria-pressed="true"] { background: var(--act-bg); color: var(--act-text); box-shadow: 0 1px 3px rgba(19, 26, 44, .12); }

.act-switch { position: relative; display: inline-flex; cursor: pointer; }
.act-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.act-switch__ui { width: 46px; height: 28px; border-radius: 999px; background: #cdd2df; position: relative; transition: background-color .2s; }
.act-switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
.act-switch input:checked + .act-switch__ui { background: var(--act-accent); }
.act-switch input:checked + .act-switch__ui::after { transform: translateX(18px); }
.act-switch input:disabled + .act-switch__ui { opacity: .5; }

.act-note { font-size: .875rem; color: var(--act-muted); margin: .75rem 0 0; line-height: 1.55; }
.act-empty { color: var(--act-muted); font-size: .95rem; margin: .25rem 0 0; }
.act-muted { color: var(--act-muted); }
.act-kbd-hint { display: block; font-size: .8rem; color: var(--act-muted); text-align: center; margin-top: 1rem; }
.act-kbd-hint kbd, .act-tool kbd { font-family: var(--act-mono); font-size: .75rem; padding: .1rem .4rem; border: 1px solid var(--act-border); border-bottom-width: 2px; border-radius: 6px; background: var(--act-surface); color: var(--act-text); }

.act-toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 1rem); opacity: 0; z-index: 100000; background: var(--act-text); color: #fff; padding: .7rem 1.1rem; border-radius: 12px; font-size: .925rem; box-shadow: 0 8px 30px rgba(0, 0, 0, .2); transition: opacity .2s, transform .2s; max-width: calc(100vw - 2rem); text-align: center; pointer-events: none; }
.act-toast.is-in { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Alarm ---------- */
.act-now { text-align: center; padding: .25rem 0 .75rem; }
.act-now__time { font-size: clamp(3rem, 11vw, 5.25rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; color: var(--act-text); }
.act-now__ampm { font-size: .32em; font-weight: 650; color: var(--act-muted); margin-left: .35em; letter-spacing: 0; }
.act-now__date { color: var(--act-muted); margin-top: .5rem; font-size: 1rem; }
.act-next { display: flex; align-items: center; justify-content: center; gap: .5rem; text-align: center; background: var(--act-surface); color: var(--act-muted); border-radius: 999px; padding: .55rem 1rem; font-size: .925rem; font-weight: 500; margin: .5rem auto 1.5rem; max-width: 34rem; }
.act-next.is-active { background: var(--act-accent-soft); color: var(--act-accent-ink); }
.act-next__icon { display: inline-flex; flex: none; }
.act-form { border-top: 1px solid var(--act-border); padding-top: 1.25rem; }
.act-timepick { border: 0; padding: 0; margin: 0 0 1.25rem; min-width: 0; }
.act-timepick legend { margin-bottom: .5rem; padding: 0; }
.act-timepick__row { display: flex; align-items: center; gap: .5rem; }
.act-select--big { font-size: 1.6rem; font-weight: 650; min-height: 60px; text-align: center; padding: .4rem 2.1rem .4rem .9rem; width: auto; flex: 1 1 0; min-width: 0; }
.act-timepick__sep { font-size: 1.8rem; font-weight: 700; color: var(--act-muted); }

.act-alarms { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.act-alarm-item { display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: center; padding: .85rem .9rem; border: 1px solid var(--act-border); border-radius: 14px; background: var(--act-bg); }
.act-alarm-item.is-off { background: var(--act-surface); }
.act-alarm-item.is-off .act-alarm-item__time { color: var(--act-muted); }
.act-alarm-item.is-ringing { border-color: var(--act-accent); box-shadow: var(--act-focus); }
.act-alarm-item__time { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; line-height: 1; min-width: 4.6rem; }
.act-alarm-item__ap { font-size: .8rem; font-weight: 650; color: var(--act-muted); margin-left: .2rem; }
.act-alarm-item__info { min-width: 0; }
.act-alarm-item__label { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-alarm-item__meta, .act-alarm-item__status { font-size: .8rem; color: var(--act-muted); margin-top: .1rem; }
.act-alarm-item__status:empty { display: none; }
.act-alarm-item:not(.is-off) .act-alarm-item__status { color: var(--act-accent-ink); }
.act-alarm-item__ctrl { display: flex; align-items: center; gap: .15rem; }
@media (max-width: 420px) {
  .act-alarm-item { grid-template-columns: 1fr auto; }
  .act-alarm-item__info { grid-column: 1 / -1; grid-row: 2; }
}

.act-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.act-checklist li { display: flex; align-items: center; gap: .65rem; min-height: 44px; font-size: .925rem; }
.act-checklist__text { flex: 1; }
.act-dot { width: 10px; height: 10px; border-radius: 50%; background: #c3c8d6; flex: none; }
.act-checklist li.is-ok .act-dot { background: var(--act-good); }
.act-checklist li.is-warn .act-dot { background: #f59e0b; }

/* Ringing / done dialog */
.act-ring { position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center; padding: 1rem; background: rgba(19, 26, 44, .45); backdrop-filter: blur(4px); }
.act-ring__box { background: var(--act-bg); border-radius: 24px; padding: 2rem 1.5rem; width: min(100%, 26rem); text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, .25); }
.act-ring__icon { color: var(--act-accent); display: inline-flex; animation: act-wiggle 1s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .act-ring__icon { animation: none; } }
@keyframes act-wiggle { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-12deg); } 40% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 80% { transform: rotate(4deg); } }
.act-ring__title { font-size: 1.5rem; font-weight: 700; margin: .75rem 0 .25rem; }
.act-ring__time { color: var(--act-muted); margin: 0 0 1.5rem; font-size: 1.05rem; }
.act-ring__actions { display: grid; gap: .6rem; }

/* ---------- Stopwatch / shared big displays ---------- */
.act-sw__main, .act-cd__main, .act-pomo__main, .act-dc__main { text-align: center; }
.act-sw__display { font-size: clamp(2.6rem, 12vw, 6.5rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; padding: 1rem 0 .25rem; white-space: nowrap; }
.act-sw__display .act-sw__h, .act-sw__display .act-sw__h + .act-sw__sep { color: #c3c8d6; }
.act-sw__display.has-hours .act-sw__h, .act-sw__display.has-hours .act-sw__h + .act-sw__sep { color: inherit; }
.act-sw__sep { color: var(--act-muted); margin: 0 .02em; }
.act-sw__ms { font-size: .5em; color: var(--act-muted); font-weight: 650; letter-spacing: -.01em; }
.act-sw__sub { display: flex; justify-content: center; align-items: center; gap: 1rem; flex-wrap: wrap; color: var(--act-muted); font-size: .95rem; margin-bottom: 1.5rem; }
.act-sw__sub strong { color: var(--act-text); font-weight: 650; }
.act-sw__state { padding: .2rem .7rem; border-radius: 999px; background: var(--act-surface); font-size: .8rem; font-weight: 600; }
.act-sw__state.is-running { background: var(--act-good-soft); color: var(--act-good); }
.act-sw__state.is-paused { background: #fff7e6; color: #a16207; }
.act-sw__controls { display: flex; justify-content: center; gap: .75rem; flex-wrap: wrap; }
@media (max-width: 480px) { .act-sw__controls .act-btn--xl { flex: 1 1 0; min-width: 0; padding-inline: .75rem; } }
.act-sw__tools { display: flex; flex-direction: column; align-items: center; gap: .25rem; margin-top: 1rem; }
.act-sw__tools .act-kbd-hint { margin-top: .5rem; }
@media (hover: none) { .act-kbd-hint { display: none !important; } }
.act-count { color: var(--act-muted); font-weight: 500; }
.act-sw__summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: 1rem; }
.act-sw__summary > div { background: var(--act-surface); border-radius: 12px; padding: .6rem .75rem; display: flex; flex-direction: column; gap: .15rem; }
.act-sw__summary span { font-size: .75rem; color: var(--act-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.act-sw__summary strong { font-size: .95rem; }
@media (max-width: 520px) { .act-sw__summary { grid-template-columns: 1fr; } }
.is-fast { color: var(--act-good); }
.is-slow { color: var(--act-bad); }

.act-table-wrap { overflow: auto; max-height: 26rem; border: 1px solid var(--act-border); border-radius: 12px; }
.act-table-wrap:has(tbody:empty) { display: none; }
.act-table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 30rem; margin: 0 !important; }
.act-table th, .act-table td { padding: .65rem .9rem; text-align: left; border: 0 !important; border-bottom: 1px solid var(--act-border) !important; white-space: nowrap; }
.act-table thead th { position: sticky; top: 0; background: var(--act-surface); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--act-muted); font-weight: 650; z-index: 1; }
.act-table tbody tr:last-child th, .act-table tbody tr:last-child td { border-bottom: 0 !important; }
.act-table tbody th { font-weight: 600; color: var(--act-muted); }
.act-table tr.is-fastest { background: var(--act-good-soft); }
.act-table tr.is-slowest { background: var(--act-bad-soft); }
.act-tag { display: inline-block; font-size: .7rem; font-weight: 700; padding: .1rem .45rem; border-radius: 999px; margin-left: .4rem; vertical-align: 1px; }
.act-tag--fast { background: #c9f0d6; color: var(--act-good); }
.act-tag--slow { background: #ffdcc7; color: var(--act-bad); }

/* ---------- Countdown ---------- */
.act-ringwrap { position: relative; width: min(100%, 300px); aspect-ratio: 1; margin: .5rem auto 1.25rem; }
.act-progress { width: 100%; height: 100%; transform: rotate(-90deg); }
.act-progress circle { fill: none; stroke-width: 10; }
.act-progress__track { stroke: var(--act-surface-2); }
.act-progress__bar { stroke: var(--act-accent); stroke-linecap: round; transition: stroke-dashoffset .25s linear; }
.act-ringwrap__inner { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.act-cd__display { font-size: clamp(2.4rem, 11vw, 3.75rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.act-cd__state { margin-top: .4rem; color: var(--act-muted); font-size: .9rem; font-weight: 500; }
.act-hms { display: flex; justify-content: center; align-items: flex-end; gap: .5rem; }
.act-hms > span { font-size: 1.6rem; font-weight: 700; color: var(--act-muted); padding-bottom: .55rem; }
.act-hms__f { display: flex; flex-direction: column; gap: .3rem; width: 6rem; }
.act-hms__f label { font-size: .78rem; font-weight: 600; color: var(--act-muted); text-transform: uppercase; letter-spacing: .04em; }
.act-input--num { font-size: 1.6rem; font-weight: 650; text-align: center; min-height: 58px; padding: .3rem; }
.act-cd__set.is-locked { display: none; }
.act-tool:fullscreen, .act-card:fullscreen { display: flex; flex-direction: column; justify-content: center; background: #fff; border: 0; border-radius: 0; }
.act-cd__main:fullscreen .act-ringwrap { width: min(70vh, 80vw); }
.act-cd__main:fullscreen .act-cd__display { font-size: min(14vh, 16vw); }
.act-sw__main:fullscreen .act-sw__display { font-size: min(22vh, 15vw); }

/* ---------- Pomodoro ---------- */
.act-tabs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: .25rem; padding: 4px; background: var(--act-surface); border-radius: 999px; margin-bottom: 1rem; }
.act-tab { font: inherit; font-weight: 600; font-size: .925rem; min-height: 40px; padding: .4rem 1rem; border: 0; border-radius: 999px; background: transparent; color: var(--act-muted); cursor: pointer; }
.act-tab[aria-selected="true"] { background: var(--act-bg); color: var(--act-text); box-shadow: 0 1px 3px rgba(19, 26, 44, .12); }
.act-pomo__display { font-size: clamp(4rem, 18vw, 7.5rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; padding: .5rem 0 .25rem; }
.act-pomo__msg { color: var(--act-muted); font-size: 1.05rem; margin-bottom: 1.25rem; }
.act-bar { height: 8px; background: var(--act-surface-2); border-radius: 999px; overflow: hidden; margin: 0 auto 1.5rem; max-width: 30rem; }
.act-bar__fill { height: 100%; width: 0; background: var(--act-accent); border-radius: inherit; transition: width .25s linear; }
.act-pomo[data-mode="short"] .act-bar__fill, .act-pomo[data-mode="long"] .act-bar__fill { background: #0d9488; }
.act-pomo[data-mode="short"] .act-tab[aria-selected="true"], .act-pomo[data-mode="long"] .act-tab[aria-selected="true"] { color: #0f766e; }
.act-pomo__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: 1.5rem; }
.act-pomo__stats > div { background: var(--act-surface); border-radius: 12px; padding: .65rem .5rem; display: flex; flex-direction: column; gap: .15rem; }
.act-pomo__stats span { font-size: .75rem; color: var(--act-muted); font-weight: 600; }
.act-pomo__stats strong { font-size: 1.1rem; }
.act-dots { display: flex; justify-content: center; gap: .4rem; margin-top: 1rem; }
.act-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--act-surface-2); border: 1px solid var(--act-border); }
.act-dots span.is-done { background: var(--act-accent); border-color: var(--act-accent); }

/* ---------- Digital clock ---------- */
.act-dc__main { position: relative; }
.act-dc__face { padding: clamp(1.5rem, 6vw, 4rem) 0; }
.act-dc__time { font-size: clamp(3.5rem, 17vw, 11rem); font-weight: 700; letter-spacing: -.045em; line-height: .95; white-space: nowrap; }
.act-dc__sec { color: var(--act-muted); font-size: .55em; letter-spacing: -.02em; }
.act-dc__ampm { font-size: .22em; font-weight: 650; color: var(--act-muted); margin-left: .3em; letter-spacing: 0; vertical-align: .4em; }
.act-dc__date { font-size: clamp(1rem, 2.6vw, 1.5rem); color: var(--act-muted); margin-top: 1rem; }
.act-dc__bar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .6rem 1.1rem; border-top: 1px solid var(--act-border); padding-top: 1.1rem; }
.act-dc.is-minimal .act-dc__bar { display: none; }
.act-dc.is-minimal .act-dc__main { border-color: transparent; box-shadow: none; }
.act-dc__exit { position: absolute; top: .75rem; right: .75rem; opacity: .55; }
.act-dc__exit:hover, .act-dc__exit:focus-visible { opacity: 1; }
.act-dc__main:fullscreen .act-dc__time { font-size: min(30vh, 18vw); }
.act-dc__main:fullscreen .act-dc__date { font-size: min(5vh, 3vw); }
.act-dc__main:fullscreen .act-dc__bar { display: none; }
.act-dc.is-night .act-dc__main { background: #0f1424; border-color: #0f1424; color: #e7e9f3; }
.act-dc.is-night .act-dc__sec, .act-dc.is-night .act-dc__ampm, .act-dc.is-night .act-dc__date { color: #8f97ad; }
.act-dc.is-night .act-dc__bar { border-color: #262d42; }
.act-dc.is-night .act-check { color: #e7e9f3; }
.act-dc.is-night .act-btn--ghost { color: #e7e9f3; border-color: #39415a; }
.act-dc.is-night .act-btn--ghost:hover { background: #1b2236; }
.act-dc.is-night .act-seg { background: #1b2236; border-color: #39415a; }
.act-dc.is-night .act-seg__btn[aria-pressed="true"] { background: #39415a; color: #fff; }

/* ---------- World clock ---------- */
.act-wc__head { display: grid; gap: 1.5rem; }
@media (min-width: 820px) { .act-wc__head { grid-template-columns: 1fr 1.2fr; align-items: center; } }
.act-wc__eyebrow { font-size: .8rem; font-weight: 650; color: var(--act-muted); text-transform: uppercase; letter-spacing: .05em; }
.act-wc__localtime { font-size: clamp(2.6rem, 9vw, 4rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; margin: .2rem 0; }
.act-wc__ampm { font-size: .35em; font-weight: 650; color: var(--act-muted); margin-left: .3em; letter-spacing: 0; }
.act-wc__localmeta { color: var(--act-muted); font-size: .9rem; }
.act-wc__add .act-label { display: block; margin-bottom: .4rem; }
.act-wc__opts { margin-top: .9rem; }
.act-combo { position: relative; }
.act-combo__list { position: absolute; z-index: 50; left: 0; right: 0; top: calc(100% + 6px); list-style: none; margin: 0; padding: .35rem; background: var(--act-bg); border: 1px solid var(--act-border); border-radius: 12px; box-shadow: 0 12px 40px rgba(19, 26, 44, .14); max-height: 20rem; overflow: auto; }
.act-combo__opt { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem .7rem; border-radius: 8px; cursor: pointer; margin: 0 !important; }
.act-combo__opt:hover, .act-combo__opt.is-active { background: var(--act-accent-soft); }
.act-combo__name { font-weight: 600; }
.act-combo__sub { color: var(--act-muted); font-size: .85rem; white-space: nowrap; }
.act-combo__none { padding: .7rem; color: var(--act-muted); font-size: .9rem; }
.act-wc__grid { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.act-wc__card { background: var(--act-bg); border: 1px solid var(--act-border); border-radius: var(--act-radius); padding: 1.1rem 1.1rem 1rem; box-shadow: var(--act-shadow); margin: 0 !important; }
.act-wc__top { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.act-wc__top .act-icon-btn { margin: -.4rem -.4rem 0 0; }
.act-wc__city { font-weight: 650; font-size: 1.05rem; }
.act-wc__country { color: var(--act-muted); font-size: .825rem; }
.act-wc__time { font-size: 2.4rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin-top: .6rem; display: flex; align-items: baseline; gap: .25rem; }
.act-wc__time .act-wc__ampm { font-size: .9rem; }
.act-wc__daynight { margin-left: auto; color: #f59e0b; display: inline-flex; align-self: center; }
.act-wc__card.is-night .act-wc__daynight { color: #6366f1; }
.act-wc__date { color: var(--act-muted); font-size: .875rem; margin-top: .15rem; }
.act-wc__meta { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; font-size: .8rem; color: var(--act-muted); border-top: 1px solid var(--act-border); margin-top: .8rem; padding-top: .6rem; }
.act-wc__meta span:last-child { color: var(--act-accent-ink); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .act-progress__bar, .act-bar__fill, .act-switch__ui, .act-switch__ui::after, .act-toast { transition: none; }
}
