
        :root {
            --accent: #4facfe;
            --accent-2: #9479ff;
            --glass-bg: rgba(6, 12, 24, 0.75);
            --glass-border: rgba(79, 172, 254, 0.22);
            --text-primary: #f8fafc;
            --text-muted: rgba(248, 250, 252, 0.7);
        }

        * { box-sizing: border-box; }

        body {
            margin: 0;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
            background: radial-gradient(circle at top left, rgba(79, 172, 254, 0.18), transparent 45%),
                radial-gradient(circle at top right, rgba(148, 121, 255, 0.2), transparent 50%),
                linear-gradient(165deg, #050811 0%, #01030a 100%);
            color: var(--text-primary);
            min-height: 100vh;
        }

        a { color: inherit; text-decoration: none; }

        .voice-journal-page {
            max-width: 600px;
            margin: 0 auto;
            padding: clamp(1.5rem, 4vw, 3rem) 1.2rem 6rem;
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        .page-header {
            text-align: center;
            padding: clamp(1.5rem, 4vw, 2rem);
            background: linear-gradient(160deg, rgba(79, 172, 254, 0.18), rgba(148, 121, 255, 0.15)), var(--glass-bg);
            border: 1px solid rgba(79, 172, 254, 0.28);
            border-radius: 28px;
        }

        .page-title {
            font-size: clamp(1.6rem, 4vw, 2.2rem);
            font-weight: 800;
            margin: 0 0 0.3rem;
            background: linear-gradient(135deg, var(--accent), var(--accent-2));
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .page-subtitle {
            color: var(--text-muted);
            font-size: 0.95rem;
            margin: 0;
        }

        /* Main recording area */
        .recording-area {
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            border-radius: 28px;
            padding: 2rem 1.5rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1.5rem;
        }

        .big-record-btn {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            border: 3px solid rgba(79, 172, 254, 0.4);
            background: linear-gradient(135deg, rgba(79, 172, 254, 0.15), rgba(148, 121, 255, 0.1));
            color: var(--text-primary);
            font-size: 3rem;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            -webkit-tap-highlight-color: transparent;
            touch-action: manipulation;
        }

        .big-record-btn:focus-visible {
            outline: 3px solid var(--accent, #4FACFE);
            outline-offset: 4px;
        }

        .big-record-btn:hover {
            border-color: var(--accent);
            transform: scale(1.05);
            box-shadow: 0 0 40px rgba(79, 172, 254, 0.25);
        }

        .big-record-btn:active {
            transform: scale(0.95);
        }

        .big-record-btn.recording {
            border-color: #ef4444;
            background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1));
            animation: pulse-record 1.5s infinite;
        }

        @keyframes pulse-record {
            0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.3); }
            50% { box-shadow: 0 0 0 20px rgba(239, 68, 68, 0); }
        }

        .recording-hint {
            color: var(--text-muted);
            font-size: 0.88rem;
            text-align: center;
        }

        .recording-hint.active {
            color: #ef4444;
            font-weight: 600;
        }

        /* Timer */
        .recording-timer {
            font-size: 2rem;
            font-weight: 700;
            font-variant-numeric: tabular-nums;
            color: var(--text-primary);
        }

        /* Waveform */
        .waveform-container {
            width: 100%;
        }

        .waveform-container canvas {
            width: 100%;
            height: 60px;
            border-radius: 12px;
            background: rgba(26, 26, 46, 0.8);
        }

        /* Playback section */
        .playback-section {
            width: 100%;
            display: none;
            flex-direction: column;
            gap: 1rem;
        }

        .playback-section.visible { display: flex; }

        .playback-section audio {
            width: 100%;
            border-radius: 12px;
        }

        .playback-actions {
            display: flex;
            gap: 0.8rem;
        }

        .action-btn {
            flex: 1;
            padding: 0.75rem 1rem;
            border: none;
            border-radius: 999px;
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.25s;
            text-align: center;
            -webkit-tap-highlight-color: transparent;
        }

        .action-btn.primary {
            background: linear-gradient(135deg, var(--accent), var(--accent-2));
            color: #05070f;
        }

        .action-btn.primary:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(148, 121, 255, 0.25); }

        .action-btn.secondary {
            background: rgba(5, 10, 20, 0.65);
            color: var(--text-muted);
            border: 1px solid var(--glass-border);
        }

        .action-btn.secondary:hover { border-color: rgba(148, 121, 255, 0.4); color: var(--text-primary); }

        .action-btn:disabled { opacity: 0.5; cursor: not-allowed; }

        /* Transcription */
        .transcription-section {
            width: 100%;
            display: none;
            flex-direction: column;
            gap: 1rem;
        }

        .transcription-section.visible { display: flex; }

        .transcription-section textarea {
            width: 100%;
            min-height: 120px;
            padding: 1rem;
            border-radius: 16px;
            border: 1px solid var(--glass-border);
            background: rgba(5, 10, 20, 0.65);
            color: var(--text-primary);
            font-family: inherit;
            font-size: 0.95rem;
            line-height: 1.6;
            resize: vertical;
        }

        .transcription-section textarea:focus {
            outline: none;
            border-color: rgba(79, 172, 254, 0.5);
        }

        .follow-up-question {
            padding: 1rem;
            background: rgba(79, 172, 254, 0.08);
            border: 1px solid rgba(79, 172, 254, 0.2);
            border-radius: 16px;
            display: none;
        }

        .follow-up-question.visible { display: block; }

        .follow-up-label {
            font-size: 0.78rem;
            color: var(--accent);
            font-weight: 600;
            margin-bottom: 4px;
        }

        .follow-up-text {
            font-size: 0.92rem;
            color: var(--text-primary);
            line-height: 1.5;
        }

        /* Loading spinner */
        .loading-state {
            text-align: center;
            padding: 2rem;
            color: var(--text-muted);
        }

        .spinner {
            width: 36px;
            height: 36px;
            border: 3px solid rgba(79, 172, 254, 0.2);
            border-top-color: var(--accent);
            border-radius: 50%;
            margin: 0 auto 12px;
            animation: spin 1s linear infinite;
        }

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

        /* Recent entries */
        .recent-section {
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            border-radius: 24px;
            padding: 1.25rem;
        }

        .recent-title {
            font-size: 1.1rem;
            font-weight: 700;
            margin: 0 0 0.75rem;
        }

        .recent-entry {
            padding: 0.75rem 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .recent-entry:last-child { border-bottom: none; }

        .recent-entry-title { font-weight: 600; font-size: 0.9rem; }
        .recent-entry-date { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
        .recent-entry-preview { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

        /* Toast */
        @keyframes slideIn {
            from { transform: translateX(100%); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }

        @media (max-width: 640px) {
            .voice-journal-page { padding: 1rem 0.8rem 5rem; }
            .big-record-btn { width: 100px; height: 100px; font-size: 2.5rem; }
        }
    