:root {
    color-scheme: light;
    --tf-bg: #111319;
    --tf-bg-soft: #171a22;
    --tf-surface: rgba(28, 32, 42, .82);
    --tf-surface-solid: #1b1f29;
    --tf-surface-alt: #202532;
    --tf-text: #f3f2ed;
    --tf-muted: #a5a8b2;
    --tf-faint: #747986;
    --tf-border: rgba(255,255,255,.12);
    --tf-border-strong: rgba(255,255,255,.22);
    --tf-amber: #f2a93b;
    --tf-amber-soft: #ffd37b;
    --tf-blue: #7aa2ff;
    --tf-cyan: #74d5d1;
    --tf-violet: #a995ff;
    --tf-green: #8bd2a4;
    --tf-danger: #ff8c83;
    --tf-shadow: 0 24px 80px rgba(0,0,0,.26);
    --tf-radius: 18px;
    --tf-ease: cubic-bezier(.16,1,.3,1);
}
html[data-theme="light"] {
    color-scheme: light;
    --tf-bg: #f6f5f1;
    --tf-bg-soft: #ecebe5;
    --tf-surface: rgba(255,255,255,.86);
    --tf-surface-solid: #fffef9;
    --tf-surface-alt: #f0eee7;
    --tf-text: #1d2027;
    --tf-muted: #5d626d;
    --tf-faint: #777c86;
    --tf-border: rgba(29,32,39,.13);
    --tf-border-strong: rgba(29,32,39,.25);
    --tf-amber: #a85e08;
    --tf-amber-soft: #824707;
    --tf-blue: #335ec7;
    --tf-cyan: #177a77;
    --tf-violet: #6549c8;
    --tf-green: #2f7c4a;
    --tf-danger: #b23b37;
    --tf-shadow: 0 24px 80px rgba(35,39,52,.12);
}
html[data-theme="dark"] {
    color-scheme: dark;
    --tf-bg: #111319;
    --tf-bg-soft: #171a22;
    --tf-surface: rgba(28, 32, 42, .82);
    --tf-surface-solid: #1b1f29;
    --tf-surface-alt: #202532;
    --tf-text: #f3f2ed;
    --tf-muted: #a5a8b2;
    --tf-faint: #747986;
    --tf-border: rgba(255,255,255,.12);
    --tf-border-strong: rgba(255,255,255,.22);
    --tf-amber: #f2a93b;
    --tf-amber-soft: #ffd37b;
    --tf-blue: #7aa2ff;
    --tf-cyan: #74d5d1;
    --tf-violet: #a995ff;
    --tf-green: #8bd2a4;
    --tf-danger: #ff8c83;
    --tf-shadow: 0 24px 80px rgba(0,0,0,.26);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--tf-bg); color: var(--tf-text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
body:before { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none; background: radial-gradient(circle at 78% 2%, rgba(242,169,59,.11), transparent 30rem), radial-gradient(circle at 8% 35%, rgba(102,89,210,.08), transparent 28rem); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button, .button, .tool-card, .scenario-card, .guide-row, .related-links a, .aside-tool { cursor: pointer; }
:focus-visible { outline: 3px solid var(--tf-amber); outline-offset: 3px; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; transform: translateY(-150%); background: var(--tf-amber); color: #1d160b; padding: 10px 14px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { transform: translateY(0); }
.timefk-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; flex: 0 0 auto; }
.icon-small { width: 16px; height: 16px; }
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--tf-border); background: color-mix(in srgb, var(--tf-bg) 82%, transparent); backdrop-filter: blur(18px); }
.header-inner { width: min(1240px, calc(100% - 40px)); min-height: 76px; margin: auto; display: flex; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 16px; font-weight: 650; letter-spacing: .01em; }
.brand-mark { position: relative; display: grid; place-items: center; width: 42px; height: 42px; color: var(--tf-text); background: transparent; border: 1.5px solid var(--tf-border-strong); border-radius: 50%; box-shadow: none; }
.brand-mark:before { display: none; }
.brand-mark .icon { position: relative; z-index: 1; width: 26px; height: 26px; }
.brand-name { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 20px; font-weight: 650; letter-spacing: .015em; }
.brand-name span { margin-left: .16em; color: var(--tf-amber); font-weight: 550; }
.desktop-nav { display: flex; gap: 24px; margin-left: auto; color: var(--tf-muted); font-size: 14px; }
.desktop-nav a, .footer-grid a { transition: color .2s ease; }
.desktop-nav a:hover, .footer-grid a:hover { color: var(--tf-text); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-cta, .button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; border-radius: 12px; padding: 0 17px; font-size: 14px; font-weight: 700; transition: transform .2s var(--tf-ease), background .2s ease, border-color .2s ease, color .2s ease; }
.header-cta { color: var(--tf-bg); background: var(--tf-text); }
.header-cta:hover, .button:hover { transform: translateY(-2px); }
.icon-button, .quiet-button { min-width: 44px; min-height: 44px; border: 1px solid var(--tf-border); border-radius: 12px; color: var(--tf-text); background: transparent; cursor: pointer; }
.icon-button:hover, .quiet-button:hover { background: var(--tf-surface-alt); border-color: var(--tf-border-strong); }
.hero { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 70px; min-height: 690px; padding-top: 72px; padding-bottom: 72px; }
.hero-copy { max-width: 610px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; color: var(--tf-amber-soft); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.signal-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--tf-amber); box-shadow: 0 0 0 5px color-mix(in srgb, var(--tf-amber) 16%, transparent); }
.signal-dot.cyan { background: var(--tf-cyan); box-shadow: 0 0 0 5px color-mix(in srgb, var(--tf-cyan) 16%, transparent); }
.signal-dot.violet { background: var(--tf-violet); box-shadow: 0 0 0 5px color-mix(in srgb, var(--tf-violet) 16%, transparent); }
.signal-dot.green { background: var(--tf-green); box-shadow: 0 0 0 5px color-mix(in srgb, var(--tf-green) 16%, transparent); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.045em; }
h1 { max-width: 760px; margin-bottom: 24px; font-size: clamp(2.7rem, 5vw, 5.2rem); font-weight: 680; }
h1 em { color: var(--tf-amber); font-style: normal; }
h2 { margin-bottom: 18px; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 650; }
h3 { font-size: 20px; }
.hero-lede, .intro-lede { max-width: 620px; color: var(--tf-muted); font-size: 18px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0; }
.button-primary { color: #20170b; background: var(--tf-amber); box-shadow: 0 12px 28px color-mix(in srgb, var(--tf-amber) 20%, transparent); }
.button-primary:hover { background: var(--tf-amber-soft); }
.button-ghost { color: var(--tf-text); border: 1px solid var(--tf-border-strong); background: transparent; }
.button-ghost:hover { background: var(--tf-surface-alt); }
.trust-row { display: flex; flex-wrap: wrap; gap: 22px; color: var(--tf-faint); font-size: 13px; }
.trust-row b { color: var(--tf-text); font-size: 16px; margin-right: 4px; }
.hero-orbit { position: relative; width: min(510px, 100%); aspect-ratio: 1; margin-inline: auto; display: grid; place-items: center; }
.hero-orbit:before { content: ""; position: absolute; inset: 15%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--tf-amber) 20%, transparent), transparent 64%); filter: blur(20px); }
.orbit { position: absolute; border: 1px solid var(--tf-border); border-radius: 50%; transform: rotate(-18deg); }
.orbit-one { inset: 4%; border-color: color-mix(in srgb, var(--tf-amber) 40%, var(--tf-border)); }
.orbit-two { inset: 16%; transform: rotate(50deg); border-style: dashed; }
.orbit-three { inset: 30%; border-color: color-mix(in srgb, var(--tf-violet) 45%, var(--tf-border)); }
.orbit-core { position: relative; z-index: 1; width: 52%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; flex-direction: column; border: 1px solid color-mix(in srgb, var(--tf-amber) 42%, var(--tf-border)); border-radius: 50%; background: color-mix(in srgb, var(--tf-surface-solid) 84%, transparent); box-shadow: var(--tf-shadow), inset 0 0 70px color-mix(in srgb, var(--tf-amber) 8%, transparent); }
.orbit-live, .note-label, .footer-label { color: var(--tf-faint); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.orbit-core strong { margin: 8px 0 5px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: clamp(25px, 4vw, 38px); font-variant-numeric: tabular-nums; letter-spacing: -.07em; }
.orbit-core small { color: var(--tf-muted); }
.orbit-chip { position: absolute; z-index: 2; display: flex; gap: 8px; padding: 9px 12px; border: 1px solid var(--tf-border); border-radius: 11px; background: var(--tf-surface); backdrop-filter: blur(12px); color: var(--tf-muted); font-size: 11px; letter-spacing: .08em; }
.orbit-chip b { color: var(--tf-text); }
.chip-top { top: 12%; right: 0; }.chip-right { right: 2%; bottom: 25%; }.chip-bottom { left: 5%; bottom: 16%; }
.section { padding: 96px 0; }.section-soft { background: var(--tf-bg-soft); border-top: 1px solid var(--tf-border); border-bottom: 1px solid var(--tf-border); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 40px; }.section-heading > p { max-width: 380px; margin: 0; color: var(--tf-muted); }
.section-heading h2 { max-width: 650px; margin-bottom: 0; }
.tool-group + .tool-group { margin-top: 42px; }.group-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }.group-heading h3 { margin: 0; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }.group-heading span { color: var(--tf-faint); font-size: 13px; }
.tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }.tool-card { position: relative; min-height: 170px; display: flex; align-items: flex-start; gap: 14px; padding: 20px; border: 1px solid var(--tf-border); border-radius: var(--tf-radius); background: var(--tf-surface); transition: transform .25s var(--tf-ease), border-color .25s ease, background .25s ease; }.tool-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--tf-amber) 55%, var(--tf-border)); background: var(--tf-surface-alt); }.card-icon { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; color: var(--tf-amber); border: 1px solid color-mix(in srgb, var(--tf-amber) 36%, var(--tf-border)); border-radius: 12px; background: color-mix(in srgb, var(--tf-amber) 9%, transparent); }.card-content { display: flex; flex-direction: column; gap: 8px; padding-right: 12px; }.card-content strong { font-size: 15px; }.card-content span { color: var(--tf-muted); font-size: 13px; line-height: 1.5; }.card-arrow { position: absolute; right: 16px; bottom: 16px; color: var(--tf-faint); }.accent-cyan .card-icon { color: var(--tf-cyan); border-color: color-mix(in srgb, var(--tf-cyan) 36%, var(--tf-border)); }.accent-violet .card-icon { color: var(--tf-violet); border-color: color-mix(in srgb, var(--tf-violet) 36%, var(--tf-border)); }.accent-blue .card-icon { color: var(--tf-blue); border-color: color-mix(in srgb, var(--tf-blue) 36%, var(--tf-border)); }.accent-green .card-icon { color: var(--tf-green); border-color: color-mix(in srgb, var(--tf-green) 36%, var(--tf-border)); }
.scenario-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }.scenario-card { min-height: 310px; display: flex; flex-direction: column; align-items: flex-start; padding: 22px; border: 1px solid var(--tf-border); border-radius: var(--tf-radius); background: linear-gradient(160deg, var(--tf-surface), transparent); transition: transform .25s var(--tf-ease), border-color .25s ease; }.scenario-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--tf-amber) 55%, var(--tf-border)); }.scenario-card .card-icon { margin-bottom: 42px; }.scenario-kicker { color: var(--tf-amber-soft); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }.scenario-card h3 { margin: 9px 0; font-size: 22px; }.scenario-card p { color: var(--tf-muted); font-size: 13px; line-height: 1.6; }.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; color: var(--tf-amber-soft); font-size: 13px; font-weight: 750; }.text-link:hover { color: var(--tf-text); }
.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }.principle-panel p { max-width: 540px; color: var(--tf-muted); font-size: 17px; }.signal-panel { padding: 18px; border: 1px solid var(--tf-border); border-radius: var(--tf-radius); background: var(--tf-surface); }.signal-row { display: flex; justify-content: space-between; gap: 20px; padding: 18px 6px; border-bottom: 1px solid var(--tf-border); }.signal-row:last-child { border-bottom: 0; }.signal-label { display: inline-flex; align-items: center; gap: 11px; color: var(--tf-muted); }.signal-row b { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; font-weight: 500; }
.page-intro { padding-top: 58px; padding-bottom: 38px; }.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 50px; color: var(--tf-faint); font-size: 13px; }.breadcrumbs a:hover { color: var(--tf-text); }.breadcrumbs strong { color: var(--tf-text); font-weight: 600; }.intro-grid { display: grid; grid-template-columns: 1fr .65fr; gap: 80px; align-items: end; }.page-intro h1 { max-width: 800px; margin-bottom: 18px; font-size: clamp(3rem, 7vw, 4rem); }.intent-note { padding: 20px; border-left: 2px solid var(--tf-amber); background: linear-gradient(90deg, color-mix(in srgb, var(--tf-amber) 10%, transparent), transparent); }.intent-note p { margin: 10px 0 0; color: var(--tf-muted); }.workbench-section { padding: 18px 0 84px; }.workbench { overflow: hidden; border: 1px solid var(--tf-border-strong); border-radius: 22px; background: var(--tf-surface); box-shadow: var(--tf-shadow); }.workbench-top, .workbench-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; border-bottom: 1px solid var(--tf-border); }.workbench-top h2 { margin: 12px 0 0; font-size: 24px; }.workbench-actions { display: flex; flex-wrap: wrap; gap: 8px; }.quiet-button { min-width: auto; padding: 0 13px; font-size: 13px; }.workbench-body { min-height: 410px; padding: clamp(24px, 5vw, 62px); display: grid; place-items: center; }.workbench-foot { border-top: 1px solid var(--tf-border); border-bottom: 0; color: var(--tf-faint); font-size: 12px; }.live-pill { display: inline-flex; align-items: center; gap: 8px; color: var(--tf-green); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--tf-green); }
.tf-tool-ui { width: min(900px, 100%); text-align: center; }.tf-display { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-variant-numeric: tabular-nums; letter-spacing: -.09em; line-height: 1; font-size: clamp(3.5rem, 12vw, 9rem); }.tf-display.display-compact { font-size: clamp(2.8rem, 8vw, 6.5rem); }.tf-subdisplay { margin-top: 16px; color: var(--tf-muted); }.tf-kicker { color: var(--tf-amber-soft); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }.tf-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }.tf-control { min-width: 112px; min-height: 48px; padding: 0 16px; border: 1px solid var(--tf-border-strong); border-radius: 12px; color: var(--tf-text); background: transparent; cursor: pointer; font-weight: 700; }.tf-control.primary { border-color: var(--tf-amber); color: #21180c; background: var(--tf-amber); }.tf-control.danger { color: var(--tf-danger); }.tf-control:hover { transform: translateY(-2px); }.tf-control:disabled { opacity: .45; cursor: not-allowed; transform: none; }.tf-field-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 700px; margin: 0 auto 20px; text-align: left; }.tf-field, .form-label { display: flex; flex-direction: column; gap: 7px; color: var(--tf-muted); font-size: 12px; font-weight: 700; }.tf-field input, .tf-field select, .tf-field textarea, .tf-input { min-height: 46px; width: 100%; padding: 0 12px; border: 1px solid var(--tf-border-strong); border-radius: 10px; color: var(--tf-text); background: var(--tf-bg-soft); }.tf-field textarea { padding-top: 10px; }.tf-field input:focus, .tf-field select:focus { border-color: var(--tf-amber); outline: 2px solid color-mix(in srgb, var(--tf-amber) 25%, transparent); }.tf-helper { max-width: 680px; margin: 16px auto 0; color: var(--tf-muted); font-size: 13px; }.tf-status { min-height: 24px; margin-top: 18px; color: var(--tf-amber-soft); font-size: 14px; }.tf-metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 760px; margin: 30px auto 0; }.tf-metric { padding: 14px; border: 1px solid var(--tf-border); border-radius: 12px; background: var(--tf-bg-soft); }.tf-metric span { display: block; color: var(--tf-faint); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }.tf-metric strong { display: block; margin-top: 7px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 20px; font-weight: 600; }.tf-table { width: 100%; overflow: hidden; border: 1px solid var(--tf-border); border-radius: 14px; text-align: left; }.tf-table-row { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 10px; align-items: center; padding: 13px 16px; border-bottom: 1px solid var(--tf-border); }.tf-table-row:last-child { border-bottom: 0; }.tf-table-row strong { font-size: 14px; }.tf-table-row span { color: var(--tf-muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }.tf-ring { width: 190px; height: 190px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--tf-amber) var(--tf-progress, 0%), var(--tf-border) 0); position: relative; }.tf-ring:after { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--tf-surface-solid); }.tf-ring > * { position: relative; z-index: 1; }.tf-laps { max-height: 180px; margin: 24px auto 0; overflow: auto; border: 1px solid var(--tf-border); border-radius: 12px; }.tf-lap-row { display: grid; grid-template-columns: 60px 1fr 1fr; padding: 10px 13px; border-bottom: 1px solid var(--tf-border); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }.tf-lap-row:last-child { border-bottom: 0; }.tf-city-selects, .tf-chip-row, .tf-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }.tf-city-selects select, .tf-chip { min-height: 44px; padding: 0 12px; border: 1px solid var(--tf-border-strong); border-radius: 10px; color: var(--tf-text); background: var(--tf-bg-soft); }.tf-chip { cursor: pointer; }.tf-chip:hover { border-color: var(--tf-amber); }.tf-event-list { width: min(720px, 100%); display: grid; gap: 10px; }.tf-event-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border: 1px solid var(--tf-border); border-radius: 12px; text-align: left; }.tf-event-row span { color: var(--tf-muted); font-size: 13px; }.tf-setup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 720px; margin: 0 auto 18px; text-align: left; }.tf-note { max-width: 690px; margin: 16px auto 0; padding: 12px 14px; border-left: 2px solid var(--tf-blue); color: var(--tf-muted); background: color-mix(in srgb, var(--tf-blue) 8%, transparent); font-size: 13px; text-align: left; }.empty-state { width: min(560px, 100%); padding: 24px; border: 1px dashed var(--tf-border-strong); border-radius: 14px; color: var(--tf-muted); text-align: center; }.empty-state strong { display: block; margin-bottom: 8px; color: var(--tf-text); }
.tool-explain { padding-top: 50px; }.explain-grid, .flow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }.explain-grid > div, .flow-grid > div { padding: 24px; border-top: 1px solid var(--tf-border-strong); }.number-step { color: var(--tf-amber); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }.explain-grid h3, .flow-grid h3 { margin: 34px 0 10px; }.explain-grid p, .flow-grid p { color: var(--tf-muted); font-size: 14px; }.related-section { padding-top: 4px; }.related-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }.related-links a { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 13px; border: 1px solid var(--tf-border); border-radius: 12px; color: var(--tf-muted); background: var(--tf-surface); font-size: 13px; }.related-links a .icon:first-child { color: var(--tf-amber); }.related-links a .icon:last-child { margin-left: auto; }.related-links a:hover { color: var(--tf-text); border-color: var(--tf-border-strong); }
.scenario-visual { min-height: 230px; display: grid; place-items: center; border: 1px solid var(--tf-border); border-radius: 22px; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--tf-amber) 16%, transparent), transparent 55%), var(--tf-surface); }.mini-track { position: relative; width: 72%; height: 9px; border-radius: 9px; background: var(--tf-border); }.track-fill { position: absolute; inset: 0 30% 0 0; border-radius: inherit; background: linear-gradient(90deg, var(--tf-amber), var(--tf-violet)); }.mini-track i { position: absolute; top: 50%; width: 16px; height: 16px; border: 3px solid var(--tf-bg); border-radius: 50%; background: var(--tf-amber); transform: translate(-50%, -50%); }.mini-track i:nth-child(2) { left: 0; }.mini-track i:nth-child(3) { left: 35%; }.mini-track i:nth-child(4) { left: 70%; }.visual-caption { position: absolute; margin-top: 92px; color: var(--tf-muted); font-size: 13px; }.scenario-content { padding-top: 40px; }.scenario-cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.guide-list { display: grid; border-top: 1px solid var(--tf-border); }.guide-row { display: grid; grid-template-columns: 70px 1fr 24px; gap: 20px; align-items: center; padding: 24px 10px; border-bottom: 1px solid var(--tf-border); transition: padding .2s var(--tf-ease), background .2s ease; }.guide-row:hover { padding-left: 18px; padding-right: 2px; background: var(--tf-surface); }.guide-row > span:nth-child(2) { display: flex; flex-direction: column; gap: 6px; }.guide-index { color: var(--tf-amber); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }.guide-row small { color: var(--tf-amber-soft); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }.guide-row strong { font-size: 19px; }.guide-row em { color: var(--tf-muted); font-size: 13px; font-style: normal; }.guide-header { max-width: 820px; }.guide-header h1 { margin-bottom: 16px; }.guide-body { display: grid; grid-template-columns: minmax(0, 750px) 280px; gap: 90px; align-items: start; padding-top: 45px; }.guide-prose h2 { margin-top: 42px; font-size: 28px; }.guide-prose p { color: var(--tf-muted); font-size: 16px; line-height: 1.8; }.guide-tool-link { margin: 28px 0 8px; }.guide-detail { margin-top: 18px; }.guide-detail + .guide-detail { padding-top: 12px; border-top: 1px solid var(--tf-border); }.lead-callout { margin: 0 0 42px; padding: 20px 24px; border-left: 3px solid var(--tf-amber); color: var(--tf-text) !important; background: color-mix(in srgb, var(--tf-amber) 8%, transparent); }.guide-prose ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }.guide-prose li { display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--tf-border); }.guide-prose li span { color: var(--tf-amber); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }.guide-prose li p { margin: 0; color: var(--tf-text); }.guide-aside { position: sticky; top: 105px; padding: 20px; border: 1px solid var(--tf-border); border-radius: 16px; background: var(--tf-surface); }.aside-tool { display: flex; align-items: center; gap: 10px; margin: 18px 0; padding: 12px; border: 1px solid var(--tf-border); border-radius: 11px; }.aside-tool .icon:first-child { color: var(--tf-amber); }.aside-tool .icon:last-child { margin-left: auto; }.guide-aside p { margin: 0; color: var(--tf-muted); font-size: 13px; }.info-content { padding-top: 20px; }.info-content .guide-prose { max-width: 760px; }
.seo-content { padding-top: 20px; }.seo-intro { max-width: 820px; margin-bottom: 52px; padding: 24px 28px; border-left: 3px solid var(--tf-amber); background: color-mix(in srgb, var(--tf-amber) 7%, transparent); }.seo-intro p:last-child { margin: 0; color: var(--tf-muted); font-size: 17px; line-height: 1.75; }.seo-copy { max-width: 820px; margin-bottom: 44px; }.seo-copy h2, .seo-faqs h2 { margin-bottom: 14px; font-size: clamp(1.55rem, 3vw, 2.25rem); }.seo-copy p { margin: 0; color: var(--tf-muted); font-size: 16px; line-height: 1.85; }.seo-faqs { max-width: 820px; margin-top: 60px; }.seo-faqs details { border-top: 1px solid var(--tf-border); }.seo-faqs details:last-child { border-bottom: 1px solid var(--tf-border); }.seo-faqs summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 58px; cursor: pointer; list-style: none; font-weight: 700; }.seo-faqs summary::-webkit-details-marker { display: none; }.seo-faqs summary:after { content: "+"; color: var(--tf-amber); font-size: 22px; font-weight: 400; }.seo-faqs details[open] summary:after { content: "−"; }.seo-faqs details p { max-width: 700px; margin: 0 0 18px; color: var(--tf-muted); }.page-faq-section { padding-top: 30px; }
.site-footer { padding: 70px 0 26px; border-top: 1px solid var(--tf-border); background: var(--tf-bg-soft); }.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr 2fr .8fr; gap: 42px; }.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }.footer-grid p { color: var(--tf-muted); font-size: 13px; }.footer-label { margin-bottom: 5px; }.footer-grid a { color: var(--tf-muted); font-size: 13px; }.footer-tool-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 22px; width: 100%; }.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 64px; padding-top: 18px; border-top: 1px solid var(--tf-border); color: var(--tf-faint); font-size: 12px; }
@media (max-width: 1060px) { .tool-grid { grid-template-columns: repeat(3, 1fr); }.scenario-grid { grid-template-columns: repeat(3, 1fr); }.scenario-card:last-child { grid-column: span 3; min-height: 220px; }.hero { gap: 36px; }.guide-body { gap: 42px; } }
@media (max-width: 780px) { .shell, .header-inner { width: min(100% - 28px, 680px); }.header-inner { min-height: 68px; gap: 12px; }.desktop-nav { display: none; }.header-actions { margin-left: auto; }.header-cta { display: none; }.hero { grid-template-columns: 1fr; min-height: 0; padding-top: 56px; }.hero-copy { max-width: none; }.hero-orbit { width: min(420px, 100%); margin-top: 14px; }.section { padding: 68px 0; }.section-heading, .intro-grid { display: block; }.section-heading > p { margin-top: 18px; }.tool-grid, .scenario-grid { grid-template-columns: repeat(2, 1fr); }.scenario-card:last-child { grid-column: auto; min-height: 310px; }.split-section, .guide-body { grid-template-columns: 1fr; gap: 35px; }.signal-panel { order: -1; }.workbench-top, .workbench-foot { align-items: flex-start; flex-direction: column; }.workbench-body { min-height: 360px; padding: 28px 16px; }.tf-field-grid, .tf-setup-grid { grid-template-columns: 1fr; }.tf-table-row { grid-template-columns: 1fr repeat(3, auto); gap: 6px; }.related-links { grid-template-columns: repeat(2, 1fr); }.footer-grid { grid-template-columns: 1fr 1fr; gap: 35px; }.footer-grid > div:first-child { grid-column: span 2; }.footer-bottom { margin-top: 40px; } }
@media (max-width: 480px) { h1 { font-size: clamp(3rem, 16vw, 4.4rem); }.hero-lede, .intro-lede { font-size: 16px; }.trust-row { gap: 12px; }.tool-grid, .scenario-grid, .explain-grid, .flow-grid, .related-links { grid-template-columns: 1fr; }.scenario-card:last-child { grid-column: auto; }.tool-card { min-height: 140px; }.tool-card .card-content span { font-size: 12px; }.page-intro { padding-top: 38px; }.breadcrumbs { margin-bottom: 32px; }.page-intro h1 { font-size: clamp(2.8rem, 14vw, 4rem); }.tf-display { font-size: clamp(3rem, 16vw, 6rem); }.tf-metric-grid { grid-template-columns: 1fr; }.tf-controls > * { flex: 1 1 135px; }.tf-table-row { grid-template-columns: 1fr 1fr; }.tf-table-row span:last-child { grid-column: span 2; }.guide-row { grid-template-columns: 42px 1fr 20px; gap: 10px; padding: 20px 0; }.guide-row strong { font-size: 16px; }.guide-row em { font-size: 12px; }.footer-grid { grid-template-columns: 1fr; }.footer-grid > div:first-child { grid-column: auto; }.footer-bottom { flex-direction: column; gap: 4px; } }
.tf-table[data-calendar] .tf-table-row { grid-template-columns: 42px repeat(7, minmax(0, 1fr)); }
@media (max-width: 480px) { .tf-table[data-calendar] .tf-table-row { grid-template-columns: 30px repeat(7, minmax(29px, 1fr)); padding-left: 8px; padding-right: 8px; gap: 4px; font-size: 11px; } }
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* TimeFK workspace redesign: digital-clock-first, with reference tools one click away. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.brand-name span { color: var(--tf-amber); }
.theme-moon { display: none; }
html[data-theme="light"] .theme-sun { display: none; }
html[data-theme="light"] .theme-moon { display: inline-block; }
.menu-button, .mobile-nav { display: none; }
.dashboard-layout { width: min(1440px, calc(100% - 48px)); margin: 0 auto; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 42px; padding: 48px 0 86px; }
.workspace-rail { position: sticky; top: 105px; align-self: start; min-height: 670px; display: flex; flex-direction: column; gap: 5px; padding: 17px 12px 14px; border: 1px solid var(--tf-border); border-radius: 18px; background: color-mix(in srgb, var(--tf-surface-solid) 86%, transparent); }
.rail-caption { padding: 9px 11px 7px; color: var(--tf-faint); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.rail-link { min-height: 44px; display: flex; align-items: center; gap: 11px; padding: 0 11px; border: 1px solid transparent; border-radius: 10px; color: var(--tf-muted); font-size: 13px; transition: color .2s ease, background .2s ease, border-color .2s ease; }
.rail-link:hover, .rail-link.is-active { color: var(--tf-text); border-color: var(--tf-border); background: var(--tf-surface-alt); }
.rail-link.is-active { color: var(--tf-amber-soft); }
.rail-link .icon { width: 17px; height: 17px; }
.rail-link b { margin-left: auto; color: var(--tf-faint); font-family: ui-monospace, monospace; font-size: 10px; font-weight: 500; }
.rail-text-icon { min-width: 17px; color: var(--tf-amber); font-family: ui-monospace, monospace; font-size: 10px; font-weight: 800; }
.rail-divider { height: 1px; margin: 15px 11px 8px; background: var(--tf-border); }
.rail-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 7px; padding: 16px 11px 8px; border-top: 1px solid var(--tf-border); }
.rail-bottom strong { display: flex; align-items: center; gap: 7px; color: var(--tf-green); font-size: 11px; }
.rail-bottom strong i, .status-chip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 13%, transparent); }
.rail-bottom small { color: var(--tf-faint); font-size: 10px; }
.dashboard-main { min-width: 0; }
.dashboard-topline { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.dashboard-topline h1 { margin: 0 0 9px; font-size: clamp(2.6rem, 5vw, 5.2rem); }
.dashboard-subtitle { margin: 0; color: var(--tf-muted); font-size: 14px; }
.dashboard-actions, .feature-heading-actions { display: flex; align-items: center; gap: 9px; }
.segmented { display: inline-flex; padding: 3px; border: 1px solid var(--tf-border); border-radius: 10px; background: var(--tf-surface); }
.segmented button { min-width: 52px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 8px; color: var(--tf-muted); background: transparent; cursor: pointer; font-size: 12px; font-weight: 800; transition: background .2s ease, color .2s ease; }
.segmented button.is-active { color: var(--tf-bg); background: var(--tf-text); }
.round-action { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--tf-border); border-radius: 50%; color: var(--tf-text); background: transparent; cursor: pointer; transition: background .2s ease, border-color .2s ease, color .2s ease; }
.round-action:hover { color: var(--tf-amber); border-color: var(--tf-amber); background: var(--tf-surface-alt); }
.clock-workspace { position: relative; height: 506px; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 280px; border: 1px solid var(--tf-border-strong); border-radius: 20px; background: #07090e; box-shadow: 0 30px 90px rgba(0,0,0,.28); overflow: hidden; }
html[data-theme="light"] .clock-workspace { background: #f2f1ed; }
.clock-stage { min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 52px clamp(20px, 5vw, 76px); background: radial-gradient(circle at 50% 46%, rgba(242,169,59,.13), transparent 34%), radial-gradient(circle at 10% 100%, rgba(83,91,196,.12), transparent 34%); }
.clock-stage-meta, .clock-status-row { display: flex; justify-content: space-between; gap: 15px; color: var(--tf-faint); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.clock-stage-meta { margin-bottom: 30px; }
.clock-stage-meta span:first-child { color: var(--tf-amber-soft); }
.live-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--tf-green); box-shadow: 0 0 0 4px rgba(139,210,164,.12); }
.hero-clock, .feature-clock { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-variant-numeric: tabular-nums; letter-spacing: -.12em; line-height: .92; white-space: nowrap; }
.hero-clock { margin-left: -.08em; color: #f1f0ea; font-size: clamp(3.4rem, 9.2vw, 9.6rem); text-shadow: 0 0 32px rgba(242,169,59,.12); }
html[data-theme="light"] .hero-clock { color: #171922; }
.hero-clock.template-blue { color: #74b6ff; }
.hero-clock.template-amber { color: var(--tf-amber); }
.hero-clock.template-classic { letter-spacing: -.07em; font-weight: 400; }
@media (min-width: 781px) { .clock-workspace.settings-open .clock-stage { padding-inline: clamp(20px, 3vw, 48px); }.clock-workspace.settings-open .hero-clock { font-size: clamp(3.2rem, 6.2vw, 6.4rem); } }
.hero-date { min-height: 28px; margin-top: 17px; color: var(--tf-muted); font-size: 16px; }
.clock-ticks { display: flex; align-items: end; gap: clamp(4px, 1vw, 12px); margin: 45px 0 22px; color: var(--tf-faint); }
.clock-ticks i { width: 2px; height: 8px; background: var(--tf-border-strong); }
.clock-ticks i:nth-of-type(5n) { height: 17px; background: var(--tf-muted); }
.clock-ticks span { margin: 0 4px; font-family: ui-monospace, monospace; font-size: 10px; }
.clock-status-row { padding-top: 18px; border-top: 1px solid var(--tf-border); letter-spacing: .03em; text-transform: none; }
.clock-status-row b { color: var(--tf-text); font-weight: 600; }
.clock-settings { min-height: 0; max-height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding: 24px 19px; border-left: 1px solid var(--tf-border); background: rgba(22,25,33,.7); }
html[data-theme="light"] .clock-settings { background: rgba(255,255,255,.68); }
.settings-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 19px; border-bottom: 1px solid var(--tf-border); color: var(--tf-text); font-size: 14px; font-weight: 700; }
.settings-heading button { width: 32px; height: 32px; border: 0; color: var(--tf-muted); background: transparent; cursor: pointer; font-size: 22px; }
.setting-toggle { display: flex; align-items: center; justify-content: space-between; min-height: 51px; border-bottom: 1px solid var(--tf-border); color: var(--tf-muted); font-size: 12px; cursor: pointer; }
.setting-toggle input { position: absolute; opacity: 0; }
.setting-toggle i { position: relative; width: 35px; height: 20px; border-radius: 20px; background: var(--tf-border-strong); transition: background .2s ease; }
.setting-toggle i:after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--tf-text); transition: transform .2s ease; }
.setting-toggle input:checked + i { background: var(--tf-amber); }
.setting-toggle input:checked + i:after { transform: translateX(15px); background: var(--tf-bg); }
.setting-label { margin: 25px 0 11px; color: var(--tf-faint); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.template-grid { display: grid; gap: 9px; }
.template-card { min-height: 58px; display: flex; align-items: center; gap: 13px; padding: 9px 11px; border: 1px solid var(--tf-border); border-radius: 9px; color: var(--tf-text); background: transparent; cursor: pointer; text-align: left; transition: border-color .2s ease, background .2s ease; }
.template-card:hover, .template-card.is-active { border-color: var(--tf-amber); background: color-mix(in srgb, var(--tf-amber) 8%, transparent); }
.template-card strong { min-width: 78px; padding: 9px 6px; border-radius: 5px; color: #d5d4d0; background: #080a0d; font-family: ui-monospace, monospace; font-size: 12px; font-weight: 500; }
.template-card:nth-child(2) strong { color: #63b6ff; }.template-card:nth-child(3) strong { color: var(--tf-amber); }.template-card:nth-child(4) strong { color: var(--tf-text); background: var(--tf-surface-alt); }
.template-card span { color: var(--tf-muted); font-size: 11px; }
.settings-note { margin: 21px 0 0; color: var(--tf-faint); font-size: 11px; line-height: 1.6; }
.city-row, .quick-section, .catalog-section { margin-top: 42px; }
.section-mini-heading, .list-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 15px; color: var(--tf-text); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.section-mini-heading a, .list-heading a { display: inline-flex; align-items: center; gap: 6px; color: var(--tf-muted); font-size: 11px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.section-mini-heading a:hover, .list-heading a:hover { color: var(--tf-amber); }
.city-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
.city-card { min-width: 0; display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; padding: 15px; border: 1px solid var(--tf-border); border-radius: 11px; background: var(--tf-surface); }
.city-card span { min-width: 0; overflow: hidden; color: var(--tf-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.city-card strong { grid-column: 1 / -1; font-family: ui-monospace, monospace; font-size: 20px; font-weight: 500; }.city-card small { color: var(--tf-faint); font-size: 10px; }.city-card small { grid-column: 2; grid-row: 2; text-align: right; }
.section-heading.compact { margin-bottom: 20px; }.section-heading.compact h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); }.section-heading.compact .eyebrow { margin-bottom: 12px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.quick-card { min-height: 112px; display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 12px; padding: 18px; border: 1px solid var(--tf-border); border-radius: 14px; background: var(--tf-surface); transition: border-color .2s ease, transform .2s var(--tf-ease), background .2s ease; }.quick-card:hover { transform: translateY(-3px); border-color: var(--tf-amber); background: var(--tf-surface-alt); }.quick-card > .icon { align-self: end; color: var(--tf-faint); }.quick-card strong, .quick-card small { display: block; }.quick-card strong { font-size: 13px; }.quick-card small { margin-top: 7px; color: var(--tf-muted); font-size: 11px; line-height: 1.4; }.quick-icon { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--tf-amber) 42%, var(--tf-border)); border-radius: 9px; color: var(--tf-amber); font-family: ui-monospace, monospace; font-size: 10px; font-weight: 800; }.quick-card.featured { border-color: color-mix(in srgb, var(--tf-amber) 45%, var(--tf-border)); }
.catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }.catalog-card { min-height: 84px; display: grid; grid-template-columns: auto 1fr; align-content: center; gap: 4px 10px; padding: 13px; border: 1px solid var(--tf-border); border-radius: 11px; color: var(--tf-text); background: transparent; transition: border-color .2s ease, background .2s ease; }.catalog-card:hover { border-color: var(--tf-border-strong); background: var(--tf-surface); }.catalog-icon { grid-row: span 2; width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; color: var(--tf-amber); background: color-mix(in srgb, var(--tf-amber) 9%, transparent); }.catalog-icon .icon { width: 16px; height: 16px; }.catalog-card strong { font-size: 12px; }.catalog-card small { color: var(--tf-faint); font-size: 10px; }
.feature-page { padding-top: 56px; padding-bottom: 95px; }.feature-page .breadcrumbs { margin-bottom: 50px; }.feature-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 38px; }.feature-heading h1 { max-width: 880px; margin-bottom: 15px; font-size: clamp(3rem, 7vw, 6rem); }.feature-lede { max-width: 730px; margin: 0; color: var(--tf-muted); font-size: 18px; line-height: 1.6; }.feature-card { border: 1px solid var(--tf-border-strong); border-radius: 20px; background: var(--tf-surface); box-shadow: var(--tf-shadow); }.feature-card-top { display: flex; justify-content: space-between; gap: 15px; padding: 22px 28px; border-bottom: 1px solid var(--tf-border); }.status-chip { display: inline-flex; align-items: center; gap: 10px; color: var(--tf-green); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }.mono-label { color: var(--tf-faint); font-family: ui-monospace, monospace; font-size: 11px; }.feature-clock { padding: 62px 30px 15px; color: var(--tf-text); font-size: clamp(4rem, 13vw, 10rem); text-align: center; }.feature-date { color: var(--tf-muted); font-size: 18px; text-align: center; }.utc-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 55px; border-top: 1px solid var(--tf-border); background: var(--tf-border); }.utc-metrics div { min-width: 0; padding: 22px 25px; background: var(--tf-surface-solid); }.utc-metrics span, .year-stats span, .timezone-stats span { display: block; color: var(--tf-faint); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }.utc-metrics strong { display: block; margin-top: 10px; overflow: hidden; color: var(--tf-muted); font-family: ui-monospace, monospace; font-size: 13px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.year-overview { overflow: hidden; }.year-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--tf-border); }.year-stats > div { min-height: 130px; padding: 25px; background: var(--tf-surface-solid); }.year-stats strong, .timezone-stats strong { display: block; margin: 14px 0 6px; font-family: ui-monospace, monospace; font-size: 32px; font-weight: 500; }.year-stats small { color: var(--tf-muted); font-size: 11px; }.year-switch { display: flex; align-items: center; justify-content: center; gap: 30px; padding: 35px 20px 15px; }.year-switch a { width: 43px; height: 43px; display: grid; place-items: center; border: 1px solid var(--tf-border); border-radius: 50%; color: var(--tf-text); font-size: 22px; }.year-switch a:hover { border-color: var(--tf-amber); color: var(--tf-amber); }.year-switch strong { font-family: ui-monospace, monospace; font-size: 26px; font-weight: 500; }.year-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 25px; }.month-card { padding: 18px; border: 1px solid var(--tf-border); border-radius: 14px; background: var(--tf-bg-soft); }.month-card header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 15px; }.month-card header strong { font-size: 17px; }.month-card header span { color: var(--tf-faint); font-family: ui-monospace, monospace; font-size: 10px; text-transform: uppercase; }.month-weekdays, .month-days { display: grid; grid-template-columns: 28px repeat(7, minmax(0, 1fr)); gap: 3px; text-align: center; }.month-weekdays { margin-bottom: 8px; color: var(--tf-faint); font-size: 9px; }.month-days span { min-height: 26px; display: grid; place-items: center; color: var(--tf-muted); font-family: ui-monospace, monospace; font-size: 11px; }.month-days span.is-day { color: var(--tf-text); }.month-days span.is-today { border-radius: 50%; color: var(--tf-bg); background: var(--tf-amber); font-weight: 800; }
.holidays-card, .timezone-card { padding: 28px; }.filter-row { display: grid; gap: 16px; padding-bottom: 26px; border-bottom: 1px solid var(--tf-border); }.search-field { min-height: 48px; display: flex; align-items: center; gap: 11px; padding: 0 15px; border: 1px solid var(--tf-border-strong); border-radius: 11px; color: var(--tf-faint); background: var(--tf-bg-soft); }.search-field:focus-within { border-color: var(--tf-amber); }.search-field input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--tf-text); background: transparent; }.filter-tabs { display: flex; flex-wrap: wrap; gap: 7px; }.filter-tabs button { min-height: 38px; padding: 0 13px; border: 1px solid var(--tf-border); border-radius: 20px; color: var(--tf-muted); background: transparent; cursor: pointer; font-size: 11px; }.filter-tabs button:hover, .filter-tabs button.is-active { color: var(--tf-bg); border-color: var(--tf-text); background: var(--tf-text); }.holiday-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 28px; padding-top: 27px; }.list-heading { letter-spacing: .08em; }.holiday-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }.holiday-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; padding: 13px 15px; border: 1px solid var(--tf-border); border-radius: 11px; background: var(--tf-bg-soft); }.holiday-item strong { display: block; font-size: 12px; }.holiday-item small { display: block; margin-top: 4px; color: var(--tf-faint); font-size: 10px; }.holiday-date { color: var(--tf-amber-soft); font-family: ui-monospace, monospace; font-size: 11px; text-align: right; white-space: nowrap; }.holiday-aside { align-self: start; padding: 20px; border: 1px solid var(--tf-border); border-radius: 14px; background: var(--tf-bg-soft); }.holiday-aside h2 { margin: 13px 0 10px; font-size: 24px; }.holiday-aside p { color: var(--tf-muted); font-size: 13px; line-height: 1.65; }.holiday-aside .text-link { margin-top: 15px; }
.timezone-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: -28px -28px 35px; background: var(--tf-border); }.timezone-stats > div { padding: 22px 25px; background: var(--tf-surface-solid); }.timezone-stats strong { margin-bottom: 0; }.timezone-list-heading { align-items: end; margin-bottom: 20px; }.timezone-list-heading h2 { margin: 0 0 5px; font-size: 25px; }.timezone-list-heading p { margin: 0; color: var(--tf-muted); font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; }.compact-search { width: min(290px, 100%); }.timezone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }.timezone-item { min-height: 78px; display: grid; grid-template-columns: 1fr auto; align-content: center; gap: 4px 10px; padding: 14px 15px; border: 1px solid var(--tf-border); border-radius: 11px; background: var(--tf-bg-soft); }.timezone-item strong { font-size: 13px; }.timezone-item small { color: var(--tf-faint); font-family: ui-monospace, monospace; font-size: 10px; }.timezone-item b { grid-row: span 2; align-self: center; color: var(--tf-amber-soft); font-family: ui-monospace, monospace; font-size: 15px; font-weight: 500; }.timezone-empty { grid-column: 1 / -1; padding: 28px; color: var(--tf-muted); border: 1px dashed var(--tf-border-strong); border-radius: 12px; text-align: center; }
.flip-card { min-height: 500px; display: grid; place-items: center; align-content: center; padding: 50px 25px; text-align: center; background: radial-gradient(circle at 50% 38%, rgba(242,169,59,.15), transparent 38%), #07090e; }.flip-display { display: flex; align-items: center; gap: clamp(6px, 2vw, 22px); color: #d8d7d2; }.flip-display > b { color: var(--tf-amber); font-family: ui-monospace, monospace; font-size: clamp(3rem, 8vw, 7rem); font-weight: 400; }.flip-unit span { min-width: 1.8em; display: block; padding: 18px 15px 21px; border: 1px solid rgba(255,255,255,.18); border-radius: 9px; background: linear-gradient(#1c2028 0 49%, #10131a 50%); box-shadow: 0 15px 30px rgba(0,0,0,.3); font-family: ui-monospace, monospace; font-size: clamp(3rem, 9vw, 8rem); line-height: .9; }.flip-unit small { display: block; margin-top: 12px; color: var(--tf-faint); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }.flip-card > p { margin: 36px 0 21px; color: var(--tf-muted); }.feature-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
@media (max-width: 1100px) { .dashboard-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 25px; }.city-grid { grid-template-columns: repeat(3, 1fr); }.city-card:last-child { display: none; }.quick-grid { grid-template-columns: repeat(2, 1fr); }.catalog-grid { grid-template-columns: repeat(3, 1fr); }.timezone-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 780px) { .dashboard-layout { width: min(100% - 28px, 680px); display: block; padding-top: 30px; }.workspace-rail { position: static; min-height: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; margin-bottom: 27px; padding: 12px; }.workspace-rail .rail-caption, .rail-bottom, .rail-divider { display: none; }.rail-link { min-height: 42px; }.dashboard-topline, .feature-heading { align-items: start; flex-direction: column; }.dashboard-topline h1 { font-size: clamp(2.7rem, 13vw, 4.7rem); }.dashboard-actions { width: 100%; }.dashboard-actions .segmented { margin-right: auto; }.clock-workspace { display: block; }.clock-settings { display: none; border-left: 0; border-top: 1px solid var(--tf-border); }.clock-workspace.settings-open .clock-settings { display: block; }.clock-stage { min-height: 420px; padding: 35px 20px; }.clock-ticks { margin-top: 35px; }.city-grid { grid-template-columns: repeat(2, 1fr); }.city-card:last-child { display: grid; }.quick-grid, .catalog-grid { grid-template-columns: 1fr; }.feature-page { width: min(100% - 28px, 680px); padding-top: 35px; }.feature-heading-actions { width: 100%; }.feature-heading-actions .button { margin-right: auto; }.utc-metrics, .year-stats { grid-template-columns: repeat(2, 1fr); }.year-stats > div:last-child { grid-column: span 2; }.year-grid { grid-template-columns: repeat(2, 1fr); padding: 14px; }.holiday-layout { grid-template-columns: 1fr; }.holiday-aside { order: -1; }.timezone-list-heading { align-items: start; flex-direction: column; }.compact-search { width: 100%; }.timezone-stats { grid-template-columns: repeat(2, 1fr); }.timezone-grid, .holiday-list { grid-template-columns: 1fr; }.flip-display { gap: 5px; }.flip-unit span { padding: 14px 9px 18px; }.desktop-nav { display: none; }.menu-button { display: grid; }.mobile-nav { padding: 10px 14px 16px; border-top: 1px solid var(--tf-border); background: var(--tf-bg); }.mobile-nav.is-open { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }.mobile-nav a { min-height: 44px; display: flex; align-items: center; padding: 0 11px; border-radius: 9px; color: var(--tf-muted); font-size: 13px; }.mobile-nav a:hover { color: var(--tf-text); background: var(--tf-surface-alt); } }
@media (max-width: 480px) { .dashboard-layout { width: calc(100% - 24px); }.workspace-rail { grid-template-columns: 1fr 1fr; }.rail-link { font-size: 12px; }.clock-stage-meta, .clock-status-row { font-size: 9px; }.hero-clock { font-size: clamp(2.7rem, 14vw, 4.6rem); }.clock-ticks { gap: 3px; }.clock-ticks span { margin: 0 1px; font-size: 8px; }.feature-page { width: calc(100% - 24px); }.feature-page .breadcrumbs { margin-bottom: 30px; }.feature-heading h1 { font-size: clamp(2.8rem, 15vw, 4.2rem); }.feature-lede { font-size: 16px; }.feature-card-top { align-items: start; flex-direction: column; padding: 18px; }.feature-clock { padding: 48px 12px 10px; font-size: clamp(3.2rem, 15vw, 6rem); }.utc-metrics { display: block; margin-top: 38px; }.utc-metrics div { border-top: 1px solid var(--tf-border); }.year-grid { grid-template-columns: 1fr; }.holidays-card, .timezone-card { padding: 18px; }.timezone-stats { margin: -18px -18px 25px; }.timezone-stats > div { padding: 18px 15px; }.year-stats > div { padding: 18px 15px; }.year-stats strong, .timezone-stats strong { font-size: 25px; }.month-card { padding: 13px; }.month-weekdays, .month-days { grid-template-columns: 20px repeat(7, minmax(0, 1fr)); }.month-days span { min-height: 24px; font-size: 10px; }.flip-card { min-height: 380px; padding: 28px 12px; }.flip-unit span { padding: 11px 6px 14px; font-size: clamp(2.2rem, 13vw, 4rem); }.flip-display > b { font-size: 2.4rem; } }

/* Full-screen fallback keeps the live display visible when the browser blocks the native API. */
body.timefk-fullscreen-mode { overflow: hidden; }
.is-fullscreen { position: fixed !important; inset: 0 !important; z-index: 100 !important; width: 100vw !important; height: 100dvh !important; min-height: 100dvh !important; margin: 0 !important; border-radius: 0 !important; overflow: auto !important; }
.clock-stage.is-fullscreen { display: flex; align-items: center; justify-content: center; padding: 70px clamp(20px, 8vw, 140px); background: radial-gradient(circle at 50% 46%, rgba(242,169,59,.18), transparent 42%), #07090e; }
html[data-theme="light"] .clock-stage.is-fullscreen { background: radial-gradient(circle at 50% 46%, rgba(174,101,9,.12), transparent 42%), #f2f1ed; }
.clock-stage.is-fullscreen .hero-clock { font-size: clamp(4rem, 15vw, 14rem); }
.workbench.is-fullscreen { display: flex; flex-direction: column; background: var(--tf-surface-solid); }
.workbench.is-fullscreen .workbench-body { flex: 1; min-height: 0; overflow: auto; }
.feature-card.is-fullscreen { display: grid; align-content: center; padding: 70px 24px; background: radial-gradient(circle at 50% 45%, rgba(242,169,59,.15), transparent 45%), var(--tf-bg); }
.fullscreen-exit { position: absolute; top: 17px; right: 20px; z-index: 5; min-height: 42px; display: inline-flex; align-items: center; gap: 8px; padding: 0 13px; border: 1px solid var(--tf-border-strong); border-radius: 10px; color: var(--tf-text); background: color-mix(in srgb, var(--tf-surface-solid) 92%, transparent); cursor: pointer; font-size: 12px; font-weight: 700; }
.fullscreen-exit:hover { border-color: var(--tf-amber); color: var(--tf-amber); }
.home-insights, .boundary-section { margin-top: 74px; padding-top: 46px; border-top: 1px solid var(--tf-border); }
.insight-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 11px; }
.insight-card { min-height: 280px; display: flex; flex-direction: column; align-items: flex-start; padding: 23px; border: 1px solid var(--tf-border); border-radius: 16px; background: linear-gradient(155deg, var(--tf-surface), transparent); }
.insight-card-wide { display: grid; grid-template-columns: 1fr .9fr; gap: 20px; }
.insight-card h3 { margin: 12px 0 8px; font-size: 21px; }.insight-card p { margin: 0; color: var(--tf-muted); font-size: 13px; line-height: 1.65; }.insight-card .text-link { margin-top: auto; }.insight-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 28px; border: 1px solid color-mix(in srgb, var(--tf-amber) 38%, var(--tf-border)); border-radius: 12px; color: var(--tf-amber); background: color-mix(in srgb, var(--tf-amber) 9%, transparent); }
.year-visual { position: relative; min-height: 190px; align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding: 22px; border: 1px solid var(--tf-border); border-radius: 13px; background: radial-gradient(circle at 42% 48%, rgba(242,169,59,.18), transparent 55%), var(--tf-bg-soft); }.year-visual-top, .year-visual-bottom { display: flex; justify-content: space-between; color: var(--tf-faint); font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: .1em; }.year-visual-bottom { align-items: baseline; margin-top: 17px; }.year-visual-bottom strong { color: var(--tf-text); font-size: 16px; font-weight: 500; }.year-visual-bottom span { font-family: inherit; letter-spacing: 0; text-transform: none; }.year-visual-track { height: 6px; margin-top: 25px; border-radius: 10px; background: var(--tf-border); }.year-visual-track i { display: block; width: 82%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--tf-amber), var(--tf-violet)); box-shadow: 0 0 18px color-mix(in srgb, var(--tf-amber) 30%, transparent); }
.boundary-section { display: grid; grid-template-columns: .75fr 1fr; gap: 64px; align-items: center; padding-bottom: 25px; }.boundary-section h2 { max-width: 550px; margin: 10px 0 15px; font-size: clamp(2rem, 4vw, 3.4rem); }.boundary-section > div:last-child > p:not(.eyebrow) { max-width: 560px; color: var(--tf-muted); font-size: 15px; line-height: 1.75; }.boundary-visual { position: relative; min-height: 250px; display: grid; place-items: center; }.boundary-ring { width: 190px; height: 190px; display: flex; align-items: center; justify-content: center; flex-direction: column; border: 1px solid color-mix(in srgb, var(--tf-amber) 45%, var(--tf-border)); border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--tf-amber) 18%, transparent), transparent 65%), var(--tf-surface); box-shadow: 0 0 50px color-mix(in srgb, var(--tf-amber) 13%, transparent); }.boundary-ring span, .boundary-ring small { color: var(--tf-faint); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; }.boundary-ring strong { margin: 10px 0 4px; color: var(--tf-amber); font-family: ui-monospace, monospace; font-size: 45px; font-weight: 400; }.boundary-orbit { position: absolute; border: 1px solid var(--tf-border); border-radius: 50%; }.orbit-a { width: 225px; height: 110px; transform: rotate(32deg); }.orbit-b { width: 255px; height: 150px; transform: rotate(-24deg); border-style: dashed; }.boundary-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; color: var(--tf-muted); font-size: 12px; }.boundary-points span { display: inline-flex; align-items: center; gap: 8px; }.boundary-points i { width: 6px; height: 6px; border-radius: 50%; background: var(--tf-green); }
.tool-context-band { display: grid; grid-template-columns: .82fr 1fr; gap: 64px; align-items: center; padding-top: 28px; padding-bottom: 50px; }.tool-context-visual { position: relative; min-height: 270px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--tf-border); border-radius: 20px; background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--tf-amber) 13%, transparent), transparent 45%), var(--tf-surface); }.context-core { position: relative; z-index: 2; width: 145px; height: 145px; display: flex; align-items: center; justify-content: center; flex-direction: column; border: 1px solid color-mix(in srgb, var(--tf-amber) 46%, var(--tf-border)); border-radius: 50%; background: var(--tf-bg); box-shadow: 0 0 40px color-mix(in srgb, var(--tf-amber) 12%, transparent); text-align: center; }.context-core span, .context-core small { color: var(--tf-faint); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }.context-core strong { margin: 8px 0 4px; color: var(--tf-amber); font-family: ui-monospace, monospace; font-size: 24px; font-weight: 500; }.context-orbit { position: absolute; border: 1px solid var(--tf-border); border-radius: 50%; }.context-orbit-one { width: 205px; height: 205px; transform: rotate(24deg); }.context-orbit-two { width: 250px; height: 122px; transform: rotate(-25deg); border-style: dashed; }.context-node { position: absolute; z-index: 3; padding: 6px 8px; border: 1px solid var(--tf-border); border-radius: 7px; color: var(--tf-muted); background: var(--tf-surface-solid); font-family: ui-monospace, monospace; font-size: 9px; }.node-one { top: 22%; left: 12%; color: var(--tf-amber); }.node-two { right: 9%; top: 49%; color: var(--tf-cyan); }.node-three { bottom: 17%; left: 22%; color: var(--tf-green); }.tool-context-copy h2 { max-width: 520px; margin: 10px 0 14px; font-size: clamp(2rem, 4vw, 3.4rem); }.tool-context-copy > p:not(.eyebrow) { max-width: 560px; color: var(--tf-muted); line-height: 1.75; }.tool-signal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 28px; }.tool-signal-grid div { padding: 13px; border: 1px solid var(--tf-border); border-radius: 10px; background: var(--tf-surface); }.tool-signal-grid span, .tool-signal-grid strong { display: block; }.tool-signal-grid span { color: var(--tf-faint); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }.tool-signal-grid strong { margin-top: 7px; font-family: ui-monospace, monospace; font-size: 11px; font-weight: 500; }
@media (max-width: 780px) { .insight-grid { grid-template-columns: 1fr; }.insight-card-wide { grid-template-columns: 1fr; }.year-visual { min-height: 150px; }.boundary-section { grid-template-columns: 1fr; gap: 25px; }.boundary-visual { min-height: 220px; } }
@media (max-width: 780px) { .depth-content { margin-top: 42px; padding-top: 34px; }.depth-content-grid { grid-template-columns: 1fr; gap: 14px; }.depth-content-grid article { padding: 20px; } }
@media (max-width: 780px) { .tool-context-band { grid-template-columns: 1fr; gap: 28px; padding-top: 10px; }.tool-context-visual { min-height: 235px; }.tool-signal-grid { grid-template-columns: 1fr; } }
.feature-support { margin-top: 68px; padding-top: 45px; border-top: 1px solid var(--tf-border); }.support-heading { max-width: 730px; }.support-heading h2 { margin: 9px 0 13px; font-size: clamp(2rem, 4vw, 3.3rem); }.support-heading > p:last-child { color: var(--tf-muted); font-size: 15px; line-height: 1.7; }.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin-top: 30px; }.support-grid article { min-height: 210px; padding: 20px; border: 1px solid var(--tf-border); border-radius: 15px; background: var(--tf-surface); }.support-index { color: var(--tf-amber); font-family: ui-monospace, monospace; font-size: 12px; }.support-grid h3 { margin: 31px 0 9px; font-size: 20px; }.support-grid p { margin: 0; color: var(--tf-muted); font-size: 13px; line-height: 1.7; }
@media (max-width: 780px) { .support-grid { grid-template-columns: 1fr; }.feature-support { margin-top: 50px; } }

/* 2026 visual system: warm editorial type, compact utility surfaces and clear live signals. */
body { font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif; }
button, input, select, textarea { font: inherit; }
.mono-label, .hero-clock, .feature-clock, .tf-display, .tf-table-row span, .tf-world-card b, .timezone-item b, .support-index { font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif; font-variant-numeric: tabular-nums; }
.desktop-nav a, .mobile-nav a { display: inline-flex; align-items: center; gap: 7px; }
.nav-icon { width: 15px; height: 15px; color: var(--tf-amber); }
.desktop-nav a:not(.is-active) .nav-icon { opacity: .7; }
.desktop-nav a:hover .nav-icon, .desktop-nav a.is-active .nav-icon { opacity: 1; }
.hero-clock { display: flex; align-items: baseline; justify-content: center; gap: clamp(14px, 2.2vw, 32px); white-space: nowrap; letter-spacing: -.055em; }
.clock-digits { min-width: 0; }
.clock-meridiem { flex: 0 0 auto; margin-left: .05em; color: var(--tf-amber); font-size: .34em; font-weight: 600; letter-spacing: .02em; }
.template-blue .clock-meridiem { color: var(--tf-blue); }
.template-amber .clock-meridiem, .template-paper .clock-meridiem { color: var(--tf-amber); }
.template-terminal .clock-digits, .template-terminal .clock-meridiem { color: var(--tf-green); text-shadow: 0 0 20px color-mix(in srgb, var(--tf-green) 38%, transparent); }
.template-violet .clock-digits, .template-violet .clock-meridiem { color: var(--tf-violet); text-shadow: 0 0 22px color-mix(in srgb, var(--tf-violet) 42%, transparent); }
.template-red .clock-digits, .template-red .clock-meridiem { color: #ef726a; text-shadow: 0 0 20px rgba(239,114,106,.25); }
.template-paper { color: #4e3f2e; }
.template-paper .clock-digits { text-shadow: none; }
.template-classic { letter-spacing: -.07em; }
.dashboard-topline { gap: 28px; }
.dashboard-topline h1 { max-width: 760px; }
.clock-stage { min-width: 0; overflow: hidden; }
.clock-workspace.settings-open .hero-clock { font-size: clamp(3rem, 5.7vw, 6rem); }
.template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.template-card { min-height: 72px; cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.template-card:hover { transform: translateY(-1px); border-color: var(--tf-amber); }
.template-card:focus-visible, .tf-dialog button:focus-visible, .tf-toast-close:focus-visible { outline: 3px solid color-mix(in srgb, var(--tf-amber) 65%, transparent); outline-offset: 3px; }
.template-card[data-clock-template="terminal"] strong { color: var(--tf-green); }
.template-card[data-clock-template="violet"] strong { color: var(--tf-violet); }
.template-card[data-clock-template="red"] strong { color: #ef726a; }
.template-card[data-clock-template="paper"] strong { color: #8c633e; }
.tf-workbench-lede { max-width: 650px; margin: -6px auto 26px; color: var(--tf-muted); text-align: center; }
.tf-city-selects { align-items: end; }
.tf-world-selects { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); width: 100%; max-width: 980px; }
.tf-world-selects .tf-field { min-width: 0; }
.tf-world-selects select { min-width: 0; width: 100%; }
.tf-world-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 980px; margin: 28px auto 0; }
.tf-world-card { display: grid; grid-template-columns: 1.2fr auto; gap: 8px 16px; padding: 18px 20px; border: 1px solid var(--tf-border); border-radius: 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--tf-amber) 6%, var(--tf-surface)), var(--tf-surface)); text-align: left; }
.tf-world-card > div { min-width: 0; }
.tf-world-card strong, .tf-world-card small, .tf-world-card > span { display: block; }
.tf-world-card strong { margin-top: 6px; font-size: 1.35rem; }
.tf-world-card small { overflow: hidden; color: var(--tf-faint); font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.tf-world-card b { align-self: center; color: var(--tf-amber); font-size: clamp(1.35rem, 2.5vw, 2rem); font-weight: 600; white-space: nowrap; }
.tf-world-card > span:last-child { grid-column: 1 / -1; color: var(--tf-muted); font-size: .82rem; }
.tf-world-status { display: inline-flex !important; align-items: center; gap: 6px; color: var(--tf-green) !important; font-size: .72rem !important; letter-spacing: .06em; text-transform: uppercase; }
.tf-world-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.feature-page, .page-intro { position: relative; }
.feature-page:before, .page-intro:before { content: ""; position: absolute; z-index: -1; top: -30px; right: 2%; width: 300px; height: 300px; border: 1px solid color-mix(in srgb, var(--tf-amber) 15%, transparent); border-radius: 50%; box-shadow: 0 0 0 34px color-mix(in srgb, var(--tf-amber) 4%, transparent), 0 0 0 68px color-mix(in srgb, var(--tf-blue) 3%, transparent); }
body[data-feature="utc"] .feature-page, body[data-feature="calendar-year"] .feature-page { padding-top: 22px; }
body[data-feature="utc"] .feature-heading, body[data-feature="calendar-year"] .feature-heading { margin-bottom: 28px; }
body[data-feature="utc"] .feature-lede, body[data-feature="calendar-year"] .feature-lede { max-width: 720px; }
.utc-card { overflow: hidden; position: relative; }
.utc-card:after { content: "UTC"; position: absolute; right: 7%; bottom: 54px; color: color-mix(in srgb, var(--tf-amber) 10%, transparent); font-size: clamp(5rem, 15vw, 13rem); font-weight: 700; letter-spacing: -.08em; pointer-events: none; }
.utc-metrics { position: relative; z-index: 1; }
.utc-card .feature-clock { padding-bottom: 28px; }
.utc-card .feature-date { margin-bottom: 18px; }
body[data-feature="flip-clock"] .feature-heading { align-items: center; }
body[data-feature="flip-clock"] .feature-heading-actions { align-items: flex-end; flex-direction: column; gap: 14px; }
.feature-heading-controls { display: flex; align-items: center; gap: 9px; }
.flip-heading-art { width: min(470px, 100%); padding: 16px 18px 14px; border: 1px solid color-mix(in srgb, var(--tf-border-strong) 78%, white); border-radius: 24px; background: color-mix(in srgb, var(--tf-surface-solid) 88%, transparent); box-shadow: 0 22px 48px color-mix(in srgb, var(--tf-text) 10%, transparent); }
.flip-art-strip { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; }
.flip-art-cell { min-width: 0; min-height: 76px; display: flex; align-items: center; justify-content: flex-start; padding: 0 20px; border: 2px solid color-mix(in srgb, var(--tf-border-strong) 88%, #fff); border-radius: 16px; background: linear-gradient(180deg, color-mix(in srgb, var(--tf-text) 10%, var(--tf-surface-solid)) 0 49%, var(--tf-surface-solid) 50%); box-shadow: 0 12px 22px color-mix(in srgb, var(--tf-text) 9%, transparent); }
.flip-art-cell span, .flip-art-label { color: var(--tf-faint); font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.flip-art-separator { color: var(--tf-amber); font-family: Georgia, serif; font-size: 2.3rem; font-style: normal; line-height: 1; }
.flip-art-label { display: block; margin: 13px 0 0 4px; color: var(--tf-amber-soft); font-size: 11px; letter-spacing: .12em; }
.flip-card { --tf-flip-top: #20242d; --tf-flip-bottom: #14171d; --tf-flip-text: #f3f2ed; --tf-flip-line: rgba(255,255,255,.14); overflow: hidden; position: relative; color: var(--tf-text); background: radial-gradient(circle at 50% 46%, color-mix(in srgb, var(--tf-amber) 14%, transparent), transparent 38%), linear-gradient(145deg, var(--tf-bg-soft), var(--tf-surface-solid) 60%, var(--tf-bg)); }
html[data-theme="light"] .flip-card { --tf-flip-top: #f4f2ec; --tf-flip-bottom: #e5e2da; --tf-flip-text: #1d2027; --tf-flip-line: rgba(29,32,39,.16); background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--tf-amber) 13%, transparent), transparent 38%), linear-gradient(145deg, #fffef9, #f1efe8 62%, #e8e6df); }
.flip-card:before { content: "FLIP"; position: absolute; top: 18px; right: 32px; color: color-mix(in srgb, var(--tf-text) 7%, transparent); font-size: 5rem; font-weight: 700; letter-spacing: .12em; }
.flip-display { position: relative; z-index: 1; display: flex; align-items: center; gap: clamp(8px, 2vw, 22px); }
.flip-group { display: flex; flex-direction: column; align-items: center; }
.flip-digits { display: flex; gap: clamp(7px, 1vw, 14px); }
.flip-display > .flip-separator { align-self: center; margin-top: -12px; color: var(--tf-amber); font-family: ui-monospace, monospace; font-size: clamp(3rem, 8vw, 7rem); font-weight: 400; line-height: 1; }
.flip-unit { box-shadow: 0 18px 36px color-mix(in srgb, var(--tf-text) 18%, transparent); }
.flip-unit span { position: relative; min-width: clamp(48px, 7.1vw, 108px); aspect-ratio: .78; display: grid; place-items: center; padding: 16px 13px 20px; overflow: hidden; border: 1px solid var(--tf-flip-line); border-radius: 9px; color: var(--tf-flip-text); background: linear-gradient(var(--tf-flip-top) 0 49%, var(--tf-flip-bottom) 50%); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: clamp(3rem, 8.5vw, 7rem); font-variant-numeric: tabular-nums; line-height: .9; text-shadow: 0 0 26px color-mix(in srgb, var(--tf-flip-text) 16%, transparent); }
.flip-unit span:after { content: ""; position: absolute; inset: 49% 0 auto; border-top: 1px solid color-mix(in srgb, var(--tf-flip-text) 20%, transparent); }
.flip-group small { display: block; margin-top: 12px; color: var(--tf-faint); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.flip-card > p { margin: 36px 0 21px; color: var(--tf-muted); }
.feature-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
@media (max-width: 780px) { .feature-heading-actions { align-items: stretch; }.flip-heading-art { width: 100%; }.feature-heading-controls { justify-content: flex-start; }.flip-display { gap: 5px; }.flip-digits { gap: 5px; }.flip-unit span { min-width: clamp(37px, 12vw, 68px); padding: 14px 9px 18px; font-size: clamp(2.2rem, 11vw, 4.8rem); }.flip-display > .flip-separator { font-size: clamp(2.4rem, 9vw, 4.2rem); } }
@media (max-width: 480px) { .flip-card { min-height: 380px; padding: 28px 12px; }.flip-heading-art { padding: 12px 10px 11px; border-radius: 20px; }.flip-art-strip { gap: 4px; }.flip-art-cell { min-height: 54px; padding: 0 8px; border-radius: 11px; }.flip-art-cell span { font-size: 7px; letter-spacing: .06em; }.flip-art-separator { font-size: 1.35rem; }.flip-art-label { margin-top: 9px; font-size: 8px; }.flip-display { gap: 3px; }.flip-digits { gap: 3px; }.flip-unit span { min-width: clamp(31px, 11.7vw, 47px); padding: 11px 6px 14px; font-size: clamp(1.85rem, 11vw, 3.2rem); }.flip-display > .flip-separator { font-size: 2.2rem; }.flip-group small { font-size: 8px; letter-spacing: .08em; }.flip-card > p { margin: 28px 0 18px; font-size: 14px; } }
.feature-support { margin-top: 48px; }

/* Search-first FAQ cards: readable as content, not just a line of accordions. */
.seo-faqs { max-width: 900px; }
.seo-faqs > h2 { max-width: 720px; }
.seo-faqs details { margin: 12px 0; padding: 0 20px; border: 1px solid var(--tf-border); border-radius: 14px; background: color-mix(in srgb, var(--tf-surface) 88%, var(--tf-bg)); transition: border-color .2s ease, background .2s ease; }
.seo-faqs details:hover, .seo-faqs details[open] { border-color: color-mix(in srgb, var(--tf-amber) 58%, var(--tf-border)); background: var(--tf-surface); }
.seo-faqs details:last-child { border-bottom: 1px solid var(--tf-border); }
.seo-faqs summary { min-height: 68px; font-size: 16px; }
.faq-question { display: inline-flex; align-items: center; gap: 14px; text-align: left; }
.faq-number { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border: 1px solid color-mix(in srgb, var(--tf-amber) 40%, var(--tf-border)); border-radius: 50%; color: var(--tf-amber-soft); font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: .08em; }
.seo-faqs details p { padding: 0 44px 18px; margin-bottom: 0; line-height: 1.75; }

.holiday-controls { display: grid; grid-template-columns: minmax(0, 1fr) 142px; gap: 12px; }
.year-select { display: grid; align-content: center; gap: 5px; color: var(--tf-faint); font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.year-select select { width: 100%; min-height: 48px; padding: 0 12px; border: 1px solid var(--tf-border-strong); border-radius: 11px; color: var(--tf-text); background: var(--tf-bg-soft); font: inherit; letter-spacing: normal; text-transform: none; }
.year-select select:focus { outline: 2px solid color-mix(in srgb, var(--tf-amber) 50%, transparent); outline-offset: 2px; }
.list-heading b { color: var(--tf-text); font-weight: 700; }

@media (max-width: 560px) {
    .seo-faqs details { padding: 0 14px; }
    .seo-faqs summary { min-height: 62px; }
    .faq-question { gap: 10px; }
    .seo-faqs details p { padding: 0 40px 16px; }
    .holiday-controls { grid-template-columns: 1fr; }
}

/* Shared editorial art: every feature uses the same wide card language, with
   a real page icon instead of a decorative star. */
body[data-feature] .flip-heading-art:after { content: ""; }
body[data-feature] .flip-art-icon { position: absolute; z-index: 2; top: 40px; right: 42px; width: 30px; height: 30px; color: var(--tf-amber); stroke-width: 1.8; }
@media (max-width: 780px) {
    body[data-feature] .flip-art-icon { top: 28px; right: 28px; width: 26px; height: 26px; }
}

/* The page H1 already names each tool. Keep the workbench focused on the
   interaction instead of repeating the same title in a second header. */
body[data-tool] .workbench-top { justify-content: flex-end; min-height: 62px; padding-block: 10px; background: color-mix(in srgb, var(--tf-amber) 4%, var(--tf-surface-solid)); }
body[data-tool] .workbench-top > div:first-child { display: flex; }
body[data-tool] .workbench-body { min-height: 500px; padding: clamp(30px, 5vw, 68px); background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--tf-amber) 7%, transparent), transparent 34rem), var(--tf-surface-solid); }
body[data-tool] .tf-tool-ui { width: min(980px, 100%); }

/* Timer family: classroom and exam use the same centered console as Online
   Timer, and all surfaces read the active light/dark theme. */
body[data-tool="timer"] .tf-timer-layout,
body[data-tool="presentation-timer"] .tf-timer-layout,
body[data-tool="classroom-timer"] .tf-timer-layout,
body[data-tool="exam-timer"] .tf-timer-layout { grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: 24px; align-items: stretch; }
body[data-tool="timer"] .tf-timer-display-panel,
body[data-tool="presentation-timer"] .tf-timer-display-panel,
body[data-tool="classroom-timer"] .tf-timer-display-panel,
body[data-tool="exam-timer"] .tf-timer-display-panel { min-height: 400px; color: var(--tf-text); background: radial-gradient(circle at 50% 22%, color-mix(in srgb, var(--tf-amber) 15%, transparent), transparent 43%), linear-gradient(145deg, var(--tf-surface-alt), var(--tf-bg-soft) 74%); box-shadow: 0 20px 46px color-mix(in srgb, var(--tf-text) 14%, transparent); }
body[data-tool="timer"] .tf-timer-display-meta,
body[data-tool="presentation-timer"] .tf-timer-display-meta,
body[data-tool="classroom-timer"] .tf-timer-display-meta,
body[data-tool="exam-timer"] .tf-timer-display-meta { gap: 24px; }
body[data-tool="timer"] .tf-timer-display-meta span,
body[data-tool="presentation-timer"] .tf-timer-display-meta span,
body[data-tool="classroom-timer"] .tf-timer-display-meta span,
body[data-tool="exam-timer"] .tf-timer-display-meta span { display: block; }
body[data-tool="timer"] .tf-timer-display-panel .tf-ring,
body[data-tool="presentation-timer"] .tf-timer-display-panel .tf-ring,
body[data-tool="classroom-timer"] .tf-timer-display-panel .tf-ring,
body[data-tool="exam-timer"] .tf-timer-display-panel .tf-ring { width: min(310px, 76%); height: min(310px, 76%); }
body[data-tool="timer"] .tf-timer-controls-panel,
body[data-tool="presentation-timer"] .tf-timer-controls-panel,
body[data-tool="classroom-timer"] .tf-timer-controls-panel,
body[data-tool="exam-timer"] .tf-timer-controls-panel { background: linear-gradient(145deg, color-mix(in srgb, var(--tf-surface-solid) 96%, var(--tf-text)), var(--tf-bg-soft)); }

/* Calendar: navigation, grid and return action are intentionally separate
   visual bands so the action never touches the final date row. */
body[data-tool="calendar"] .tf-kicker { margin-bottom: 20px; text-align: center; }
body[data-tool="calendar"] .tf-controls:first-of-type { display: grid; grid-template-columns: minmax(120px, 160px) minmax(150px, 1fr) minmax(120px, 160px); align-items: center; max-width: 620px; margin: 0 auto 24px; }
body[data-tool="calendar"] .tf-controls:first-of-type strong { font-size: clamp(1.35rem, 3vw, 2rem); letter-spacing: -.03em; }
body[data-tool="calendar"] .tf-table { margin-top: 0; border-radius: 18px; background: color-mix(in srgb, var(--tf-surface-solid) 82%, var(--tf-bg-soft)); box-shadow: 0 16px 34px color-mix(in srgb, var(--tf-text) 6%, transparent); }
body[data-tool="calendar"] .tf-table + .tf-controls { margin-top: 34px; }
body[data-tool="calendar"] .tf-table + .tf-controls .tf-control { min-width: 170px; }
body[data-tool="calendar"] .tf-table + .tf-controls + .tf-helper { max-width: 630px; margin-top: 20px; }
body[data-tool="calendar"] .tf-table-row { min-height: 66px; padding: 14px 20px; }

/* Holiday countdown: form and result read as one centered planning card. */
body[data-tool="holiday-countdown"] .tf-tool-ui { max-width: 820px; padding: clamp(24px, 5vw, 48px); border: 1px solid var(--tf-border); border-radius: 24px; background: linear-gradient(145deg, color-mix(in srgb, var(--tf-amber) 6%, var(--tf-surface-solid)), var(--tf-surface-solid)); box-shadow: 0 22px 46px color-mix(in srgb, var(--tf-text) 8%, transparent); }
body[data-tool="holiday-countdown"] .tf-kicker { margin-bottom: 28px; }
body[data-tool="holiday-countdown"] .tf-setup-grid { max-width: 760px; }
body[data-tool="holiday-countdown"] .tf-display { margin-top: 32px; color: var(--tf-amber-soft); }
body[data-tool="holiday-countdown"] .tf-status { margin-top: 16px; }

/* Keep generic tools balanced too: controls and first signal stay centered on
   narrow cards, while fields never stretch beyond a readable measure. */
body[data-tool] .tf-tool-ui > .tf-kicker { text-align: center; }
body[data-tool] .tf-tool-ui > .tf-display { margin-inline: auto; text-align: center; }
body[data-tool] .tf-tool-ui > .tf-controls { justify-content: center; }
body[data-tool] .tf-tool-ui .tf-helper { max-width: 720px; }

@media (max-width: 780px) {
    body[data-tool] .workbench-top { min-height: 54px; }
    body[data-tool] .workbench-body { min-height: 0; padding: 22px 16px 38px; }
    body[data-tool="timer"] .tf-timer-layout,
    body[data-tool="presentation-timer"] .tf-timer-layout,
    body[data-tool="classroom-timer"] .tf-timer-layout,
    body[data-tool="exam-timer"] .tf-timer-layout { grid-template-columns: 1fr; }
    body[data-tool="timer"] .tf-timer-display-panel,
    body[data-tool="presentation-timer"] .tf-timer-display-panel,
    body[data-tool="classroom-timer"] .tf-timer-display-panel,
    body[data-tool="exam-timer"] .tf-timer-display-panel { min-height: 320px; }
    body[data-tool="calendar"] .tf-controls:first-of-type { grid-template-columns: 1fr 1.2fr 1fr; gap: 8px; }
    body[data-tool="calendar"] .tf-table { overflow-x: auto; }
    body[data-tool="calendar"] .tf-table-row { min-width: 640px; }
    body[data-tool="holiday-countdown"] .tf-tool-ui { padding: 24px 18px; }
}

@media (max-width: 480px) {
    body[data-tool="calendar"] .tf-controls:first-of-type .tf-control { min-width: 0; padding-inline: 8px; font-size: 12px; }
    body[data-tool="calendar"] .tf-table + .tf-controls { margin-top: 28px; }
    body[data-tool="holiday-countdown"] .tf-setup-grid { grid-template-columns: 1fr; }
}
.longform-content { max-width: 960px; padding-top: 74px; padding-bottom: 84px; }
.longform-content .section-heading { margin-bottom: 38px; }
.longform-content article, .feature-seo-content article { max-width: 860px; padding: 25px 0; border-top: 1px solid var(--tf-border); }
.longform-content h3, .feature-seo-content h3 { margin-bottom: 10px; font-size: clamp(1.45rem, 2.5vw, 2rem); }
.longform-content p, .feature-seo-content p { max-width: 820px; margin: 0; color: var(--tf-muted); font-size: 16px; line-height: 1.85; }
.feature-seo-content { margin-top: 58px; padding-top: 45px; border-top: 1px solid var(--tf-border); }
.feature-seo-content .section-heading { margin-bottom: 25px; }

.depth-content { margin-top: 58px; padding-top: 45px; border-top: 1px solid var(--tf-border); }
.depth-content .section-heading { margin-bottom: 24px; }
.depth-content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.depth-content-grid article { min-height: 100%; padding: 24px; border: 1px solid var(--tf-border); border-radius: 18px; background: color-mix(in srgb, var(--tf-surface) 88%, var(--tf-bg)); }
.depth-content-grid article:nth-child(3n) { background: color-mix(in srgb, var(--tf-amber-soft) 58%, var(--tf-surface)); }
.depth-content-grid h2 { margin: 14px 0 10px; font-size: clamp(1.25rem, 2vw, 1.7rem); }
.depth-content-grid p { margin: 0; color: var(--tf-muted); font-size: 15px; line-height: 1.8; }
.depth-content-grid .support-index { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 1px solid color-mix(in srgb, var(--tf-amber) 55%, var(--tf-border)); border-radius: 50%; color: var(--tf-amber); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
@media (max-width: 780px) { .depth-content-grid { grid-template-columns: minmax(0, 1fr); }.depth-content-grid article, .depth-content-grid h2, .depth-content-grid p { min-width: 0; overflow-wrap: anywhere; } }
.seo-content { max-width: 920px; }
.seo-copy { border-left: 2px solid color-mix(in srgb, var(--tf-amber) 52%, var(--tf-border)); padding-left: 24px; }
.seo-faqs { border-left: 0; padding-left: 0; }
.seo-faqs details { border-color: var(--tf-border); }
.tf-toast-region { position: fixed; z-index: 100; right: 22px; bottom: 22px; display: grid; gap: 10px; width: min(390px, calc(100vw - 32px)); pointer-events: none; }
.tf-toast { display: flex; align-items: center; gap: 11px; padding: 14px 15px; border: 1px solid var(--tf-border-strong); border-radius: 14px; background: var(--tf-surface-solid); box-shadow: var(--tf-shadow); color: var(--tf-text); pointer-events: auto; animation: tf-toast-in .25s var(--tf-ease); }
.tf-toast.is-leaving { opacity: 0; transform: translateY(8px); transition: opacity .18s ease, transform .18s ease; }
.tf-toast-mark { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: var(--tf-green); }
.tf-toast-error .tf-toast-mark { background: var(--tf-danger); }
.tf-toast-close { min-width: 30px; min-height: 30px; margin-left: auto; border: 0; background: transparent; color: var(--tf-muted); cursor: pointer; font-size: 1.2rem; }
.tf-dialog { position: fixed; z-index: 110; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(4,6,10,.62); backdrop-filter: blur(8px); }
.tf-dialog[hidden] { display: none; }
.tf-dialog-card { width: min(480px, 100%); padding: clamp(24px, 5vw, 38px); border: 1px solid var(--tf-border-strong); border-radius: 20px; background: var(--tf-surface-solid); box-shadow: var(--tf-shadow); }
.tf-dialog-card h2 { margin: 8px 0; font-size: clamp(1.6rem, 4vw, 2.3rem); }
.tf-dialog-card p { color: var(--tf-muted); }
.tf-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
@keyframes tf-toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 780px) { .tf-world-grid { grid-template-columns: 1fr; }.hero-clock { gap: 10px; letter-spacing: -.07em; }.clock-meridiem { font-size: .28em; }.template-grid { grid-template-columns: 1fr; }.feature-page:before, .page-intro:before { width: 190px; height: 190px; top: 12px; right: -70px; }.tf-dialog-actions { flex-direction: column-reverse; }.tf-dialog-actions .button { width: 100%; } }

@media (max-width: 780px) {
  .feature-page,
  .page-intro { overflow-x: hidden; }
}
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; } }

/* TimeFK brand mark, FAQ rail and country holiday detail pages. */
.brand-mark { width: 42px; height: 42px; border-radius: 50%; background: transparent; box-shadow: none; }
.brand-mark:before { display: none; }
.brand-mark .icon { width: 26px; height: 26px; }
.brand-name { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-weight: 650; letter-spacing: .015em; }
.holiday-item { text-align: left; transition: transform .2s var(--tf-ease), border-color .2s ease, background .2s ease; }
.holiday-item:hover { transform: translateY(-2px); border-color: var(--tf-amber); background: var(--tf-surface); }
.holiday-country-page { padding-top: 34px; padding-bottom: 82px; }
.holiday-country-page .breadcrumbs { margin-bottom: 32px; }
.holiday-country-heading { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: center; }
.holiday-country-heading h1 { max-width: 760px; margin-bottom: 14px; }
.holiday-country-art { position: relative; min-height: 185px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--tf-border); border-radius: 24px; background: radial-gradient(circle, color-mix(in srgb, var(--tf-amber) 16%, transparent), transparent 60%), var(--tf-surface); color: var(--tf-amber); }
.holiday-country-art:before, .holiday-country-art:after { content: ""; position: absolute; width: 180px; height: 180px; border: 1px solid color-mix(in srgb, var(--tf-amber) 22%, transparent); border-radius: 50%; }
.holiday-country-art:after { width: 118px; height: 118px; }
.holiday-country-art .icon { position: relative; z-index: 1; width: 42px; height: 42px; }
.holiday-country-art span { position: absolute; right: 18px; bottom: 15px; color: var(--tf-faint); font-family: ui-monospace, monospace; font-size: 11px; letter-spacing: .15em; }
.holiday-country-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 34px; border: 1px solid var(--tf-border); border-radius: 16px; overflow: hidden; background: var(--tf-border); }
.holiday-country-meta span { display: grid; gap: 6px; padding: 18px 20px; background: var(--tf-surface); color: var(--tf-muted); font-size: 13px; }
.holiday-country-meta b { color: var(--tf-faint); font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.holiday-country-actions { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 32px 0 28px; }
.holiday-country-actions strong { min-width: 100px; color: var(--tf-text); font-size: 24px; text-align: center; }
.holiday-country-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 26px; align-items: start; }
.holiday-country-list { display: grid; gap: 10px; }
.holiday-country-list > .list-heading { margin-bottom: 2px; }
.holiday-detail-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 20px; border: 1px solid var(--tf-border); border-radius: 15px; background: var(--tf-surface); }
.holiday-detail-row > div { display: flex; align-items: center; gap: 14px; min-width: 0; }
.holiday-detail-row h2 { margin: 0 0 4px; font-size: 16px; }
.holiday-detail-row p { margin: 0; color: var(--tf-faint); font-size: 12px; }
.holiday-detail-row > strong { display: grid; gap: 3px; color: var(--tf-amber-soft); font-family: ui-monospace, monospace; font-size: 13px; text-align: right; white-space: nowrap; }
.holiday-detail-row > strong small { color: var(--tf-faint); font-family: inherit; font-size: 10px; font-weight: 400; }
.holiday-detail-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border: 1px solid color-mix(in srgb, var(--tf-amber) 36%, var(--tf-border)); border-radius: 12px; color: var(--tf-amber); background: color-mix(in srgb, var(--tf-amber) 9%, transparent); }
.holiday-country-aside { position: sticky; top: 100px; padding: 24px; border: 1px solid var(--tf-border); border-radius: 18px; background: linear-gradient(145deg, color-mix(in srgb, var(--tf-amber) 9%, var(--tf-surface)), var(--tf-surface)); }
.holiday-country-aside h2 { margin: 14px 0 10px; font-size: 24px; }
.holiday-country-aside p { color: var(--tf-muted); font-size: 13px; line-height: 1.7; }
.holiday-country-aside .button { width: 100%; margin-top: 12px; }
.holiday-country-aside .text-link { margin-top: 17px; }
.faq-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 22px; }
.faq-heading h2 { margin-bottom: 0; }
.faq-emblem { position: relative; display: grid; place-items: center; width: 112px; height: 112px; flex: 0 0 auto; border: 1px solid color-mix(in srgb, var(--tf-amber) 42%, var(--tf-border)); border-radius: 50%; color: var(--tf-amber); background: radial-gradient(circle, color-mix(in srgb, var(--tf-amber) 12%, transparent), transparent 68%); }
.faq-emblem:before, .faq-emblem:after { content: ""; position: absolute; inset: 12px; border: 1px solid color-mix(in srgb, var(--tf-amber) 25%, transparent); border-radius: 50%; }
.faq-emblem:after { inset: 25px; }
.faq-emblem .icon { position: relative; z-index: 1; width: 30px; height: 30px; }
.faq-emblem span { position: absolute; bottom: 12px; color: var(--tf-faint); font-family: ui-monospace, monospace; font-size: 8px; letter-spacing: .12em; }
.faq-answer { padding: 0 44px 20px; }
.faq-answer > span { display: block; margin-bottom: 5px; color: var(--tf-amber-soft); font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.seo-faqs details[open] { box-shadow: 0 12px 30px color-mix(in srgb, var(--tf-amber) 8%, transparent); }
.seo-faqs details[open] .faq-number { color: var(--tf-bg); background: var(--tf-amber); }
.seo-faqs details[open] .faq-answer p { animation: faq-reveal .22s var(--tf-ease); }
@keyframes faq-reveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* More deliberate tool rhythm: the result zone is allowed to breathe. */
[data-tool="meeting-time-converter"] .workbench-body { min-height: 620px; align-items: start; padding-top: clamp(38px, 6vw, 76px); padding-bottom: clamp(54px, 7vw, 92px); }
[data-tool="meeting-time-converter"] .tf-tool-ui { width: min(1040px, 100%); }
[data-tool="meeting-time-converter"] .tf-controls { margin-top: 36px; margin-bottom: 28px; }
[data-tool="meeting-time-converter"] .tf-event-list { width: 100%; gap: 14px; }
[data-tool="meeting-time-converter"] .tf-event-row { min-height: 68px; padding: 18px 22px; border-radius: 16px; background: color-mix(in srgb, var(--tf-surface-solid) 82%, transparent); }
[data-tool="meeting-time-converter"] .tf-note { max-width: 100%; margin-top: 28px; }
[data-tool="stopwatch"] .workbench-body { min-height: 620px; padding-top: clamp(34px, 5vw, 66px); padding-bottom: clamp(50px, 7vw, 88px); }
[data-tool="stopwatch"] .tf-stopwatch-modes { margin-bottom: 38px; gap: 6px; padding: 5px; }
[data-tool="stopwatch"] .tf-stopwatch-modes button { min-height: 44px; padding-inline: 20px; }
[data-tool="stopwatch"] .tf-team-grid, [data-tool="stopwatch"] .tf-scoreboard { gap: 22px; max-width: 880px; }
[data-tool="stopwatch"] .tf-team-card, [data-tool="stopwatch"] .tf-score-card { min-height: 250px; gap: 17px; padding: 30px 28px; border-radius: 22px; box-shadow: 0 14px 34px color-mix(in srgb, var(--tf-text) 6%, transparent); }
[data-tool="stopwatch"] .tf-team-card .tf-control, [data-tool="stopwatch"] .tf-score-card .tf-control { min-height: 58px; border-radius: 16px; font-size: 15px; }
[data-tool="stopwatch"] .tf-team-card.tf-team-a .tf-control { color: #fff7eb; background: linear-gradient(135deg, #bd782e, #8a4b1c); }
[data-tool="stopwatch"] .tf-team-card.tf-team-b .tf-control { color: #fbf8ff; background: linear-gradient(135deg, #8870a1, #59486b); }
[data-tool="stopwatch"] .tf-mode-panel > .tf-controls { margin-top: 38px; gap: 20px; }
[data-tool="stopwatch"] .tf-mode-result { margin-top: 28px; padding: 12px 16px; border: 1px solid color-mix(in srgb, var(--tf-amber) 28%, var(--tf-border)); border-radius: 12px; background: color-mix(in srgb, var(--tf-amber) 7%, transparent); }
@media (max-width: 480px) { h1, .page-intro h1, .feature-heading h1, .page-intro h1, .guide-header h1 { font-size: clamp(2.35rem, 12vw, 3.35rem) !important; } .holiday-country-actions { gap: 9px; } .holiday-country-actions .button { padding-inline: 11px; font-size: 12px; } .holiday-detail-row { align-items: start; flex-direction: column; gap: 12px; } .holiday-detail-row > strong { text-align: left; } }
@media (max-width: 780px) { .holiday-country-heading, .holiday-country-layout { grid-template-columns: 1fr; }.holiday-country-art { min-height: 130px; }.holiday-country-aside { position: static; }.holiday-country-meta { grid-template-columns: 1fr; }.faq-heading { align-items: start; }.faq-emblem { width: 82px; height: 82px; }.faq-emblem span { display: none; }.faq-answer { padding-inline: 40px 8px; }.[data-tool="meeting-time-converter"] .workbench-body, [data-tool="stopwatch"] .workbench-body { min-height: 0; padding-top: 34px; padding-bottom: 58px; }[data-tool="stopwatch"] .tf-team-grid, [data-tool="stopwatch"] .tf-scoreboard { gap: 16px; } }
.workbench-body { min-height: 380px; padding: clamp(22px, 4vw, 48px); background: radial-gradient(circle at 50% 18%, color-mix(in srgb, var(--tf-amber) 5%, transparent), transparent 42%), var(--tf-surface); }
.tf-tool-ui { width: min(980px, 100%); }
.tf-tool-ui .tf-display, .tf-tool-ui .tf-metric strong, .tf-tool-ui .tf-table-row span, .tf-tool-ui .tf-lap-row, .tf-tool-ui .tf-world-card b, .tf-tool-ui .tf-countdown, .tf-tool-ui .tf-timestamp { font-family: inherit; font-variant-numeric: tabular-nums; }
.template-card strong, .city-card strong, .quick-icon, .clock-ticks span, .year-visual-top, .year-visual-bottom, .boundary-ring strong, .context-core strong, .context-node, .tool-signal-grid strong, .holiday-date, .timezone-item small, .timezone-item b, .mono-label, .support-index, .rail-link b, .rail-text-icon, .signal-row b { font-family: inherit; }
.tf-field input, .tf-field select, .tf-field textarea, .tf-input, .tf-control, .quiet-button, .button, .filter-tabs button, .search-field input, select, input, textarea { font-family: inherit; }
.tf-tool-ui .tf-setup-grid, .tf-tool-ui .tf-field-grid { max-width: 860px; }
.tf-tool-ui .tf-controls { margin-top: 22px; }
@media (max-width: 780px) { .workbench-body { min-height: 340px; } }

/* Compact editorial intros and a useful visual anchor for every tool page. */
.page-intro { padding-top: 24px; padding-bottom: 16px; }
.page-intro .breadcrumbs { margin-bottom: 17px; }
.intro-grid { gap: 30px; align-items: center; }
.page-intro h1 { margin-bottom: 11px; }
.intent-note { position: relative; min-height: 142px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: 18px 20px; border-radius: 0 16px 16px 0; }
.intent-note:before { content: ""; position: absolute; right: 20px; bottom: 16px; width: 82px; height: 82px; border: 1px solid color-mix(in srgb, var(--tf-amber) 22%, transparent); border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--tf-amber) 10%, transparent), transparent 68%); pointer-events: none; }
.intent-note-heading { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.intent-note-icon { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid color-mix(in srgb, var(--tf-amber) 48%, var(--tf-border)); border-radius: 50%; color: var(--tf-amber); background: color-mix(in srgb, var(--tf-surface-solid) 82%, transparent); box-shadow: 0 8px 20px color-mix(in srgb, var(--tf-amber) 9%, transparent); }
.intent-note-icon .icon { width: 25px; height: 25px; }
.intent-note p, .intent-note-signal { position: relative; z-index: 1; }
.intent-note p { max-width: 370px; margin: 9px 0 0; }
.intent-note-signal { display: flex; align-items: center; gap: 7px; margin-top: 16px; color: var(--tf-faint); font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: .12em; }
.intent-note-signal i { width: 5px; height: 5px; border-radius: 50%; background: var(--tf-green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tf-green) 10%, transparent); }
.intent-note-signal i:nth-child(2) { margin-left: 3px; background: var(--tf-amber); }
.intent-note-signal i:nth-child(3) { background: var(--tf-blue); }
.feature-page { padding-top: 34px; padding-bottom: 76px; }
.feature-page .breadcrumbs { margin-bottom: 25px; }
.feature-heading { gap: 30px; margin-bottom: 27px; }
.template-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.template-card { display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; justify-items: stretch; gap: 7px; min-width: 0; min-height: 84px; padding: 10px; text-align: center; }
.template-card strong { display: block; width: 100%; min-width: 0; box-sizing: border-box; padding: 9px 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.template-card span { display: block; min-width: 0; overflow-wrap: anywhere; color: var(--tf-muted); font-size: 11px; line-height: 1.2; }
.template-card[data-clock-template="neon"] strong { color: #53e6ff; text-shadow: 0 0 12px rgba(83,230,255,.45); }
.template-card[data-clock-template="forest"] strong { color: #7ee29a; text-shadow: 0 0 12px rgba(126,226,154,.34); }
.template-card[data-clock-template="sunset"] strong { color: #ff8a65; text-shadow: 0 0 12px rgba(255,138,101,.3); }
.template-card[data-clock-template="mono"] strong { color: #fff; background: #1e2229; }
.template-card[data-clock-template="ice"] strong { color: #b7dcff; background: #0b1724; text-shadow: 0 0 12px rgba(183,220,255,.35); }
.template-card[data-clock-template="lavender"] strong { color: #c9a8ff; text-shadow: 0 0 12px rgba(201,168,255,.35); }
.template-neon .clock-digits, .template-neon .clock-meridiem { color: #53e6ff; text-shadow: 0 0 24px rgba(83,230,255,.42); }
.template-forest .clock-digits, .template-forest .clock-meridiem { color: #7ee29a; text-shadow: 0 0 24px rgba(126,226,154,.34); }
.template-sunset .clock-digits, .template-sunset .clock-meridiem { color: #ff8a65; text-shadow: 0 0 24px rgba(255,138,101,.3); }
.template-mono .clock-digits, .template-mono .clock-meridiem { color: #fff; text-shadow: none; }
.template-ice .clock-digits, .template-ice .clock-meridiem { color: #b7dcff; text-shadow: 0 0 24px rgba(183,220,255,.35); }
.template-lavender .clock-digits, .template-lavender .clock-meridiem { color: #c9a8ff; text-shadow: 0 0 24px rgba(201,168,255,.35); }
html[data-theme="light"] .template-mono .clock-digits, html[data-theme="light"] .template-mono .clock-meridiem { color: #22252b; }
@media (max-width: 780px) {
  .page-intro { padding-top: 24px; padding-bottom: 12px; }
  .page-intro .breadcrumbs, .feature-page .breadcrumbs { margin-bottom: 18px; }
  .intro-grid { gap: 25px; }
  .intent-note { min-height: 132px; }
  .feature-page { padding-top: 30px; padding-bottom: 58px; }
}
@media (max-width: 420px) {
  .template-grid { grid-template-columns: 1fr; }
  .template-card { min-height: 78px; }
}
@media (max-width: 1100px) {
  .tf-world-selects { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-tools { grid-column: span 2; }
}
@media (max-width: 780px) {
  .clock-workspace { height: auto; }
  .clock-settings { max-height: 460px; }
  .tf-world-selects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .longform-content { padding-top: 54px; padding-bottom: 58px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-tools { grid-column: span 2; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-tools { grid-column: auto; }
  .footer-tool-list { grid-template-columns: 1fr 1fr; }
}

/* Team countdown: a compact match-control surface with a clear visual hierarchy. */
[data-tool="stopwatch"] .tf-score-panel { width: min(960px, 100%); margin-inline: auto; }
[data-tool="stopwatch"] .tf-score-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; margin-bottom: 26px; padding-bottom: 23px; border-bottom: 1px solid var(--tf-border); }
[data-tool="stopwatch"] .tf-score-heading .tf-kicker { margin-bottom: 7px; }
[data-tool="stopwatch"] .tf-score-heading h3 { margin: 0; color: var(--tf-text); font-size: clamp(1.7rem, 3vw, 2.35rem); letter-spacing: -.03em; }
[data-tool="stopwatch"] .tf-score-heading p { margin: 8px 0 0; color: var(--tf-muted); font-size: 14px; }
[data-tool="stopwatch"] .tf-score-badge { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; margin-top: 9px; padding: 8px 11px; border: 1px solid color-mix(in srgb, var(--tf-green) 28%, var(--tf-border)); border-radius: 999px; color: var(--tf-green); background: color-mix(in srgb, var(--tf-green) 7%, transparent); font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
[data-tool="stopwatch"] .tf-score-badge i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 12%, transparent); }
[data-tool="stopwatch"] .tf-score-setup-row { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 22px; padding: 18px 20px; border: 1px solid var(--tf-border); border-radius: 16px; background: color-mix(in srgb, var(--tf-surface-solid) 70%, var(--tf-bg-soft)); }
[data-tool="stopwatch"] .tf-score-setup-copy { display: grid; gap: 4px; min-width: 165px; }
[data-tool="stopwatch"] .tf-score-setup-copy span { color: var(--tf-text); font-size: 14px; font-weight: 700; }
[data-tool="stopwatch"] .tf-score-setup-copy small { color: var(--tf-faint); font-size: 12px; }
[data-tool="stopwatch"] .tf-score-setup { display: grid; grid-template-columns: repeat(2, minmax(120px, 180px)); gap: 12px; width: auto; margin: 0; }
[data-tool="stopwatch"] .tf-score-setup .tf-field { gap: 6px; }
[data-tool="stopwatch"] .tf-score-setup .tf-field > span { color: var(--tf-faint); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
[data-tool="stopwatch"] .tf-score-setup input { min-height: 44px; border-radius: 10px; }
[data-tool="stopwatch"] .tf-score-clock { position: relative; display: grid; justify-items: center; margin-bottom: 24px; padding: 24px 28px 20px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--tf-amber) 28%, var(--tf-border)); border-radius: 20px; color: #f5f0e8; background: radial-gradient(circle at 50% 24%, rgba(242,169,59,.2), transparent 38%), linear-gradient(145deg, #1c2028, #0d1016 72%); box-shadow: 0 18px 42px rgba(20,24,31,.18); }
[data-tool="stopwatch"] .tf-score-clock:before { content: "ROUND"; position: absolute; top: 18px; right: 22px; color: rgba(255,255,255,.35); font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: .18em; }
[data-tool="stopwatch"] .tf-score-clock-top, [data-tool="stopwatch"] .tf-score-clock-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; color: rgba(255,255,255,.58); font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
[data-tool="stopwatch"] .tf-score-clock-top span:last-child { color: var(--tf-amber-soft); }
[data-tool="stopwatch"] .tf-score-clock .tf-display { margin: 17px 0 15px; color: #f8f4ed; font-size: clamp(4rem, 10vw, 7.8rem); text-shadow: 0 0 28px rgba(242,169,59,.18); }
[data-tool="stopwatch"] .tf-score-clock-footer { color: rgba(255,255,255,.38); font-size: 9px; letter-spacing: .06em; text-transform: none; }
[data-tool="stopwatch"] .tf-scoreboard { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; width: 100%; max-width: none; margin: 0; }
[data-tool="stopwatch"] .tf-score-card { min-height: 224px; align-content: space-between; gap: 18px; justify-items: stretch; padding: 22px 22px 20px; border: 1px solid var(--tf-border-strong); border-top: 0; border-radius: 17px; background: linear-gradient(145deg, color-mix(in srgb, var(--tf-surface-solid) 94%, var(--tf-text)), var(--tf-bg-soft)); box-shadow: 0 16px 32px color-mix(in srgb, var(--tf-text) 7%, transparent); }
[data-tool="stopwatch"] .tf-score-card:before { content: ""; display: block; height: 4px; margin: -22px -22px 0; border-radius: 17px 17px 0 0; background: var(--tf-amber); }
[data-tool="stopwatch"] .tf-score-card.tf-team-b:before { background: var(--tf-violet); }
[data-tool="stopwatch"] .tf-score-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
[data-tool="stopwatch"] .tf-team-identity { display: inline-flex; align-items: center; gap: 9px; color: var(--tf-text); font-size: 15px; font-weight: 700; }
[data-tool="stopwatch"] .tf-team-identity i { width: 9px; height: 9px; border-radius: 50%; background: var(--tf-amber); box-shadow: 0 0 0 5px color-mix(in srgb, var(--tf-amber) 13%, transparent); }
[data-tool="stopwatch"] .tf-team-b .tf-team-identity i { background: var(--tf-violet); box-shadow: 0 0 0 5px color-mix(in srgb, var(--tf-violet) 13%, transparent); }
[data-tool="stopwatch"] .tf-score-card-top small { color: var(--tf-faint); font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
[data-tool="stopwatch"] .tf-score-number { display: flex; align-items: baseline; gap: 10px; }
[data-tool="stopwatch"] .tf-score-number strong { color: var(--tf-text); font-family: ui-monospace, monospace; font-size: clamp(3rem, 6vw, 5rem); font-variant-numeric: tabular-nums; font-weight: 500; line-height: .9; }
[data-tool="stopwatch"] .tf-score-number strong.tf-digital { gap: 3px; }
[data-tool="stopwatch"] .tf-score-number span { color: var(--tf-faint); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
[data-tool="stopwatch"] .tf-score-card .tf-control { display: flex; align-items: center; justify-content: space-between; min-height: 50px; padding-inline: 16px; border-radius: 12px; font-size: 14px; }
[data-tool="stopwatch"] .tf-score-card .tf-control span { font-size: 22px; font-weight: 500; line-height: 1; }
[data-tool="stopwatch"] .tf-score-card .tf-control small { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
[data-tool="stopwatch"] .tf-score-card.tf-team-a .tf-control { color: #fff7eb; border-color: #9b5c20; background: linear-gradient(135deg, #c47b31, #8f4e1d); }
[data-tool="stopwatch"] .tf-score-card.tf-team-b .tf-control { color: #fbf8ff; border-color: #6e5b80; background: linear-gradient(135deg, #8d769b, #63526f); }
[data-tool="stopwatch"] .tf-score-actions { display: grid; justify-items: center; gap: 13px; }
[data-tool="stopwatch"] .tf-score-actions .tf-controls { margin-top: 22px; gap: 12px; }
[data-tool="stopwatch"] .tf-score-actions .tf-control { min-width: 154px; }
[data-tool="stopwatch"] .tf-score-actions .tf-mode-result { width: 100%; max-width: none; margin: 0; padding: 12px 16px; border: 1px solid var(--tf-border); border-radius: 12px; color: var(--tf-muted); background: color-mix(in srgb, var(--tf-surface-solid) 72%, transparent); text-align: center; }
@media (max-width: 600px) {
  [data-tool="stopwatch"] .tf-score-heading { display: block; }
  [data-tool="stopwatch"] .tf-score-badge { margin-top: 15px; }
  [data-tool="stopwatch"] .tf-score-setup-row { display: block; }
  [data-tool="stopwatch"] .tf-score-setup-copy { margin-bottom: 14px; }
  [data-tool="stopwatch"] .tf-score-setup { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  [data-tool="stopwatch"] .tf-score-clock { padding-inline: 16px; }
  [data-tool="stopwatch"] .tf-score-clock-top, [data-tool="stopwatch"] .tf-score-clock-footer { font-size: 8px; }
}
@media (max-width: 480px) {
  [data-tool="stopwatch"] .tf-score-card { min-height: 204px; }
  [data-tool="stopwatch"] .tf-score-actions .tf-controls { width: 100%; }
  [data-tool="stopwatch"] .tf-score-actions .tf-control { min-width: 0; flex: 1 1 0; padding-inline: 12px; }
}

/* Stopwatch modes: solo laps, two-team elapsed race, and timed scoring. */
.tf-stopwatch-modes { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 0 auto 30px; padding: 4px; border: 1px solid var(--tf-border); border-radius: 999px; background: var(--tf-bg-soft); }
.tf-stopwatch-modes button { min-height: 38px; padding: 0 15px; border: 0; border-radius: 999px; color: var(--tf-muted); background: transparent; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; }
.tf-stopwatch-modes button:hover, .tf-stopwatch-modes button.is-active { color: var(--tf-text); background: var(--tf-surface-solid); box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.tf-mode-panel[hidden] { display: none; }
.tf-mode-lede { max-width: 610px; margin: 12px auto 25px; color: var(--tf-muted); font-size: 14px; line-height: 1.65; }
.tf-team-grid, .tf-scoreboard { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 760px; margin: 0 auto; }
.tf-team-card, .tf-score-card { display: grid; gap: 10px; justify-items: center; padding: 22px; border: 1px solid var(--tf-border); border-radius: 18px; background: linear-gradient(145deg, var(--tf-bg-soft), var(--tf-surface)); }
.tf-team-card.tf-team-a, .tf-score-card.tf-team-a { border-top: 3px solid var(--tf-amber); }
.tf-team-card.tf-team-b, .tf-score-card.tf-team-b { border-top: 3px solid var(--tf-violet); }
.tf-team-label, .tf-score-card span { color: var(--tf-muted); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.tf-team-card strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: clamp(2rem, 5vw, 3.6rem); font-variant-numeric: tabular-nums; }
.tf-score-card strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: clamp(2.4rem, 6vw, 4.6rem); font-variant-numeric: tabular-nums; }
.tf-team-card .tf-control, .tf-score-card .tf-control { width: 100%; min-width: 0; }
.tf-mode-result { min-height: 24px; max-width: 680px; margin: 22px auto 0; color: var(--tf-amber-soft); font-size: 14px; line-height: 1.5; }
.tf-score-setup { margin-bottom: 12px; }
.tf-scoreboard { margin-top: 26px; }
.tf-controls { gap: 16px; margin-top: 32px; }
.tf-control { min-width: 132px; min-height: 52px; padding: 0 20px; border-radius: 14px; border-width: 1.5px; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease; }
.tf-control:hover { transform: translateY(-2px); box-shadow: 0 9px 20px rgba(20,28,44,.12); }
.tf-control:active { transform: translateY(0); box-shadow: 0 3px 8px rgba(20,28,44,.1); }
.tf-control.primary { color: #fff; border-color: #9b5c20; background: linear-gradient(135deg, #c47b31, #8f4e1d); }
.tf-control.danger { color: #b83f4c; border-color: color-mix(in srgb, #d65b66 58%, var(--tf-border)); background: color-mix(in srgb, #d65b66 8%, transparent); }
.tf-team-card.tf-team-a .tf-control, .tf-score-card.tf-team-a .tf-control { border-color: #9b5c20; background: linear-gradient(135deg, #c47b31, #8f4e1d); }
.tf-team-card.tf-team-b .tf-control, .tf-score-card.tf-team-b .tf-control { border-color: #6e5b80; background: linear-gradient(135deg, #8d769b, #63526f); }
.tf-team-card.tf-team-a strong, .tf-score-card.tf-team-a strong { color: var(--tf-amber-soft); }
.tf-team-card.tf-team-b strong, .tf-score-card.tf-team-b strong { color: var(--tf-violet); }
.tf-mode-panel > .tf-controls { margin-top: 28px; }
.tf-mode-panel > .tf-controls .tf-control { min-width: 148px; }
.tf-mode-panel > .tf-controls .tf-control[data-dual-action="pause"], .tf-mode-panel > .tf-controls .tf-control[data-score-action="reset"] { color: var(--tf-text); border-color: var(--tf-border-strong); background: var(--tf-surface-solid); }
.tf-mode-panel > .tf-controls .tf-control[data-dual-action="reset"] { color: #b83f4c; border-color: color-mix(in srgb, #d65b66 58%, var(--tf-border)); background: color-mix(in srgb, #d65b66 8%, transparent); }
[data-month="prev"], [data-month="next"] { min-width: 142px; color: var(--tf-text); border-color: var(--tf-border-strong); background: var(--tf-surface-solid); }
[data-month="prev"]:hover, [data-month="next"]:hover { border-color: var(--tf-amber); background: color-mix(in srgb, var(--tf-amber) 10%, var(--tf-surface-solid)); }
.tf-tool-ui > .tf-controls + .tf-helper { margin-top: 22px; }
.workbench-actions { gap: 14px; }
.tf-setup-grid, .tf-field-grid { gap: 18px; }
.tf-city-selects, .tf-chip-row, .tf-list { gap: 14px; }
.tf-world-selects { column-gap: 14px; row-gap: 18px; }
.tf-metric-grid { gap: 16px; margin-top: 34px; }
.tf-event-list { gap: 14px; }
.tf-event-row { gap: 18px; padding: 16px 18px; }
.tf-table-row { gap: 14px; padding: 15px 18px; }
.tf-lap-row { gap: 12px; padding: 12px 15px; }
.tf-laps { margin-top: 28px; }
.tf-tool-ui .tf-note { margin-top: 24px; }
.tf-tool-ui > .tf-controls { margin-top: 34px; }

/* Digital-clock inspired seven-segment numerals with generous group spacing. */
.tf-digital { display: inline-flex; align-items: center; justify-content: center; gap: clamp(7px, .95vw, 16px); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-variant-numeric: normal; letter-spacing: 0; line-height: 1; white-space: nowrap; }
.tf-display.tf-digital, .feature-clock.tf-digital { gap: clamp(10px, 1.25vw, 22px); }
.tf-digit { position: relative; display: inline-block; width: .62em; height: 1.1em; flex: 0 0 .62em; }
.tf-digit i { position: absolute; display: block; border-radius: .04em; background: currentColor; opacity: .08; transition: opacity .15s ease; }
.tf-digit i.is-on { opacity: 1; }
.tf-digit .seg-a, .tf-digit .seg-g, .tf-digit .seg-d { left: .06em; width: .50em; height: .105em; clip-path: polygon(10% 0, 90% 0, 100% 50%, 90% 100%, 10% 100%, 0 50%); }
.tf-digit .seg-a { top: 0; }
.tf-digit .seg-g { top: .495em; }
.tf-digit .seg-d { bottom: 0; }
.tf-digit .seg-f, .tf-digit .seg-b, .tf-digit .seg-e, .tf-digit .seg-c { width: .105em; height: .45em; clip-path: polygon(50% 0, 100% 10%, 100% 90%, 50% 100%, 0 90%, 0 10%); }
.tf-digit .seg-f { top: .055em; left: 0; }
.tf-digit .seg-b { top: .055em; right: 0; }
.tf-digit .seg-e { bottom: .055em; left: 0; }
.tf-digit .seg-c { right: 0; bottom: .055em; }
.tf-digit-separator { position: relative; display: inline-flex; width: .24em; height: 1.1em; flex: 0 0 .24em; flex-direction: column; align-items: center; justify-content: center; gap: .22em; margin-inline: .04em; }
.tf-digit-separator i { width: .13em; height: .13em; border-radius: 50%; background: currentColor; }
.tf-digit-decimal { align-self: flex-end; width: .13em; height: .13em; flex: 0 0 .13em; margin: 0 .08em .04em .02em; border-radius: 50%; background: currentColor; }
.tf-digit-space { width: .2em; flex: 0 0 .2em; }
.tf-digit-text { align-self: center; font-family: inherit; font-size: .34em; font-weight: 700; letter-spacing: .04em; }
.tf-world-card > .tf-digital, .timezone-item > .tf-digital { justify-self: end; min-width: 8.2em; }
.tf-team-card > .tf-digital, .tf-score-card > .tf-digital { min-height: 1.1em; }
.tf-digital[aria-label] { speak: normal; }
@media (max-width: 780px) {
  .tf-digital { gap: 4px; }
  .tf-display.tf-digital, .feature-clock.tf-digital { gap: 6px; }
  .tf-digit-separator { margin-inline: 2px; }
}
@media (max-width: 480px) {
  .tf-stopwatch-modes { display: grid; grid-template-columns: 1fr; width: 100%; border-radius: 15px; }
  .tf-stopwatch-modes button { width: 100%; }
  .tf-team-grid, .tf-scoreboard { grid-template-columns: 1fr; }
  .tf-team-card, .tf-score-card { padding: 18px; }
  .tf-controls { gap: 12px; }
  .tf-controls > .tf-control { min-width: 0; flex: 1 1 140px; }
}

/* Final visual pass: the editorial font is shared by every page while live
   numerals keep the digital-clock-inspired seven-segment treatment. */
body { font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif; }
h1, .dashboard-topline h1, .feature-heading h1, .page-intro h1, .guide-header h1 { font-size: clamp(2rem, 3.2vw, 3.5rem) !important; line-height: 1.04; }
.brand-name { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-weight: 650; letter-spacing: .015em; }
.clock-stage { overflow: visible; }
.hero-clock { width: 100%; max-width: 100%; min-width: 0; gap: clamp(8px, 1.25vw, 18px); letter-spacing: 0; }
.hero-clock .clock-digits { min-width: 0; max-width: 100%; flex: 0 1 auto; overflow: visible; }
.hero-clock .tf-digital { max-width: 100%; gap: clamp(4px, .7vw, 12px); font-size: .78em; }
.hero-clock .clock-meridiem { flex: 0 0 auto; margin-left: clamp(10px, 1.4vw, 20px); }
.clock-workspace.settings-open .clock-stage { padding-inline: clamp(14px, 2vw, 34px); }
.clock-workspace.settings-open .hero-clock { font-size: clamp(2.5rem, 4.6vw, 5.2rem); }
.workbench-actions { gap: 18px; }
.tf-controls { column-gap: 22px; row-gap: 16px; }
.button-primary, .tf-control.primary { color: #fff; border-color: #9b5c20; background: linear-gradient(135deg, #c47b31, #8f4e1d); box-shadow: 0 12px 28px color-mix(in srgb, var(--tf-amber) 20%, transparent); }
.button-primary:hover, .tf-control.primary:hover { background: linear-gradient(135deg, #d58b3f, #9b5c20); }
@media (max-width: 780px) {
  h1, .dashboard-topline h1, .feature-heading h1, .page-intro h1, .guide-header h1 { font-size: clamp(2rem, 8vw, 3.1rem) !important; }
  .hero-clock { gap: 6px; }
  .hero-clock .tf-digital { gap: 3px; font-size: .82em; }
  .clock-workspace.settings-open .hero-clock { font-size: clamp(2.15rem, 10vw, 4.2rem); }
  .workbench-actions, .tf-controls { column-gap: 14px; row-gap: 14px; }
}

@media (min-width: 1101px) {
  .dashboard-topline > div:first-child { min-width: 0; }
  .dashboard-topline h1 { max-width: none; white-space: nowrap; }
}

@media (max-width: 480px) {
  .hero-clock { font-size: clamp(2.15rem, 12vw, 4rem); }
  .hero-clock .tf-digital { font-size: .78em; }
  .clock-workspace.settings-open .hero-clock { font-size: clamp(1.9rem, 10.5vw, 3.5rem); }
}

/* Editorial Orbit brand lockup: the Orbit mark with the site's serif wordmark. */
.brand { gap: 17px; }
.brand-mark { width: 44px; height: 44px; }
.brand-mark:after { content: ""; position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--tf-amber); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tf-amber) 16%, transparent); }
.brand-name { font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif; font-size: 24px; font-weight: 700; letter-spacing: -.065em; line-height: 1; }
.brand-name span { margin-left: .13em; color: var(--tf-amber); font-weight: 700; }
@media (max-width: 780px) {
    .brand { gap: 12px; }
    .brand-mark { width: 40px; height: 40px; }
    .brand-mark .icon { width: 25px; height: 25px; }
    .brand-name { font-size: 22px; }
}

/* Timer refresh: a focused setup-and-run console with the result kept central. */
[data-tool="timer"] .workbench-body { min-height: 620px; padding: clamp(26px, 5vw, 64px); }
[data-tool="timer"] .tf-tool-ui { width: min(1040px, 100%); text-align: left; }
[data-tool="timer"] .tf-timer-title { margin: 0; color: var(--tf-text); font-size: clamp(1.65rem, 3.2vw, 2.45rem); letter-spacing: -.035em; line-height: 1.05; }
[data-tool="timer"] .tf-timer-lede { max-width: 520px; margin: 10px 0 0; color: var(--tf-muted); font-size: 14px; line-height: 1.55; }
[data-tool="timer"] .tf-timer-badge { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; margin-top: 8px; padding: 8px 11px; border: 1px solid color-mix(in srgb, var(--tf-green) 28%, var(--tf-border)); border-radius: 999px; color: var(--tf-green); background: color-mix(in srgb, var(--tf-green) 7%, transparent); font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
[data-tool="timer"] .tf-timer-badge i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 12%, transparent); }
[data-tool="timer"] .tf-timer-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 18px; align-items: stretch; }
[data-tool="timer"] .tf-timer-display-panel { display: flex; min-height: 365px; flex-direction: column; justify-content: space-between; padding: 22px 24px 20px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--tf-amber) 28%, var(--tf-border)); border-radius: 20px; color: #f8f4ed; background: radial-gradient(circle at 50% 22%, rgba(242,169,59,.22), transparent 42%), linear-gradient(145deg, #1d222b, #0d1016 74%); box-shadow: 0 20px 46px rgba(20,24,31,.2); }
[data-tool="timer"] .tf-timer-display-meta, [data-tool="timer"] .tf-timer-display-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: rgba(255,255,255,.56); font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
[data-tool="timer"] .tf-timer-display-meta span:last-child { color: var(--tf-amber-soft); }
[data-tool="timer"] .tf-timer-display-panel .tf-ring { width: min(290px, 72%); height: min(290px, 72%); min-height: 220px; margin: 20px auto; background: conic-gradient(var(--tf-amber) var(--tf-progress, 0%), rgba(255,255,255,.16) 0); box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 18px 36px rgba(0,0,0,.2); }
[data-tool="timer"] .tf-timer-display-panel .tf-ring:after { inset: 10px; background: #11151c; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
[data-tool="timer"] .tf-timer-display-panel .tf-ring > .tf-display { display: flex; width: 100%; justify-content: center; color: #f8f4ed; font-size: clamp(3.2rem, 7vw, 6.6rem); text-shadow: 0 0 28px rgba(242,169,59,.18); }
[data-tool="timer"] .tf-timer-display-foot { color: rgba(255,255,255,.38); font-size: 9px; letter-spacing: .06em; text-transform: none; }
[data-tool="timer"] .tf-timer-controls-panel { display: flex; flex-direction: column; padding: 23px; border: 1px solid var(--tf-border-strong); border-radius: 20px; background: linear-gradient(145deg, color-mix(in srgb, var(--tf-surface-solid) 95%, var(--tf-text)), var(--tf-bg-soft)); box-shadow: 0 18px 36px color-mix(in srgb, var(--tf-text) 7%, transparent); }
[data-tool="timer"] .tf-timer-section-label { margin-bottom: 12px; color: var(--tf-faint); font-family: ui-monospace, monospace; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
[data-tool="timer"] .tf-timer-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; margin: 0 0 25px; }
[data-tool="timer"] .tf-timer-fields .tf-field { gap: 7px; }
[data-tool="timer"] .tf-timer-fields .tf-field > span { color: var(--tf-muted); font-size: 11px; }
[data-tool="timer"] .tf-timer-fields input { min-height: 50px; border-radius: 11px; background: var(--tf-bg-soft); font-size: 16px; }
[data-tool="timer"] .tf-timer-preset-block { padding-top: 20px; border-top: 1px solid var(--tf-border); }
[data-tool="timer"] .tf-timer-preset-block .tf-chip-row { justify-content: flex-start; gap: 8px; }
[data-tool="timer"] .tf-timer-preset-block .tf-chip { min-height: 40px; border-radius: 10px; font-size: 12px; }
[data-tool="timer"] .tf-timer-action-row { margin-top: auto; padding-top: 28px; }
[data-tool="timer"] .tf-timer-action-row .tf-controls { justify-content: flex-start; gap: 9px; margin: 0; }
[data-tool="timer"] .tf-timer-action-row .tf-control { min-width: 0; min-height: 50px; flex: 1 1 120px; padding-inline: 14px; }
[data-tool="timer"] .tf-timer-note { display: flex; align-items: baseline; gap: 10px; max-width: 760px; margin: 21px auto 0; color: var(--tf-muted); font-size: 12px; line-height: 1.55; text-align: center; }
[data-tool="timer"] .tf-timer-note span { flex: 0 0 auto; color: var(--tf-amber-soft); font-family: ui-monospace, monospace; font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

/* The UTC digits become a full-width flex row after setDigital() runs. */
body[data-feature="utc"] .utc-card .feature-clock { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 100%; box-sizing: border-box; margin-inline: auto; padding-inline: 30px; text-align: center; }
body[data-feature="utc"] .utc-card .feature-date { position: relative; z-index: 1; }

/* Keep the UTC heading reference compact instead of reusing the flip-clock preview. */
body[data-feature="utc"] .feature-heading { align-items: flex-start; }
body[data-feature="utc"] .feature-heading-actions { width: min(320px, 100%); flex-direction: column; align-items: stretch; gap: 14px; }
body[data-feature="utc"] .flip-heading-art { width: 100%; padding: 19px 20px; border-radius: 18px; background: linear-gradient(145deg, color-mix(in srgb, var(--tf-amber) 9%, var(--tf-surface-solid)), var(--tf-surface-solid)); box-shadow: 0 18px 38px color-mix(in srgb, var(--tf-text) 9%, transparent); }
body[data-feature="utc"] .flip-heading-art .flip-art-strip { display: none; }
body[data-feature="utc"] .flip-heading-art .flip-art-label { margin: 0; color: var(--tf-amber-soft); font-size: 0; letter-spacing: 0; }
body[data-feature="utc"] .flip-heading-art .flip-art-label:before { content: "UTC / GMT+0"; display: block; color: var(--tf-text); font-size: 17px; font-weight: 700; letter-spacing: -.02em; text-transform: none; }
body[data-feature="utc"] .flip-heading-art .flip-art-label:after { content: "One global reference · no daylight saving"; display: block; margin-top: 7px; color: var(--tf-muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
body[data-feature="utc"] .feature-heading-controls { justify-content: flex-end; }

/* Timer surfaces follow the active theme; light mode is intentionally the default. */
[data-tool="timer"] .tf-timer-display-panel { color: var(--tf-text); background: radial-gradient(circle at 50% 22%, color-mix(in srgb, var(--tf-amber) 14%, transparent), transparent 42%), linear-gradient(145deg, var(--tf-surface-alt), var(--tf-bg-soft) 74%); box-shadow: 0 20px 46px color-mix(in srgb, var(--tf-text) 16%, transparent); }
[data-tool="timer"] .tf-timer-display-meta, [data-tool="timer"] .tf-timer-display-foot { color: var(--tf-faint); }
[data-tool="timer"] .tf-timer-display-meta span:last-child { color: var(--tf-amber-soft); }
[data-tool="timer"] .tf-timer-display-panel .tf-ring { background: conic-gradient(var(--tf-amber) var(--tf-progress, 0%), color-mix(in srgb, var(--tf-text) 14%, transparent) 0); box-shadow: 0 0 0 1px color-mix(in srgb, var(--tf-text) 8%, transparent), 0 18px 36px color-mix(in srgb, var(--tf-text) 16%, transparent); }
[data-tool="timer"] .tf-timer-display-panel .tf-ring:after { background: var(--tf-surface-solid); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tf-text) 8%, transparent); }
[data-tool="timer"] .tf-timer-display-panel .tf-ring > .tf-display { color: var(--tf-text); text-shadow: 0 0 28px color-mix(in srgb, var(--tf-amber) 18%, transparent); }
[data-tool="timer"] .tf-timer-display-panel .tf-ring > .tf-display { position: absolute; inset: 0; align-items: center; height: 100%; margin: 0; }

@media (max-width: 780px) {
  body[data-feature="utc"] .feature-heading-actions { width: 100%; }
  body[data-feature="utc"] .feature-heading-controls { justify-content: flex-start; }
}

@media (max-width: 780px) {
  [data-tool="timer"] .tf-timer-layout { grid-template-columns: 1fr; }
  [data-tool="timer"] .tf-timer-display-panel { min-height: 330px; }
}
@media (max-width: 480px) {
  [data-tool="timer"] .workbench-body { padding: 22px 16px 36px; }
  [data-tool="timer"] .tf-timer-badge { margin-top: 15px; }
  [data-tool="timer"] .tf-timer-display-panel { min-height: 285px; padding: 18px 16px; }
  [data-tool="timer"] .tf-timer-display-panel .tf-ring { width: 225px; height: 225px; min-height: 0; }
  [data-tool="timer"] .tf-timer-display-panel .tf-ring > .tf-display { font-size: clamp(2.8rem, 15vw, 4.8rem); }
  [data-tool="timer"] .tf-timer-controls-panel { padding: 19px 16px; }
  [data-tool="timer"] .tf-timer-fields { grid-template-columns: 1fr; margin-bottom: 20px; }
  [data-tool="timer"] .tf-timer-note { display: block; }
  [data-tool="timer"] .tf-timer-note span { display: block; margin-bottom: 5px; }
  body[data-feature="utc"] .utc-card .feature-clock { padding-inline: 12px; }
}

/* Feature headers use a compact, page-specific reference card. The full
   flip preview belongs to Flip Clock only; the other pages need their own
   visual cue and enough room for the title block. */
body[data-feature="calendar-year"] .feature-heading,
body[data-feature="holidays"] .feature-heading,
body[data-feature="iana-timezones"] .feature-heading { align-items: flex-start; }
body[data-feature="calendar-year"] .feature-heading-actions,
body[data-feature="holidays"] .feature-heading-actions,
body[data-feature="iana-timezones"] .feature-heading-actions { width: min(350px, 100%); flex-direction: column; align-items: stretch; gap: 14px; }
body[data-feature="calendar-year"] .flip-heading-art,
body[data-feature="holidays"] .flip-heading-art,
body[data-feature="iana-timezones"] .flip-heading-art { width: 100%; min-height: 122px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; padding: 20px 22px; border-radius: 20px; background: linear-gradient(145deg, color-mix(in srgb, var(--tf-amber) 10%, var(--tf-surface-solid)), var(--tf-surface-solid)); box-shadow: 0 18px 38px color-mix(in srgb, var(--tf-text) 9%, transparent); }
body[data-feature="calendar-year"] .flip-heading-art .flip-art-strip,
body[data-feature="holidays"] .flip-heading-art .flip-art-strip,
body[data-feature="iana-timezones"] .flip-heading-art .flip-art-strip { display: none; }
body[data-feature="calendar-year"] .flip-heading-art .flip-art-label,
body[data-feature="holidays"] .flip-heading-art .flip-art-label,
body[data-feature="iana-timezones"] .flip-heading-art .flip-art-label { margin: 0; color: var(--tf-amber-soft); font-size: 0; letter-spacing: 0; }
body[data-feature="calendar-year"] .flip-heading-art .flip-art-label:before,
body[data-feature="holidays"] .flip-heading-art .flip-art-label:before,
body[data-feature="iana-timezones"] .flip-heading-art .flip-art-label:before { display: block; color: var(--tf-text); font-size: 17px; font-weight: 700; letter-spacing: -.02em; text-transform: none; }
body[data-feature="calendar-year"] .flip-heading-art .flip-art-label:after,
body[data-feature="holidays"] .flip-heading-art .flip-art-label:after,
body[data-feature="iana-timezones"] .flip-heading-art .flip-art-label:after { display: block; margin-top: 8px; color: var(--tf-muted); font-size: 11px; letter-spacing: .06em; line-height: 1.45; text-transform: uppercase; }
body[data-feature="calendar-year"] .flip-heading-art .flip-art-label:before { content: "FULL YEAR VIEW"; }
body[data-feature="calendar-year"] .flip-heading-art .flip-art-label:after { content: "12 months · ISO weeks · day counts"; }
body[data-feature="holidays"] .flip-heading-art .flip-art-label:before { content: "WORLD HOLIDAYS"; }
body[data-feature="holidays"] .flip-heading-art .flip-art-label:after { content: "Search by country · year · region"; }
body[data-feature="iana-timezones"] .flip-heading-art .flip-art-label:before { content: "IANA TIMEZONES"; }
body[data-feature="iana-timezones"] .flip-heading-art .flip-art-label:after { content: "Live cities · named rules · UTC offsets"; }
body[data-feature="calendar-year"] .feature-heading-controls,
body[data-feature="holidays"] .feature-heading-controls,
body[data-feature="iana-timezones"] .feature-heading-controls { justify-content: flex-end; }

/* Separate the calendar summary from the heading and from the month grid. */
body[data-feature="calendar-year"] .year-overview { margin-top: 42px; padding-top: 22px; }
body[data-feature="calendar-year"] .year-stats { margin: 0 22px; border: 1px solid var(--tf-border); border-radius: 16px; overflow: hidden; box-shadow: 0 14px 30px color-mix(in srgb, var(--tf-text) 6%, transparent); }
body[data-feature="calendar-year"] .year-switch { margin: 22px 22px 0; border-top: 1px solid var(--tf-border); }
body[data-feature="calendar-year"] .year-grid { margin-top: 8px; border-top: 1px solid var(--tf-border); }

/* Holidays is a search surface first: give filters, results and guidance
   distinct layers so the list never reads like one crowded block. */
body[data-feature="holidays"] .holidays-card { padding: 0; overflow: hidden; background: var(--tf-surface-solid); }
body[data-feature="holidays"] .holidays-card .filter-row { padding: 26px 28px 24px; background: linear-gradient(145deg, color-mix(in srgb, var(--tf-amber) 6%, var(--tf-surface-solid)), var(--tf-surface-solid)); }
body[data-feature="holidays"] .holiday-controls { grid-template-columns: minmax(0, 1fr) 156px; gap: 14px; }
body[data-feature="holidays"] .search-field { min-height: 56px; border-radius: 14px; background: var(--tf-bg-soft); }
body[data-feature="holidays"] .year-select select { min-height: 56px; border-radius: 14px; }
body[data-feature="holidays"] .filter-tabs { margin-top: 3px; gap: 8px; }
body[data-feature="holidays"] .filter-tabs button { min-height: 40px; padding-inline: 15px; border-radius: 999px; background: color-mix(in srgb, var(--tf-surface-solid) 70%, transparent); }
body[data-feature="holidays"] .holiday-layout { gap: 34px; padding: 28px; border-top: 1px solid var(--tf-border); }
body[data-feature="holidays"] .holiday-list { gap: 12px; }
body[data-feature="holidays"] .holiday-item { min-height: 84px; padding: 15px 18px; border-radius: 14px; background: var(--tf-bg-soft); }
body[data-feature="holidays"] .holiday-item strong { font-size: 13px; }
body[data-feature="holidays"] .holiday-date { min-width: 68px; padding: 8px 9px; border: 1px solid color-mix(in srgb, var(--tf-amber) 28%, var(--tf-border)); border-radius: 9px; background: color-mix(in srgb, var(--tf-amber) 7%, transparent); }
body[data-feature="holidays"] .holiday-aside { position: sticky; top: 96px; padding: 24px; border-radius: 18px; background: linear-gradient(160deg, color-mix(in srgb, var(--tf-amber) 10%, var(--tf-surface)), var(--tf-bg-soft)); }
body[data-feature="holidays"] .holiday-aside h2 { max-width: 210px; margin-top: 14px; }

@media (max-width: 780px) {
  body[data-feature="calendar-year"] .feature-heading-actions,
  body[data-feature="holidays"] .feature-heading-actions,
  body[data-feature="iana-timezones"] .feature-heading-actions { width: 100%; }
  body[data-feature="calendar-year"] .feature-heading-controls,
  body[data-feature="holidays"] .feature-heading-controls,
  body[data-feature="iana-timezones"] .feature-heading-controls { justify-content: flex-start; }
  body[data-feature="calendar-year"] .year-overview { margin-top: 28px; padding-top: 14px; }
  body[data-feature="calendar-year"] .year-stats { margin-inline: 14px; }
  body[data-feature="calendar-year"] .year-switch { margin-inline: 14px; }
  body[data-feature="holidays"] .holidays-card .filter-row { padding: 20px 18px; }
  body[data-feature="holidays"] .holiday-layout { padding: 20px 18px; }
  body[data-feature="holidays"] .holiday-aside { position: static; }
}

@media (max-width: 560px) {
  body[data-feature="holidays"] .holiday-controls { grid-template-columns: 1fr; }
  body[data-feature="calendar-year"] .year-stats { margin-inline: 10px; }
  body[data-feature="calendar-year"] .year-switch { margin-inline: 10px; }
}

/* Align every feature header with the homepage's editorial "Good for" card.
   The card remains semantic through the page-specific label copy below, while
   the visual treatment stays consistent across the feature family. */
body[data-feature] .feature-heading { align-items: flex-start; }
body[data-feature] .feature-heading-actions { width: min(390px, 100%); flex-direction: column; align-items: stretch; gap: 14px; }
body[data-feature] .flip-heading-art { position: relative; width: 100%; min-height: 166px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: 24px 76px 22px 40px; border: 0; border-left: 4px solid var(--tf-amber); border-radius: 0; background: color-mix(in srgb, var(--tf-amber) 8%, var(--tf-surface-solid)); box-shadow: none; }
body[data-feature] .flip-heading-art:before { content: ""; position: absolute; right: -26px; bottom: -54px; width: 170px; height: 170px; border: 1px solid color-mix(in srgb, var(--tf-amber) 25%, transparent); border-radius: 50%; box-shadow: 0 0 0 28px color-mix(in srgb, var(--tf-amber) 5%, transparent), 0 0 0 56px color-mix(in srgb, var(--tf-amber) 4%, transparent); pointer-events: none; }
body[data-feature] .flip-heading-art:after { content: ""; position: absolute; z-index: 1; top: 24px; right: 26px; display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid color-mix(in srgb, var(--tf-amber) 58%, var(--tf-border)); border-radius: 50%; background: color-mix(in srgb, var(--tf-surface-solid) 82%, transparent); }
body[data-feature] .flip-heading-art .flip-art-strip { display: none; }
body[data-feature] .flip-heading-art .flip-art-label { position: relative; z-index: 2; margin: 0; color: var(--tf-faint); font-size: 0; letter-spacing: .13em; }
body[data-feature] .flip-heading-art .flip-art-label:before { display: block; color: var(--tf-faint); font-family: ui-monospace, monospace; font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
body[data-feature] .flip-heading-art .flip-art-label:after { display: block; max-width: 280px; margin-top: 18px; color: var(--tf-muted); font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: 22px; font-weight: 500; letter-spacing: -.015em; line-height: 1.45; text-transform: none; }
body[data-feature="utc"] .flip-heading-art .flip-art-label:before,
body[data-feature="calendar-year"] .flip-heading-art .flip-art-label:before,
body[data-feature="holidays"] .flip-heading-art .flip-art-label:before,
body[data-feature="iana-timezones"] .flip-heading-art .flip-art-label:before,
body[data-feature="flip-clock"] .flip-heading-art .flip-art-label:before { content: "GOOD FOR"; }
body[data-feature="utc"] .flip-heading-art .flip-art-label:after { content: "A neutral reference for logs, releases and teams."; }
body[data-feature="calendar-year"] .flip-heading-art .flip-art-label:after { content: "Planning deadlines, month boundaries and the year ahead."; }
body[data-feature="holidays"] .flip-heading-art .flip-art-label:after { content: "Comparing public holidays by country, region and year."; }
body[data-feature="iana-timezones"] .flip-heading-art .flip-art-label:after { content: "Checking city times and daylight-saving rules."; }
body[data-feature="flip-clock"] .flip-heading-art .flip-art-label:after { content: "A calm shared clock for desks, rooms and presentations."; }
body[data-feature] .feature-heading-controls { justify-content: flex-end; }

@media (max-width: 780px) {
  body[data-feature] .feature-heading-actions { width: 100%; }
  body[data-feature] .feature-heading-controls { justify-content: flex-start; }
  body[data-feature] .flip-heading-art { min-height: 148px; padding: 22px 68px 20px 28px; }
  body[data-feature] .flip-heading-art:after { top: 20px; right: 20px; width: 46px; height: 46px; }
  body[data-feature] .flip-heading-art .flip-art-label:after { margin-top: 12px; font-size: 19px; }
}

@media (max-width: 480px) {
  body[data-feature] .flip-heading-art { padding: 20px 58px 19px 22px; }
  body[data-feature] .flip-heading-art .flip-art-label:after { font-size: 18px; }
}

/* Holidays keeps navigation with the data workspace. The hero remains a
   quiet editorial introduction, while the explorer owns its own toolbar. */
body[data-feature="holidays"] .holidays-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 22px 28px; border-bottom: 1px solid var(--tf-border); background: color-mix(in srgb, var(--tf-amber) 5%, var(--tf-surface-solid)); }
body[data-feature="holidays"] .holidays-toolbar-copy { min-width: 0; }
body[data-feature="holidays"] .holidays-toolbar-copy .live-pill { margin-bottom: 8px; }
body[data-feature="holidays"] .holidays-toolbar-copy strong { display: block; color: var(--tf-text); font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
body[data-feature="holidays"] .holidays-toolbar-copy small { display: block; margin-top: 5px; color: var(--tf-faint); font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: .04em; }
body[data-feature="holidays"] .holidays-toolbar .feature-heading-controls { flex: 0 0 auto; }
body[data-feature="holidays"] .holiday-filter-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
body[data-feature="holidays"] .holiday-filter-heading h2 { margin: 8px 0 0; color: var(--tf-text); font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: clamp(25px, 3vw, 36px); line-height: 1; }
body[data-feature="holidays"] .holiday-filter-heading p { max-width: 430px; margin: 0; color: var(--tf-muted); font-size: 13px; line-height: 1.55; text-align: right; }
body[data-feature="holidays"] .holiday-source-meta { display: grid; gap: 5px; margin: 22px 0 18px; padding-top: 16px; border-top: 1px solid var(--tf-border); }
body[data-feature="holidays"] .holiday-source-meta span { color: var(--tf-faint); font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
body[data-feature="holidays"] .holiday-source-meta strong { color: var(--tf-amber-soft); font-size: 12px; line-height: 1.4; }
body[data-feature="holidays"] .holiday-item > span { min-width: 0; }
body[data-feature="holidays"] .holiday-note { display: block; overflow: hidden; margin-top: 5px; color: var(--tf-faint); font-size: 10px; font-style: normal; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 780px) {
  body[data-feature="holidays"] .holidays-toolbar { align-items: stretch; flex-direction: column; padding: 20px 18px; }
  body[data-feature="holidays"] .holidays-toolbar .feature-heading-controls { justify-content: flex-start; }
  body[data-feature="holidays"] .holiday-filter-heading { align-items: start; flex-direction: column; gap: 12px; }
  body[data-feature="holidays"] .holiday-filter-heading p { max-width: none; text-align: left; }
}

/* Final page-level overrides keep the shared layout rules authoritative after
   the legacy component rules above. */
body[data-feature] .flip-heading-art:after { content: ""; }
body[data-feature] .flip-art-icon { position: absolute; z-index: 2; top: 40px; right: 42px; width: 30px; height: 30px; color: var(--tf-amber); stroke-width: 1.8; }
body[data-tool] .workbench-top { justify-content: flex-end; min-height: 62px; padding-block: 10px; background: color-mix(in srgb, var(--tf-amber) 4%, var(--tf-surface-solid)); }
body[data-tool] .workbench-top > div:first-child { display: flex; }
body[data-tool] .workbench-body { min-height: 500px; padding: clamp(30px, 5vw, 68px); background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--tf-amber) 7%, transparent), transparent 34rem), var(--tf-surface-solid); }
body[data-tool] .tf-tool-ui { width: min(980px, 100%); }
body[data-tool="timer"] .tf-timer-display-panel,
body[data-tool="presentation-timer"] .tf-timer-display-panel,
body[data-tool="classroom-timer"] .tf-timer-display-panel,
body[data-tool="exam-timer"] .tf-timer-display-panel { color: var(--tf-text); background: radial-gradient(circle at 50% 22%, color-mix(in srgb, var(--tf-amber) 15%, transparent), transparent 43%), linear-gradient(145deg, var(--tf-surface-alt), var(--tf-bg-soft) 74%); box-shadow: 0 20px 46px color-mix(in srgb, var(--tf-text) 14%, transparent); }
body[data-tool="timer"] .tf-timer-display-meta,
body[data-tool="timer"] .tf-timer-display-foot,
body[data-tool="presentation-timer"] .tf-timer-display-meta,
body[data-tool="presentation-timer"] .tf-timer-display-foot,
body[data-tool="classroom-timer"] .tf-timer-display-meta,
body[data-tool="classroom-timer"] .tf-timer-display-foot,
body[data-tool="exam-timer"] .tf-timer-display-meta,
body[data-tool="exam-timer"] .tf-timer-display-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
body[data-tool="timer"] .tf-timer-layout,
body[data-tool="presentation-timer"] .tf-timer-layout,
body[data-tool="classroom-timer"] .tf-timer-layout,
body[data-tool="exam-timer"] .tf-timer-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: 24px; }
body[data-tool="timer"] .tf-timer-display-panel .tf-ring,
body[data-tool="presentation-timer"] .tf-timer-display-panel .tf-ring,
body[data-tool="classroom-timer"] .tf-timer-display-panel .tf-ring,
body[data-tool="exam-timer"] .tf-timer-display-panel .tf-ring { width: min(310px, 76%); height: min(310px, 76%); }
body[data-tool="timer"] .tf-timer-display-panel .tf-ring > .tf-display,
body[data-tool="presentation-timer"] .tf-timer-display-panel .tf-ring > .tf-display,
body[data-tool="classroom-timer"] .tf-timer-display-panel .tf-ring > .tf-display,
body[data-tool="exam-timer"] .tf-timer-display-panel .tf-ring > .tf-display { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; height: 100%; margin: 0; }
body[data-tool="timer"] .tf-timer-controls-panel,
body[data-tool="presentation-timer"] .tf-timer-controls-panel,
body[data-tool="classroom-timer"] .tf-timer-controls-panel,
body[data-tool="exam-timer"] .tf-timer-controls-panel { background: linear-gradient(145deg, color-mix(in srgb, var(--tf-surface-solid) 96%, var(--tf-text)), var(--tf-bg-soft)); }
body[data-tool="calendar"] .tf-kicker { margin-bottom: 20px; text-align: center; }
body[data-tool="calendar"] .tf-controls:first-of-type { display: grid; grid-template-columns: minmax(120px, 160px) minmax(150px, 1fr) minmax(120px, 160px); align-items: center; max-width: 620px; margin: 0 auto 24px; }
body[data-tool="calendar"] .tf-controls:first-of-type strong { font-size: clamp(1.35rem, 3vw, 2rem); letter-spacing: -.03em; }
body[data-tool="calendar"] .tf-table { margin-top: 0; border-radius: 18px; background: color-mix(in srgb, var(--tf-surface-solid) 82%, var(--tf-bg-soft)); box-shadow: 0 16px 34px color-mix(in srgb, var(--tf-text) 6%, transparent); }
body[data-tool="calendar"] .tf-table + .tf-controls { margin-top: 34px; }
body[data-tool="calendar"] .tf-table + .tf-controls .tf-control { min-width: 170px; }
body[data-tool="calendar"] .tf-table + .tf-controls + .tf-helper { max-width: 630px; margin-top: 20px; }
body[data-tool="calendar"] .tf-table-row { min-height: 66px; padding: 14px 20px; }
body[data-tool="holiday-countdown"] .tf-tool-ui { max-width: 820px; padding: clamp(24px, 5vw, 48px); border: 1px solid var(--tf-border); border-radius: 24px; background: linear-gradient(145deg, color-mix(in srgb, var(--tf-amber) 6%, var(--tf-surface-solid)), var(--tf-surface-solid)); box-shadow: 0 22px 46px color-mix(in srgb, var(--tf-text) 8%, transparent); }
body[data-tool="holiday-countdown"] .tf-kicker { margin-bottom: 28px; }
body[data-tool="holiday-countdown"] .tf-display { margin-top: 32px; color: var(--tf-amber-soft); }
body[data-tool="holiday-countdown"] .tf-status { margin-top: 16px; }
body[data-tool] .tf-tool-ui > .tf-kicker { text-align: center; }
body[data-tool] .tf-tool-ui > .tf-display { margin-inline: auto; text-align: center; }
body[data-tool] .tf-tool-ui > .tf-controls { justify-content: center; }

@media (max-width: 780px) {
  body[data-feature] .flip-art-icon { top: 28px; right: 28px; width: 26px; height: 26px; }
  body[data-tool] .workbench-top { min-height: 54px; }
  body[data-tool] .workbench-body { min-height: 0; padding: 22px 16px 38px; }
  body[data-tool="timer"] .tf-timer-layout,
  body[data-tool="presentation-timer"] .tf-timer-layout,
  body[data-tool="classroom-timer"] .tf-timer-layout,
  body[data-tool="exam-timer"] .tf-timer-layout { grid-template-columns: 1fr; }
  body[data-tool="timer"] .tf-timer-display-panel,
  body[data-tool="presentation-timer"] .tf-timer-display-panel,
  body[data-tool="classroom-timer"] .tf-timer-display-panel,
  body[data-tool="exam-timer"] .tf-timer-display-panel { min-height: 320px; }
  body[data-tool="calendar"] .tf-controls:first-of-type { grid-template-columns: 1fr 1.2fr 1fr; gap: 8px; }
  body[data-tool="calendar"] .tf-table { overflow-x: auto; }
  body[data-tool="calendar"] .tf-table-row { min-width: 640px; }
  body[data-tool="holiday-countdown"] .tf-tool-ui { padding: 24px 18px; }
}

@media (max-width: 480px) {
  body[data-tool="calendar"] .tf-controls:first-of-type .tf-control { min-width: 0; padding-inline: 8px; font-size: 12px; }
  body[data-tool="calendar"] .tf-table + .tf-controls { margin-top: 28px; }
  body[data-tool="holiday-countdown"] .tf-setup-grid { grid-template-columns: 1fr; }
}

/* Classroom and exam timers: give the live surface a calmer, more spacious
   console so the display, setup fields and actions read as separate steps. */
body[data-tool="classroom-timer"] .workbench-body,
body[data-tool="exam-timer"] .workbench-body { min-height: 620px; padding: clamp(38px, 5vw, 72px) clamp(24px, 5vw, 78px) clamp(52px, 6vw, 82px); }
body[data-tool="classroom-timer"] .tf-tool-ui,
body[data-tool="exam-timer"] .tf-tool-ui { width: min(1080px, 100%); }
body[data-tool="classroom-timer"] .tf-timer-layout,
body[data-tool="exam-timer"] .tf-timer-layout { gap: clamp(28px, 3.2vw, 42px); }
body[data-tool="classroom-timer"] .tf-timer-display-panel,
body[data-tool="exam-timer"] .tf-timer-display-panel { min-height: 450px; padding: 28px 30px 26px; border-radius: 24px; }
body[data-tool="classroom-timer"] .tf-timer-display-meta,
body[data-tool="classroom-timer"] .tf-timer-display-foot,
body[data-tool="exam-timer"] .tf-timer-display-meta,
body[data-tool="exam-timer"] .tf-timer-display-foot { padding-inline: 4px; }
body[data-tool="classroom-timer"] .tf-timer-display-panel .tf-ring,
body[data-tool="exam-timer"] .tf-timer-display-panel .tf-ring { width: min(330px, 78%); height: min(330px, 78%); margin-block: 28px; }
body[data-tool="classroom-timer"] .tf-timer-controls-panel,
body[data-tool="exam-timer"] .tf-timer-controls-panel { min-height: 450px; padding: 30px; border-radius: 24px; }
body[data-tool="classroom-timer"] .tf-timer-section-label,
body[data-tool="exam-timer"] .tf-timer-section-label { margin-bottom: 15px; }
body[data-tool="classroom-timer"] .tf-timer-fields,
body[data-tool="exam-timer"] .tf-timer-fields { gap: 14px; margin-bottom: 30px; }
body[data-tool="classroom-timer"] .tf-timer-fields input,
body[data-tool="exam-timer"] .tf-timer-fields input { min-height: 56px; padding-inline: 15px; border-radius: 13px; }
body[data-tool="classroom-timer"] .tf-timer-preset-block,
body[data-tool="exam-timer"] .tf-timer-preset-block { padding-top: 27px; }
body[data-tool="classroom-timer"] .tf-timer-preset-block .tf-chip-row,
body[data-tool="exam-timer"] .tf-timer-preset-block .tf-chip-row { gap: 10px; }
body[data-tool="classroom-timer"] .tf-timer-preset-block .tf-chip,
body[data-tool="exam-timer"] .tf-timer-preset-block .tf-chip { min-height: 44px; padding-inline: 14px; }
body[data-tool="classroom-timer"] .tf-timer-action-row,
body[data-tool="exam-timer"] .tf-timer-action-row { margin-top: auto; padding-top: 30px; border-top: 1px solid var(--tf-border); }
body[data-tool="classroom-timer"] .tf-timer-action-row .tf-controls,
body[data-tool="exam-timer"] .tf-timer-action-row .tf-controls { display: grid; grid-template-columns: 1.08fr 1fr 1fr; gap: 12px; width: 100%; }
body[data-tool="classroom-timer"] .tf-timer-action-row .tf-control,
body[data-tool="exam-timer"] .tf-timer-action-row .tf-control { min-height: 56px; padding-inline: 12px; }
body[data-tool="classroom-timer"] .tf-timer-note,
body[data-tool="exam-timer"] .tf-timer-note { max-width: 900px; margin-top: 30px; padding: 14px 20px; border: 1px solid var(--tf-border); border-radius: 14px; background: color-mix(in srgb, var(--tf-surface-solid) 62%, transparent); }

@media (max-width: 780px) {
  body[data-tool="classroom-timer"] .workbench-body,
  body[data-tool="exam-timer"] .workbench-body { min-height: 0; padding: 30px 20px 48px; }
  body[data-tool="classroom-timer"] .tf-timer-display-panel,
  body[data-tool="exam-timer"] .tf-timer-display-panel { min-height: 370px; padding: 24px 22px 22px; }
  body[data-tool="classroom-timer"] .tf-timer-controls-panel,
  body[data-tool="exam-timer"] .tf-timer-controls-panel { min-height: 0; padding: 26px 22px; }
  body[data-tool="classroom-timer"] .tf-timer-display-panel .tf-ring,
  body[data-tool="exam-timer"] .tf-timer-display-panel .tf-ring { width: min(300px, 78vw); height: min(300px, 78vw); }
}

@media (max-width: 480px) {
  body[data-tool="classroom-timer"] .workbench-body,
  body[data-tool="exam-timer"] .workbench-body { padding-inline: 14px; }
  body[data-tool="classroom-timer"] .tf-timer-display-panel,
  body[data-tool="exam-timer"] .tf-timer-display-panel { min-height: 310px; padding: 19px 16px 18px; border-radius: 20px; }
  body[data-tool="classroom-timer"] .tf-timer-controls-panel,
  body[data-tool="exam-timer"] .tf-timer-controls-panel { padding: 22px 16px; border-radius: 20px; }
  body[data-tool="classroom-timer"] .tf-timer-fields,
  body[data-tool="exam-timer"] .tf-timer-fields { gap: 8px; }
  body[data-tool="classroom-timer"] .tf-timer-fields input,
  body[data-tool="exam-timer"] .tf-timer-fields input { padding-inline: 11px; }
  body[data-tool="classroom-timer"] .tf-timer-action-row .tf-controls,
  body[data-tool="exam-timer"] .tf-timer-action-row .tf-controls { grid-template-columns: 1fr 1fr; }
  body[data-tool="classroom-timer"] .tf-timer-action-row .tf-control.primary,
  body[data-tool="exam-timer"] .tf-timer-action-row .tf-control.primary { grid-column: 1 / -1; }
  body[data-tool="classroom-timer"] .tf-timer-note,
  body[data-tool="exam-timer"] .tf-timer-note { padding: 13px 15px; text-align: left; }
  body[data-tool="classroom-timer"] .tf-timer-note span,
  body[data-tool="exam-timer"] .tf-timer-note span { display: block; margin-bottom: 6px; }
}

/* Keep the same spacing system on the general and presentation timer routes. */
body:is([data-tool="timer"], [data-tool="presentation-timer"]) .workbench-body { min-height: 620px; padding: clamp(38px, 5vw, 72px) clamp(24px, 5vw, 78px) clamp(52px, 6vw, 82px); }
body:is([data-tool="timer"], [data-tool="presentation-timer"]) .tf-tool-ui { width: min(1080px, 100%); }
body:is([data-tool="timer"], [data-tool="presentation-timer"]) .tf-timer-layout { gap: clamp(28px, 3.2vw, 42px); }
body:is([data-tool="timer"], [data-tool="presentation-timer"]) .tf-timer-display-panel { min-height: 450px; padding: 28px 30px 26px; border-radius: 24px; }
body:is([data-tool="timer"], [data-tool="presentation-timer"]) .tf-timer-display-meta,
body:is([data-tool="timer"], [data-tool="presentation-timer"]) .tf-timer-display-foot { padding-inline: 4px; }
body:is([data-tool="timer"], [data-tool="presentation-timer"]) .tf-timer-display-panel .tf-ring { width: min(330px, 78%); height: min(330px, 78%); margin-block: 28px; }
body:is([data-tool="timer"], [data-tool="presentation-timer"]) .tf-timer-controls-panel { min-height: 450px; padding: 30px; border-radius: 24px; }
body:is([data-tool="timer"], [data-tool="presentation-timer"]) .tf-timer-section-label { margin-bottom: 15px; }
body:is([data-tool="timer"], [data-tool="presentation-timer"]) .tf-timer-fields { gap: 14px; margin-bottom: 30px; }
body:is([data-tool="timer"], [data-tool="presentation-timer"]) .tf-timer-fields input { min-height: 56px; padding-inline: 15px; border-radius: 13px; }
body:is([data-tool="timer"], [data-tool="presentation-timer"]) .tf-timer-preset-block { padding-top: 27px; }
body:is([data-tool="timer"], [data-tool="presentation-timer"]) .tf-timer-preset-block .tf-chip-row { gap: 10px; }
body:is([data-tool="timer"], [data-tool="presentation-timer"]) .tf-timer-preset-block .tf-chip { min-height: 44px; padding-inline: 14px; }
body:is([data-tool="timer"], [data-tool="presentation-timer"]) .tf-timer-action-row { margin-top: auto; padding-top: 30px; border-top: 1px solid var(--tf-border); }
body:is([data-tool="timer"], [data-tool="presentation-timer"]) .tf-timer-action-row .tf-controls { display: grid; grid-template-columns: 1.08fr 1fr 1fr; gap: 12px; width: 100%; }
body:is([data-tool="timer"], [data-tool="presentation-timer"]) .tf-timer-action-row .tf-control { min-height: 56px; padding-inline: 12px; }
body:is([data-tool="timer"], [data-tool="presentation-timer"]) .tf-timer-note { max-width: 900px; margin-top: 30px; padding: 14px 20px; border: 1px solid var(--tf-border); border-radius: 14px; background: color-mix(in srgb, var(--tf-surface-solid) 62%, transparent); }

@media (max-width: 780px) {
  body:is([data-tool="timer"], [data-tool="presentation-timer"]) .workbench-body { min-height: 0; padding: 30px 20px 48px; }
  body:is([data-tool="timer"], [data-tool="presentation-timer"]) .tf-timer-display-panel { min-height: 370px; padding: 24px 22px 22px; }
  body:is([data-tool="timer"], [data-tool="presentation-timer"]) .tf-timer-controls-panel { min-height: 0; padding: 26px 22px; }
  body:is([data-tool="timer"], [data-tool="presentation-timer"]) .tf-timer-display-panel .tf-ring { width: min(300px, 78vw); height: min(300px, 78vw); }
}

@media (max-width: 480px) {
  body:is([data-tool="timer"], [data-tool="presentation-timer"]) .workbench-body { padding-inline: 14px; }
  body:is([data-tool="timer"], [data-tool="presentation-timer"]) .tf-timer-display-panel { min-height: 310px; padding: 19px 16px 18px; border-radius: 20px; }
  body:is([data-tool="timer"], [data-tool="presentation-timer"]) .tf-timer-controls-panel { padding: 22px 16px; border-radius: 20px; }
  body:is([data-tool="timer"], [data-tool="presentation-timer"]) .tf-timer-fields { gap: 8px; }
  body:is([data-tool="timer"], [data-tool="presentation-timer"]) .tf-timer-fields input { padding-inline: 11px; }
  body:is([data-tool="timer"], [data-tool="presentation-timer"]) .tf-timer-action-row .tf-controls { grid-template-columns: 1fr 1fr; }
  body:is([data-tool="timer"], [data-tool="presentation-timer"]) .tf-timer-action-row .tf-control.primary { grid-column: 1 / -1; }
  body:is([data-tool="timer"], [data-tool="presentation-timer"]) .tf-timer-note { padding: 13px 15px; text-align: left; }
  body:is([data-tool="timer"], [data-tool="presentation-timer"]) .tf-timer-note span { display: block; margin-bottom: 6px; }
}

/* Meeting results carry the context needed to schedule, not just a clock
   reading: zone, offset, date relationship and a simple working-hours cue. */
[data-tool="meeting-time-converter"] .tf-meeting-source { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 8px 14px; margin-bottom: 10px; padding: 14px 18px; border: 1px solid color-mix(in srgb, var(--tf-amber) 28%, var(--tf-border)); border-radius: 14px; background: color-mix(in srgb, var(--tf-amber) 7%, var(--tf-surface-solid)); text-align: left; }
[data-tool="meeting-time-converter"] .tf-meeting-source span { color: var(--tf-amber-soft); font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
[data-tool="meeting-time-converter"] .tf-meeting-source strong { color: var(--tf-text); font-size: 14px; }
[data-tool="meeting-time-converter"] .tf-meeting-source small { justify-self: end; color: var(--tf-muted); font-size: 12px; }
[data-tool="meeting-time-converter"] .tf-meeting-result { display: grid; grid-template-columns: minmax(150px, .8fr) minmax(300px, 1.6fr) auto; align-items: center; gap: 18px; min-height: 82px; }
[data-tool="meeting-time-converter"] .tf-meeting-result-main strong,
[data-tool="meeting-time-converter"] .tf-meeting-result-time strong { display: block; color: var(--tf-text); font-size: 15px; }
[data-tool="meeting-time-converter"] .tf-meeting-result-main small,
[data-tool="meeting-time-converter"] .tf-meeting-result-time small { display: block; margin-top: 5px; color: var(--tf-muted); font-size: 12px; }
[data-tool="meeting-time-converter"] .tf-meeting-result-time { min-width: 0; }
[data-tool="meeting-time-converter"] .tf-meeting-result-state { justify-self: end; padding: 6px 9px; border: 1px solid var(--tf-border); border-radius: 999px; color: var(--tf-muted); background: var(--tf-surface-alt); font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: .04em; white-space: nowrap; }
[data-tool="meeting-time-converter"] .tf-meeting-result-state.is-business { color: var(--tf-green); border-color: color-mix(in srgb, var(--tf-green) 35%, var(--tf-border)); background: color-mix(in srgb, var(--tf-green) 9%, var(--tf-surface-solid)); }
[data-tool="meeting-time-converter"] .tf-meeting-result-state.is-quiet { color: var(--tf-amber-soft); border-color: color-mix(in srgb, var(--tf-amber) 35%, var(--tf-border)); background: color-mix(in srgb, var(--tf-amber) 9%, var(--tf-surface-solid)); }

@media (max-width: 780px) {
  [data-tool="meeting-time-converter"] .tf-meeting-source { grid-template-columns: 1fr; gap: 5px; }
  [data-tool="meeting-time-converter"] .tf-meeting-source small { justify-self: start; }
  [data-tool="meeting-time-converter"] .tf-meeting-result { grid-template-columns: 1fr; gap: 8px; align-items: start; }
  [data-tool="meeting-time-converter"] .tf-meeting-result-state { justify-self: start; }
}

/* Calendar refresh: separate the month navigation, calendar surface and
   return action so the page has a clearer rhythm at every viewport. */
body[data-tool="calendar"] .workbench-body { min-height: 650px; padding: clamp(34px, 5vw, 72px) clamp(22px, 5vw, 78px) clamp(56px, 6vw, 88px); background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--tf-amber) 8%, transparent), transparent 34rem), var(--tf-surface-solid); }
body[data-tool="calendar"] .tf-tool-ui { width: min(1080px, 100%); padding: clamp(24px, 3.5vw, 42px); border: 1px solid var(--tf-border-strong); border-radius: 26px; background: linear-gradient(145deg, color-mix(in srgb, var(--tf-amber) 3%, var(--tf-surface-solid)), var(--tf-surface)); box-shadow: 0 24px 52px color-mix(in srgb, var(--tf-text) 10%, transparent); text-align: left; }
body[data-tool="calendar"] .tf-kicker { margin-bottom: 24px; text-align: center; }
body[data-tool="calendar"] .tf-kicker + .tf-controls { display: grid; grid-template-columns: minmax(130px, 170px) minmax(180px, 1fr) minmax(130px, 170px); gap: 14px; align-items: center; max-width: none; margin: 0; padding: 0 0 30px; border-bottom: 1px solid var(--tf-border); }
body[data-tool="calendar"] .tf-kicker + .tf-controls strong { justify-self: center; color: var(--tf-text); font-size: clamp(1.5rem, 3vw, 2.15rem); letter-spacing: -.04em; }
body[data-tool="calendar"] .tf-kicker + .tf-controls .tf-control { width: 100%; min-height: 58px; border-radius: 15px; }
body[data-tool="calendar"] .tf-table[data-calendar] { margin-top: 30px; overflow: hidden; border: 1px solid var(--tf-border-strong); border-radius: 20px; background: color-mix(in srgb, var(--tf-surface-solid) 80%, var(--tf-bg-soft)); box-shadow: 0 16px 34px color-mix(in srgb, var(--tf-text) 7%, transparent); }
body[data-tool="calendar"] .tf-table[data-calendar] .tf-table-row { grid-template-columns: 54px repeat(7, minmax(0, 1fr)); min-height: 78px; padding: 0 20px; gap: 14px; border-bottom-color: var(--tf-border); }
body[data-tool="calendar"] .tf-table[data-calendar] .tf-table-row:first-child { min-height: 58px; color: var(--tf-muted); background: color-mix(in srgb, var(--tf-amber) 5%, var(--tf-bg-soft)); }
body[data-tool="calendar"] .tf-table[data-calendar] .tf-table-row:nth-child(odd):not(:first-child) { background: color-mix(in srgb, var(--tf-surface-solid) 82%, var(--tf-bg-soft)); }
body[data-tool="calendar"] .tf-table[data-calendar] .tf-table-row:last-child { border-bottom: 0; }
body[data-tool="calendar"] .tf-table[data-calendar] .tf-table-row strong { color: var(--tf-text); font-size: 14px; }
body[data-tool="calendar"] .tf-table[data-calendar] .tf-table-row span { display: grid; place-items: center; min-height: 34px; color: var(--tf-muted); }
body[data-tool="calendar"] .tf-table[data-calendar] .tf-table-row:first-child span { color: var(--tf-faint); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
body[data-tool="calendar"] .tf-table[data-calendar] .tf-table-row span[style] { width: 36px; height: 36px; justify-self: center; border-radius: 11px; color: var(--tf-bg) !important; background: var(--tf-amber); box-shadow: 0 8px 18px color-mix(in srgb, var(--tf-amber) 25%, transparent); }
body[data-tool="calendar"] .tf-table[data-calendar] + .tf-controls { justify-content: center; margin: 34px 0 0; padding-top: 30px; border-top: 1px solid var(--tf-border); }
body[data-tool="calendar"] .tf-table[data-calendar] + .tf-controls .tf-control { min-width: 190px; min-height: 56px; border-radius: 15px; }
body[data-tool="calendar"] .tf-table[data-calendar] + .tf-controls + .tf-helper { max-width: 700px; margin: 18px auto 0; color: var(--tf-faint); text-align: center; }

@media (max-width: 780px) {
  body[data-tool="calendar"] .workbench-body { min-height: 0; padding: 30px 18px 54px; }
  body[data-tool="calendar"] .tf-tool-ui { width: 100%; min-width: 0; padding: 25px 18px 28px; border-radius: 22px; }
  body[data-tool="calendar"] .tf-kicker + .tf-controls { grid-template-columns: 1fr 1fr; grid-template-areas: "label label" "prev next"; gap: 12px; padding-bottom: 24px; }
  body[data-tool="calendar"] .tf-kicker + .tf-controls strong { grid-area: label; }
  body[data-tool="calendar"] .tf-kicker + .tf-controls [data-month="prev"] { grid-area: prev; }
  body[data-tool="calendar"] .tf-kicker + .tf-controls [data-month="next"] { grid-area: next; }
  body[data-tool="calendar"] .tf-table[data-calendar] { width: 100%; min-width: 0; margin-top: 24px; overflow-x: auto; }
  body[data-tool="calendar"] .tf-table[data-calendar] + .tf-controls { min-width: 0; }
  body[data-tool="calendar"] .tf-table[data-calendar] .tf-table-row { min-width: 640px; min-height: 70px; }
  body[data-tool="calendar"] .tf-table[data-calendar] + .tf-controls { margin-top: 28px; padding-top: 24px; }
}

@media (max-width: 480px) {
  body[data-tool="calendar"] .workbench-body { padding-inline: 12px; }
  body[data-tool="calendar"] .tf-tool-ui { width: 100%; min-width: 0; padding: 22px 13px 25px; }
  body[data-tool="calendar"] .tf-kicker { margin-bottom: 20px; }
  body[data-tool="calendar"] .tf-kicker + .tf-controls .tf-control { min-height: 52px; padding-inline: 10px; }
  body[data-tool="calendar"] .tf-table[data-calendar] { margin-top: 22px; }
  body[data-tool="calendar"] .tf-table[data-calendar] .tf-table-row { min-width: 620px; padding-inline: 12px; }
  body[data-tool="calendar"] .tf-table[data-calendar] + .tf-controls .tf-control { width: 100%; min-width: 0; }
}

/* Quiet calendar surfaces: keep one shared workbench boundary, then let the
   table carry the only meaningful inner edge. Everything else stays open. */
body[data-tool="calendar"] .workbench { border-color: var(--tf-border-strong); background: var(--tf-surface-solid); box-shadow: 0 24px 80px color-mix(in srgb, var(--tf-text) 12%, transparent); }
body[data-tool="calendar"] .workbench-top { border-bottom-color: var(--tf-border); background: color-mix(in srgb, var(--tf-amber) 4%, var(--tf-surface-solid)); }
body[data-tool="calendar"] .workbench-body { background: transparent; }
body[data-tool="calendar"] .workbench-foot { border-top-color: var(--tf-border); background: transparent; }
body[data-tool="calendar"] .tf-tool-ui { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
body[data-tool="calendar"] .tf-kicker + .tf-controls { padding-bottom: 20px; border-bottom: 0; }
body[data-tool="calendar"] .tf-kicker + .tf-controls .tf-control { border-color: var(--tf-border); background: color-mix(in srgb, var(--tf-bg-soft) 72%, transparent); box-shadow: 0 7px 18px color-mix(in srgb, var(--tf-text) 6%, transparent); }
body[data-tool="calendar"] .tf-kicker + .tf-controls .tf-control:hover { border-color: var(--tf-border-strong); background: color-mix(in srgb, var(--tf-amber) 10%, var(--tf-bg-soft)); }
body[data-tool="calendar"] .tf-table[data-calendar] { border: 0; border-radius: 18px; background: color-mix(in srgb, var(--tf-bg-soft) 60%, transparent); box-shadow: 0 14px 32px color-mix(in srgb, var(--tf-text) 7%, transparent); }
body[data-tool="calendar"] .tf-table[data-calendar] .tf-table-row { border-bottom: 0; }
body[data-tool="calendar"] .tf-table[data-calendar] .tf-table-row:first-child { background: color-mix(in srgb, var(--tf-amber) 7%, var(--tf-bg-soft)); }
body[data-tool="calendar"] .tf-table[data-calendar] .tf-table-row:nth-child(odd):not(:first-child) { background: color-mix(in srgb, var(--tf-surface-solid) 42%, transparent); }
body[data-tool="calendar"] .tf-table[data-calendar] + .tf-controls { margin-top: 28px; padding-top: 0; border-top: 0; }
body[data-tool="calendar"] .tf-table[data-calendar] + .tf-controls .tf-control { border-color: var(--tf-border); }
body[data-tool="calendar"] .tf-table[data-calendar] + .tf-controls .tf-control.primary { border-color: color-mix(in srgb, var(--tf-amber) 46%, var(--tf-border)); }
body[data-tool="calendar"] .tf-table[data-calendar] + .tf-controls .tf-control.primary { box-shadow: 0 12px 24px color-mix(in srgb, var(--tf-amber) 22%, transparent); }

/* Shared timer surfaces: let soft shadows separate sibling panels without
   putting a hard outline inside the already-bounded workbench. */
body:is([data-tool="timer"], [data-tool="presentation-timer"], [data-tool="classroom-timer"], [data-tool="exam-timer"]) .tf-timer-display-panel,
body:is([data-tool="timer"], [data-tool="presentation-timer"], [data-tool="classroom-timer"], [data-tool="exam-timer"]) .tf-timer-controls-panel { border: 0; }
body:is([data-tool="timer"], [data-tool="presentation-timer"], [data-tool="classroom-timer"], [data-tool="exam-timer"]) .tf-timer-display-panel { border: 0; box-shadow: 0 16px 36px color-mix(in srgb, var(--tf-text) 8%, transparent); }
body:is([data-tool="timer"], [data-tool="presentation-timer"], [data-tool="classroom-timer"], [data-tool="exam-timer"]) .tf-timer-controls-panel { box-shadow: 0 12px 30px color-mix(in srgb, var(--tf-text) 6%, transparent); }
body:is([data-tool="timer"], [data-tool="presentation-timer"], [data-tool="classroom-timer"], [data-tool="exam-timer"]) .tf-timer-note { border: 0; box-shadow: 0 10px 26px color-mix(in srgb, var(--tf-text) 5%, transparent); }

@media (max-width: 780px) {
  body[data-tool="calendar"] .tf-kicker + .tf-controls { padding-bottom: 18px; }
}

/* Time-zone converter: keep the source, destination and action layers
   visually separate so the result cards never crowd the buttons. */
body[data-tool="time-zone-converter"] .workbench-body { min-height: 640px; padding: clamp(42px, 6vw, 76px) clamp(24px, 6vw, 82px) clamp(58px, 7vw, 92px); }
body[data-tool="time-zone-converter"] .tf-tool-ui { width: min(1040px, 100%); }
body[data-tool="time-zone-converter"] .tf-tool-ui > .tf-kicker { margin-bottom: 32px; }
body[data-tool="time-zone-converter"] .tf-setup-grid { max-width: 960px; gap: 22px; margin-bottom: 0; }
body[data-tool="time-zone-converter"] .tf-setup-grid .tf-field { gap: 9px; }
body[data-tool="time-zone-converter"] .tf-city-selects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 720px; gap: 18px; margin: 28px auto 0; padding-top: 28px; border-top: 1px solid var(--tf-border); }
body[data-tool="time-zone-converter"] .tf-city-selects .tf-field { gap: 9px; }
body[data-tool="time-zone-converter"] .tf-tool-ui > .tf-controls { margin: 42px 0 40px; gap: 14px; }
body[data-tool="time-zone-converter"] .tf-tool-ui > .tf-controls .tf-control { min-width: 176px; min-height: 58px; border-radius: 16px; }
body[data-tool="time-zone-converter"] .tf-event-list { width: min(820px, 100%); gap: 16px; margin: 0 auto; }
body[data-tool="time-zone-converter"] .tf-event-row { min-height: 82px; padding: 20px 26px; border: 0; border-radius: 18px; background: color-mix(in srgb, var(--tf-surface-solid) 78%, var(--tf-bg-soft)); box-shadow: 0 12px 28px color-mix(in srgb, var(--tf-text) 7%, transparent); }
body[data-tool="time-zone-converter"] .tf-event-row strong { color: var(--tf-text); font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: 18px; }
body[data-tool="time-zone-converter"] .tf-event-row span { color: var(--tf-muted); font-size: 14px; font-variant-numeric: tabular-nums; text-align: right; }
body[data-tool="time-zone-converter"] .tf-tool-ui > .tf-helper { max-width: 760px; margin-top: 28px; }
body:is([data-tool="time-zone-converter"], [data-tool="meeting-time-converter"]) .tf-result-options { display: flex; justify-content: flex-end; width: min(720px, 100%); margin: 22px auto 14px; text-align: left; }
body:is([data-tool="time-zone-converter"], [data-tool="meeting-time-converter"]) .tf-result-options .tf-field { width: min(310px, 100%); }
body:is([data-tool="time-zone-converter"], [data-tool="meeting-time-converter"]) .tf-result-options .tf-input { min-height: 46px; }

@media (max-width: 780px) {
  body[data-tool="time-zone-converter"] .workbench-body { min-height: 0; padding: 34px 20px 52px; }
  body[data-tool="time-zone-converter"] .tf-tool-ui > .tf-kicker { margin-bottom: 26px; }
  body[data-tool="time-zone-converter"] .tf-setup-grid { grid-template-columns: 1fr; gap: 18px; }
  body[data-tool="time-zone-converter"] .tf-city-selects { grid-template-columns: 1fr; gap: 14px; margin-top: 24px; padding-top: 24px; }
  body[data-tool="time-zone-converter"] .tf-tool-ui > .tf-controls { margin: 34px 0 32px; }
  body[data-tool="time-zone-converter"] .tf-tool-ui > .tf-controls .tf-control { width: 100%; min-width: 0; }
  body[data-tool="time-zone-converter"] .tf-event-row { align-items: flex-start; flex-direction: column; gap: 8px; min-height: 0; padding: 18px 20px; }
  body[data-tool="time-zone-converter"] .tf-event-row span { text-align: left; }
  body:is([data-tool="time-zone-converter"], [data-tool="meeting-time-converter"]) .tf-result-options { justify-content: stretch; margin-top: 20px; }
  body:is([data-tool="time-zone-converter"], [data-tool="meeting-time-converter"]) .tf-result-options .tf-field { width: 100%; }
}

/* Keep feature actions in one quiet utility row instead of attaching them to
   the editorial card. The card stays focused on context; navigation remains
   in the global header and fullscreen stays available as a labeled action. */
body[data-feature] .feature-heading-actions { display: contents; }
body[data-feature] .feature-heading { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); align-items: start; gap: 30px 42px; }
body[data-feature] .feature-heading-actions .flip-heading-art { grid-column: 2; }
body[data-feature] .feature-heading-controls { grid-column: 2; justify-content: flex-end; width: 100%; padding-top: 2px; }
body[data-feature] .feature-heading-controls a,
body[data-feature="flip-clock"] .feature-actions [data-feature-fullscreen] { display: none; }
body[data-feature] .feature-heading-controls .round-action {
  width: auto;
  min-width: 0;
  height: 42px;
  padding: 0 15px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
body[data-feature] .feature-heading-controls .round-action:after { content: "Full screen"; font-size: 13px; }
body[data-feature="holidays"] .holidays-toolbar .feature-heading-controls { width: auto; padding-top: 0; }
body[data-feature="holidays"] .holidays-toolbar .feature-heading-controls .round-action { justify-content: center; }

@media (max-width: 780px) {
  body[data-feature] .feature-heading { display: flex; flex-direction: column; gap: 22px; }
  body[data-feature] .feature-heading-actions .flip-heading-art { grid-column: auto; }
  body[data-feature] .feature-heading-controls { justify-content: flex-start; }
}

/* One editorial scale across every TimeFK page and content section. */
body.timefk-body h2 { font-size: 2.25rem !important; }

/* Holidays explorer: keep the controls aligned, give the guidance card its
   own horizontal context row, and let the result grid use the full width. */
body[data-feature="holidays"] .holiday-controls { align-items: end; grid-template-columns: minmax(0, 1fr) 168px; }
body[data-feature="holidays"] .holiday-controls .search-field,
body[data-feature="holidays"] .holiday-controls .year-select select { height: 56px; min-height: 56px; box-sizing: border-box; }
body[data-feature="holidays"] .holiday-controls .search-field { align-self: end; }
body[data-feature="holidays"] .filter-tabs button.is-active,
body[data-feature="holidays"] .filter-tabs button:hover { color: var(--tf-surface-solid) !important; background: var(--tf-text) !important; border-color: var(--tf-text) !important; }
body[data-feature="holidays"] .holiday-layout { grid-template-columns: 1fr; gap: 24px; }
body[data-feature="holidays"] .holiday-layout > div:first-child { grid-column: 1; grid-row: 2; min-width: 0; }
body[data-feature="holidays"] .holiday-layout > .holiday-aside { grid-column: 1; grid-row: 1; position: static; display: grid; grid-template-columns: minmax(190px, .7fr) minmax(0, 1.6fr) auto; align-items: center; gap: 8px 28px; min-width: 0; padding: 22px 26px; }
body[data-feature="holidays"] .holiday-aside > .note-label { grid-column: 1; grid-row: 1; }
body[data-feature="holidays"] .holiday-aside > h2 { grid-column: 1; grid-row: 2; max-width: none; margin: 0; }
body[data-feature="holidays"] .holiday-aside > p { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
body[data-feature="holidays"] .holiday-aside > .holiday-source-meta { grid-column: 3; grid-row: 1; margin: 0; padding: 0; border: 0; }
body[data-feature="holidays"] .holiday-aside > .text-link { grid-column: 3; grid-row: 2; margin: 0; white-space: nowrap; }
body[data-feature="holidays"] .holiday-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

@media (max-width: 780px) {
  body[data-feature="holidays"] .holiday-controls { grid-template-columns: 1fr; }
  body[data-feature="holidays"] .holiday-layout > .holiday-aside { display: block; }
  body[data-feature="holidays"] .holiday-aside > h2 { margin: 10px 0 12px; }
  body[data-feature="holidays"] .holiday-aside > p { margin: 0; }
  body[data-feature="holidays"] .holiday-aside > .holiday-source-meta { margin: 18px 0 14px; padding-top: 14px; border-top: 1px solid var(--tf-border); }
  body[data-feature="holidays"] .holiday-aside > .text-link { display: inline-flex; }
  body[data-feature="holidays"] .holiday-list { grid-template-columns: minmax(0, 1fr); }
}

/* Data boundary is a short vertical note, not a second data column. */
body[data-feature="holidays"] .holiday-layout > .holiday-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 26px 30px;
}
body[data-feature="holidays"] .holiday-aside > .note-label { order: 1; }
body[data-feature="holidays"] .holiday-aside > h2 { order: 2; max-width: none; margin: 10px 0 10px; }
body[data-feature="holidays"] .holiday-aside > p {
  order: 3;
  max-width: 760px;
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
body[data-feature="holidays"] .holiday-aside > .holiday-source-meta {
  order: 4;
  display: flex;
  align-items: baseline;
  gap: 12px;
  width: 100%;
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--tf-border);
}
body[data-feature="holidays"] .holiday-aside > .text-link { order: 5; margin-top: 14px; }

/* Timer quick starts: keep all five presets in one readable row on the
   spacious two-column timer layouts, then return to a compact mobile grid. */
body:is([data-tool="timer"], [data-tool="presentation-timer"], [data-tool="classroom-timer"], [data-tool="exam-timer"]) .tf-timer-preset-block .tf-chip-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
body:is([data-tool="timer"], [data-tool="presentation-timer"], [data-tool="classroom-timer"], [data-tool="exam-timer"]) .tf-timer-preset-block .tf-chip { width: 100%; min-width: 0; padding-inline: 8px; white-space: nowrap; font-size: clamp(12px, 1.1vw, 15px); }

@media (max-width: 780px) {
  body:is([data-tool="timer"], [data-tool="presentation-timer"], [data-tool="classroom-timer"], [data-tool="exam-timer"]) .tf-timer-preset-block .tf-chip-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Timer control rhythm: let the preset area absorb the available height so
   its breathing room is balanced above and below, without a divider line. */
body:is([data-tool="timer"], [data-tool="presentation-timer"], [data-tool="classroom-timer"], [data-tool="exam-timer"]) .tf-timer-controls-panel { display: flex; flex-direction: column; }
body:is([data-tool="timer"], [data-tool="presentation-timer"], [data-tool="classroom-timer"], [data-tool="exam-timer"]) .tf-timer-fields { width: 100%; max-width: none; margin-bottom: 0; }
body:is([data-tool="timer"], [data-tool="presentation-timer"], [data-tool="classroom-timer"], [data-tool="exam-timer"]) .tf-timer-preset-block { display: flex; flex: 1 1 auto; flex-direction: column; justify-content: center; padding-top: 0; border-top: 0; }
body:is([data-tool="timer"], [data-tool="presentation-timer"], [data-tool="classroom-timer"], [data-tool="exam-timer"]) .tf-timer-preset-block .tf-timer-section-label { margin-bottom: 15px; }
body:is([data-tool="timer"], [data-tool="presentation-timer"], [data-tool="classroom-timer"], [data-tool="exam-timer"]) .tf-timer-action-row { margin-top: 0; padding-top: 0; border-top: 0; }
body:is([data-tool="timer"], [data-tool="presentation-timer"], [data-tool="classroom-timer"], [data-tool="exam-timer"]) .tf-timer-action-row .tf-controls { margin-top: 0; }

@media (max-width: 780px) {
  body:is([data-tool="timer"], [data-tool="presentation-timer"], [data-tool="classroom-timer"], [data-tool="exam-timer"]) .tf-timer-fields { margin-bottom: 24px; }
  body:is([data-tool="timer"], [data-tool="presentation-timer"], [data-tool="classroom-timer"], [data-tool="exam-timer"]) .tf-timer-preset-block { flex: 0 0 auto; }
  body:is([data-tool="timer"], [data-tool="presentation-timer"], [data-tool="classroom-timer"], [data-tool="exam-timer"]) .tf-timer-action-row { margin-top: 28px; }
}

/* Searchable timezone picker: keep the native select as the value layer, but
   give long city lists a compact, keyboard-friendly search surface. */
.tf-search-select { position: relative; width: 100%; }
.tf-search-select-trigger { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid var(--tf-border-strong); border-radius: 10px; color: var(--tf-text); background: var(--tf-bg-soft); font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.tf-search-select-trigger:hover, .tf-search-select.is-open .tf-search-select-trigger { border-color: var(--tf-amber); }
.tf-search-select-trigger:focus-visible, .tf-search-select-option:focus-visible, .tf-search-select-input:focus-visible { outline: 2px solid color-mix(in srgb, var(--tf-amber) 56%, transparent); outline-offset: 2px; }
.tf-search-select-arrow { flex: 0 0 auto; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .18s ease; }
.tf-search-select.is-open .tf-search-select-arrow { transform: rotate(225deg) translate(-1px, -1px); }
.tf-search-select-menu { position: absolute; z-index: 80; top: calc(100% + 8px); left: 0; right: 0; overflow: hidden; border: 1px solid var(--tf-border-strong); border-radius: 14px; background: var(--tf-surface-solid); box-shadow: 0 18px 38px color-mix(in srgb, var(--tf-text) 18%, transparent); text-align: left; }
.tf-search-select-input { display: block; width: calc(100% - 20px); min-height: 42px; margin: 10px; padding: 0 12px; border: 1px solid var(--tf-border); border-radius: 9px; color: var(--tf-text); background: var(--tf-bg-soft); font: inherit; }
.tf-search-select-options { max-height: 290px; padding: 0 8px 8px; overflow-y: auto; overscroll-behavior: contain; }
.tf-search-select-option { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 44px; padding: 8px 10px; border: 0; border-radius: 8px; color: var(--tf-text); background: transparent; font: inherit; text-align: left; cursor: pointer; }
.tf-search-select-option:hover, .tf-search-select-option.is-selected { color: var(--tf-text); background: color-mix(in srgb, var(--tf-amber) 14%, var(--tf-bg-soft)); }
.tf-search-select-option span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tf-search-select-option small { flex: 0 0 auto; color: var(--tf-muted); font-size: 11px; font-weight: 500; }
.tf-search-select-empty { padding: 18px 10px 20px; color: var(--tf-muted); font-size: 13px; text-align: center; }
.tf-search-select-native { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; opacity: 0 !important; pointer-events: none !important; }

/* The source and destination layers share one readable measure. */
body:is([data-tool="time-zone-converter"], [data-tool="meeting-time-converter"]) .tf-setup-grid,
body:is([data-tool="time-zone-converter"], [data-tool="meeting-time-converter"]) .tf-city-selects { width: min(720px, 100%); max-width: none; }
body:is([data-tool="time-zone-converter"], [data-tool="meeting-time-converter"]) .tf-city-selects { margin-inline: auto; }

@media (max-width: 780px) {
  .tf-search-select-menu { position: fixed; top: auto; left: 16px; right: 16px; bottom: 16px; max-height: min(430px, calc(100vh - 32px)); border-radius: 16px; }
  .tf-search-select-options { max-height: min(320px, calc(100vh - 140px)); }
}
