/* ============================================= */
        /* CSS RESET & DESIGN TOKENS                     */
        /* ============================================= */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }

        :root {
            --bg-primary: #0b0f19;
            --bg-surface: #171e2e;
            --bg-card: #1e2738;
            --bg-card-hover: #253046;
            --text-main: #f3f4f6;
            --text-muted: #9ca3af;
            --text-dim: #6b7280;
            --accent: #6366f1;
            --accent-light: #818cf8;
            --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
            --green: #10b981;
            --amber: #f59e0b;
            --red: #ef4444;
            --radius-bento: 24px;
            --radius-card: 18px;
            --radius-button: 14px;
            --radius-pill: 50px;
            --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.25);
            --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
            --transition-smooth: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        html {
            background-color: #0b0f19;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            background-color: var(--bg-primary);
            color: var(--text-main);
            overflow: hidden;
            height: 100vh;
            height: 100dvh;
            display: flex;
            flex-direction: column;
            padding-top: env(safe-area-inset-top, 0px);
            padding-bottom: env(safe-area-inset-bottom, 0px);
        }

        /* ============================================= */
        /* AUTH SCREEN                                   */
        /* ============================================= */
        #auth-screen {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100vh;
            height: 100dvh;
            padding: 40px;
            text-align: center;
            gap: 32px;
        }

        .auth-logo {
            width: 80px;
            height: 80px;
            background: var(--accent-gradient);
            border-radius: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: var(--shadow-glow);
            animation: pulse-glow 3s ease-in-out infinite;
        }

        @keyframes pulse-glow {

            0%,
            100% {
                box-shadow: 0 0 40px rgba(99, 102, 241, 0.15);
            }

            50% {
                box-shadow: 0 0 60px rgba(99, 102, 241, 0.3);
            }
        }

        .auth-logo svg {
            width: 40px;
            height: 40px;
            fill: white;
        }

        .auth-title {
            font-size: 1.8rem;
            font-weight: 800;
            background: var(--accent-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .auth-subtitle {
            color: var(--text-muted);
            font-size: 0.95rem;
            line-height: 1.5;
            max-width: 280px;
        }

        .btn-google {
            display: flex;
            align-items: center;
            gap: 12px;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.12);
            padding: 14px 28px;
            border-radius: var(--radius-pill);
            color: var(--text-main);
            font-size: 1rem;
            font-weight: 600;
            font-family: inherit;
            cursor: pointer;
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            transition: all var(--transition-smooth);
        }

        .btn-google:hover {
            background: rgba(255, 255, 255, 0.14);
            border-color: rgba(255, 255, 255, 0.2);
            transform: translateY(-2px);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
        }

        .btn-google:active {
            transform: translateY(0);
        }

        .btn-google svg {
            width: 20px;
            height: 20px;
        }

        /* ============================================= */
        /* APP SHELL                                     */
        /* ============================================= */
        #app-screen {
            display: none;
            flex-direction: column;
            height: 100vh;
            height: 100dvh;
        }

        /* HEADER */
        header {
            padding: 16px 20px 12px 20px;
            position: relative;
            z-index: 10;
            flex-shrink: 0;
        }

        .header-main {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 16px;
        }

        .date-header {
            flex: 1;
            min-width: 0;
        }

        .date-title {
            font-size: 1.45rem;
            font-weight: 800;
            letter-spacing: -0.5px;
            line-height: 1.15;
            margin-bottom: 2px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            transition: all var(--transition-smooth);
        }

        .date-title .day-name {
            background: var(--accent-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .date-subtitle {
            color: var(--text-dim);
            font-size: 0.8rem;
            font-weight: 500;
            letter-spacing: 0.3px;
        }

        .avatar-wrapper {
            position: relative;
            flex-shrink: 0;
        }

        .avatar-btn {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            border: 2px solid rgba(99, 102, 241, 0.4);
            cursor: pointer;
            overflow: hidden;
            background: var(--accent-gradient);
            transition: all var(--transition-smooth);
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .avatar-btn:hover {
            border-color: var(--accent-light);
            box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
        }

        .avatar-btn img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .avatar-menu {
            display: none;
            position: absolute;
            top: 52px;
            right: 0;
            background: var(--bg-surface);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: var(--radius-card);
            padding: 8px;
            min-width: 180px;
            box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
            z-index: 100;
        }

        .avatar-menu.open {
            display: block;
            animation: menu-in 0.2s ease-out;
        }

        @keyframes menu-in {
            from {
                opacity: 0;
                transform: translateY(-8px) scale(0.95);
            }

            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .avatar-menu-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 14px;
            border-radius: 12px;
            color: var(--text-muted);
            font-size: 0.85rem;
            cursor: pointer;
            transition: background 0.15s;
            border: none;
            background: none;
            width: 100%;
            font-family: inherit;
        }

        .avatar-menu-item:hover {
            background: rgba(255, 255, 255, 0.06);
            color: var(--text-main);
        }

        .avatar-menu-item svg {
            width: 18px;
            height: 18px;
            fill: currentColor;
        }

        /* DAY DOTS NAVIGATION */
        .day-dots {
            display: flex;
            justify-content: center;
            gap: 8px;
            padding: 0 20px 16px;
            flex-shrink: 0;
        }

        .day-dot {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
            font-weight: 600;
            color: var(--text-dim);
            background: rgba(255, 255, 255, 0.04);
            border: 1.5px solid transparent;
            cursor: pointer;
            transition: all var(--transition-smooth);
            user-select: none;
        }

        .day-dot:hover {
            background: rgba(255, 255, 255, 0.08);
            color: var(--text-muted);
        }

        .day-dot.active {
            background: var(--accent);
            color: white;
            border-color: var(--accent-light);
            box-shadow: 0 0 16px rgba(99, 102, 241, 0.35);
        }

        .day-dot.today {
            border-color: rgba(99, 102, 241, 0.4);
        }

        /* ============================================= */
        /* SWIPE CONTAINER                               */
        /* ============================================= */
        .swipe-container {
            flex: 1;
            overflow: hidden;
            position: relative;
        }

        .swipe-track {
            display: flex;
            height: 100%;
            transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            will-change: transform;
        }

        .swipe-track.dragging {
            transition: none;
        }

        .day-page {
            flex: 0 0 100%;
            width: 100%;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            padding: 0 20px 120px 20px;
            position: relative;
            scroll-behavior: smooth;
        }

        .day-page::-webkit-scrollbar {
            width: 4px;
        }

        .day-page::-webkit-scrollbar-track {
            background: transparent;
        }

        .day-page::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.15);
            border-radius: 4px;
        }

        /* ============================================= */
        /* EVENT CARDS                                   */
        /* ============================================= */
        .event-card {
            background: var(--bg-surface);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: var(--radius-card);
            padding: 16px 18px;
            margin-bottom: 12px;
            transition: all var(--transition-smooth);
            position: relative;
            overflow: hidden;
        }

        .event-card::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 4px;
            background: var(--accent-gradient);
            border-radius: 4px 0 0 4px;
        }

        .event-card.all-day::before {
            background: linear-gradient(135deg, var(--amber) 0%, #f97316 100%);
        }

        .event-card:hover {
            background: var(--bg-card-hover);
            transform: translateY(-1px);
            box-shadow: var(--shadow-card);
        }

        /* Past events (greyed out) */
        .event-card.past {
            opacity: 0.42;
            filter: grayscale(40%);
            background: rgba(23, 30, 46, 0.45);
            border-color: rgba(255, 255, 255, 0.03);
        }

        .event-card.past:hover,
        .event-card.past:active {
            opacity: 0.75;
            filter: grayscale(10%);
        }

        .event-card.past::before {
            opacity: 0.35;
        }

        .event-card.past .event-time {
            color: var(--text-dim);
        }

        .event-card.past .event-subject {
            color: var(--text-muted);
        }

        .event-time {
            font-size: 0.78rem;
            font-weight: 600;
            color: var(--accent-light);
            margin-bottom: 4px;
            letter-spacing: 0.3px;
        }

        .event-card.all-day .event-time {
            color: var(--amber);
        }

        .event-subject {
            font-size: 1rem;
            font-weight: 600;
            margin-bottom: 6px;
            line-height: 1.3;
        }

        .event-detail {
            display: flex;
            align-items: center;
            gap: 6px;
            color: var(--text-muted);
            font-size: 0.8rem;
            margin-top: 4px;
        }

        .event-detail svg {
            width: 14px;
            height: 14px;
            fill: currentColor;
            flex-shrink: 0;
        }

        .event-status-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            flex-shrink: 0;
        }

        .status-busy {
            background: var(--red);
        }

        .status-tentative {
            background: var(--amber);
        }

        .status-free {
            background: var(--green);
        }

        .status-oof {
            background: #8b5cf6;
        }

        /* NOW INDICATOR */
        .now-indicator {
            display: flex;
            align-items: center;
            gap: 10px;
            margin: 8px 0 16px;
            font-size: 0.7rem;
            color: var(--red);
            font-weight: 600;
            letter-spacing: 0.5px;
            text-transform: uppercase;
        }

        .now-indicator::after {
            content: '';
            flex: 1;
            height: 1.5px;
            background: linear-gradient(to right, var(--red), transparent);
        }

        .now-dot {
            width: 8px;
            height: 8px;
            background: var(--red);
            border-radius: 50%;
            animation: blink 2s ease-in-out infinite;
        }

        @keyframes blink {

            0%,
            100% {
                opacity: 1;
            }

            50% {
                opacity: 0.3;
            }
        }

        /* EMPTY STATE */
        .empty-state {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 60px 20px;
            text-align: center;
            gap: 16px;
        }

        .empty-state-icon {
            width: 64px;
            height: 64px;
            background: rgba(255, 255, 255, 0.04);
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .empty-state-icon svg {
            width: 32px;
            height: 32px;
            fill: var(--text-dim);
        }

        .empty-state h3 {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--text-muted);
        }

        .empty-state p {
            color: var(--text-dim);
            font-size: 0.85rem;
        }

        /* LOADING */
        .loading-spinner {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 80px 20px;
            gap: 16px;
        }

        .spinner {
            width: 36px;
            height: 36px;
            border: 3px solid rgba(99, 102, 241, 0.15);
            border-top-color: var(--accent);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        .loading-text {
            color: var(--text-dim);
            font-size: 0.85rem;
        }

        /* ============================================= */
        /* BOTTOM NAV                                    */
        /* ============================================= */
        nav.bottom-nav {
            position: fixed;
            bottom: 20px;
            left: 20px;
            right: 20px;
            background: rgba(23, 30, 46, 0.85);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            border-radius: 28px;
            padding: 10px 28px;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
            z-index: 50;
        }

        .nav-today-btn {
            background: var(--accent-gradient);
            border: none;
            padding: 10px 24px;
            border-radius: var(--radius-pill);
            color: white;
            font-size: 0.85rem;
            font-weight: 600;
            font-family: inherit;
            cursor: pointer;
            transition: all var(--transition-smooth);
            box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
        }

        .nav-today-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
        }

        .nav-today-btn:active {
            transform: translateY(0);
        }

        /* ============================================= */
        /* DESKTOP PHONE FRAME                           */
        /* ============================================= */
        @media (min-width: 480px) {
            body {
                max-width: 430px;
                margin: 0 auto;
                height: 93vh;
                margin-top: 3vh;
                border-radius: 40px;
                border: 6px solid #222b3e;
                box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 80px rgba(99, 102, 241, 0.05);
            }

            nav.bottom-nav {
                position: absolute;
                bottom: 16px;
                left: 16px;
                right: 16px;
            }
        }

        /* ============================================= */
        /* PWA INSTALL BANNER & MODAL                    */
        /* ============================================= */
        .pwa-banner {
            position: fixed;
            bottom: max(80px, calc(env(safe-area-inset-bottom, 20px) + 65px));
            left: 20px;
            right: 20px;
            background: rgba(30, 39, 56, 0.95);
            border: 1px solid rgba(99, 102, 241, 0.35);
            border-radius: var(--radius-card);
            padding: 12px 14px;
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 24px rgba(99, 102, 241, 0.15);
            z-index: 90;
            animation: slideUp 0.3s ease-out;
        }

        @media (min-width: 480px) {
            .pwa-banner {
                position: absolute;
                bottom: 74px;
                left: 16px;
                right: 16px;
            }
        }

        .pwa-banner-content {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .pwa-banner-icon {
            width: 38px;
            height: 38px;
            flex-shrink: 0;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        }

        .pwa-banner-icon img {
            width: 100%;
            height: 100%;
            display: block;
        }

        .pwa-banner-text {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .pwa-banner-text strong {
            font-size: 0.85rem;
            color: var(--text-main);
            font-weight: 600;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .pwa-banner-text span {
            font-size: 0.72rem;
            color: var(--text-muted);
            line-height: 1.25;
        }

        .pwa-banner-btn {
            background: var(--accent-gradient);
            border: none;
            color: white;
            font-size: 0.78rem;
            font-weight: 600;
            padding: 8px 14px;
            border-radius: var(--radius-pill);
            cursor: pointer;
            flex-shrink: 0;
            transition: all var(--transition-smooth);
            font-family: inherit;
        }

        .pwa-banner-btn:hover {
            transform: scale(1.04);
            box-shadow: 0 2px 12px rgba(99, 102, 241, 0.4);
        }

        .pwa-banner-close {
            background: none;
            border: none;
            color: var(--text-dim);
            font-size: 1.25rem;
            line-height: 1;
            padding: 4px;
            cursor: pointer;
            flex-shrink: 0;
            transition: color 0.15s;
        }

        .pwa-banner-close:hover {
            color: var(--text-main);
        }

        /* MODAL (for iOS or info) */
        .modal-backdrop {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.75);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            display: flex;
            align-items: flex-end;
            justify-content: center;
            z-index: 200;
            padding: 20px;
            animation: fadeIn 0.2s ease-out;
        }

        @media (min-width: 480px) {
            .modal-backdrop {
                align-items: center;
            }
        }

        .modal-card {
            background: var(--bg-surface);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: var(--radius-bento);
            padding: 24px;
            max-width: 380px;
            width: 100%;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
            display: flex;
            flex-direction: column;
            gap: 16px;
            animation: slideUp 0.3s ease-out;
        }

        .modal-card h3 {
            font-size: 1.05rem;
            font-weight: 700;
            color: var(--text-main);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .ios-steps {
            margin: 0;
            padding-left: 20px;
            color: var(--text-muted);
            font-size: 0.85rem;
            line-height: 1.7;
        }

        .ios-steps strong {
            color: var(--text-main);
        }

        .inline-icon {
            display: inline-block;
            width: 16px;
            height: 16px;
            vertical-align: text-bottom;
            fill: var(--accent-light);
        }

        .modal-close-btn {
            background: var(--accent-gradient);
            border: none;
            color: white;
            font-size: 0.9rem;
            font-weight: 600;
            padding: 12px 20px;
            border-radius: var(--radius-pill);
            cursor: pointer;
            width: 100%;
            font-family: inherit;
            margin-top: 4px;
            transition: all var(--transition-smooth);
        }

        .modal-close-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
        }

        /* ============================================= */
        /* PAGE TRANSITIONS                              */
        /* ============================================= */
        .fade-in {
            animation: fadeIn 0.4s ease-out;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(12px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .slide-up {
            animation: slideUp 0.35s ease-out;
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* ============================================= */
        /* ORBIT TASKS & LOGBOOK STYLING (HARMONIZED)    */
        /* ============================================= */
        .orbit-slot {
            margin-top: 18px;
            margin-bottom: 8px;
        }

        .orbit-container {
            margin-top: 6px;
        }

        .orbit-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 12px;
            padding: 0 2px;
        }

        .orbit-title-group {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .orbit-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.6px;
            color: #d946ef;
            background: rgba(217, 70, 239, 0.12);
            border: 1px solid rgba(217, 70, 239, 0.25);
            padding: 4px 10px;
            border-radius: var(--radius-pill);
        }

        .orbit-count-badge {
            font-size: 0.75rem;
            color: var(--text-dim);
            font-weight: 600;
        }

        .orbit-tabs {
            display: flex;
            background: rgba(255, 255, 255, 0.05);
            padding: 3px;
            border-radius: var(--radius-pill);
            border: 1px solid rgba(255, 255, 255, 0.06);
        }

        .orbit-tab-btn {
            background: none;
            border: none;
            color: var(--text-dim);
            font-size: 0.75rem;
            font-weight: 600;
            padding: 5px 12px;
            border-radius: var(--radius-pill);
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            font-family: inherit;
        }

        .orbit-tab-btn.active {
            background: var(--accent);
            color: white;
            box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
        }

        .orbit-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        /* ORBIT ITEM - MATCHES .event-card */
        .orbit-item {
            background: var(--bg-surface);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: var(--radius-card);
            padding: 16px 18px;
            margin-bottom: 0;
            transition: all var(--transition-smooth);
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: flex-start;
            gap: 14px;
        }

        .orbit-item::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 4px;
            background: var(--orbit-accent-bar, var(--accent-gradient));
            border-radius: 4px 0 0 4px;
            transition: opacity var(--transition-smooth);
        }

        .orbit-item.orbit-type-routine::before {
            background: var(--orbit-accent-bar, linear-gradient(135deg, #d946ef 0%, #a855f7 100%));
        }

        .orbit-item.orbit-type-task::before {
            background: var(--orbit-accent-bar, linear-gradient(135deg, #6366f1 0%, #3b82f6 100%));
        }

        .orbit-item.orbit-type-checklist::before {
            background: var(--orbit-accent-bar, linear-gradient(135deg, #f59e0b 0%, #f97316 100%));
        }

        .orbit-item:hover {
            background: var(--bg-card-hover);
            transform: translateY(-1px);
            box-shadow: var(--shadow-card);
            border-color: rgba(255, 255, 255, 0.1);
        }

        .orbit-item.completed {
            opacity: 0.42;
            filter: grayscale(40%);
            background: rgba(23, 30, 46, 0.45);
            border-color: rgba(255, 255, 255, 0.03);
        }

        .orbit-item.completed:hover,
        .orbit-item.completed:active {
            opacity: 0.75;
            filter: grayscale(10%);
        }

        .orbit-item.completed::before {
            opacity: 0.35;
        }

        .orbit-checkbox {
            width: 22px;
            height: 22px;
            border-radius: 7px;
            border: 2px solid rgba(255, 255, 255, 0.25);
            background: rgba(255, 255, 255, 0.03);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            margin-top: 1px;
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
            padding: 0;
        }

        .orbit-checkbox:hover {
            border-color: var(--accent-light);
            background: rgba(99, 102, 241, 0.15);
            transform: scale(1.08);
        }

        .orbit-checkbox.checked {
            background: var(--green);
            border-color: var(--green);
            box-shadow: 0 0 10px rgba(16, 185, 129, 0.35);
        }

        .orbit-checkbox svg {
            width: 14px;
            height: 14px;
            fill: none;
            stroke: white;
            stroke-width: 2.8;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .orbit-item-content {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .orbit-item-meta-top {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.78rem;
            font-weight: 600;
            margin-bottom: 2px;
            letter-spacing: 0.3px;
            flex-wrap: wrap;
        }

        .orbit-type-label {
            font-size: 0.68rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            padding: 2px 7px;
            border-radius: 6px;
        }

        .orbit-type-routine {
            background: rgba(217, 70, 239, 0.15);
            color: #f0abfc;
            border: 1px solid rgba(217, 70, 239, 0.3);
        }

        .orbit-type-task {
            background: rgba(99, 102, 241, 0.15);
            color: #a5b4fc;
            border: 1px solid rgba(99, 102, 241, 0.3);
        }

        .orbit-type-checklist {
            background: rgba(245, 158, 11, 0.15);
            color: #fcd34d;
            border: 1px solid rgba(245, 158, 11, 0.3);
        }

        .orbit-detail-area {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            color: var(--text-muted);
            font-size: 0.78rem;
            font-weight: 500;
        }

        .orbit-detail-badge {
            font-size: 0.75rem;
            color: var(--text-dim);
            font-weight: 500;
            margin-left: auto;
        }

        .orbit-item-title {
            font-size: 1rem;
            font-weight: 600;
            color: var(--text-main);
            line-height: 1.35;
            margin-bottom: 2px;
            word-break: break-word;
            transition: color var(--transition-fast);
        }

        .orbit-item.completed .orbit-item-title {
            text-decoration: line-through;
            color: var(--text-muted);
        }

        .orbit-item-detail {
            display: flex;
            align-items: center;
            gap: 6px;
            color: var(--text-muted);
            font-size: 0.8rem;
            margin-top: 4px;
            line-height: 1.3;
        }

        .orbit-item-detail svg {
            width: 14px;
            height: 14px;
            fill: currentColor;
            flex-shrink: 0;
        }

        .orbit-tags-row {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
            margin-top: 4px;
        }

        .orbit-empty {
            padding: 28px 16px;
            text-align: center;
            background: rgba(255, 255, 255, 0.02);
            border: 1px dashed rgba(255, 255, 255, 0.08);
            border-radius: var(--radius-card);
            color: var(--text-muted);
            font-size: 0.85rem;
        }

        .orbit-empty-icon {
            font-size: 1.6rem;
            margin-bottom: 6px;
        }

        .orbit-key-card {
            background: linear-gradient(135deg, rgba(30, 39, 56, 0.9) 0%, rgba(23, 30, 46, 0.95) 100%);
            border: 1px solid rgba(168, 85, 247, 0.3);
            border-radius: var(--radius-card);
            padding: 18px;
            display: flex;
            flex-direction: column;
            gap: 12px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        }

        .orbit-key-input-row {
            display: flex;
            gap: 8px;
        }

        .orbit-key-input {
            flex: 1;
            background: rgba(0, 0, 0, 0.35);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 12px;
            padding: 10px 14px;
            color: var(--text-main);
            font-size: 0.85rem;
            font-family: inherit;
            outline: none;
        }

        .orbit-key-input:focus {
            border-color: var(--accent);
            box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
        }

        .orbit-key-save-btn {
            background: var(--accent-gradient);
            border: none;
            color: white;
            font-weight: 600;
            padding: 10px 18px;
            border-radius: 12px;
            cursor: pointer;
            font-size: 0.85rem;
            font-family: inherit;
            transition: opacity 0.2s;
        }

        .orbit-key-save-btn:hover {
            opacity: 0.9;
        }
