:root {
            color-scheme: light;
            --ink: #243b3a;
            --muted: #6b7d79;
            --line: #d7e1dc;
            --paper: #fffdf8;
            --mint: #2a9d8f;
            --mint-dark: #217d73;
            --warm: #f7f3ea;
            --coral: #e56b6f;
        }

        * {
            box-sizing: border-box;
        }

        body {
            min-height: 100vh;
            margin: 0;
            padding: 24px;
            color: var(--ink);
            background:
                radial-gradient(circle at 15% 0%, #e8f3ec 0, transparent 34%),
                var(--warm);
            font-family: Arial, sans-serif;
        }

        a {
            color: inherit;
        }

        .shell {
            width: min(940px, 100%);
            margin: 0 auto;
        }

        .topbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
            margin-bottom: 28px;
        }

        .brand {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            color: var(--ink);
            font-weight: 700;
            text-decoration: none;
        }

        .brand img {
            width: 34px;
            height: 34px;
            border-radius: 10px;
        }

        .back-link {
            color: var(--muted);
            font-size: 14px;
            text-decoration: none;
        }

        .back-link:hover,
        .back-link:focus-visible {
            color: var(--mint-dark);
            text-decoration: underline;
        }

        .intro {
            margin-bottom: 24px;
        }

        .eyebrow {
            margin: 0 0 8px;
            color: var(--mint-dark);
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 1.6px;
            text-transform: uppercase;
        }

        h1 {
            margin: 0;
            font-size: clamp(32px, 6vw, 56px);
            letter-spacing: -1.5px;
        }

        .intro p:last-child {
            max-width: 550px;
            margin: 12px 0 0;
            color: var(--muted);
            font-size: 17px;
            line-height: 1.5;
        }

        .timer-layout {
            display: grid;
            grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
            gap: 20px;
            align-items: stretch;
        }

        .card {
            border: 1px solid var(--line);
            border-radius: 24px;
            background: rgba(255, 253, 248, .9);
            box-shadow: 0 18px 50px rgba(62, 93, 82, .09);
        }

        .timer-card {
            display: flex;
            min-height: 460px;
            padding: 34px;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
        }

        .phase {
            margin: 0;
            color: var(--mint-dark);
            font-size: 14px;
            font-weight: 700;
            letter-spacing: 1.4px;
            text-transform: uppercase;
        }

        .clock {
            margin: 8px 0 4px;
            font-variant-numeric: tabular-nums;
            font-size: clamp(72px, 15vw, 142px);
            font-weight: 700;
            letter-spacing: -5px;
            line-height: 1;
        }

        .round-label {
            min-height: 22px;
            margin: 0 0 28px;
            color: var(--muted);
        }

        .progress {
            width: min(360px, 100%);
            height: 8px;
            margin-bottom: 28px;
            overflow: hidden;
            border-radius: 99px;
            background: #e2ebe6;
        }

        .progress-bar {
            width: 0;
            height: 100%;
            border-radius: inherit;
            background: var(--mint);
            transition: width .25s linear;
        }

        .timer-controls {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 10px;
        }

        button {
            border: 0;
            border-radius: 12px;
            padding: 13px 22px;
            color: var(--ink);
            background: #e6eeea;
            cursor: pointer;
            font: inherit;
            font-weight: 700;
        }

        button:hover,
        button:focus-visible {
            background: #d5e5dd;
        }

        button:focus-visible,
        input:focus-visible {
            outline: 3px solid rgba(42, 157, 143, .35);
            outline-offset: 2px;
        }

        .primary-button {
            min-width: 130px;
            color: #fff;
            background: var(--mint);
        }

        .primary-button:hover,
        .primary-button:focus-visible {
            background: var(--mint-dark);
        }

        .settings-card {
            padding: 28px;
        }

        h2 {
            margin: 0 0 22px;
            font-size: 21px;
        }

        .setting {
            display: block;
            margin-bottom: 18px;
            color: var(--muted);
            font-size: 14px;
            font-weight: 700;
        }

        .setting input[type="number"] {
            width: 100%;
            margin-top: 8px;
            border: 1px solid var(--line);
            border-radius: 10px;
            padding: 12px;
            color: var(--ink);
            background: #fff;
            font: inherit;
        }

        .checkbox-setting {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-top: 22px;
            color: var(--ink);
            font-weight: 400;
        }

        .checkbox-setting input {
            width: 18px;
            height: 18px;
            accent-color: var(--mint);
        }

        .settings-note {
            margin: 24px 0 0;
            color: var(--muted);
            font-size: 13px;
            line-height: 1.5;
        }

        .status {
            min-height: 20px;
            margin-top: 18px;
            color: var(--muted);
            font-size: 13px;
        }

        @media (max-width: 700px) {
            body {
                padding: 16px;
            }

            .topbar {
                margin-bottom: 20px;
            }

            .timer-layout {
                grid-template-columns: 1fr;
            }

            .timer-card {
                min-height: 400px;
                padding: 24px 18px;
            }

            .settings-card {
                padding: 24px;
            }
        }
