@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('./fonts/inter-latin-wght-normal.woff2') format('woff2'); }
body { font-family: 'Inter', sans-serif; background-color: #111315; }
        
        ::-webkit-scrollbar { width: 6px; height: 6px; }
        ::-webkit-scrollbar-track { background: transparent; }
        ::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }
        ::-webkit-scrollbar-thumb:hover { background: #555; }
        
        .task-checkbox, .note-checkbox {
            appearance: none; width: 20px; height: 20px; border: 2px solid #555; border-radius: 50%;
            outline: none; cursor: pointer; transition: all 0.2s; position: relative; display: flex;
            align-items: center; justify-content: center; background-color: rgba(0,0,0,0.3);
        }
        .note-checkbox { border-radius: 4px; }
        .task-checkbox:checked, .note-checkbox:checked { background-color: #B2FF05; border-color: #B2FF05; }
        .task-checkbox:checked::after, .note-checkbox:checked::after {
            content: ''; width: 10px; height: 10px;
            background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23000" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>');
            background-size: contain; background-repeat: no-repeat;
        }
        .strike-through { text-decoration: line-through; color: #6B7280; }
        .project-item { transition: all 0.2s ease; }

        .dragging { opacity: 0.5; border: 2px dashed #B2FF05; }
        .drag-over { border-bottom: 2px solid #B2FF05; padding-bottom: 2px; }
        
        @keyframes pulse-border {
            0% { box-shadow: 0 0 0 0 rgba(178, 255, 5, 0.4); }
            70% { box-shadow: 0 0 0 10px rgba(178, 255, 5, 0); }
            100% { box-shadow: 0 0 0 0 rgba(178, 255, 5, 0); }
        }
        .timer-active { animation: pulse-border 2s infinite; border-color: #B2FF05 !important; }
        
        .loader {
            border: 3px solid rgba(255,255,255,0.1); border-top: 3px solid #000;
            border-radius: 50%; width: 20px; height: 20px; animation: spin 1s linear infinite;
        }
        @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

        /* Notes Grid */
        .masonry-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; align-items: start; }
        .note-card { break-inside: avoid; transition: transform 0.2s, box-shadow 0.2s; }
        .note-card:hover .note-hover-actions { opacity: 1; }
        .note-hover-actions { opacity: 0; transition: opacity 0.2s; }
        .selected-note { border-color: #B2FF05 !important; box-shadow: 0 0 0 1px #B2FF05; }
        
        #saveIndicator { opacity: 0; transition: opacity 0.3s; }
        .show-save { opacity: 1 !important; }

/* Production polish */
html { color-scheme: dark; }
body { min-height: 100dvh; overflow-x: hidden; }
button, input, textarea, select { font: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid #B2FF05;
    outline-offset: 2px;
}
.mobile-nav { padding-bottom: max(0.5rem, env(safe-area-inset-bottom)); }
#syncModeIndicator[data-state="saving"] { opacity: 0.85; }
#syncModeIndicator[data-state="offline"] { background: rgba(234,179,8,.1); }
#syncModeIndicator[data-state="error"] { background: rgba(239,68,68,.08); }

@media (max-width: 767px) {
    #view-split #split-details-panel { display: none; }
    #view-split.mobile-detail-open #project-list-panel { display: none; }
    #view-split.mobile-detail-open #split-details-panel { display: flex; width: 100%; min-height: 100%; }
    #project-list-panel { border-right: 0; padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* PIN access and portable backups use the existing Life OS palette. */
.auth-eyebrow { color: #b2ff05; font-size: 10px; letter-spacing: .16em; font-weight: 700; margin-bottom: 12px; }
.auth-footnote { color: #7d8490; font-size: 11px; text-align: center; margin-top: 28px; }
.pin-field { position: relative; }
.pin-field input { padding-right: 68px; letter-spacing: .14em; }
.pin-field input::placeholder { letter-spacing: 0; color: #737b88; }
.pin-field button { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: #a4acb9; font-size: 12px; padding: 8px 0; }
button:disabled { cursor: wait; opacity: .65; }
.header-tool { display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: #1a1d24; color: #a4acb9; border: 1px solid #2a303c; border-radius: 12px; padding: 10px; font-size: 12px; transition: color .15s, border-color .15s; }
.header-tool:hover { color: #b2ff05; border-color: #556338; }
.data-panel { width: min(100%, 640px); max-height: 90dvh; overflow-y: auto; background: #1a1d24; border: 1px solid #303641; border-radius: 28px; padding: 28px; box-shadow: 0 30px 100px #0008; color: #e5e7eb; }
.data-heading, .history-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.data-heading h2 { font-size: 24px; font-weight: 700; }
.data-heading .auth-eyebrow { margin-bottom: 5px; }
.data-intro { font-size: 14px; color: #9ca3af; line-height: 1.7; margin: 18px 0; }
.backup-actions { display: flex; gap: 12px; }
.backup-primary, .backup-secondary { padding: 12px 18px; border-radius: 12px; font-size: 13px; font-weight: 700; cursor: pointer; text-align: center; }
.backup-primary { background: #b2ff05; color: #101216; }
.backup-secondary { border: 1px solid #444c5a; background: #23262f; }
.backup-note { font-size: 11px; color: #929aa8; line-height: 1.65; margin: 12px 0 20px; }
.history-heading { margin-top: 24px; }
.history-heading h3 { font-size: 15px; font-weight: 600; }
.history-heading button { font-size: 12px; color: #b2ff05; }
.history-list { color: #9ca3af; font-size: 13px; }
.history-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid #2b303b; }
.history-row strong, .history-row span { display: block; }
.history-row strong { font-size: 13px; color: #e5e7eb; margin-bottom: 4px; }
.history-row span { font-size: 11px; }
.history-row button { padding: 6px 12px; border: 1px solid #404956; border-radius: 9px; color: #b2ff05; font-size: 11px; }
.noscript-message { position: fixed; z-index: 200; inset: 0; display: grid; place-items: center; background: #111315; color: white; }
#confirmModal { z-index: 95; }
.group:focus-within > .group-hover\:visible { visibility: visible; opacity: 1; }
.group:focus-within > .group-hover\:block { display: block; }
@media (min-width: 768px) and (max-width: 1023px) {
    #mainNav { display: none; }
    #mobileNav { display: block; }
    #appContainer { padding-bottom: 6rem; }
}
@media (max-width: 767px) {
    #appContainer > header { flex-wrap: wrap; gap: 10px; }
    #pomodoroWidget { bottom: 88px; left: 12px; right: 12px; gap: 8px; padding: 12px; }
    #pomodoroWidget #pomoTaskTitle { max-width: 105px; }
    #pomodoroWidget #pomoTimerDisplay { margin-left: auto; font-size: 22px; }
    #noteModal > div { padding: 18px; }
    #noteModal > div > div:first-child { flex-wrap: wrap; gap: 12px; }
    #noteModal > div > div:first-child > div:first-child { width: 100%; }
    .data-panel { padding: 22px; border-radius: 22px; }
    .backup-actions { flex-wrap: wrap; }
    .backup-actions > * { flex: 1; }
}
