:root {
    --brand: #45b97c;
    --brand-strong: #2e9159;
    --brand-deep: #1d6b42;
    --brand-soft: #eaf7f0;
    --ink: #0f172a;
    --ink-2: #334155;
    --muted: #64748b;
    --line: #e9eef0;
    --bg-soft: #f7faf8;
    --glass: rgba(255, 255, 255, .72);
    --glass-strong: rgba(255, 255, 255, .86);
    --glass-edge: rgba(15, 23, 42, .07);
    --radius: 18px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 4px 12px rgba(15, 23, 42, .05);
    --ease: cubic-bezier(.22, .61, .36, 1);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    :root {
        --glass: rgba(255, 255, 255, .95);
        --glass-strong: rgba(255, 255, 255, .97);
    }
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg-soft);
    color: var(--ink-2);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(52% 40% at 90% -4%, rgba(69, 185, 124, .18), transparent 62%),
        radial-gradient(46% 36% at -8% 30%, rgba(46, 145, 89, .10), transparent 60%);
    pointer-events: none;
}

.doc-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    height: 56px;
    padding: 0 clamp(16px, 4vw, 32px);
    background: var(--glass-strong);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid var(--glass-edge);
}

.doc-topbar a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s var(--ease);
}

.doc-topbar a:hover {
    color: var(--brand-deep);
}

.doc-topbar img {
    width: 28px;
    height: 28px;
    border-radius: 7px;
}

.controller {
    max-width: 720px;
    margin: clamp(20px, 4vh, 40px) auto;
    padding: clamp(24px, 5vw, 48px);
    background: var(--glass);
    border: 1px solid var(--glass-edge);
    border-radius: var(--radius);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    backdrop-filter: saturate(160%) blur(16px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), var(--shadow-sm);
}

.controller h1,
.controller h2,
.controller h3,
.controller p {
    margin: 0;
    padding: 0;
}

.controller h1 {
    font-size: 22px;
    line-height: 1.4;
    color: var(--ink);
    margin-bottom: 16px;
}

.controller h2 {
    font-size: 17px;
    line-height: 1.5;
    color: var(--ink);
    margin: 32px 0 12px;
    padding-left: 12px;
    border-left: 3px solid var(--brand);
}

.controller h3 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--ink-2);
    margin: 20px 0 8px;
}

.controller p {
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 16px;
    word-wrap: break-word;
}

.controller a {
    color: var(--brand-deep);
}

.time-select {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 24px;
    justify-content: space-between;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 24px;
}

:focus-visible {
    outline: 2px solid var(--brand-strong);
    outline-offset: 3px;
}

@media (max-width: 480px) {
    .controller {
        margin: 12px;
        padding: 20px 16px;
    }

    .controller h1 {
        font-size: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
