        :root {
            color-scheme: light dark;
            --bg: #f4f6fb;
            --card: #ffffff;
            --text: #1f2937;
            --muted: #6b7280;
            --brand: #2563eb;
            --ok: #16a34a;
            --err: #dc2626;
            --warn: #f59e0b;
            --radius: 14px;
            --shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
            --transition: 160ms ease;
            --topbar-h: 56px;
        }

        .dark-mode {
            --bg: #0f172a;
            --card: #111827;
            --text: #e5e7eb;
            --muted: #9ca3af;
            --brand: #60a5fa;
            --shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
        }

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

        body {
            font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
            --scene-a: #dbeafe;
            --scene-b: #fee2e2;
            background: radial-gradient(1200px 600px at 10% -10%, var(--scene-a), transparent),
                radial-gradient(1200px 600px at 110% 10%, var(--scene-b), transparent),
                var(--bg);
            color: var(--text);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: calc(var(--topbar-h) + 1px) 24px 24px;
            transition: background var(--transition), color var(--transition);
        }

        body.scene-morning {
            --scene-a: #dbeafe;
            --scene-b: #fef3c7;
        }

        body.scene-day {
            --scene-a: #e0f2fe;
            --scene-b: #fee2e2;
        }

        body.scene-evening {
            --scene-a: #fde68a;
            --scene-b: #fecaca;
        }

        body.scene-night {
            --scene-a: #1e293b;
            --scene-b: #0f172a;
        }

        .wrapper {
            width: 100%;
            max-width: 720px;
            position: relative;
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        .panel {
            background: var(--card);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            padding: 24px;
            transition: transform var(--transition), box-shadow var(--transition);
        }

        .panel:hover {
            transform: translateY(-2px);
        }
        .header-panel {
            padding: 16px 18px;
            border: 1px solid rgba(148, 163, 184, 0.18);
            background: linear-gradient(180deg, rgba(59, 130, 246, 0.06), rgba(59, 130, 246, 0.02)), var(--card);
            margin-top: 10px;
        }
        .list-panel {
            padding: 18px;
            border: 1px solid rgba(148, 163, 184, 0.18);
        }

        .topbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 10px;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 20;
            background: rgba(255, 255, 255, 0.88);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(148, 163, 184, 0.28);
            height: var(--topbar-h);
            padding: 0 16px;
        }
        @media (min-width: 768px) {
            .topbar {
                padding: 0 max(20px, calc((100vw - 720px) / 2 + 20px));
            }
        }
        .dark-mode .topbar {
            background: rgba(17, 24, 39, 0.88);
            border-bottom-color: rgba(148, 163, 184, 0.18);
        }

        .topbar h1 {
            font-size: 1.2rem;
            text-align: left;
            flex: 1;
            margin: 0;
        }

        .actions {
            display: flex;
            gap: 10px;
            margin-bottom: 0;
        }

        .hero {
            text-align: center;
            margin-top: 6px;
            margin-bottom: 14px;
        }

        .hero-title {
            font-size: 1.6rem;
            margin-bottom: 6px;
        }

        .hero-sub {
            font-size: 0.95rem;
            color: var(--muted);
            margin-bottom: 6px;
        }

        .hero-domain {
            font-size: 0.95rem;
            color: var(--brand);
            font-weight: 600;
        }

        .share-row {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 12px 16px;
            border-radius: 12px;
            border: 1px solid rgba(59, 130, 246, 0.35);
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(16, 185, 129, 0.12));
            color: var(--text);
            margin: 10px 0 12px;
            cursor: pointer;
            width: 100%;
            box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
            transition: background var(--transition), transform var(--transition), color var(--transition), box-shadow var(--transition);
            text-align: center;
        }
        .share-row:hover {
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(16, 185, 129, 0.18));
            transform: translateY(-2px);
            box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
        }

        .share-text {
            display: inline-block;
            color: var(--text);
            font-size: 0.9rem;
            font-weight: 600;
        }
        .share-cta {
            display: block;
            width: 100%;
            text-align: center;
            font-size: 0.95rem;
            font-weight: 700;
            color: var(--text);
            letter-spacing: 0.5px;
        }

        .btn {
            flex: 1;
            min-width: 0;
            border: 0;
            border-radius: 10px;
            padding: 10px 12px;
            font-weight: 600;
            background: var(--brand);
            color: #fff;
            cursor: pointer;
            transition: filter var(--transition), transform var(--transition);
        }

        .btn:hover {
            filter: brightness(0.95);
            transform: translateY(-1px);
        }

        .btn.secondary {
            background: transparent;
            color: var(--text);
            border: 1px solid rgba(148, 163, 184, 0.4);
        }

        .group {
            margin-top: 10px;
        }

        .group:first-of-type {
            margin-top: 0;
        }

        .group-title {
            font-weight: 700;
            font-size: 0.95rem;
            color: var(--text);
            margin: 2px 0 8px;
        }

        ul {
            list-style: none;
            display: grid;
            gap: 8px;
        }

        li {
            padding: 10px 12px;
            border-radius: 12px;
            background: rgba(148, 163, 184, 0.08);
            border: 1px solid rgba(148, 163, 184, 0.18);
            border-left: 4px solid rgba(37, 99, 235, 0.6);
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            flex-wrap: nowrap;
            transition: background var(--transition), opacity var(--transition), transform var(--transition);
            cursor: pointer;
        }

        li:hover {
            transform: translateY(-1px);
        }

        .dark-mode li {
            background: rgba(15, 23, 42, 0.6);
        }

        li.disabled {
            opacity: 0.5;
        }

        li.status-ok {
            border-left-color: var(--ok);
        }

        li.status-warn {
            border-left-color: var(--warn);
        }

        li.status-err {
            border-left-color: var(--err);
        }

        li.status-ok .url-link {
            color: var(--ok);
        }

        li.status-warn .url-link {
            color: var(--warn);
        }

        li.status-err .url-link {
            color: var(--muted);
        }

        .url-info {
            display: flex;
            align-items: center;
            gap: 8px;
            min-width: 0;
            flex: 1;
        }

        .url-text {
            display: flex;
            align-items: center;
            gap: 8px;
            min-width: 0;
            flex: 1;
        }

        .url-link {
            color: var(--brand);
            text-decoration: none;
            font-size: 0.82rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 100%;
        }

        .url-link:hover {
            text-decoration: underline;
        }

        .url-icon {
            width: 24px;
            height: 24px;
            border-radius: 6px;
            object-fit: cover;
            border: 1px solid rgba(148, 163, 184, 0.4);
            background: rgba(255, 255, 255, 0.7);
            flex-shrink: 0;
        }

        .meta {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-size: 0.85rem;
            color: var(--muted);
            white-space: nowrap;
            padding-left: 10px;
            border-left: 1px dashed rgba(148, 163, 184, 0.35);
            flex-shrink: 0;
        }

        .badge {
            padding: 2px 8px;
            border-radius: 999px;
            color: #fff;
            font-size: 0.8rem;
        }

        .badge.ok {
            background: var(--ok);
        }

        .badge.err {
            background: var(--err);
        }

        .badge.wait {
            background: var(--warn);
            color: #1f2937;
        }

        .status-pill {
            padding: 3px 8px;
            border-radius: 999px;
            font-size: 0.75rem;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            white-space: nowrap;
        }

        .status-pill.wait {
            background: #fef3c7;
            color: #92400e;
        }

        .status-pill.ok {
            background: #dcfce7;
            color: #166534;
        }

        .status-pill.warn {
            background: #fff7ed;
            color: #b45309;
        }

        .status-pill.err {
            background: #fee2e2;
            color: #991b1b;
        }

        .actions-inline {
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .mini-btn {
            border: 1px solid rgba(37, 99, 235, 0.95);
            background: rgba(37, 99, 235, 0.18);
            color: #0b1220;
            padding: 4px 10px;
            border-radius: 999px;
            font-size: 0.78rem;
            font-weight: 600;
            cursor: pointer;
            transition: background var(--transition), color var(--transition);
        }

        .dark-mode .mini-btn {
            color: #e5e7eb;
            border-color: rgba(96, 165, 250, 0.9);
            background: rgba(96, 165, 250, 0.18);
        }

        .mini-btn:hover {
            background: rgba(37, 99, 235, 0.22);
        }

        li.disabled .action-open {
            pointer-events: none;
            opacity: 0.45;
            filter: grayscale(0.3);
        }

        .breathe {
            animation: breathe 1.8s ease-in-out infinite;
        }

        @keyframes breathe {
            0% {
                opacity: 0.6;
            }

            50% {
                opacity: 1;
            }

            100% {
                opacity: 0.6;
            }
        }

        .notice {
            margin-top: 12px;
            padding: 10px 12px;
            border-radius: 10px;
            background: rgba(37, 99, 235, 0.08);
            color: var(--text);
            font-size: 0.9rem;
        }

        #stats {
            margin-top: 14px;
            display: flex;
            gap: 14px;
            flex-wrap: wrap;
            color: var(--muted);
        }

        .footer {
            margin-top: 18px;
            text-align: center;
            color: var(--muted);
            font-size: 0.9rem;
        }

        .logo {
            height: 28px;
            width: auto;
            display: block;
        }

        .mode-toggle {
            border: 0;
            background: transparent;
            color: var(--text);
            font-size: 1rem;
            cursor: pointer;
            padding: 4px 6px;
            border-radius: 8px;
            margin-left: auto;
        }

        .mode-toggle:hover {
            background: rgba(148, 163, 184, 0.15);
        }

        @media (max-width: 640px) {
            body {
                padding: 10px;
            }

            .panel {
                padding: 18px;
            }

            h1 {
                font-size: 1.4rem;
            }

            .actions {
                flex-direction: row;
            }

            li {
                gap: 8px;
            }

            .meta {
                border-left: 0;
                padding-left: 0;
            }
            .share-row {
                flex-direction: column;
                align-items: flex-start;
            }
        }
