/* WorldClock tools — layout + components. Uses the tokens from wc.css. */
.wc-tool-page { --t1: #22d3a6; --t2: #1f5eff; --t3: #0e1a3a; }
.wc-tool-page--meeting, .wc-tool-page--difference { --t1: #12a39a; --t2: #1f5eff; --t3: #0e1a3a; }
.wc-tool-page--dst, .wc-tool-page--sun, .wc-tool-page--moon, .wc-tool-page--astro { --t1: #ffb020; --t2: #e0607e; --t3: #2a1d5e; }
.wc-tool-page--countdown, .wc-tool-page--alarm, .wc-tool-page--stopwatch { --t1: #ff4fa3; --t2: #7b5cff; --t3: #1d1650; }
.wc-tool-page--markets, .wc-tool-page--bell { --t1: #21c07a; --t2: #0f8f6a; --t3: #0b2a2a; }
.wc-tool-page--unix, .wc-tool-page--widget, .wc-tool-page--sidereal { --t1: #6c7bff; --t2: #2b2f6b; --t3: #0c1024; }
.wc-tool-page--jetlag, .wc-tool-page--flight { --t1: #38bdf8; --t2: #6366f1; --t3: #111a44; }
.wc-tool-page--year, .wc-tool-page--calendar, .wc-tool-page--week, .wc-tool-page--datecalc { --t1: #f59e0b; --t2: #d946ef; --t3: #3b1257; }

.wc-thero { position: relative; overflow: hidden; border-radius: calc(var(--wc-radius) + 6px); padding: clamp(22px, 4vw, 44px); color: #fff;
	background: radial-gradient(120% 140% at 0% 0%, var(--t1) 0%, transparent 46%), radial-gradient(120% 140% at 100% 100%, var(--t2) 0%, transparent 56%), var(--t3); }
.wc-thero .wc-crumbs ol { margin-top: 0; }
.wc-thero .wc-crumbs a, .wc-thero .wc-crumbs li { color: rgba(255,255,255,.82); }
.wc-thero .wc-eyebrow { color: rgba(255,255,255,.88); margin: 8px 0 6px; }
.wc-thero__title { color: #fff; font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3rem); line-height: 1.08; letter-spacing: -.025em; margin: 0 0 10px; font-weight: 800; max-width: 24ch; }
.wc-thero__lead { margin: 0; max-width: 62ch; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); color: rgba(255,255,255,.9); line-height: 1.55; }
.wc-tool { position: relative; z-index: 2; background: var(--wc-surface); border: 1px solid var(--wc-line); border-radius: calc(var(--wc-radius) + 4px); box-shadow: var(--wc-shadow); padding: clamp(16px, 2.6vw, 30px); margin: -18px clamp(0px, 1.5vw, 18px) 0; }
.wc-tool--inline { margin: 22px 0 0; }
.wc-tool h2 { margin-top: 28px; }
.wc-tool h2:first-child { margin-top: 0; }
.wc-tool-info { display: grid; gap: 20px; }
.wc-tool-info .wc-prose h2 { margin-top: 0; }
.wc-tool-info .wc-prose h2:not(:first-child) { margin-top: 24px; }
.wc-tnote { color: var(--wc-muted); font-size: .88rem; margin: 10px 0 0; }

/* Form bits */
.wc-tbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 0 0 16px; }
.wc-field { display: flex; flex-direction: column; gap: 6px; min-width: 140px; }
.wc-field > span { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--wc-muted); }
.wc-field--grow { flex: 1 1 260px; }
.wc-tool input[type=date], .wc-tool input[type=time], .wc-tool input[type=datetime-local], .wc-tool input[type=text], .wc-tool input[type=search], .wc-tool input[type=number], .wc-tool select, .wc-tool textarea {
	font: inherit; font-size: 1rem; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--wc-line); background: var(--wc-bg); color: var(--wc-ink); min-height: 44px; box-sizing: border-box; width: 100%; }
.wc-tool textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; resize: vertical; }
.wc-tool input:focus, .wc-tool select:focus, .wc-tool textarea:focus { outline: 2px solid var(--wc-accent); outline-offset: 1px; }
.wc-search--tool { margin: 0; max-width: none; }
.wc-search--tool input { width: 100%; }
.wc-check { display: flex; align-items: center; gap: 8px; font-weight: 600; margin: 4px 0; cursor: pointer; }
.wc-check input { width: 18px; height: 18px; accent-color: var(--wc-accent); }
.wc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 18px; border-radius: 12px; border: 1px solid transparent; background: var(--wc-accent); color: var(--wc-accent-ink) !important; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.wc-btn:hover { filter: brightness(1.08); }
.wc-btn--ghost { background: var(--wc-surface); color: var(--wc-ink) !important; border-color: var(--wc-line); }
.wc-btn--sm { min-height: 32px; padding: 4px 12px; font-size: .85rem; border-radius: 10px; }
.wc-btn--big { min-height: 56px; padding: 12px 28px; font-size: 1.1rem; }
.wc-badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--wc-accent-soft); color: var(--wc-accent); white-space: nowrap; }
.wc-badge--fwd, .wc-badge--open { background: #dcfce7; color: #166534; }
.wc-badge--back { background: #e0e7ff; color: #3730a3; }
.wc-badge--warn, .wc-badge--lunch, .wc-badge--pre { background: #fef3c7; color: #92400e; }
.wc-badge--closed, .wc-badge--weekend { background: #f1f5f9; color: #475569; }
.wc-chips--left { justify-content: flex-start; }
.wc-chip .wc-flag, .wc-badge .wc-flag { width: 20px; height: 15px; vertical-align: -2px; }
.wc-tool .wc-flag { width: 24px; height: 18px; border-radius: 3px; object-fit: cover; vertical-align: middle; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }

/* Meeting planner */
.wc-meet__legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .82rem; color: var(--wc-muted); margin: 0 0 10px; }
.wc-meet__legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.wc-meet__legend .is-work::before { background: #bbf7d0; } .wc-meet__legend .is-edge::before { background: #fde68a; } .wc-meet__legend .is-night::before { background: #334155; } .wc-meet__legend .is-best::before { display: none; }
.wc-meet__grid { overflow-x: auto; border: 1px solid var(--wc-line); border-radius: 14px; -webkit-overflow-scrolling: touch; }
.wc-meet__row { display: grid; grid-template-columns: 200px 1fr; min-width: 980px; border-bottom: 1px solid var(--wc-line); }
.wc-meet__row:last-child { border-bottom: 0; }
.wc-meet__lab { position: sticky; left: 0; z-index: 2; background: var(--wc-surface); display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-right: 1px solid var(--wc-line); min-width: 0; }
.wc-meet__name { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.2; }
.wc-meet__name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; }
.wc-meet__name small { color: var(--wc-muted); font-size: .75rem; }
.wc-meet__lab button { border: 0; background: var(--wc-bg); color: var(--wc-muted); border-radius: 8px; width: 26px; height: 26px; cursor: pointer; font-size: .95rem; flex: none; }
.wc-meet__cells { display: grid; grid-template-columns: repeat(24, 1fr); }
.wc-meet__c { position: relative; border: 0; border-right: 1px solid rgba(0,0,0,.05); padding: 14px 0 8px; font: inherit; font-size: .78rem; font-weight: 650; cursor: pointer; color: #0f172a; min-height: 44px; }
.wc-meet__c.is-work { background: #dcfce7; } .wc-meet__c.is-edge { background: #fef3c7; } .wc-meet__c.is-night { background: #1e293b; color: #94a3b8; }
.wc-meet__c.is-best { box-shadow: inset 0 3px 0 #16a34a; }
.wc-meet__c.is-now { outline: 2px solid var(--wc-saffron, #ffb020); outline-offset: -2px; }
.wc-meet__c.is-sel { background: var(--wc-accent) !important; color: #fff !important; }
.wc-meet__c:hover { filter: brightness(.94); }
.wc-meet__c i { position: absolute; top: 1px; left: 2px; font-style: normal; font-size: .6rem; font-weight: 700; opacity: .75; white-space: nowrap; }
.wc-meet__c.is-newday { border-left: 2px solid var(--wc-accent); }
.wc-meet__row--head .wc-meet__lab { background: var(--wc-bg); }
.wc-meet__star { text-align: center; font-size: .9rem; color: #16a34a; padding: 4px 0; background: var(--wc-bg); }
.wc-meet__pick { margin-top: 16px; border: 2px solid var(--wc-accent); border-radius: 16px; padding: 16px 18px; background: var(--wc-accent-soft); }
.wc-meet__pick h3 { margin: 0 0 10px; }
.wc-meet__pick ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.wc-meet__pick li { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; background: var(--wc-surface); border-radius: 10px; padding: 8px 12px; }
.wc-meet__pick li span { color: var(--wc-muted); font-size: .88rem; }
.wc-meet__pick li.is-night b { color: #b91c1c; } .wc-meet__pick li.is-edge b { color: #b45309; }
.wc-meet__acts, .wc-conv2__actions, .wc-cd__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Time difference */
.wc-diffcalc__pick { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: start; }
.wc-diffcalc__side { background: var(--wc-bg); border: 1px solid var(--wc-line); border-radius: 16px; padding: 16px; display: grid; gap: 10px; text-align: center; }
.wc-diffcalc__city { font-size: 1.15rem; display: flex; gap: 8px; justify-content: center; align-items: center; }
.wc-diffcalc__clock .wc-clock__time { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-weight: 800; letter-spacing: -.02em; }
.wc-diffcalc__clock .wc-clock__date { margin-top: 2px; font-size: .9rem; }
.wc-diffcalc__swap { align-self: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--wc-line); background: var(--wc-surface); font-size: 1.3rem; cursor: pointer; color: var(--wc-accent); }
.wc-diffcalc__answer { text-align: center; margin: 22px 0 6px; }
.wc-diffcalc__big { display: inline-block; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); font-weight: 850; letter-spacing: -.03em; background: linear-gradient(90deg, var(--t1), var(--t2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wc-diffcalc__answer p { margin: 6px 0 0; font-size: 1.1rem; font-weight: 600; }
.wc-diffdetail { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 22px; align-items: start; }
.wc-diffdetail .wc-prose { padding: 0; border: 0; background: none; }
.wc-diffdetail h2 { margin-top: 0 !important; }
.wc-hourtable { width: 100%; border-collapse: collapse; font-size: .92rem; }
.wc-hourtable th, .wc-hourtable td { padding: 6px 12px; border-bottom: 1px solid var(--wc-line); text-align: left; }
.wc-hourtable td small { color: var(--wc-muted); }
.wc-hourtable tr.a-work td:first-child, .wc-hourtable tr.b-work td:last-child { background: rgba(34, 197, 94, .14); font-weight: 650; }

/* DST */
.wc-dst__next { text-align: center; padding: 8px 0 18px; }
.wc-dst__count { font-size: clamp(1.4rem, 1rem + 2vw, 2.4rem); font-weight: 800; margin: 0 0 6px; letter-spacing: -.02em; }
.wc-dst__count span { color: var(--wc-accent); }
.wc-dst__what { margin: 0; font-size: 1.05rem; }
.wc-dst__table, .wc-abbr__table, .wc-mkt__table, .wc-code { width: 100%; border-collapse: collapse; font-size: .92rem; }
.wc-dst__table th, .wc-dst__table td, .wc-abbr__table th, .wc-abbr__table td, .wc-mkt__table th, .wc-mkt__table td, .wc-code th, .wc-code td { padding: 9px 12px; border-bottom: 1px solid var(--wc-line); text-align: left; vertical-align: middle; }
.wc-dst__table thead th, .wc-abbr__table thead th, .wc-mkt__table thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--wc-muted); background: var(--wc-bg); position: sticky; top: 0; }
.wc-dst__table small, .wc-abbr__table small, .wc-mkt__table small { color: var(--wc-muted); }
.wc-dst__never .wc-chip { font-weight: 600; font-size: .88rem; padding: 6px 12px; }
.wc-abbr__table tr.is-hit td { background: var(--wc-accent-soft); }
.wc-abbr__table td:first-child strong { font-size: 1.02rem; }
.wc-code td code { font-size: .88rem; }

/* Countdown */
.wc-cd__hero { text-align: center; padding: 10px 0 18px; }
.wc-cd__title { margin: 0 0 14px !important; font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.3rem) !important; }
.wc-cd__digits { display: flex; justify-content: center; gap: clamp(8px, 2vw, 18px); flex-wrap: wrap; }
.wc-cd__digits span { display: flex; flex-direction: column; align-items: center; min-width: 78px; padding: 12px 10px; border-radius: 16px; background: linear-gradient(160deg, var(--t3), #2a2470); color: rgba(255,255,255,.75); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.wc-cd__digits b { font-size: clamp(2rem, 1.4rem + 3vw, 3.6rem); color: #fff; letter-spacing: -.02em; line-height: 1.05; }
.wc-cd__when { color: var(--wc-muted); margin: 14px 0; }
.wc-cd__actions { justify-content: center; }
.wc-cd__hero.is-done .wc-cd__digits span { background: linear-gradient(160deg, #16a34a, #0f766e); }
.wc-cd__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.wc-cd__item { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; text-align: left; border: 1px solid var(--wc-line); background: var(--wc-bg); border-radius: 14px; padding: 12px 14px; font: inherit; color: var(--wc-ink); cursor: pointer; }
.wc-cd__item:hover { border-color: var(--wc-accent); }
.wc-cd__emoji { font-size: 1.6rem; }
.wc-cd__name { font-weight: 700; display: flex; flex-direction: column; line-height: 1.25; }
.wc-cd__name small { color: var(--wc-muted); font-weight: 500; }
.wc-cd__item b { color: var(--wc-accent); white-space: nowrap; }
.wc-cd__form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.wc-cd__ny { border: 1px solid var(--wc-line); border-radius: 14px; overflow: hidden; }
.wc-cd__nyyear { margin: 0; padding: 10px 14px; font-weight: 800; background: var(--wc-bg); }
.wc-cd__nyrow { display: grid; grid-template-columns: 90px 1fr auto 90px; gap: 10px; padding: 8px 14px; border-top: 1px solid var(--wc-line); font-size: .92rem; align-items: center; }
.wc-cd__nyrow.is-done { background: rgba(34, 197, 94, .1); }
.wc-cd__nyoff { font-weight: 700; color: var(--wc-muted); }
.wc-cd__nytime { color: var(--wc-muted); white-space: nowrap; }
.wc-cd__nyrow b { text-align: right; }

/* Sunrise */
.wc-sunc__place { margin: 0 0 12px; font-size: 1.1rem; }
.wc-sunc__place small { display: block; color: var(--wc-muted); font-size: .88rem; margin-top: 2px; }
.wc-sunc__track { position: relative; height: 26px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.wc-sunc__now { position: absolute; top: -5px; bottom: -5px; width: 3px; margin-left: -1.5px; border-radius: 3px; background: #ef4444; box-shadow: 0 0 0 2px #fff; }
.wc-sunc__ticks, .wc-conv2__ticks { display: flex; justify-content: space-between; font-size: .72rem; color: var(--wc-muted); margin: 4px 2px 14px; }
.wc-sunc__cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.wc-sunc__yrow { display: grid; grid-template-columns: 44px 1fr 72px 150px; gap: 10px; align-items: center; font-size: .9rem; padding: 4px 0; }
.wc-sunc__yrow.is-cur { font-weight: 800; }
.wc-sunc__yrow small { color: var(--wc-muted); }
.wc-sunc__ybar { height: 12px; border-radius: 999px; background: #1e293b; overflow: hidden; }
.wc-sunc__ybar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #ffb020, #ffd36b); }

/* Unix */
.wc-unix__now { text-align: center; padding: 6px 0 18px; }
.wc-unix__epoch { margin: 0; font-size: clamp(2rem, 1.3rem + 3.6vw, 3.8rem); font-weight: 850; letter-spacing: -.02em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; }
.wc-unix__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.wc-unix__box { background: var(--wc-bg); border: 1px solid var(--wc-line); border-radius: 16px; padding: 16px; display: grid; gap: 12px; align-content: start; }
.wc-unix__box h2 { margin: 0 !important; font-size: 1.1rem !important; }
.wc-unix__out { display: grid; grid-template-columns: max-content 1fr; gap: 8px 12px; margin: 0; font-size: .9rem; }
.wc-unix__out dt { color: var(--wc-muted); font-weight: 600; }
.wc-unix__out dd { margin: 0; word-break: break-all; }
.wc-unix__milestones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }

/* Jet lag */
.wc-jet__form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 18px; }
.wc-jet__city { min-height: 28px; font-size: 1.05rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.wc-jet__city small { color: var(--wc-muted); }
.wc-jet__head { border-radius: 16px; padding: 16px 18px; background: var(--wc-bg); border: 1px solid var(--wc-line); }
.wc-jet__head b { font-size: 1.25rem; }
.wc-jet__head p { margin: 6px 0 10px; line-height: 1.55; }
.wc-jet__meter { height: 10px; border-radius: 999px; background: var(--wc-line); overflow: hidden; }
.wc-jet__meter i { display: block; height: 100%; background: linear-gradient(90deg, #22c55e, #f59e0b, #ef4444); }
.wc-jet__plan { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 16px; }
.wc-jet__day { border: 1px solid var(--wc-line); border-radius: 14px; padding: 14px 16px; background: var(--wc-surface); }
.wc-jet__day h3 { margin: 0 0 8px; font-size: 1rem; }
.wc-jet__day h3 small { color: var(--wc-muted); font-weight: 500; }
.wc-jet__day ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: .92rem; }
.wc-jet__day .is-seek { color: #b45309; } .wc-jet__day .is-avoid { color: #4338ca; }
.wc-jet__day.is-done { background: rgba(34, 197, 94, .1); }

/* Widget */
.wc-widget__cols { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 24px; }
.wc-widget__opts { display: grid; gap: 12px; align-content: start; }
.wc-widget__preview { display: grid; gap: 12px; align-content: start; }
.wc-widget__frame { min-height: 170px; display: grid; place-items: center; border-radius: 16px; padding: 18px; background: repeating-conic-gradient(var(--wc-bg) 0 25%, var(--wc-surface) 0 50%) 0 0 / 22px 22px; border: 1px dashed var(--wc-line); }
.wc-widget__frame p { text-align: center; }

/* Markets */
.wc-mkt__big { font-size: 1.25rem; font-weight: 650; margin: 0 0 10px; }
.wc-mkt__big b { font-size: 2.2rem; color: #16a34a; }
.wc-mkt__table tr.is-open td:first-child { box-shadow: inset 4px 0 0 #22c55e; }
.wc-mkt__tl { --lab: 92px; position: relative; border: 1px solid var(--wc-line); border-radius: 14px; padding: 10px 10px 4px; margin-bottom: 4px; }
.wc-mkt__tlrow { display: grid; grid-template-columns: var(--lab) 1fr; align-items: center; font-size: .78rem; font-weight: 700; height: 22px; }
.wc-mkt__tlrow > span { white-space: nowrap; overflow: hidden; }
.wc-mkt__tlrow .wc-flag { width: 18px; height: 13px; }
.wc-mkt__tlbar { position: relative; height: 12px; background: repeating-linear-gradient(90deg, var(--wc-bg) 0 calc(25% - 1px), var(--wc-line) 0 25%); border-radius: 4px; }
.wc-mkt__tlbar i { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: linear-gradient(90deg, #22c55e, #16a34a); }
.wc-mkt__tlnow { position: absolute; top: 4px; bottom: 22px; width: 2px; background: #ef4444; margin-left: 10px; }
.wc-mkt__tlnow b { position: absolute; top: -2px; left: 4px; font-size: .7rem; background: #ef4444; color: #fff; padding: 1px 5px; border-radius: 6px; white-space: nowrap; }
.wc-mkt__tlticks { display: grid; grid-template-columns: var(--lab) 1fr; font-size: .7rem; color: var(--wc-muted); }
.wc-mkt__tlticks div { display: flex; justify-content: space-between; }
.wc-mkt__fxgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.wc-stat.is-open { border-color: #22c55e; box-shadow: inset 0 0 0 1px #22c55e; }
.wc-mkt__biz { display: grid; gap: 8px; }
.wc-mkt__bizrow { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--wc-line); border-left: 4px solid #94a3b8; border-radius: 12px; padding: 12px 14px; }
.wc-mkt__bizrow.is-open { border-left-color: #22c55e; }
.wc-mkt__bizrow p { margin: 2px 0 0; color: var(--wc-muted); font-size: .92rem; }

/* Converter */
.wc-conv2__ask { display: flex; gap: 10px; margin: 0 0 8px; }
.wc-conv2__ask input { flex: 1; font-size: 1.05rem !important; }
.wc-conv2__answer { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: var(--wc-accent-soft); font-size: 1.1rem; }
.wc-conv2__answer small { color: var(--wc-muted); }
.wc-conv2__slider input { width: 100%; accent-color: var(--wc-accent); height: 28px; }
.wc-conv2__rows { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.wc-conv2__row { display: grid; grid-template-columns: minmax(150px, 1.1fr) minmax(120px, .8fr) minmax(180px, 2fr) 64px; gap: 14px; align-items: center; padding: 10px 14px; border: 1px solid var(--wc-line); border-radius: 14px; background: var(--wc-surface); }
.wc-conv2__row.is-base { border-color: var(--wc-accent); box-shadow: inset 4px 0 0 var(--wc-accent); }
.wc-conv2__place { display: flex; gap: 10px; align-items: center; min-width: 0; }
.wc-conv2__place span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.wc-conv2__place strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-conv2__place small, .wc-conv2__time small { color: var(--wc-muted); font-size: .8rem; }
.wc-conv2__time { display: flex; flex-direction: column; line-height: 1.15; }
.wc-conv2__time b { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.wc-conv2__time b.is-night { color: #4338ca; }
.wc-conv2__warn { color: #b45309 !important; font-weight: 700; }
.wc-conv2__strip { position: relative; display: grid; grid-template-columns: repeat(24, 1fr); height: 22px; border-radius: 6px; overflow: hidden; }
.wc-conv2__strip i.is-work { background: #86efac; } .wc-conv2__strip i.is-edge { background: #fde68a; } .wc-conv2__strip i.is-night { background: #334155; }
.wc-conv2__strip i.is-mid { box-shadow: inset 2px 0 0 var(--wc-accent); }
.wc-conv2__mark { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: #ef4444; box-shadow: 0 0 0 1px #fff; }
.wc-conv2__btns { display: flex; gap: 4px; justify-content: flex-end; }
.wc-conv2__btns button { border: 0; background: var(--wc-bg); color: var(--wc-muted); width: 28px; height: 28px; border-radius: 8px; cursor: pointer; font-size: 1rem; }

/* Generic big display used by the 2nd/3rd tool sets */
.wc-bigdisplay { text-align: center; padding: 10px 0 18px; }
.wc-bigdisplay__v { font-size: clamp(2.6rem, 1.6rem + 5vw, 5.6rem); font-weight: 850; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; margin: 0; }
.wc-bigdisplay__s { color: var(--wc-muted); margin: 10px 0 0; font-size: 1.05rem; }
.wc-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.wc-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.wc-panel { background: var(--wc-bg); border: 1px solid var(--wc-line); border-radius: 16px; padding: 16px; }
.wc-panel h2, .wc-panel h3 { margin: 0 0 10px !important; font-size: 1.1rem !important; }
.wc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wc-list li { display: flex; gap: 10px; align-items: center; justify-content: space-between; border: 1px solid var(--wc-line); border-radius: 12px; padding: 10px 14px; background: var(--wc-surface); }
.wc-list li small { color: var(--wc-muted); }

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .wc-meet__c.is-work { background: #14532d; color: #dcfce7; }
	:root:not([data-theme="light"]) .wc-meet__c.is-edge { background: #713f12; color: #fef3c7; }
	:root:not([data-theme="light"]) .wc-badge--fwd, :root:not([data-theme="light"]) .wc-badge--open { background: #14532d; color: #bbf7d0; }
	:root:not([data-theme="light"]) .wc-badge--closed, :root:not([data-theme="light"]) .wc-badge--weekend { background: #1e293b; color: #cbd5e1; }
	:root:not([data-theme="light"]) .wc-badge--warn, :root:not([data-theme="light"]) .wc-badge--lunch, :root:not([data-theme="light"]) .wc-badge--pre { background: #713f12; color: #fef3c7; }
	:root:not([data-theme="light"]) .wc-badge--back { background: #312e81; color: #e0e7ff; }
}

@media (max-width: 860px) {
	.wc-diffdetail, .wc-unix__cols, .wc-widget__cols, .wc-grid2 { grid-template-columns: 1fr; }
	.wc-mkt__fxgrid { grid-template-columns: 1fr 1fr; }
	.wc-conv2__row { grid-template-columns: 1fr auto; }
	.wc-conv2__strip { grid-column: 1 / -1; order: 3; }
	.wc-conv2__btns { grid-column: 1 / -1; order: 4; margin-top: -4px; }
	.wc-conv2__time { order: 2; text-align: right; }
}
@media (max-width: 640px) {
	.wc-tool { margin: -14px 0 0; border-radius: var(--wc-radius); }
	.wc-diffcalc__pick { grid-template-columns: 1fr; }
	.wc-diffcalc__swap { justify-self: center; transform: rotate(90deg); }
	.wc-meet__row { grid-template-columns: 128px 1fr; min-width: 860px; }
	.wc-meet__lab { gap: 4px; padding: 4px 6px; }
	.wc-meet__lab > .wc-flag { display: none; }
	.wc-meet__lab button { width: 22px; height: 22px; font-size: .8rem; }
	.wc-tbar .wc-field { flex: 1 1 calc(50% - 6px); min-width: 0; }
	.wc-tbar .wc-field--grow { flex-basis: 100%; }
	.wc-cd__nyrow { grid-template-columns: 70px 1fr 72px; }
	.wc-cd__nytime { display: none; }
	.wc-sunc__yrow { grid-template-columns: 38px 1fr 64px; }
	.wc-sunc__yrow small { display: none; }
	.wc-unix__milestones, .wc-grid3 { grid-template-columns: 1fr; }
	.wc-conv2__ask { flex-direction: column; }
	.wc-toolcards { grid-template-columns: 1fr 1fr; gap: 8px; }
	.wc-toolcard { grid-template-columns: 1fr; padding: 14px; }
	.wc-toolcard__icon { grid-row: auto; width: 40px; height: 40px; margin-bottom: 6px; }
	.wc-mkt__table td small { display: block; }
	.wc-cd__digits span { min-width: 64px; }
}
.wc-dst__groups { display: grid; gap: 10px; }
.wc-dst__group { display: grid; grid-template-columns: 220px 1fr; gap: 14px; border: 1px solid var(--wc-line); border-radius: 14px; padding: 14px 16px; background: var(--wc-surface); }
.wc-dst__gdate { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.wc-dst__gdate small { color: var(--wc-muted); font-weight: 600; }
.wc-dst__chips { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.wc-dst__c { display: inline-flex; gap: 8px; align-items: center; background: var(--wc-bg); border: 1px solid var(--wc-line); border-radius: 12px; padding: 6px 10px; font-weight: 650; font-size: .92rem; }
.wc-dst__c > span { display: flex; flex-direction: column; line-height: 1.2; }
.wc-dst__c small { color: var(--wc-muted); font-weight: 500; font-size: .74rem; }
.wc-dst__c[hidden], .wc-dst__group[hidden] { display: none; }
@media (max-width: 640px) { .wc-dst__group { grid-template-columns: 1fr; } }

/* ---------- Set 2 & 3 ---------- */
.wc-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.wc-btn.is-on { background: #16a34a; color: #fff !important; border-color: transparent; }
.wc-bell__big .wc-bigdisplay__v { color: var(--wc-ink); }
.wc-bell.is-open .wc-bigdisplay__v { color: #16a34a; }
.wc-bell__week { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.wc-bell__day { border: 1px solid var(--wc-line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; font-size: .9rem; background: var(--wc-bg); }
.wc-bell__day .is-open { color: #15803d; font-weight: 650; } .wc-bell__day .is-close { color: var(--wc-muted); }

.wc-my__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.wc-my__card { border-radius: 18px; padding: 16px 18px 18px; color: #fff; background: var(--sky-night); min-height: 150px; display: flex; flex-direction: column; gap: 4px; transition: background .6s; box-shadow: var(--wc-shadow); }
.wc-my__card[data-sky="dawn"] { background: var(--sky-dawn); } .wc-my__card[data-sky="day"] { background: var(--sky-day); } .wc-my__card[data-sky="dusk"] { background: var(--sky-dusk); } .wc-my__card[data-sky="night"] { background: var(--sky-night); }
.wc-my__top { display: flex; align-items: center; gap: 8px; }
.wc-my__top strong { flex: 1; font-size: 1.05rem; }
.wc-my__btns { display: flex; gap: 4px; opacity: .55; transition: opacity .2s; }
.wc-my__card:hover .wc-my__btns { opacity: 1; }
.wc-my__btns button { border: 0; width: 26px; height: 26px; border-radius: 8px; background: rgba(255,255,255,.18); color: #fff; cursor: pointer; }
.wc-my__time { font-size: clamp(2.4rem, 1.8rem + 2vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; margin-top: 6px; }
.wc-my__time small { font-size: .42em; opacity: .7; margin-left: 2px; }
.wc-my__date { font-weight: 600; opacity: .9; } .wc-my__off { font-size: .85rem; opacity: .8; }
.wc-my__grid.is-analog .wc-my__card { align-items: center; text-align: center; }
.wc-my__grid.is-analog .wc-my__top { width: 100%; }
.wc-my__grid.is-analog .wc-my__time { font-size: 1.4rem; margin: 0; }
.wc-my__analog { width: 150px; height: 150px; margin: 8px 0 4px; }
.wc-my__analog circle:first-child { fill: rgba(255,255,255,.12); stroke: rgba(255,255,255,.6); stroke-width: 2; }
.wc-my__analog .ticks line { stroke: rgba(255,255,255,.75); stroke-width: 2; stroke-linecap: round; }
.wc-my__analog .h { stroke: #fff; stroke-width: 4.5; stroke-linecap: round; } .wc-my__analog .m { stroke: #fff; stroke-width: 3; stroke-linecap: round; } .wc-my__analog .s { stroke: #ffb020; stroke-width: 1.5; stroke-linecap: round; } .wc-my__analog .c { fill: #ffb020; }
.wc-my:fullscreen { background: #0b0f19; padding: 24px; overflow: auto; } .wc-my:fullscreen .wc-tbar, .wc-my:fullscreen .wc-tnote { display: none; } .wc-my:fullscreen .wc-my__grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.wc-alarm .wc-list li.is-off { opacity: .55; }
.wc-alarm__ring { position: fixed; inset: 0; z-index: 99999; background: rgba(14, 26, 58, .92); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; text-align: center; padding: 20px; animation: wcPulse 1s ease-in-out infinite alternate; }
.wc-alarm__ring[hidden] { display: none; }
.wc-alarm__ringtitle { font-size: clamp(1.8rem, 1.2rem + 3vw, 3.4rem); font-weight: 800; margin: 0; }
.wc-alarm__btns, .wc-timer__btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
@keyframes wcPulse { from { background: rgba(14, 26, 58, .92); } to { background: rgba(200, 30, 90, .9); } }

.wc-timer { text-align: center; }
.wc-timer__ring { position: relative; width: min(320px, 80vw); margin: 0 auto 18px; }
.wc-timer__ring svg { width: 100%; height: auto; transform: rotate(-90deg); }
.wc-timer__bg { fill: none; stroke: var(--wc-line); stroke-width: 12; }
.wc-timer__fg { fill: none; stroke: url(#none) var(--wc-accent); stroke: var(--wc-accent); stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset .2s linear; }
.wc-timer__v { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.wc-timer__v span { font-size: clamp(2.4rem, 1.6rem + 4vw, 4rem); font-weight: 850; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.wc-timer__v small { color: var(--wc-muted); }
.wc-timer.is-done .wc-timer__fg { stroke: #ef4444; } .wc-timer.is-done .wc-timer__v span { color: #ef4444; animation: wcBlink .6s steps(2) infinite; }
@keyframes wcBlink { 50% { opacity: .3; } }
.wc-timer [data-presets] { justify-content: center; margin-bottom: 14px; }
.wc-timer [data-presets] .wc-chip { cursor: pointer; font: inherit; font-weight: 650; }
.wc-timer__set { justify-content: center; }
.wc-timer__set .wc-field { max-width: 110px; min-width: 90px; }
.wc-timer:fullscreen, .wc-sw:fullscreen { background: #0b0f19; color: #fff; display: flex; flex-direction: column; justify-content: center; padding: 24px; }
.wc-sw .wc-bigdisplay__v { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.wc-sw:fullscreen .wc-bigdisplay__v { font-size: 18vw; }
.wc-sw__laps tr.is-best td { color: #15803d; font-weight: 700; } .wc-sw__laps tr.is-worst td { color: #b91c1c; font-weight: 700; }
.wc-sw .wc-table-wrap { margin-top: 18px; max-height: 360px; overflow: auto; }
kbd { border: 1px solid var(--wc-line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; font-size: .8rem; background: var(--wc-bg); }

.wc-where__tz { font-size: clamp(1.8rem, 1.2rem + 3vw, 3.4rem) !important; word-break: break-word; }
.wc-mil__out { font-size: 1.1rem; margin: 10px 0 0; }
.wc-mil__out strong { font-size: 1.6rem; color: var(--wc-accent); }
.wc-mil__tables { margin-top: 18px; }
.wc-week__table { max-height: 520px; overflow: auto; }
.wc-hourtable tr.is-cur td, .wc-hourtable tr.is-cur th { background: var(--wc-accent-soft); font-weight: 700; }
.wc-dst__table tr.is-past { opacity: .5; }

.wc-flight__card { margin-top: 10px; }
.wc-flight__legs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; text-align: center; background: var(--wc-bg); border: 1px solid var(--wc-line); border-radius: 18px; padding: 18px; }
.wc-flight__legs > div { display: flex; flex-direction: column; gap: 2px; }
.wc-flight__legs small { color: var(--wc-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; }
.wc-flight__legs b { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); font-weight: 850; letter-spacing: -.02em; }
.wc-flight__legs sup { font-size: .45em; color: #b45309; }
.wc-flight__plane { font-size: 1.8rem; } .wc-flight__plane span { font-size: .85rem; color: var(--wc-muted); font-weight: 650; }

.wc-cal__today { font-size: clamp(1.6rem, 1.1rem + 2.6vw, 3rem) !important; }
.wc-cal .wc-panel { margin-top: 14px; }
.wc-cal .wc-grid2 .wc-panel { margin-top: 0; }
.wc-cal__zcard { display: flex; gap: 14px; align-items: center; margin-top: 12px; }
.wc-cal__zemo { font-size: 3.4rem; line-height: 1; }
.wc-cal__zcard p { margin: 4px 0 0; color: var(--wc-muted); }

.wc-moon__hero { display: flex; gap: clamp(16px, 4vw, 40px); align-items: center; flex-wrap: wrap; }
.wc-moon__disc { flex: none; filter: drop-shadow(0 10px 30px rgba(255, 236, 170, .25)); }
.wc-moon__disc svg { display: block; width: clamp(150px, 30vw, 220px); height: auto; }
.wc-moon__hero > div:last-child { flex: 1 1 260px; }
.wc-moon__name { font-size: clamp(1.5rem, 1.1rem + 2vw, 2.4rem); font-weight: 800; margin: 0 0 10px; letter-spacing: -.02em; }
.wc-moon__next li { font-weight: 600; }
.wc-moon__calbar { align-items: center; justify-content: space-between; margin-top: 26px; }
.wc-moon__calbar h2 { margin: 0 !important; }
.wc-moon__cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.wc-moon__dow { text-align: center; font-size: .72rem; font-weight: 700; text-transform: uppercase; color: var(--wc-muted); }
.wc-moon__day { background: #0e1a3a; color: #fff; border-radius: 12px; padding: 6px 4px 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 84px; }
.wc-moon__day b { align-self: flex-start; font-size: .78rem; margin-left: 4px; opacity: .85; }
.wc-moon__day small { font-size: .68rem; opacity: .75; }
.wc-moon__day.is-ev small { color: #ffd36b; opacity: 1; font-weight: 700; }
.wc-moon__day.is-today { outline: 3px solid var(--wc-saffron, #ffb020); }
.wc-bm__strip { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.wc-bm__strip > div { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px; border-radius: 12px; background: #0e1a3a; color: #fff; font-size: .75rem; }
.wc-bm__strip > .is-cur { outline: 3px solid var(--wc-saffron, #ffb020); }

.wc-astro__filters { margin-bottom: 8px; } .wc-astro__filters .wc-chip { cursor: pointer; font: inherit; font-weight: 650; }
.wc-astro__filters .wc-chip.is-on { background: var(--wc-accent); color: #fff !important; border-color: transparent; }
.wc-astro__month { margin: 22px 0 8px; font-size: 1.1rem; }
.wc-astro__list { display: grid; gap: 8px; }
.wc-astro__ev { display: grid; grid-template-columns: 150px 1fr; gap: 14px; border: 1px solid var(--wc-line); border-left: 4px solid var(--wc-line); border-radius: 12px; padding: 10px 14px; background: var(--wc-surface); }
.wc-astro__ev.is-eclipse { border-left-color: #ef4444; } .wc-astro__ev.is-meteor { border-left-color: #8b5cf6; } .wc-astro__ev.is-moon { border-left-color: #ffb020; } .wc-astro__ev.is-season { border-left-color: #22c55e; }
.wc-astro__ev p { margin: 2px 0 0; color: var(--wc-muted); font-size: .9rem; }
.wc-astro__when { display: flex; flex-direction: column; font-size: .9rem; }
.wc-astro__when small { color: var(--wc-muted); }
.wc-astro__ev[hidden], .wc-astro__list[hidden], .wc-astro__month[hidden] { display: none; }
.wc-hubcat { margin-top: 10px; } .wc-hubcat h2 { margin-top: 26px !important; }
.wc-hubcat .wc-section { margin-top: 0; }

@media (max-width: 640px) {
	.wc-flight__legs { grid-template-columns: 1fr; }
	.wc-astro__ev { grid-template-columns: 1fr; gap: 4px; }
	.wc-moon__day { min-height: 64px; } .wc-moon__day svg { width: 26px; height: 26px; }
	.wc-moon__hero { justify-content: center; text-align: center; }
	.wc-moon__hero .wc-unix__out { text-align: left; }
}
.wc-tool [hidden], .wc-tool-page [hidden] { display: none !important; }
