/* ==========================================================================
   Время онлайн — design system
   Light/dark themes, fluid type, motion. No external fonts or assets.
   ========================================================================== */

:root {
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "SF Mono", ui-monospace, "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
    --accent: #6d5efc;
    --accent-soft: #8ea2ff;
    --accent-2: #3fd0d8;
    --accent-3: #ffa24d;
    --accent-4: #c084fc;
    --ok: #3ecf8e;
    --warn: #ffb547;
    --danger: #ff6b6b;
    --container: 1180px;
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 11px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --speed: .28s;
    --gradient: linear-gradient(120deg, #8ea2ff 0%, #6d5efc 48%, #3fd0d8 100%);
    --gradient-soft: linear-gradient(140deg, rgba(109, 94, 252, .22), rgba(63, 208, 216, .12));
    --header-h: 72px;
}

[data-theme="dark"] {
    --bg: #070b14;
    --bg-soft: #0a1020;
    --surface: rgba(17, 25, 43, .74);
    --surface-solid: #111a2b;
    --surface-2: rgba(255, 255, 255, .045);
    --surface-3: rgba(255, 255, 255, .075);
    --border: rgba(255, 255, 255, .085);
    --border-strong: rgba(255, 255, 255, .16);
    --text: #eef2fb;
    --muted: #9aa8c2;
    --faint: #6d7c98;
    --shadow: 0 30px 80px -34px rgba(0, 0, 0, .9);
    --shadow-soft: 0 16px 40px -22px rgba(0, 0, 0, .7);
    --header-bg: rgba(7, 11, 20, .76);
    --input-bg: rgba(255, 255, 255, .05);
    --chart-bar: linear-gradient(180deg, #93a4ff, #5b4ef0);
    --orb-1: rgba(109, 94, 252, .38);
    --orb-2: rgba(63, 208, 216, .22);
    --orb-3: rgba(192, 132, 252, .18);
    --grid-line: rgba(255, 255, 255, .035);
    --selection: rgba(109, 94, 252, .42);
    --ring-track: rgba(255, 255, 255, .07);
    --analog-face: rgba(255, 255, 255, .028);
}

[data-theme="light"] {
    --bg: #f3f5fc;
    --bg-soft: #ffffff;
    --surface: rgba(255, 255, 255, .86);
    --surface-solid: #ffffff;
    --surface-2: rgba(13, 24, 48, .04);
    --surface-3: rgba(13, 24, 48, .07);
    --border: rgba(13, 24, 48, .09);
    --border-strong: rgba(13, 24, 48, .17);
    --text: #0d1628;
    --muted: #55627d;
    --faint: #7f8ca4;
    --shadow: 0 26px 60px -32px rgba(31, 45, 84, .38);
    --shadow-soft: 0 14px 34px -20px rgba(31, 45, 84, .28);
    --header-bg: rgba(247, 249, 255, .82);
    --input-bg: #ffffff;
    --chart-bar: linear-gradient(180deg, #8b9bff, #5b4ef0);
    --orb-1: rgba(109, 94, 252, .2);
    --orb-2: rgba(63, 208, 216, .18);
    --orb-3: rgba(255, 162, 77, .16);
    --grid-line: rgba(13, 24, 48, .045);
    --selection: rgba(109, 94, 252, .2);
    --ring-track: rgba(13, 24, 48, .09);
    --analog-face: rgba(13, 24, 48, .025);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background-color .4s ease, color .4s ease;
}

body.nav-open { overflow: hidden; }

::selection { background: var(--selection); }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-soft); }

img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
[hidden] { display: none !important; }

:focus-visible {
    outline: 2px solid var(--accent-soft);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 200;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--surface-solid);
    border: 1px solid var(--border-strong);
    transform: translateY(-160%);
    transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(18px, 4vw, 32px);
}

.ico { flex: 0 0 auto; }

/* ---------------------------------------------------------------- backdrop */
.backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(120% 80% at 50% -10%, var(--surface-2), transparent 60%),
        var(--bg);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .9;
    animation: drift 26s ease-in-out infinite alternate;
}
.orb-1 { width: 520px; height: 520px; left: -160px; top: -180px; background: var(--orb-1); }
.orb-2 { width: 460px; height: 460px; right: -140px; top: 8%; background: var(--orb-2); animation-delay: -8s; }
.orb-3 { width: 400px; height: 400px; left: 32%; bottom: -220px; background: var(--orb-3); animation-delay: -15s; }

.grid-glow {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(80% 60% at 50% 0%, #000 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(80% 60% at 50% 0%, #000 0%, transparent 75%);
}

@keyframes drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(40px, 30px, 0) scale(1.08); }
}

/* ------------------------------------------------------------------ header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    height: var(--header-h);
    background: var(--header-bg);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -.01em;
    white-space: nowrap;
}
.brand:hover { color: var(--text); }
.brand-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 13px;
    color: var(--accent-soft);
    background: var(--gradient-soft);
    border: 1px solid var(--border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
}
.brand-text { display: inline-flex; align-items: baseline; gap: 4px; }
.brand-text strong { font-weight: 750; }
.brand-text span { color: var(--muted); font-weight: 500; }

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.nav-link {
    position: relative;
    padding: 9px 15px;
    border-radius: 999px;
    font-size: .92rem;
    font-weight: 550;
    color: var(--muted);
    transition: color var(--speed) ease, background var(--speed) ease;
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link.is-active {
    color: var(--text);
    background: var(--surface-3);
    box-shadow: inset 0 0 0 1px var(--border);
}
.nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 3px;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: var(--gradient);
    transform: translateX(-50%);
}

.header-actions { display: flex; align-items: center; gap: 8px; }

.theme-toggle {
    position: relative;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    overflow: hidden;
    transition: transform var(--speed) var(--ease), border-color var(--speed) ease;
}
.theme-toggle:hover { transform: rotate(-12deg); border-color: var(--border-strong); }
.theme-icon { position: absolute; transition: opacity .3s ease, transform .4s var(--ease); }
[data-theme="dark"] .theme-icon-moon { opacity: 0; transform: translateY(14px) rotate(40deg); }
[data-theme="dark"] .theme-icon-sun { opacity: 1; transform: none; }
[data-theme="light"] .theme-icon-sun { opacity: 0; transform: translateY(-14px) rotate(-40deg); }
[data-theme="light"] .theme-icon-moon { opacity: 1; transform: none; }

.nav-toggle {
    display: none;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
}
.nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: inline-flex; }

/* --------------------------------------------------------------- primitives */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .76rem;
    font-weight: 650;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent-soft);
}
[data-theme="light"] .eyebrow { color: #5b4ef0; }

.pulse-dot, .live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 0 0 rgba(62, 207, 142, .5);
    animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(62, 207, 142, .45); }
    60% { box-shadow: 0 0 0 8px rgba(62, 207, 142, 0); }
    100% { box-shadow: 0 0 0 0 rgba(62, 207, 142, 0); }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 20px;
    border-radius: 13px;
    border: 1px solid transparent;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    transition: transform var(--speed) var(--ease), box-shadow var(--speed) ease,
                background var(--speed) ease, border-color var(--speed) ease, color var(--speed) ease;
}
.btn:active { transform: scale(.975); }
.btn-lg { padding: 15px 26px; font-size: 1rem; border-radius: 15px; }
.btn-sm { padding: 9px 14px; font-size: .86rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 14px 30px -12px rgba(109, 94, 252, .75), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 20px 38px -14px rgba(109, 94, 252, .85); }
.btn-primary:active { transform: translateY(0) scale(.98); }
.btn-ghost {
    background: var(--surface-2);
    border-color: var(--border);
    color: var(--text);
}
.btn-ghost:hover { background: var(--surface-3); border-color: var(--border-strong); color: var(--text); transform: translateY(-1px); }
.btn-danger { background: rgba(255, 107, 107, .12); border-color: rgba(255, 107, 107, .35); color: #ff8f8f; }
.btn-danger:hover { background: rgba(255, 107, 107, .2); color: #ffb3b3; }
.btn[disabled] { opacity: .42; pointer-events: none; }

.chip {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    font-size: .86rem;
    font-weight: 600;
    color: var(--muted);
    transition: all var(--speed) ease;
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.is-active {
    color: #fff;
    background: var(--gradient);
    border-color: transparent;
    box-shadow: 0 8px 18px -10px rgba(109, 94, 252, .9);
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}
.badges li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--muted);
    font-size: .8rem;
    font-weight: 550;
}
.badges .ico { color: var(--accent-2); }

.select-wrap {
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--faint);
}
.select-wrap select {
    appearance: none;
    min-width: 190px;
    padding: 10px 38px 10px 14px;
    border-radius: 11px;
    border: 1px solid var(--border);
    background: var(--input-bg);
    color: var(--text);
    font-size: .92rem;
    font-weight: 550;
    letter-spacing: 0;
    text-transform: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                      linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 19px) center, calc(100% - 14px) center;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    cursor: pointer;
}
.select-wrap select:hover { border-color: var(--border-strong); }

.check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: .9rem;
    color: var(--muted);
    cursor: pointer;
    user-select: none;
}
.check input {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1.5px solid var(--border-strong);
    background: var(--input-bg);
    display: grid;
    place-items: center;
    transition: all .2s ease;
    flex: 0 0 auto;
}
.check input::after {
    content: "";
    width: 9px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) scale(0);
    transition: transform .18s var(--ease);
    margin-top: -2px;
}
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { transform: rotate(-45deg) scale(1); }

.section { padding: clamp(56px, 8vw, 92px) 0; position: relative; }
.section--tight { padding-block: clamp(40px, 5vw, 60px); }
.section--muted { background: linear-gradient(180deg, transparent, var(--surface-2) 18%, var(--surface-2) 82%, transparent); }
.section--cta { padding-bottom: clamp(70px, 9vw, 110px); }

.section-head { max-width: 660px; margin-bottom: 34px; }
.section-head h2 {
    margin-top: 10px;
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    line-height: 1.14;
    letter-spacing: -.025em;
    font-weight: 720;
}
.section-sub { margin-top: 12px; color: var(--muted); font-size: 1.02rem; }
.section-head--row {
    max-width: none;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.section-hint { color: var(--faint); font-size: .85rem; }
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--accent-soft);
    font-weight: 600;
    font-size: .92rem;
}

/* -------------------------------------------------------------------- hero */
.hero { padding: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 48px); }
.hero-grid {
    display: grid;
    grid-template-columns: 1.06fr .94fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}
.hero-grid > * { min-width: 0; }
.hero-copy h1 {
    margin-top: 18px;
    font-size: clamp(2.4rem, 5.2vw, 4.05rem);
    line-height: 1.02;
    letter-spacing: -.04em;
    font-weight: 760;
    background: linear-gradient(180deg, var(--text) 30%, var(--muted) 130%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-lead {
    margin-top: 20px;
    max-width: 520px;
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    color: var(--muted);
    line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(20px, 4vw, 44px);
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.hero-stats div { display: flex; flex-direction: column; gap: 2px; }
.hero-stats dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); }
.hero-stats dd { margin: 0; font-size: 1.15rem; font-weight: 700; }

.hero-visual { position: relative; padding: 18px 10px 80px; }
.hero-clock-card {
    position: relative;
    z-index: 2;
    overflow: hidden;
    padding: clamp(22px, 3vw, 32px);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(90% 80% at 85% 0%, rgba(63, 208, 216, .14), transparent 60%),
        radial-gradient(80% 70% at 0% 100%, rgba(109, 94, 252, .2), transparent 60%),
        var(--surface);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .07);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.hero-clock-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(140deg, rgba(142, 162, 255, .55), transparent 40%, rgba(63, 208, 216, .4));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.hero-clock-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}
.hero-clock-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    font-size: .78rem;
    font-weight: 600;
    color: var(--muted);
}
.hero-clock-zone { font-size: .8rem; color: var(--faint); font-weight: 600; }
.hero-clock-digits {
    display: flex;
    align-items: baseline;
    gap: 2px;
    max-width: 100%;
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: clamp(2.4rem, 11.5vw, 4.4rem);
    font-weight: 600;
    letter-spacing: -.055em;
    line-height: 1;
    white-space: nowrap;
}
.hero-clock-sec { color: var(--accent-2); }
.clock-colon { color: var(--faint); animation: blink 2s steps(1) infinite; }
@keyframes blink { 50% { opacity: .35; } }
.hero-clock-date { margin-top: 14px; color: var(--muted); font-size: .92rem; }
.hero-clock-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.hero-clock-foot span {
    font-size: .74rem;
    color: var(--faint);
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--surface-2);
}

.float-badge {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    background: var(--surface-solid);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    font-size: .8rem;
    font-weight: 600;
    color: var(--muted);
    animation: floaty 6s ease-in-out infinite;
}
.float-badge .ico { color: var(--accent-2); }
.float-badge-1 { top: -4px; right: 14px; animation-delay: -1s; }
.float-badge-2 { left: 14px; bottom: 16px; animation-delay: -3s; }
.float-badge-3 { right: 14px; bottom: 16px; animation-delay: -5s; }

@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

/* --------------------------------------------------------------- tool cards */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(14px, 2vw, 22px);
}
.tool-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: clamp(22px, 3vw, 30px);
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: transform .35s var(--ease), border-color var(--speed) ease, box-shadow .35s ease;
}
.tool-card--clock { --card-accent: 142, 162, 255; }
.tool-card--timer { --card-accent: 63, 208, 216; }
.tool-card--stopwatch { --card-accent: 255, 162, 77; }
.tool-card--alarm { --card-accent: 192, 132, 252; }
.tool-card:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--card-accent), .45);
    box-shadow: 0 28px 60px -30px rgba(var(--card-accent), .55);
    color: var(--text);
}
.tool-card-glow {
    position: absolute;
    width: 260px;
    height: 260px;
    right: -90px;
    top: -110px;
    border-radius: 50%;
    background: rgba(var(--card-accent), .18);
    filter: blur(50px);
    opacity: 0;
    transition: opacity .45s ease;
}
.tool-card:hover .tool-card-glow { opacity: 1; }
.tool-card-head { display: flex; align-items: flex-start; justify-content: space-between; }
.tool-card-icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 15px;
    color: rgb(var(--card-accent));
    background: rgba(var(--card-accent), .12);
    border: 1px solid rgba(var(--card-accent), .22);
}
.tool-card-index {
    font-family: var(--font-mono);
    font-size: .78rem;
    color: var(--faint);
    letter-spacing: .1em;
}
.tool-card-kicker {
    display: block;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: rgb(var(--card-accent));
    font-weight: 650;
    margin-bottom: 6px;
}
.tool-card h3 { font-size: 1.5rem; letter-spacing: -.02em; font-weight: 700; }
.tool-card-text { display: block; margin-top: 8px; color: var(--muted); font-size: .94rem; line-height: 1.6; }
.tool-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}
.tool-card-hint { font-size: .8rem; color: var(--faint); }
.tool-card-open {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .86rem;
    font-weight: 650;
    color: rgb(var(--card-accent));
}
.tool-card-open .ico { transition: transform var(--speed) var(--ease); }
.tool-card:hover .tool-card-open .ico { transform: translateX(4px); }

/* ---------------------------------------------------------------- benefits */
.benefit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(14px, 2vw, 20px);
}
.benefit {
    padding: 24px 22px;
    border-radius: var(--radius-md);
    background: var(--surface-2);
    border: 1px solid var(--border);
    transition: border-color var(--speed) ease, transform var(--speed) var(--ease);
}
.benefit:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.benefit-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: var(--accent-soft);
    background: var(--surface-3);
    margin-bottom: 16px;
}
.benefit h2 { font-size: 1.08rem; font-weight: 680; letter-spacing: -.01em; }
.benefit p { margin-top: 8px; color: var(--muted); font-size: .9rem; line-height: 1.6; }

/* -------------------------------------------------------------- prose + faq */
.two-col {
    display: grid;
    grid-template-columns: 1.12fr .88fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
}
.prose h2 {
    margin-top: 12px;
    font-size: clamp(1.65rem, 3vw, 2.3rem);
    line-height: 1.15;
    letter-spacing: -.025em;
    font-weight: 720;
}
.prose h3 {
    margin-top: 30px;
    font-size: 1.16rem;
    font-weight: 680;
    letter-spacing: -.01em;
}
.prose p { margin-top: 14px; color: var(--muted); line-height: 1.78; }
.faq-panel {
    padding: clamp(22px, 3vw, 30px);
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}
.faq-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.faq-list { display: grid; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 0;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    transition: color var(--speed) ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-soft); }
.faq-icon { color: var(--faint); transition: transform .3s var(--ease); }
.faq-item[open] .faq-icon { transform: rotate(180deg); color: var(--accent-soft); }
.faq-answer { overflow: hidden; animation: faqIn .35s var(--ease); }
.faq-answer p { padding: 0 0 16px; color: var(--muted); font-size: .92rem; line-height: 1.7; }
@keyframes faqIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------- CTA */
.cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: clamp(28px, 4vw, 48px);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(100% 160% at 100% 0%, rgba(63, 208, 216, .18), transparent 55%),
        radial-gradient(90% 140% at 0% 100%, rgba(109, 94, 252, .26), transparent 60%),
        var(--surface);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow);
}
.cta-card h2 { margin-top: 10px; font-size: clamp(1.5rem, 2.8vw, 2.05rem); line-height: 1.2; letter-spacing: -.02em; }
.cta-card p:not(.eyebrow) { margin-top: 10px; color: var(--muted); max-width: 560px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; flex: 0 0 auto; }

/* ------------------------------------------------------------------ footer */
.site-footer {
    margin-top: 20px;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, transparent, var(--surface-2));
    padding-top: 46px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 34px;
}
.footer-brand p { margin-top: 14px; max-width: 380px; color: var(--muted); font-size: .9rem; }
.brand--footer { font-size: 1rem; }
.footer-col h2 {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--faint);
    margin-bottom: 14px;
    font-weight: 650;
}
.footer-col ul { display: grid; gap: 9px; }
.footer-col a { color: var(--muted); font-size: .92rem; }
.footer-col a:hover { color: var(--text); }
.footer-note { margin-top: 16px; color: var(--faint); font-size: .8rem; }
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 18px 0 26px;
    border-top: 1px solid var(--border);
    color: var(--faint);
    font-size: .82rem;
}
.footer-tech { display: inline-flex; align-items: center; gap: 8px; }
.footer-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 8px var(--ok);
}

/* ------------------------------------------------------------------- toast */
.toast-region {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 120;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100vw - 36px));
    pointer-events: none;
}
.toast {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--surface-solid);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow);
    font-size: .9rem;
    animation: toastIn .35s var(--ease);
    pointer-events: auto;
}
.toast.is-hiding { animation: toastOut .25s ease forwards; }
.toast-text { flex: 1; min-width: 0; }
.toast-action {
    align-self: center;
    padding: 6px 11px;
    border-radius: 9px;
    border: 1px solid var(--border-strong);
    background: var(--surface-2);
    font-size: .78rem;
    font-weight: 600;
    color: var(--accent-soft);
    white-space: nowrap;
}
.toast-action:hover { background: var(--surface-3); }
.chip.is-disabled, .chip:disabled { opacity: .45; cursor: not-allowed; }
.time-field input:disabled { opacity: .55; cursor: not-allowed; }
.toast-icon { color: var(--accent-2); margin-top: 1px; }
.toast--error .toast-icon { color: var(--danger); }
.toast--ok .toast-icon { color: var(--ok); }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px) scale(.98); } }

.noscript {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 100;
    max-width: 620px;
    padding: 12px 18px;
    border-radius: 12px;
    background: #2a1d0b;
    color: #ffd08a;
    border: 1px solid #6b4a16;
    font-size: .88rem;
    text-align: center;
}

/* ==========================================================================
   Tool pages
   ========================================================================== */
.tool-container { padding-top: clamp(22px, 3vw, 34px); padding-bottom: clamp(40px, 6vw, 70px); }

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: .82rem;
    color: var(--faint);
    margin-bottom: 20px;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent-soft); }
.breadcrumbs [aria-current="page"] { color: var(--text); font-weight: 550; }

.page-head { max-width: 850px; margin-bottom: clamp(24px, 3vw, 34px); }
.page-head h1 {
    margin-top: 12px;
    font-size: clamp(2rem, 4.4vw, 3.15rem);
    line-height: 1.08;
    letter-spacing: -.035em;
    font-weight: 750;
}
.page-lead { margin-top: 14px; color: var(--muted); font-size: clamp(.98rem, 1.4vw, 1.08rem); max-width: 720px; }

.tool-shell {
    position: relative;
    padding: clamp(20px, 3.4vw, 40px);
    border-radius: var(--radius-xl);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .05);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    overflow: hidden;
}
.tool-shell::before {
    content: "";
    position: absolute;
    width: 460px;
    height: 460px;
    top: -260px;
    left: -140px;
    border-radius: 50%;
    background: rgba(109, 94, 252, .16);
    filter: blur(80px);
    pointer-events: none;
}

/* ------------------------------------------------------------------- clock */
.clock-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.32fr) minmax(0, .78fr);
    gap: clamp(26px, 4vw, 48px);
    align-items: center;
}
.clock-main { min-width: 0; }
.clock-status {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: .8rem;
    font-weight: 550;
    color: var(--muted);
    flex-wrap: wrap;
}
.clock-zone-label {
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(63, 208, 216, .1);
    border: 1px solid rgba(63, 208, 216, .25);
    color: var(--accent-2);
    font-size: .74rem;
    font-weight: 650;
}
.clock-digits {
    display: flex;
    align-items: baseline;
    gap: 1px;
    margin: 14px 0 12px;
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: clamp(3.2rem, 9.4vw, 6.6rem);
    font-weight: 600;
    letter-spacing: -.055em;
    line-height: .95;
    white-space: nowrap;
}
.clock-sec { color: var(--accent-2); }
.clock-date { color: var(--muted); font-size: clamp(.92rem, 1.4vw, 1.05rem); text-transform: capitalize; }
.clock-actions { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: 26px; }

.clock-side {
    border-left: 1px solid var(--border);
    padding-left: clamp(24px, 3vw, 40px);
    min-width: 0;
}
.analog-card { max-width: 240px; margin: 0 auto 18px; }
.analog { width: 100%; height: auto; }
.analog-face { fill: var(--analog-face); stroke: var(--border); stroke-width: 1.5; }
.analog-inner { fill: none; stroke: var(--border); stroke-width: .8; stroke-dasharray: 2 5; }
.tick { stroke: var(--faint); stroke-width: 1; opacity: .55; }
.tick--major { stroke: var(--muted); stroke-width: 2.2; opacity: .9; }
.analog-num {
    fill: var(--muted);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    text-anchor: middle;
}
.hand { stroke-linecap: round; transform-box: view-box; transform-origin: 100px 100px; will-change: transform; }
.hand-hour { stroke: var(--text); stroke-width: 4.5; }
.hand-minute { stroke: var(--text); stroke-width: 3; opacity: .85; }
.hand-second { stroke: var(--accent-2); stroke-width: 1.6; }
.analog-pin { fill: var(--accent-2); }

.fact-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 0;
}
.fact-list div {
    padding: 10px 8px;
    border-radius: 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    text-align: center;
}
.fact-list dt { font-size: .64rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.fact-list dd { margin: 3px 0 0; font-family: var(--font-mono); font-size: .86rem; font-weight: 600; }

.world-section { margin-top: clamp(34px, 5vw, 52px); }
.world-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
    gap: 10px;
}
.world-card {
    padding: 14px 15px;
    border-radius: 14px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    transition: border-color var(--speed) ease, transform var(--speed) var(--ease);
}
.world-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.world-card.is-home { border-color: rgba(63, 208, 216, .35); background: rgba(63, 208, 216, .07); }
.world-card-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.world-city { font-weight: 650; font-size: .88rem; }
.world-offset { font-size: .68rem; color: var(--faint); font-family: var(--font-mono); }
.world-time { font-family: var(--font-mono); font-size: 1.22rem; font-weight: 600; margin-top: 6px; font-variant-numeric: tabular-nums; }
.world-date { font-size: .72rem; color: var(--faint); margin-top: 1px; }

/* ------------------------------------------------------------------- timer */
.timer-shell {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: clamp(28px, 4vw, 52px);
    align-items: center;
}
.timer-dial-wrap { min-width: 0; }
.timer-dial {
    position: relative;
    width: min(330px, 100%);
    aspect-ratio: 1;
    margin-inline: auto;
}
.dial-svg { width: 100%; height: 100%; }
.dial-track { fill: none; stroke: var(--ring-track); stroke-width: 11; }
.dial-progress {
    fill: none;
    stroke: var(--accent);
    stroke-width: 11;
    stroke-linecap: round;
    stroke-dasharray: 691.15;
    stroke-dashoffset: 0;
    filter: drop-shadow(0 0 10px rgba(109, 94, 252, .45));
    transition: stroke-dashoffset .25s linear, stroke .3s ease;
}
.timer-shell.is-finished .dial-progress {
    stroke: var(--accent-3);
    filter: drop-shadow(0 0 16px rgba(255, 162, 77, .7));
    animation: finishGlow 1.4s ease-in-out infinite;
}
@keyframes finishGlow {
    50% { opacity: .45; }
}
.dial-content {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 7px;
    text-align: center;
    padding: 24px;
}
.timer-digits {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: clamp(2.1rem, 5.4vw, 3.1rem);
    font-weight: 600;
    letter-spacing: -.045em;
    line-height: 1;
    white-space: nowrap;
}
.dial-caption { font-size: .82rem; font-weight: 650; color: var(--accent-2); }
.timer-shell.is-finished .dial-caption { color: var(--accent-3); }
.dial-sub { font-size: .72rem; color: var(--faint); max-width: 200px; line-height: 1.45; }

.timer-panel { min-width: 0; }
.timer-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.timer-presets .chip { padding: 8px 6px; font-size: .8rem; text-align: center; }
.time-inputs { display: flex; align-items: flex-end; gap: 8px; margin-top: 20px; }
.time-field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.time-field span { font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; color: var(--faint); text-align: center; font-weight: 600; }
.time-field input {
    width: 100%;
    padding: 12px 6px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--input-bg);
    text-align: center;
    font-family: var(--font-mono);
    font-size: 1.45rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    -moz-appearance: textfield;
    appearance: textfield;
}
.time-field input::-webkit-outer-spin-button,
.time-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.time-field input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(109, 94, 252, .18); }
.time-sep { font-family: var(--font-mono); font-size: 1.3rem; color: var(--faint); padding-bottom: 12px; }
.timer-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.timer-toggle { min-width: 188px; }
.btn-icon { display: inline-flex; align-items: center; }
.timer-options {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.panel-note { margin-top: 16px; font-size: .78rem; color: var(--faint); line-height: 1.55; }

/* --------------------------------------------------------------- stopwatch */
.stopwatch-shell { text-align: center; }
.stopwatch-display-wrap { padding: clamp(10px, 3vw, 26px) 0 8px; }
.stopwatch-state {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: .8rem;
    font-weight: 550;
    color: var(--muted);
}
.stopwatch-state .live-dot { background: var(--faint); animation: none; box-shadow: none; }
.stopwatch-shell.is-running .stopwatch-state .live-dot { background: var(--ok); animation: pulse 2s infinite; }
.stopwatch-shell.is-running .stopwatch-state { color: var(--ok); }
.stopwatch-shell.is-paused .stopwatch-state .live-dot { background: var(--warn); }
.stopwatch-display {
    margin: 14px 0 4px;
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: clamp(3rem, 11vw, 6.4rem);
    font-weight: 600;
    letter-spacing: -.05em;
    line-height: 1;
    white-space: nowrap;
}
.sw-centi { font-size: .62em; color: var(--muted); letter-spacing: -.04em; }
.stopwatch-hint { font-size: .78rem; color: var(--faint); }
.stopwatch-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.sw-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 30px;
    padding: 16px;
    border-radius: 16px;
    background: var(--surface-2);
    border: 1px solid var(--border);
}
.sw-stats div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sw-stats span { font-size: .64rem; text-transform: uppercase; letter-spacing: .09em; color: var(--faint); }
.sw-stats strong { font-family: var(--font-mono); font-size: clamp(.95rem, 2vw, 1.15rem); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }

.laps-panel { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--border); text-align: left; }
.laps-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.laps-head h2 { font-size: 1.08rem; font-weight: 680; }
.laps-count {
    min-width: 30px;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    font-size: .76rem;
    text-align: center;
    color: var(--muted);
}
.laps-scroll {
    max-height: 330px;
    overflow: auto;
    margin-top: 14px;
    border-radius: 13px;
    border: 1px solid var(--border);
}
.laps-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.laps-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 10px 14px;
    background: var(--surface-solid);
    border-bottom: 1px solid var(--border);
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--faint);
    font-weight: 650;
    text-align: left;
}
.laps-table th:nth-child(2), .laps-table th:nth-child(3) { text-align: right; }
.laps-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}
.laps-table tbody tr:last-child td { border-bottom: 0; }
.laps-table td:nth-child(2), .laps-table td:nth-child(3) { text-align: right; font-family: var(--font-mono); color: var(--text); }
.laps-table td:first-child { font-family: var(--font-mono); color: var(--faint); }
.laps-table tr.is-best td { background: rgba(62, 207, 142, .07); }
.laps-table tr.is-best td:nth-child(2) { color: var(--ok); }
.laps-table tr.is-worst td { background: rgba(255, 107, 107, .06); }
.laps-table tr.is-worst td:nth-child(2) { color: var(--danger); }
.lap-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: .6rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    background: rgba(62, 207, 142, .14);
    color: var(--ok);
}
.lap-tag--worst { background: rgba(255, 107, 107, .14); color: var(--danger); }
.laps-empty { margin-top: 12px; font-size: .82rem; color: var(--faint); }
.laps-panel[hidden] { display: none; }

/* ------------------------------------------------------------------- alarm */
.alarm-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: clamp(18px, 3vw, 26px);
    border-radius: 20px;
    background:
        radial-gradient(100% 160% at 100% 0%, rgba(192, 132, 252, .16), transparent 60%),
        var(--surface-2);
    border: 1px solid var(--border);
    margin-bottom: 22px;
}
.alarm-hero-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); font-weight: 650; }
.alarm-hero-time { margin-top: 6px; font-size: clamp(1.35rem, 3vw, 1.95rem); font-weight: 700; letter-spacing: -.02em; }
.alarm-hero-countdown { margin-top: 5px; font-size: .88rem; color: var(--muted); }
.alarm-hero-icon {
    width: 74px;
    height: 74px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: var(--accent-4);
    background: rgba(192, 132, 252, .12);
    border: 1px solid rgba(192, 132, 252, .28);
}

.alarm-form {
    padding: clamp(18px, 3vw, 26px);
    border-radius: 20px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    display: grid;
    gap: 18px;
}
.alarm-form-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
.alarm-form-row--main .field--time { flex: 0 0 180px; }
.field { display: flex; flex-direction: column; gap: 7px; flex: 1; min-width: 0; }
.seo-form-row > * { min-width: 0; }
.field > span { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); font-weight: 650; }
.field input,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--input-bg);
    color: var(--text);
    font-size: .95rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(109, 94, 252, .18);
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field--time input {
    font-family: var(--font-mono);
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: .03em;
    padding-block: 8px;
    color-scheme: dark;
}
[data-theme="light"] .field--time input { color-scheme: light; }

.weekday-picker { display: flex; flex-direction: column; gap: 9px; }
.field-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); font-weight: 650; }
.weekdays { display: flex; flex-wrap: wrap; gap: 8px; }
.weekday {
    width: 47px;
    height: 47px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--input-bg);
    color: var(--muted);
    font-size: .84rem;
    font-weight: 650;
    transition: all .22s var(--ease);
}
.weekday:hover { border-color: var(--border-strong); color: var(--text); }
.weekday[aria-pressed="true"] {
    background: var(--gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 18px -10px rgba(109, 94, 252, .9);
}
.weekday-hint { font-size: .76rem; color: var(--faint); }
.alarm-form-actions { display: flex; flex-wrap: wrap; gap: 9px; }

.alarm-list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 30px 0 12px; }
.alarm-list-head h2 { font-size: 1.1rem; font-weight: 680; }
.alarm-list-count {
    min-width: 30px;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    font-size: .76rem;
    color: var(--muted);
    text-align: center;
}
.alarm-list { display: grid; gap: 9px; }
.alarm-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 18px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    transition: opacity .25s ease, border-color var(--speed) ease, transform var(--speed) var(--ease);
    flex-wrap: wrap;
}
.alarm-item:hover { border-color: var(--border-strong); }
.alarm-item.is-off { opacity: .55; }
.alarm-item-time { font-family: var(--font-mono); font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.alarm-item-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.alarm-item-label { font-weight: 600; font-size: .94rem; }
.alarm-item-repeat { font-size: .76rem; color: var(--faint); }
.alarm-item-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    transition: all .2s ease;
}
.icon-btn:hover { color: var(--danger); border-color: rgba(255, 107, 107, .4); background: rgba(255, 107, 107, .08); }

.switch { position: relative; width: 46px; height: 26px; flex: 0 0 auto; display: inline-block; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; z-index: 2; cursor: pointer; }
.switch-track { position: absolute; inset: 0; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--border); transition: background .25s ease; }
.switch-track::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--muted);
    transition: transform .25s var(--ease), background .25s ease;
}
.switch input:checked + .switch-track { background: var(--accent); border-color: transparent; }
.switch input:checked + .switch-track::after { transform: translateX(20px); background: #fff; }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--accent-soft); outline-offset: 3px; }

.alarm-empty {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
    border-radius: 16px;
    border: 1px dashed var(--border-strong);
    color: var(--faint);
    font-size: .88rem;
}
.alarm-empty-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); flex: 0 0 auto; }

.alarm-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(4, 7, 14, .78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.alarm-ring-card {
    position: relative;
    width: min(430px, 100%);
    padding: clamp(30px, 5vw, 44px) 28px;
    border-radius: 30px;
    background: var(--surface-solid);
    border: 1px solid var(--border-strong);
    box-shadow: 0 40px 100px -30px #000;
    text-align: center;
    animation: ringIn .45s var(--ease);
}
@keyframes ringIn { from { opacity: 0; transform: scale(.92) translateY(16px); } to { opacity: 1; transform: none; } }
.alarm-ring-pulse {
    width: 92px;
    height: 92px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--gradient);
    animation: ringPulse 1.8s ease-out infinite;
}
@keyframes ringPulse {
    0% { box-shadow: 0 0 0 0 rgba(109, 94, 252, .55); }
    70% { box-shadow: 0 0 0 30px rgba(109, 94, 252, 0); }
    100% { box-shadow: 0 0 0 0 rgba(109, 94, 252, 0); }
}
.alarm-ring-kicker { font-size: .7rem; text-transform: uppercase; letter-spacing: .16em; color: var(--faint); }
.alarm-ring-title { margin-top: 8px; font-family: var(--font-mono); font-size: clamp(2.6rem, 8vw, 3.6rem); font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.alarm-ring-label { margin-top: 10px; font-size: 1.05rem; color: var(--muted); }
.alarm-ring-actions { display: flex; flex-direction: column; gap: 9px; margin-top: 26px; }
.alarm-ring-note { margin-top: 16px; font-size: .74rem; color: var(--faint); }

body.is-ringing { overflow: hidden; }

/* ---------------------------------------------------------- info & related */
.tool-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: clamp(32px, 4vw, 48px);
}
.info-card {
    padding: clamp(20px, 3vw, 28px);
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--surface-2);
}
.info-card h2 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.015em; margin-bottom: 18px; }
.steps { display: grid; gap: 16px; counter-reset: step; }
.step { display: flex; gap: 13px; }
.step-num {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: var(--gradient-soft);
    border: 1px solid var(--border);
    color: var(--accent-soft);
    font-family: var(--font-mono);
    font-size: .78rem;
    font-weight: 700;
    flex: 0 0 auto;
}
.step-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.step-body strong { font-size: .94rem; }
.step-body span { font-size: .87rem; color: var(--muted); line-height: 1.6; }
.feature-list { display: grid; gap: 15px; }
.feature { display: flex; gap: 12px; }
.feature-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--surface-3);
    border: 1px solid var(--border);
    color: var(--accent-2);
    flex: 0 0 auto;
}
.feature-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.feature-body strong { font-size: .92rem; }
.feature-body span { font-size: .85rem; color: var(--muted); line-height: 1.58; }

.faq-section { margin-top: clamp(36px, 5vw, 54px); }
.faq-section .faq-panel { padding: 0; border: 0; background: none; box-shadow: none; }
.faq-section .faq-list {
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface-2);
    padding: 4px 22px;
}
.faq-section .section-head { margin-bottom: 20px; }

.related-section { margin-top: clamp(38px, 5vw, 56px); }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.related-card {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    overflow: hidden;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    transition: transform var(--speed) var(--ease), border-color var(--speed) ease;
}
.related-card:hover { transform: translateY(-2px); border-color: var(--border-strong); color: var(--text); }
.related-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--surface-3);
    color: var(--accent-soft);
    flex: 0 0 auto;
}
.related-card > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; overflow: hidden; }
.related-card strong { font-size: .96rem; }
.related-card span span { font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.related-card > .ico { margin-left: auto; color: var(--faint); }

/* --------------------------------------------------------------- error page */
.error-page { min-height: calc(100vh - 320px); display: grid; place-items: center; padding: clamp(50px, 9vw, 100px) 0; }
.error-inner { text-align: center; max-width: 640px; }
.error-code {
    font-family: var(--font-mono);
    font-size: clamp(4rem, 13vw, 7.5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.07em;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.error-inner h1 { margin-top: 10px; font-size: clamp(1.7rem, 3.6vw, 2.4rem); letter-spacing: -.03em; }
.error-text { margin-top: 12px; color: var(--muted); }
.error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.error-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 32px; font-size: .86rem; color: var(--muted); }
.error-links a { display: inline-flex; align-items: center; gap: 6px; }

/* ==========================================================================
   Admin
   ========================================================================== */
.admin-body { background: var(--bg); }
.admin-shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 22px 16px;
    border-right: 1px solid var(--border);
    background: var(--surface);
    backdrop-filter: blur(16px);
    z-index: 10;
}
.admin-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 0; font-size: .98rem; font-weight: 700; }
.admin-brand:hover { color: var(--text); }
.admin-brand-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px; }
.admin-brand-text strong { font-weight: 750; }
.admin-brand-text > span { color: var(--muted); font-weight: 500; }
.admin-brand-tag {
    margin-left: 4px;
    padding: 1px 7px;
    border-radius: 999px;
    font-size: .56rem !important;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent-soft) !important;
    background: rgba(109, 94, 252, .14);
    border: 1px solid rgba(109, 94, 252, .25);
}
.admin-nav { display: grid; gap: 5px; }
.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 13px;
    border-radius: 11px;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 550;
    transition: all .2s ease;
}
.admin-nav-link:hover { background: var(--surface-2); color: var(--text); }
.admin-nav-link.is-active {
    background: var(--gradient-soft);
    color: var(--text);
    box-shadow: inset 0 0 0 1px var(--border-strong);
}
.admin-nav-link.is-active .ico { color: var(--accent-soft); }
.admin-sidebar-foot { margin-top: auto; display: grid; gap: 4px; padding-top: 16px; border-top: 1px solid var(--border); }
.admin-sidebar-foot form { display: contents; }
.admin-side-link {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 9px 13px;
    border-radius: 10px;
    font-size: .84rem;
    color: var(--muted);
    text-align: left;
    transition: all .2s ease;
}
.admin-side-link:hover { background: var(--surface-2); color: var(--text); }

.admin-main { min-width: 0; display: flex; flex-direction: column; }
.admin-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 26px clamp(18px, 3vw, 36px) 20px;
    border-bottom: 1px solid var(--border);
}
.admin-topbar-kicker { font-size: .66rem; text-transform: uppercase; letter-spacing: .14em; color: var(--faint); font-weight: 650; }
.admin-topbar h1 { margin-top: 5px; font-size: clamp(1.4rem, 2.4vw, 1.75rem); letter-spacing: -.025em; font-weight: 720; }
.admin-topbar-sub { margin-top: 4px; font-size: .84rem; color: var(--muted); }
.admin-topbar-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.admin-user { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); }
.admin-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gradient); color: #fff; font-size: .8rem; font-weight: 700; }
.admin-user-name { font-size: .84rem; font-weight: 600; }

.admin-content { padding: 24px clamp(18px, 3vw, 36px) 60px; width: 100%; max-width: 1320px; }

.admin-intro {
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--muted);
    font-size: .85rem;
    line-height: 1.65;
    margin-bottom: 18px;
}
.admin-intro code, .seo-card-head code { padding: 1px 6px; border-radius: 5px; background: var(--surface-3); font-family: var(--font-mono); font-size: .78rem; color: var(--text); }

.range-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.range-tabs { display: inline-flex; padding: 4px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); gap: 3px; }
.range-tab { padding: 7px 14px; border-radius: 9px; font-size: .82rem; font-weight: 600; color: var(--muted); transition: all .2s ease; }
.range-tab:hover { color: var(--text); }
.range-tab.is-active { background: var(--surface-solid); color: var(--text); box-shadow: var(--shadow-soft); }
.range-note { font-size: .76rem; color: var(--faint); }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.kpi-card {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    min-width: 0;
}
.kpi-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); font-weight: 650; }
.kpi-value { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 720; letter-spacing: -.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi-foot { font-size: .74rem; color: var(--faint); }
.kpi-foot.is-up { color: var(--ok); }
.kpi-foot.is-down { color: var(--danger); }

.panel-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; align-items: start; }
.panel {
    padding: 20px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    min-width: 0;
}
.panel--wide { grid-column: span 1; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.panel-head h2 { font-size: 1rem; font-weight: 680; letter-spacing: -.01em; }
.panel-head p { font-size: .76rem; color: var(--faint); margin-top: 2px; }
.panel-badge { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); font-size: .7rem; color: var(--muted); white-space: nowrap; }
.panel-link { font-size: .78rem; color: var(--accent-soft); font-weight: 600; white-space: nowrap; }
.panel-empty { font-size: .82rem; color: var(--faint); padding: 8px 0; }
.panel-note { margin-top: 14px; font-size: .76rem; color: var(--faint); line-height: 1.55; }
.admin-footnote { font-size: .76rem; color: var(--faint); margin-top: 18px; line-height: 1.6; }

.chart { display: flex; align-items: flex-end; gap: 5px; height: 250px; padding-top: 14px; }
.chart-col {
    position: relative;
    flex: 1 1 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    min-width: 0;
}
.chart-bar {
    display: block;
    width: 100%;
    max-width: 26px;
    max-height: calc(100% - 48px);
    border-radius: 7px 7px 3px 3px;
    background: var(--chart-bar);
    box-shadow: 0 0 16px -6px rgba(109, 94, 252, .65);
    transition: height .6s var(--ease), filter .2s ease;
    order: 1;
}
.chart-col:hover .chart-bar { filter: brightness(1.25); }
.chart-value { order: 0; font-size: .62rem; color: var(--faint); font-family: var(--font-mono); line-height: 1; height: 10px; }
.chart-label { order: 2; font-size: .62rem; color: var(--faint); white-space: nowrap; height: 14px; max-width: 100%; overflow: hidden; }
.chart-legend { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); font-size: .74rem; color: var(--muted); }
.chart-legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend-dot { width: 8px; height: 8px; border-radius: 3px; background: var(--accent); }
.chart-hint { color: var(--faint); }

.tool-stats { display: grid; gap: 16px; }
.tool-stat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .86rem; }
.tool-stat-head a { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.tool-stat-head span { color: var(--faint); font-size: .74rem; }
.progress { height: 6px; border-radius: 999px; background: var(--surface-3); margin: 7px 0 5px; overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: inherit; background: var(--gradient); }
.tool-stat-foot { display: flex; justify-content: space-between; font-size: .7rem; color: var(--faint); }

.event-list { display: grid; gap: 2px; }
.event-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.event-list li:last-child { border-bottom: 0; }
.event-tool { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--border); color: var(--accent-soft); flex: 0 0 auto; }
.event-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.event-body strong { font-size: .84rem; font-weight: 600; }
.event-body span { font-size: .72rem; color: var(--faint); }
.event-list time { font-size: .7rem; color: var(--faint); white-space: nowrap; }

.top-list { display: grid; gap: 2px; }
.top-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: .84rem; }
.top-list li:last-child { border-bottom: 0; }
.top-index { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--surface-2); font-size: .68rem; color: var(--faint); flex: 0 0 auto; }
.top-path { font-family: var(--font-mono); font-size: .79rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.top-count { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); }

.empty-state { text-align: center; padding: 32px 16px; color: var(--muted); }
.empty-icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); color: var(--accent-soft); }
.empty-state h3, .empty-state h2 { font-size: 1.02rem; color: var(--text); }
.empty-state p { margin-top: 6px; font-size: .85rem; }
.empty-state a { color: var(--accent-soft); text-decoration: underline; text-underline-offset: 3px; }
.empty-state--admin { padding: 70px 20px; }

.mini-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.mini-kpi { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; gap: 3px; }
.mini-kpi span { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); font-weight: 650; }
.mini-kpi strong { font-size: 1.3rem; font-weight: 700; font-variant-numeric: tabular-nums; }

.event-breakdown { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.breakdown-card { padding: 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); }
.breakdown-card header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.breakdown-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--surface-3); color: var(--accent-soft); flex: 0 0 auto; }
.breakdown-card h3 { font-size: .92rem; font-weight: 650; }
.breakdown-card header p { font-size: .72rem; color: var(--faint); }
.breakdown-list { display: grid; gap: 7px; }
.breakdown-list li { display: grid; grid-template-columns: 96px 1fr 34px; align-items: center; gap: 8px; font-size: .78rem; }
.breakdown-label { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.breakdown-bar { height: 5px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.breakdown-bar i { display: block; height: 100%; border-radius: inherit; background: var(--gradient); }
.breakdown-value { text-align: right; font-family: var(--font-mono); font-size: .74rem; color: var(--text); }

.admin-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.admin-table th { text-align: left; padding: 9px 12px; font-size: .66rem; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); border-bottom: 1px solid var(--border); font-weight: 650; white-space: nowrap; }
.admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--muted); }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover td { background: var(--surface-2); }
.admin-table--compact th, .admin-table--compact td { padding: 6px 8px; font-size: .74rem; }
.table-scroll { overflow: auto; border-radius: 12px; border: 1px solid var(--border); }
.table-scroll--tall { max-height: 320px; margin-top: 10px; }
.daily-details summary { cursor: pointer; font-size: .82rem; color: var(--accent-soft); font-weight: 600; list-style: none; }
.daily-details summary::-webkit-details-marker { display: none; }

.alert { display: flex; align-items: center; gap: 9px; padding: 12px 16px; border-radius: 12px; font-size: .86rem; margin-bottom: 16px; border: 1px solid; }
.alert--ok { background: rgba(62, 207, 142, .1); border-color: rgba(62, 207, 142, .3); color: #6ee7b7; }
[data-theme="light"] .alert--ok { color: #0d7a52; }
.alert--error { background: rgba(255, 107, 107, .1); border-color: rgba(255, 107, 107, .32); color: #ff9b9b; }
[data-theme="light"] .alert--error { color: #b42323; }
.alert--warn { background: rgba(255, 181, 71, .1); border-color: rgba(255, 181, 71, .32); color: #ffc46b; }
[data-theme="light"] .alert--warn { color: #8a5a00; }

/* ------------------------------------------------------------------- SEO */
.seo-list { display: grid; gap: 16px; }
.seo-card { padding: clamp(18px, 2.4vw, 26px); border-radius: 18px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-soft); scroll-margin-top: 20px; }
.seo-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.seo-card-head h2 { font-size: 1.02rem; font-weight: 680; letter-spacing: -.01em; }
.seo-card-head p { margin-top: 4px; font-size: .74rem; color: var(--faint); }
.seo-status { padding: 4px 10px; border-radius: 999px; font-size: .68rem; font-weight: 650; white-space: nowrap; }
.seo-status.is-index { background: rgba(62, 207, 142, .12); color: var(--ok); border: 1px solid rgba(62, 207, 142, .3); }
.seo-status.is-noindex { background: rgba(255, 107, 107, .1); color: var(--danger); border: 1px solid rgba(255, 107, 107, .28); }
.serp-preview { display: grid; gap: 2px; padding: 14px 16px; border-radius: 12px; border: 1px dashed var(--border-strong); background: var(--surface-2); margin-bottom: 18px; }
.serp-url { font-size: .72rem; color: var(--ok); font-family: var(--font-sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.serp-title { font-size: .98rem; color: #8ab4f8; font-weight: 550; line-height: 1.35; }
[data-theme="light"] .serp-title { color: #1a0dab; }
.serp-desc { font-size: .78rem; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.seo-form { display: grid; gap: 14px; }
.seo-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.seo-form .field > span { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.field em {
    font-style: normal;
    font-size: .68rem;
    color: var(--faint);
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--border);
}
.field em.is-over { color: var(--warn); border-color: rgba(255, 181, 71, .4); }
.seo-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 6px; }

.admin-form { display: grid; gap: 14px; }
.admin-form-foot { padding-top: 4px; }
.admin-form--password { max-width: 520px; }
.info-list { display: grid; gap: 0; }
.info-list div { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: .82rem; }
.info-list div:last-child { border-bottom: 0; }
.info-list dt { color: var(--faint); }
.info-list dd { margin: 0; font-family: var(--font-mono); font-size: .78rem; text-align: right; }

/* -------------------------------------------------------------- admin login */
.admin-login-body { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.admin-login { width: 100%; max-width: 430px; position: relative; z-index: 1; }
.admin-login-card {
    padding: clamp(26px, 4vw, 38px);
    border-radius: 26px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}
.admin-login-brand { display: inline-flex; align-items: center; gap: 9px; font-size: .95rem; font-weight: 700; margin-bottom: 22px; }
.admin-login-brand strong { font-weight: 750; }
.admin-login-brand > span:last-child { color: var(--muted); font-weight: 500; }
.admin-login-card h1 { font-size: 1.6rem; letter-spacing: -.03em; font-weight: 720; }
.admin-login-sub { margin-top: 8px; font-size: .84rem; color: var(--muted); line-height: 1.55; }
.admin-login-form { display: grid; gap: 14px; margin-top: 22px; }
.admin-login-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); font-size: .78rem; color: var(--faint); flex-wrap: wrap; }
.admin-login-foot a, .admin-login-secure { display: inline-flex; align-items: center; gap: 6px; }
.admin-login-foot a:hover { color: var(--text); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
    .benefit-grid { grid-template-columns: repeat(2, 1fr); }
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .chart { height: 210px; }
}

@media (max-width: 920px) {
    .hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .hero-visual { max-width: 520px; width: 100%; margin-inline: auto; }
    .two-col { grid-template-columns: 1fr; }
    .clock-shell { grid-template-columns: 1fr; }
    .clock-side { border-left: 0; border-top: 1px solid var(--border); padding-left: 0; padding-top: 26px; display: grid; grid-template-columns: 190px 1fr; gap: 20px; align-items: center; }
    .analog-card { margin: 0; }
    .timer-shell { grid-template-columns: 1fr; }
    .timer-dial { width: min(300px, 78vw); }
    .tool-info-grid { grid-template-columns: 1fr; }
    .admin-shell { grid-template-columns: minmax(0, 1fr); }
    .admin-sidebar { position: static; height: auto; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 12px; padding: 14px 18px; border-right: 0; border-bottom: 1px solid var(--border); }
    .admin-brand { padding: 0; }
    .admin-nav { display: flex; margin-left: auto; overflow-x: auto; max-width: 100%; min-width: 0; gap: 3px; padding-bottom: 2px; }
    .admin-nav-link { white-space: nowrap; padding: 8px 12px; }
    .admin-nav-link span { font-size: .82rem; }
    .admin-sidebar-foot { margin: 0; padding: 0; border: 0; display: flex; gap: 4px; }
    .admin-sidebar-foot form { display: contents; }
    .admin-side-link { width: auto; padding: 8px 10px; }
    .admin-side-link span { display: none; }
    .panel-grid { grid-template-columns: 1fr; }
    .event-breakdown { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
    .site-nav {
        position: fixed;
        top: var(--header-h);
        left: 12px;
        right: 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 12px;
        border-radius: 18px;
        border: 1px solid var(--border-strong);
        background: var(--surface-solid);
        box-shadow: var(--shadow);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all .25s var(--ease);
        z-index: 59;
    }
    .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
    .nav-link { padding: 12px 14px; border-radius: 11px; font-size: .98rem; }
    .nav-link.is-active::after { display: none; }
    .nav-toggle { display: grid; }
    .header-inner { position: relative; }
    .brand { margin-right: auto; }
    .header-actions { gap: 6px; }
    .cta-card { flex-direction: column; align-items: flex-start; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .tool-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
    :root { --header-h: 64px; }
    .hero-stats { gap: 18px; justify-content: space-between; }
    .hero-stats dd { font-size: 1rem; }
    .float-badge { display: none; }
    .hero-visual { padding-bottom: 18px; }
    .hero-clock-digits { font-size: clamp(1.95rem, 9.8vw, 2.9rem); }
    .clock-side { grid-template-columns: 1fr; }
    .analog-card { max-width: 200px; margin-inline: auto; }
    .fact-list { width: 100%; }
    .world-grid { grid-template-columns: repeat(2, 1fr); }
    .time-inputs { gap: 5px; }
    .time-field input { font-size: 1.2rem; padding: 10px 4px; }
    .timer-presets { grid-template-columns: repeat(4, 1fr); }
    .timer-options { gap: 12px; }
    .timer-options .select-wrap { flex: 1 1 100%; }
    .timer-options .select-wrap select { width: 100%; }
    .sw-stats { grid-template-columns: repeat(2, 1fr); }
    .alarm-form-row--main .field--time { flex: 1 1 100%; }
    .alarm-item { gap: 10px; }
    .alarm-item-actions { width: 100%; justify-content: flex-end; margin-left: 0; padding-top: 6px; border-top: 1px solid var(--border); }
    .alarm-hero-icon { width: 58px; height: 58px; border-radius: 18px; }
    .laps-table th, .laps-table td { padding: 9px 10px; }
    .sw-stats { padding: 12px; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
    .toast-region { right: 12px; bottom: 12px; width: calc(100vw - 24px); }
    .admin-content { padding: 16px 14px 50px; }
    .admin-topbar { padding: 18px 14px 14px; }
    .admin-topbar-sub { display: none; }
    .admin-user-name { display: none; }
    .kpi-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .kpi-card { padding: 14px; }
    .mini-kpi-grid { grid-template-columns: 1fr 1fr; }
    .seo-form-row { grid-template-columns: 1fr; }
    .chart { height: 180px; gap: 2px; }
    .chart-value { display: none; }
    .chart-bar { max-height: calc(100% - 22px); }
    .seo-card { padding: 16px; }
    .panel { padding: 16px; }
    .admin-nav { order: 3; width: 100%; margin-left: 0; flex-wrap: wrap; overflow: visible; }
    .admin-sidebar { padding: 12px 14px; }
    .admin-sidebar-foot { margin-left: auto; }
    .weekday { width: 42px; height: 42px; }
    .cta-actions { width: 100%; }
    .cta-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 380px) {
    .clock-digits { font-size: 2.7rem; }
    .timer-presets { grid-template-columns: repeat(2, 1fr); }
    .weekdays { gap: 6px; }
    .weekday { width: 38px; height: 38px; font-size: .78rem; }
}

@media (max-width: 1100px) {
    .seo-form-row { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------ motion pref */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}
