        /* Base styles */
        :root {
            /* Text sizes */
            --text-xs: clamp(0.7rem, 1.5vmin, 0.875rem);
            --text-sm: clamp(0.8rem, 1.8vmin, 1rem);
            --text-base: clamp(0.9rem, 2vmin, 1.125rem);
            --text-lg: clamp(1rem, 2.5vmin, 1.5rem);
            --text-xl: clamp(1.2rem, 3.5vmin, 2.25rem);
            --text-2xl: clamp(1.5rem, 5vmin, 3.5rem);
            --text-hero: clamp(3rem, 10vmin, 8rem);

            /* Spacing */
            --space-2: 0.5rem;
            --space-4: 1rem;
            --space-6: 1.5rem;
            --space-8: 2rem;
            --space-10: 3rem;

            /* Radii */
            --radius-md: 0.5rem;
            --radius-lg: 0.75rem;
            --radius-xl: 1rem;

            /* Fonts */
            --font-display: 'JetBrains Mono', 'Courier New', monospace;
            --font-body: 'Space Grotesk', 'Helvetica Neue', sans-serif;
        }

        /* Themes */
        :root,
        [data-theme="dark"] {
            --color-bg: #0d0f10;
            --color-surface: #111416;
            --color-border: #2e3840;
            --color-text: #d0dce6;
            --color-text-muted: #6b8090;
            --color-text-faint: #3e5060;
            --color-primary: #00c8d4;
        }

        [data-theme="light"] {
            --color-bg: #f0f4f8;
            --color-surface: #f8fafb;
            --color-border: #b8c8d6;
            --color-text: #1a2530;
            --color-text-muted: #4a6070;
            --color-text-faint: #8aa0b0;
            --color-primary: #0090a0;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: var(--font-body);
            color: var(--color-text);
            background-color: var(--color-bg);
            height: 100dvh;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 2vmin;
            transition: background-color 0.4s ease, color 0.4s ease;
            position: relative;
        }

        /* Background effects */
        body::before {
            content: '';
            position: fixed;
            inset: 0;
            background: radial-gradient(ellipse 60% 40% at 50% 50%, oklch(from var(--color-primary) l c h / 0.06) 0%, transparent 70%);
            pointer-events: none;
            z-index: 0;
        }

        body::after {
            content: '';
            position: fixed;
            inset: 0;
            background-image: radial-gradient(circle, oklch(from var(--color-text) l c h / 0.04) 1px, transparent 1px);
            background-size: 32px 32px;
            pointer-events: none;
            z-index: 0;
        }

        .theme-toggle {
            position: fixed;
            top: var(--space-6);
            right: var(--space-6);
            z-index: 100;
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--color-surface);
            border: 1px solid var(--color-border);
            border-radius: 50%;
            color: var(--color-text-muted);
            cursor: pointer;
            transition: all 0.2s;
        }

        .theme-toggle:hover {
            color: var(--color-text);
            border-color: var(--color-text);
        }

        /* Main Layout */
        .container {
            width: 100%;
            max-width: 1200px;
            height: 100%;
            z-index: 1;
            display: flex;
            flex-direction: column;
            gap: 2vmin;
            margin-top: 1vmin;
        }

        .header {
            text-align: center;
            margin-bottom: 1vmin;
        }

        .header-title {
            font-size: var(--text-2xl);
            font-weight: 700;
            color: var(--color-text-muted);
            line-height: 1.2;
            padding-top: 0.1em;
        }

        .header-subtitle {
            font-size: var(--text-lg);
            font-weight: 400;
            color: var(--color-text-faint);
            margin-top: var(--space-2);
        }

        .box {
            border: 2px solid var(--color-border);
            background: var(--color-surface);
            border-radius: var(--radius-xl);
            padding: 3vmin;
            transition: border-color 0.4s ease, background 0.4s ease;
        }

        /* Time Section */
        .time-box {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 3vmin;
            flex-shrink: 1;
        }

        .clock-display {
            font-family: var(--font-display);
            font-size: var(--text-hero);
            font-weight: 300;
            line-height: 1;
            text-shadow: 0 0 60px oklch(from var(--color-primary) l c h / 0.25);
        }

        .clock-display .separator {
            color: var(--color-primary);
            opacity: 0.7;
            animation: blink 1s step-end infinite;
        }

        @keyframes blink {

            0%,
            100% {
                opacity: 0.7;
            }

            50% {
                opacity: 0.1;
            }
        }

        .seconds-bar-wrap {
            width: min(480px, 90vw);
            display: flex;
            align-items: center;
            gap: var(--space-4);
            margin-top: var(--space-4);
        }

        .seconds-label {
            font-family: var(--font-display);
            font-size: var(--text-sm);
            color: var(--color-text-faint);
            min-width: 2ch;
        }

        .seconds-bar-track {
            flex: 1;
            height: 2px;
            background: var(--color-border);
            border-radius: 99px;
            overflow: hidden;
        }

        .seconds-bar-fill {
            height: 100%;
            background: var(--color-primary);
            width: 0%;
            transition: width 0.9s linear;
        }

        /* Bottom Grid */
        .bottom-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2vmin;
            flex: 1;
            min-height: 0;
        }

        .left-col {
            display: flex;
            flex-direction: column;
            gap: 2vmin;
            min-height: 0;
        }

        .date-box {
            font-size: var(--text-xl);
            font-weight: 400;
            color: var(--color-text-muted);
            text-align: left;
            flex-shrink: 0;
        }

        .date-box .day-name {
            color: var(--color-primary);
            font-weight: 500;
        }

        .schedule-box {
            display: flex;
            flex-direction: column;
            justify-content: center;
            position: relative;
            overflow: hidden;
            flex: 1;
            container-type: inline-size;
        }

        .schedule-box::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 4px;
            background: var(--schedule-accent, var(--color-primary));
            transition: background 0.6s ease;
        }

        .schedule-label {
            font-size: var(--text-sm);
            font-weight: 700;
            color: var(--color-text-faint);
            margin-bottom: var(--space-2);
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .schedule-period {
            display: none;
        }

        .schedule-text {
            font-size: clamp(1.2rem, 8cqw, 3.5rem);
            font-weight: 500;
            color: var(--color-text);
            line-height: 1.1;
        }

        .schedule-sub {
            display: none;
        }

        .next-schedule-box {
            opacity: 0.7;
        }

        .photo-box {
            padding: 0;
            aspect-ratio: 4/3;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .photo-box img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .footer {
            margin-top: auto;
            padding: var(--space-6) 0;
            text-align: center;
            color: var(--color-text-faint);
            font-size: var(--text-sm);
            z-index: 1;
        }

        @media (max-width: 768px) {
            .bottom-grid {
                grid-template-columns: 1fr;
            }

            .header-title {
                font-size: var(--text-xl);
            }
        }