/* cmME pilot styles: Ryan's v4 prototype stylesheet, then pilot additions */

        @import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&family=Fraunces:wght@400;600;700&display=swap');
        
        * { margin: 0; padding: 0; box-sizing: border-box; }
        
        .cmme-app {
          --primary: #0066CC;
          --accent: #00B4D8;
          --bg: #F8FAFC;
          --card: #FFFFFF;
          --text: #1E293B;
          --text-secondary: #64748B;
          --border: #E2E8F0;
          --success: #10B981;
          --gradient: linear-gradient(135deg, #0066CC 0%, #00B4D8 100%);
          font-family: 'DM Sans', -apple-system, sans-serif;
          background: var(--bg);
          min-height: 100vh;
          max-width: 430px;
          margin: 0 auto;
          position: relative;
          overflow-x: hidden;
          box-shadow: 0 0 60px rgba(0, 102, 204, 0.1);
        }
        
        .screen { min-height: 100vh; display: flex; flex-direction: column; padding: 0 0 100px 0; }
        .fade-out { opacity: 0; transform: translateX(-20px); }
        .fade-in { animation: fadeIn 0.3s ease forwards; }
        @keyframes fadeIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
        
        /* Login Screen */
        .login-screen { background: var(--bg); padding: 0; }
        .login-header { background: var(--gradient); padding: 60px 24px 80px; text-align: center; border-radius: 0 0 40px 40px; }
        .login-content { padding: 32px 24px; margin-top: -40px; background: var(--card); border-radius: 24px 24px 0 0; flex: 1; position: relative; }
        .login-content h2 { font-family: 'Fraunces', serif; font-size: 28px; color: var(--text); margin-bottom: 6px; }
        .login-subtitle { color: var(--text-secondary); font-size: 15px; margin-bottom: 28px; }
        
        .login-form { display: flex; flex-direction: column; gap: 18px; }
        .input-group { display: flex; flex-direction: column; gap: 6px; }
        .input-group label { font-size: 13px; font-weight: 600; color: var(--text); }
        .input-group input { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; font-size: 15px; font-family: inherit; color: var(--text); transition: border-color 0.2s; }
        .input-group input:focus { outline: none; border-color: var(--primary); }
        .input-group input::placeholder { color: var(--text-secondary); }
        
        .forgot-link { background: none; border: none; color: var(--primary); font-size: 13px; font-weight: 500; cursor: pointer; align-self: flex-end; margin-top: -8px; font-family: inherit; }
        
        .login-btn { margin-top: 8px; }
        .login-btn.loading { opacity: 0.8; }
        .spinner { width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; animation: spin 0.8s linear infinite; }
        @keyframes spin { to { transform: rotate(360deg); } }
        
        .login-divider { display: flex; align-items: center; gap: 16px; margin: 28px 0; }
        .login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
        .login-divider span { font-size: 13px; color: var(--text-secondary); }
        
        .social-logins { display: flex; gap: 12px; }
        .social-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 14px; font-size: 14px; font-weight: 500; color: var(--text); cursor: pointer; font-family: inherit; transition: all 0.2s; }
        .social-btn:hover { border-color: var(--primary); background: white; }
        .social-icon { font-size: 18px; }
        
        .signup-prompt { text-align: center; margin-top: 28px; font-size: 14px; color: var(--text-secondary); }
        .signup-link { background: none; border: none; color: var(--primary); font-weight: 600; cursor: pointer; font-family: inherit; font-size: 14px; }
        
        /* Welcome Screen */
        .welcome-screen { background: var(--gradient); padding-top: 40px; }
        .logo-container { text-align: center; padding: 30px 24px; }
        .logo { font-family: 'Fraunces', serif; font-size: 48px; font-weight: 700; letter-spacing: -2px; }
        .logo-cm { color: #ffffff; }
        .logo-me { color: #90E0EF; }
        .tagline { color: rgba(255,255,255,0.85); font-size: 15px; margin-top: 6px; }
        .welcome-content { background: var(--card); border-radius: 32px 32px 0 0; padding: 32px 24px; flex: 1; margin-top: 16px; }
        .welcome-content h2 { font-family: 'Fraunces', serif; font-size: 24px; color: var(--text); margin-bottom: 6px; }
        .specialty-badge { display: inline-block; background: linear-gradient(135deg, #E8D5F5 0%, #F5E6D5 100%); color: #6B4C8A; padding: 5px 14px; border-radius: 16px; font-size: 13px; font-weight: 500; }
        
        /* Ask Box */
        .ask-box { display: flex; align-items: center; gap: 14px; background: var(--bg); border: 2px solid var(--border); border-radius: 16px; padding: 16px; margin: 20px 0; cursor: pointer; transition: all 0.2s; }
        .ask-box:hover { border-color: var(--primary); background: white; }
        .ask-icon { font-size: 28px; }
        .ask-content { flex: 1; }
        .ask-placeholder { display: block; color: var(--text); font-size: 15px; font-weight: 500; }
        .ask-hint { display: block; color: var(--text-secondary); font-size: 12px; margin-top: 2px; }
        .ask-arrow { color: var(--primary); font-size: 20px; font-weight: 600; }
        
        .stats-row { display: flex; gap: 12px; margin: 20px 0; }
        .stat { flex: 1; background: var(--bg); padding: 16px; border-radius: 14px; text-align: center; cursor: pointer; }
        .stat-value { display: block; font-family: 'Fraunces', serif; font-size: 28px; font-weight: 600; color: var(--primary); }
        .stat-label { display: block; font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
        .stat-progress { height: 4px; background: var(--border); border-radius: 2px; margin-top: 8px; overflow: hidden; }
        .stat-progress-fill { height: 100%; background: var(--gradient); border-radius: 2px; transition: width 0.3s; }
        
        .primary-btn { width: 100%; background: var(--gradient); color: white; border: none; padding: 16px 24px; border-radius: 14px; font-size: 16px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: transform 0.2s, box-shadow 0.2s; font-family: inherit; }
        .primary-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 102, 204, 0.3); }
        .primary-btn.disabled { opacity: 0.5; cursor: not-allowed; }
        .primary-btn.disabled:hover { transform: none; box-shadow: none; }
        .secondary-btn { width: 100%; background: var(--card); color: var(--text); border: 1px solid var(--border); padding: 14px 24px; border-radius: 12px; font-size: 15px; font-weight: 500; cursor: pointer; font-family: inherit; transition: all 0.2s; }
        .secondary-btn:hover { background: var(--bg); border-color: var(--primary); }
        
        .bottom-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 430px; background: white; display: flex; justify-content: space-around; padding: 10px 0 24px; border-top: 1px solid var(--border); }
        .nav-item { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--text-secondary); font-size: 10px; cursor: pointer; }
        .nav-item.active { color: var(--primary); }
        .nav-icon { font-size: 20px; }
        
        /* Screen Header */
        .screen-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; background: var(--card); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
        .screen-header.dark { background: #0A1628; border-bottom: 1px solid rgba(255,255,255,0.1); }
        .screen-header.dark h1 { color: white; }
        .screen-header h1 { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 600; }
        .back-btn, .cite-btn { width: 38px; height: 38px; border: none; background: var(--bg); border-radius: 10px; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
        .screen-header.dark .back-btn, .screen-header.dark .cite-btn { background: rgba(255,255,255,0.1); color: white; }
        .header-spacer { width: 38px; }
        
        /* Ask Flow Screen */
        .askflow-content { padding: 24px 20px; flex: 1; overflow-y: auto; }
        
        /* Input Mode Toggle */
        .input-mode-toggle { display: flex; background: var(--bg); border-radius: 12px; padding: 4px; margin-bottom: 24px; }
        .mode-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border: none; background: transparent; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--text-secondary); cursor: pointer; font-family: inherit; transition: all 0.2s; }
        .mode-btn.active { background: white; color: var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
        .mode-icon { font-size: 18px; }
        
        .voice-prompt { text-align: center; padding: 30px 0; }
        .voice-circle { width: 120px; height: 120px; border-radius: 50%; background: var(--gradient); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
        .voice-circle:hover { transform: scale(1.05); }
        .voice-circle.listening { animation: pulse-ring 1.5s infinite; box-shadow: 0 0 0 20px rgba(0, 102, 204, 0.2); }
        @keyframes pulse-ring { 0%, 100% { box-shadow: 0 0 0 10px rgba(0, 102, 204, 0.2); } 50% { box-shadow: 0 0 0 25px rgba(0, 102, 204, 0.1); } }
        .voice-icon { font-size: 48px; }
        .voice-label { color: var(--text-secondary); font-size: 15px; }
        .voice-waves { display: flex; justify-content: center; gap: 4px; margin-top: 16px; }
        .voice-waves span { width: 4px; height: 20px; background: var(--primary); border-radius: 2px; animation: wave 0.5s ease-in-out infinite alternate; }
        .voice-waves span:nth-child(2) { animation-delay: 0.1s; }
        .voice-waves span:nth-child(3) { animation-delay: 0.2s; }
        .voice-waves span:nth-child(4) { animation-delay: 0.3s; }
        @keyframes wave { from { height: 10px; } to { height: 30px; } }
        
        /* Text Input */
        .text-prompt { padding: 20px 0; }
        .text-input-container { position: relative; }
        .text-input { width: 100%; background: var(--bg); border: 2px solid var(--border); border-radius: 16px; padding: 16px; padding-right: 80px; font-size: 15px; font-family: inherit; color: var(--text); resize: none; transition: border-color 0.2s; }
        .text-input:focus { outline: none; border-color: var(--primary); }
        .text-input::placeholder { color: var(--text-secondary); }
        .text-submit-btn { position: absolute; right: 8px; bottom: 8px; background: var(--border); color: var(--text-secondary); border: none; border-radius: 10px; padding: 10px 16px; font-size: 14px; font-weight: 600; cursor: not-allowed; font-family: inherit; transition: all 0.2s; }
        .text-submit-btn.active { background: var(--gradient); color: white; cursor: pointer; }
        .text-submit-btn.active:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3); }
        
        /* Literature Updates CTA */
        .literature-cta { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%); border: 2px solid #BAE6FD; border-radius: 16px; padding: 16px; margin: 24px 0; cursor: pointer; transition: all 0.2s; }
        .literature-cta:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15); }
        .lit-cta-icon { font-size: 28px; }
        .lit-cta-content { flex: 1; }
        .lit-cta-title { display: block; font-weight: 600; color: var(--text); font-size: 15px; }
        .lit-cta-sub { display: block; color: var(--text-secondary); font-size: 12px; margin-top: 2px; }
        .lit-cta-badge { background: var(--primary); color: white; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
        
        /* Literature Updates Screen */
        .literature-content { padding: 20px; padding-bottom: 100px; }
        .literature-header { margin-bottom: 16px; }
        .literature-header h2 { font-family: 'Fraunces', serif; font-size: 24px; color: var(--text); margin-bottom: 4px; }
        .literature-header p { color: var(--text-secondary); font-size: 14px; }
        
        .papers-list { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
        .paper-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 18px; position: relative; }
        .new-badge { position: absolute; top: 12px; right: 12px; background: var(--success); color: white; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
        .paper-meta { display: flex; gap: 12px; margin-bottom: 8px; }
        .paper-journal { font-size: 12px; font-weight: 600; color: var(--primary); }
        .paper-date { font-size: 12px; color: var(--text-secondary); }
        .paper-title { font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.4; margin-bottom: 4px; }
        .paper-authors { font-size: 13px; color: var(--text-secondary); margin-bottom: 10px; }
        .paper-summary { font-size: 13px; color: var(--text); line-height: 1.5; margin-bottom: 12px; background: var(--bg); padding: 12px; border-radius: 10px; border-left: 3px solid var(--primary); }
        .paper-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
        .paper-tag { background: var(--bg); padding: 4px 10px; border-radius: 8px; font-size: 11px; color: var(--text-secondary); }
        .paper-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--border); }
        .paper-rating { display: flex; align-items: center; gap: 6px; }
        .rating-stars { color: #F59E0B; font-size: 12px; letter-spacing: 1px; }
        .rating-value { font-weight: 600; color: var(--text); font-size: 13px; }
        .rating-count { font-size: 12px; color: var(--text-secondary); }
        .paper-actions { display: flex; gap: 8px; }
        .paper-action-btn { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 6px 12px; font-size: 12px; color: var(--text); cursor: pointer; font-family: inherit; transition: all 0.2s; }
        .paper-action-btn:hover { border-color: var(--primary); color: var(--primary); }
        
        /* Paper Detail View */
        .paper-detail-content { padding: 20px; padding-bottom: 100px; overflow-y: auto; }
        .paper-detail-header { margin-bottom: 20px; }
        .paper-detail-header .paper-journal { font-size: 13px; font-weight: 600; color: var(--primary); }
        .paper-detail-header h2 { font-family: 'Fraunces', serif; font-size: 20px; color: var(--text); line-height: 1.4; margin: 8px 0; }
        .paper-detail-header .paper-authors { font-size: 14px; color: var(--text-secondary); margin-bottom: 12px; }
        .paper-rating-large { display: flex; align-items: center; gap: 8px; }
        .paper-rating-large .rating-stars { color: #F59E0B; font-size: 16px; }
        .paper-rating-large .rating-value { font-weight: 700; color: var(--text); font-size: 16px; }
        .paper-rating-large .rating-count { font-size: 13px; color: var(--text-secondary); }
        
        .paper-view-toggle { display: flex; background: var(--bg); border-radius: 12px; padding: 4px; margin-bottom: 20px; }
        .view-toggle-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border: none; background: transparent; border-radius: 10px; font-size: 13px; font-weight: 500; color: var(--text-secondary); cursor: pointer; font-family: inherit; transition: all 0.2s; }
        .view-toggle-btn.active { background: white; color: var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
        
        /* Text Summary Styles */
        .paper-summary-full { }
        .summary-section { margin-bottom: 20px; }
        .summary-section h4 { font-size: 14px; font-weight: 600; color: var(--primary); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
        .summary-section p { font-size: 14px; color: var(--text); line-height: 1.6; }
        
        .key-numbers-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 20px 0; }
        .key-number-card { background: var(--bg); border-radius: 12px; padding: 16px; text-align: center; }
        .key-number-value { font-family: 'Fraunces', serif; font-size: 28px; font-weight: 700; color: var(--primary); display: block; }
        .key-number-label { font-size: 11px; color: var(--text-secondary); display: block; margin-top: 4px; }
        .key-numbers-grid .key-number-card:last-child:nth-child(odd) { grid-column: span 2; }
        
        .summary-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
        .summary-action-btn { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px; font-size: 14px; font-weight: 500; color: var(--text); cursor: pointer; font-family: inherit; transition: all 0.2s; }
        .summary-action-btn:hover { border-color: var(--primary); color: var(--primary); }
        
        /* Audio Discussion Styles */
        .paper-audio-discussion { }
        .audio-intro { margin-bottom: 20px; }
        .audio-intro h4 { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
        .audio-intro p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }
        
        .audio-speakers { display: flex; gap: 12px; margin-bottom: 20px; overflow-x: auto; padding-bottom: 4px; }
        .audio-speaker { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; flex-shrink: 0; }
        .speaker-avatar-small { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
        .speaker-info-small { display: flex; flex-direction: column; }
        .speaker-name-small { font-size: 13px; font-weight: 600; color: var(--text); }
        .audio-speaker .speaker-role-small { font-size: 11px; color: var(--text-secondary); }
        
        .audio-player-card { background: linear-gradient(135deg, #1E293B 0%, #334155 100%); border-radius: 16px; padding: 20px; margin-bottom: 20px; }
        .audio-waveform { display: flex; align-items: center; justify-content: center; gap: 3px; height: 40px; margin-bottom: 16px; }
        .audio-bar { width: 4px; background: rgba(255,255,255,0.3); border-radius: 2px; transition: background 0.2s; }
        .audio-bar.playing { background: var(--accent); animation: audioWave 0.3s ease-in-out infinite alternate; }
        @keyframes audioWave { from { transform: scaleY(0.8); } to { transform: scaleY(1.2); } }
        
        .audio-controls { display: flex; align-items: center; gap: 16px; }
        .audio-play-btn { width: 56px; height: 56px; border-radius: 50%; background: var(--gradient); border: none; color: white; font-size: 24px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform 0.2s; }
        .audio-play-btn:hover { transform: scale(1.05); }
        .audio-play-btn.playing { background: linear-gradient(135deg, #EF4444 0%, #F97316 100%); }
        .audio-info { }
        .audio-title { display: block; color: white; font-weight: 600; font-size: 15px; }
        .audio-duration { display: block; color: rgba(255,255,255,0.6); font-size: 13px; margin-top: 2px; }
        
        .audio-transcript { background: var(--bg); border-radius: 16px; padding: 16px; }
        .audio-transcript h4 { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 16px; }
        .transcript-list { display: flex; flex-direction: column; gap: 16px; max-height: 400px; overflow-y: auto; }
        .transcript-segment { padding: 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); transition: all 0.2s; }
        .transcript-segment.current { background: rgba(0, 102, 204, 0.08); border-color: var(--primary); }
        .segment-speaker { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
        .segment-avatar { font-size: 20px; }
        .segment-name { font-size: 13px; font-weight: 600; color: var(--primary); }
        .segment-text { font-size: 14px; color: var(--text); line-height: 1.6; }
        
        .example-questions { margin-top: 20px; }
        .example-questions h4 { font-size: 14px; color: var(--text-secondary); margin-bottom: 12px; }
        .example-q { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; font-size: 14px; color: var(--text); cursor: pointer; transition: all 0.2s; font-style: italic; }
        .example-q:hover { border-color: var(--primary); background: rgba(0, 102, 204, 0.02); }
        
        .answer-demo { margin-top: 24px; animation: fadeIn 0.4s ease; }
        .answer-header { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
        .answer-icon { font-size: 24px; }
        .answer-header span { color: var(--text); font-weight: 500; }
        .answer-options { display: flex; flex-direction: column; gap: 10px; }
        .answer-option { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px; cursor: pointer; transition: all 0.2s; }
        .answer-option:hover { border-color: var(--primary); transform: translateX(4px); }
        .option-icon { font-size: 28px; }
        .option-content { flex: 1; }
        .option-title { display: block; font-weight: 600; color: var(--text); font-size: 15px; }
        .option-sub { display: block; color: var(--text-secondary); font-size: 13px; margin-top: 2px; }
        
        /* Syllabus Screen */
        .syllabus-content { padding: 20px; }
        .syllabus-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
        .syllabus-title h2 { font-family: 'Fraunces', serif; font-size: 22px; color: var(--text); }
        .syllabus-title p { color: var(--text-secondary); font-size: 14px; }
        .syllabus-progress-ring { width: 70px; height: 70px; position: relative; }
        .syllabus-progress-ring svg { transform: rotate(-90deg); }
        .progress-bg { fill: none; stroke: var(--border); stroke-width: 3; }
        .progress-fill { fill: none; stroke: url(#gradient); stroke-width: 3; stroke-linecap: round; }
        .progress-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
        .progress-value { font-family: 'Fraunces', serif; font-size: 16px; font-weight: 600; color: var(--primary); }
        
        .syllabus-stats { display: flex; gap: 10px; margin-bottom: 24px; }
        .syl-stat { flex: 1; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px; text-align: center; }
        .syl-stat-value { display: block; font-family: 'Fraunces', serif; font-size: 20px; font-weight: 600; color: var(--primary); }
        .syl-stat-label { display: block; font-size: 11px; color: var(--text-secondary); }
        
        .syllabus-section { margin-bottom: 24px; }
        .section-title { font-size: 13px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
        .syllabus-item { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 8px; cursor: pointer; transition: all 0.2s; }
        .syllabus-item:hover { border-color: var(--primary); }
        .syllabus-item.completed { background: rgba(16, 185, 129, 0.05); border-color: var(--success); }
        .item-checkbox { width: 24px; height: 24px; border: 2px solid var(--border); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 14px; color: white; transition: all 0.2s; }
        .syllabus-item.completed .item-checkbox { background: var(--success); border-color: var(--success); }
        .item-content { flex: 1; }
        .item-title { display: block; font-weight: 600; color: var(--text); font-size: 14px; }
        .item-subtitle { display: block; color: var(--text-secondary); font-size: 12px; margin-top: 2px; }
        .item-hours { font-size: 12px; color: var(--text-secondary); background: var(--bg); padding: 4px 8px; border-radius: 8px; }
        
        /* Topic & Modality Screens */
        .filter-pills { display: flex; gap: 8px; padding: 14px 20px; overflow-x: auto; }
        .pill { padding: 7px 14px; border-radius: 18px; font-size: 13px; font-weight: 500; background: var(--card); border: 1px solid var(--border); color: var(--text-secondary); white-space: nowrap; cursor: pointer; }
        .pill.active { background: var(--primary); border-color: var(--primary); color: white; }
        .topics-list { padding: 0 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
        .topic-card { background: var(--card); border-radius: 16px; padding: 18px; border: 2px solid transparent; cursor: pointer; transition: all 0.2s; position: relative; }
        .topic-card.selected { border-color: var(--primary); background: linear-gradient(to bottom right, rgba(0,102,204,0.05), rgba(0,180,216,0.05)); }
        .topic-card.locked { opacity: 0.6; cursor: not-allowed; }
        .lock-badge { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,0.7); color: white; padding: 3px 8px; border-radius: 10px; font-size: 10px; }
        .topic-card h3 { font-family: 'Fraunces', serif; font-size: 18px; margin-bottom: 4px; color: var(--text); }
        .topic-card p { color: var(--text-secondary); font-size: 13px; margin-bottom: 12px; }
        .specialty-tags { display: flex; gap: 6px; flex-wrap: wrap; }
        .specialty-tag { background: var(--bg); padding: 3px 8px; border-radius: 10px; font-size: 11px; color: var(--text-secondary); }
        .bottom-action { padding: 16px 20px; background: var(--card); border-top: 1px solid var(--border); position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 430px; }
        
        .modality-intro { padding: 20px; text-align: center; }
        .modality-intro h2 { font-family: 'Fraunces', serif; font-size: 22px; color: var(--text); margin-bottom: 6px; }
        .modality-intro p { color: var(--text-secondary); font-size: 14px; }
        .modality-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 20px; }
        .modality-card { background: var(--card); border: 2px solid var(--border); border-radius: 16px; padding: 18px 14px; text-align: center; cursor: pointer; transition: all 0.2s; }
        .modality-card:nth-child(5) { grid-column: span 2; }
        .modality-card.selected { border-color: var(--primary); background: linear-gradient(to bottom right, rgba(0,102,204,0.05), rgba(0,180,216,0.05)); }
        .modality-icon { font-size: 32px; display: block; margin-bottom: 8px; }
        .modality-title { display: block; font-weight: 600; color: var(--text); font-size: 14px; }
        .modality-subtitle { display: block; color: var(--text-secondary); font-size: 12px; margin-top: 4px; }
        .modality-duration { display: block; color: var(--primary); font-size: 12px; font-weight: 500; margin-top: 8px; }
        
        /* Preview Screens */
        .preview-content { padding: 20px; flex: 1; overflow-y: auto; padding-bottom: 100px; }
        .preview-newsletter { background: var(--card); border-radius: 16px; overflow: hidden; border: 1px solid var(--border); }
        .newsletter-header { background: var(--gradient); padding: 20px; color: white; }
        .newsletter-date { font-size: 12px; opacity: 0.8; }
        .newsletter-header h2 { font-family: 'Fraunces', serif; font-size: 20px; margin-top: 6px; }
        .newsletter-body { padding: 20px; }
        .newsletter-lead { font-size: 15px; color: var(--text); line-height: 1.6; margin-bottom: 20px; font-style: italic; border-left: 3px solid var(--primary); padding-left: 14px; }
        .newsletter-body h4 { font-size: 15px; font-weight: 600; color: var(--text); margin: 20px 0 10px; }
        .newsletter-body > p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
        .newsletter-stat-box { background: var(--bg); border-radius: 12px; padding: 20px; text-align: center; margin: 20px 0; }
        .stat-big { font-family: 'Fraunces', serif; font-size: 42px; font-weight: 700; color: var(--primary); display: block; }
        .stat-desc { font-size: 14px; color: var(--text); display: block; margin-top: 4px; }
        .stat-compare { font-size: 13px; color: var(--text-secondary); display: block; margin-top: 4px; }
        .newsletter-key-point { display: flex; gap: 12px; background: #FEF3C7; border-radius: 10px; padding: 14px; margin: 16px 0; }
        .key-icon { font-size: 20px; }
        .newsletter-key-point p { font-size: 14px; color: #92400E; line-height: 1.5; }
        .newsletter-citation { font-size: 12px; color: var(--text-secondary); margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
        
        .preview-slides { background: var(--card); border-radius: 16px; overflow: hidden; border: 1px solid var(--border); }
        .slide-preview { background: linear-gradient(135deg, #1E293B 0%, #334155 100%); padding: 40px 24px; text-align: center; color: white; min-height: 180px; display: flex; flex-direction: column; justify-content: center; }
        .slide-number { font-size: 12px; opacity: 0.6; margin-bottom: 16px; }
        .slide-preview h3 { font-family: 'Fraunces', serif; font-size: 22px; margin-bottom: 8px; }
        .slide-preview > p { font-size: 14px; opacity: 0.8; }
        .slide-footer { font-size: 11px; opacity: 0.5; margin-top: 20px; }
        .slide-thumbnails { display: flex; justify-content: center; gap: 8px; padding: 14px; background: var(--bg); }
        .thumb { width: 32px; height: 24px; background: var(--card); border: 1px solid var(--border); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--text-secondary); }
        .thumb.active { border-color: var(--primary); color: var(--primary); }
        .slide-list { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
        .slide-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--bg); border-radius: 8px; }
        .slide-num { width: 24px; height: 24px; background: var(--primary); color: white; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; flex-shrink: 0; }
        .slide-title { font-size: 13px; color: var(--text); }
        
        .preview-case { background: var(--card); border-radius: 16px; overflow: hidden; border: 1px solid var(--border); }
        .case-header { background: linear-gradient(135deg, #0066CC 0%, #00B4D8 100%); padding: 16px 20px; color: white; }
        .case-badge { font-size: 11px; opacity: 0.8; font-weight: 500; }
        .case-header h3 { font-size: 17px; margin-top: 4px; font-family: 'Fraunces', serif; }
        .case-scenario { padding: 20px; }
        .case-patient { display: flex; align-items: center; gap: 12px; background: var(--bg); border-radius: 12px; padding: 14px; margin-bottom: 16px; }
        .patient-icon { font-size: 32px; }
        .patient-info { display: flex; flex-direction: column; }
        .patient-name { font-weight: 600; color: var(--text); font-size: 15px; }
        .patient-detail { font-size: 13px; color: var(--text-secondary); }
        .case-history { margin-bottom: 20px; }
        .case-history h4 { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
        .case-history p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 12px; }
        .case-question h4 { font-size: 13px; font-weight: 600; color: var(--primary); margin-bottom: 8px; }
        .case-question > p { font-size: 15px; color: var(--text); font-weight: 500; margin-bottom: 14px; }
        .case-options { display: flex; flex-direction: column; gap: 10px; }
        .case-option { display: flex; align-items: flex-start; gap: 12px; background: var(--bg); border: 2px solid var(--border); border-radius: 12px; padding: 14px; font-size: 14px; color: var(--text); cursor: pointer; transition: all 0.2s; }
        .case-option:hover { border-color: var(--primary); }
        .case-option.correct { border-color: var(--success); background: rgba(16, 185, 129, 0.08); }
        .option-letter { width: 24px; height: 24px; background: var(--card); border: 1px solid var(--border); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: var(--text-secondary); flex-shrink: 0; }
        .case-option.correct .option-letter { background: var(--success); border-color: var(--success); color: white; }
        .case-progress { margin-top: 20px; }
        .progress-dots { display: flex; justify-content: center; gap: 8px; }
        .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
        .dot.active { background: var(--primary); }
        
        .preview-quickref { }
        .quickref-card { background: var(--card); border-radius: 16px; padding: 20px; border: 2px solid var(--primary); }
        .quickref-header { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
        .quickref-icon { font-size: 28px; }
        .quickref-card h3 { font-family: 'Fraunces', serif; font-size: 18px; color: var(--text); }
        .quickref-section { margin-bottom: 20px; }
        .quickref-section h4 { font-size: 13px; font-weight: 600; color: var(--primary); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
        .quickref-criteria { display: flex; flex-direction: column; gap: 8px; }
        .criteria-item { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 10px 12px; border-radius: 8px; }
        .criteria-item.yes { background: rgba(16, 185, 129, 0.1); color: #065F46; }
        .criteria-item.no { background: rgba(239, 68, 68, 0.1); color: #991B1B; }
        .criteria-icon { font-weight: 700; }
        .quickref-protocol { display: flex; flex-direction: column; align-items: center; gap: 4px; }
        .protocol-step { display: flex; align-items: center; gap: 10px; background: var(--bg); padding: 12px 16px; border-radius: 10px; width: 100%; }
        .step-num { width: 24px; height: 24px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
        .protocol-arrow { color: var(--text-secondary); font-size: 12px; padding: 4px 0; }
        .quickref-table { background: var(--bg); border-radius: 10px; overflow: hidden; }
        .qr-row { display: flex; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 13px; }
        .qr-row:last-child { border-bottom: none; }
        .qr-row.header { background: var(--primary); color: white; font-weight: 600; }
        .qr-row span:first-child { color: var(--text-secondary); }
        .qr-row.header span:first-child { color: white; }
        .qr-row span:last-child { font-weight: 500; color: var(--text); text-align: right; }
        .qr-row span.highlight { color: var(--success); font-weight: 600; }
        .quickref-stats { display: flex; gap: 10px; }
        .qr-stat { flex: 1; background: var(--bg); border-radius: 10px; padding: 14px; text-align: center; }
        .qr-stat-value { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 600; color: var(--primary); display: block; }
        .qr-stat-label { font-size: 11px; color: var(--text-secondary); display: block; margin-top: 2px; }
        .quickref-section p { font-size: 13px; color: var(--text); line-height: 1.4; }
        .quickref-footer { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 11px; color: var(--text-secondary); text-align: center; }
        
        .preview-cta { padding: 20px; text-align: center; }
        .preview-note { color: var(--text-secondary); font-size: 13px; margin-bottom: 16px; }
        
        /* Panel Screen */
        .panel-intro { padding: 20px; text-align: center; }
        .panel-intro h2 { font-family: 'Fraunces', serif; font-size: 24px; color: var(--text); margin-bottom: 8px; }
        .panel-intro p { color: var(--text-secondary); font-size: 14px; }
        .panel-members { padding: 0 20px; display: flex; flex-direction: column; gap: 10px; }
        .panel-member { display: flex; align-items: center; gap: 14px; background: var(--card); padding: 14px; border-radius: 14px; border: 1px solid var(--border); animation: slideIn 0.4s ease forwards; opacity: 0; }
        @keyframes slideIn { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
        .member-avatar { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; }
        .member-info { flex: 1; }
        .member-name { font-weight: 600; color: var(--text); font-size: 15px; display: block; }
        .member-role { color: var(--text-secondary); font-size: 13px; }
        .you-badge { background: var(--gradient); color: white; padding: 4px 10px; border-radius: 10px; font-size: 11px; font-weight: 600; }
        .source-notice, .interrupt-notice { display: flex; align-items: flex-start; gap: 10px; margin: 14px 20px; padding: 14px; background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%); border-radius: 14px; }
        .interrupt-notice { background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%); }
        .source-icon, .interrupt-icon { font-size: 20px; }
        .source-notice p, .interrupt-notice p { color: var(--text-secondary); font-size: 13px; line-height: 1.4; }
        
        /* Player Screen */
        .player-screen { background: linear-gradient(180deg, #0A1628 0%, #1E293B 100%); min-height: 100vh; }
        .player-content { padding: 20px; flex: 1; overflow-y: auto; }
        .session-info { text-align: center; margin-bottom: 24px; }
        .session-info h2 { font-family: 'Fraunces', serif; font-size: 22px; color: white; margin-bottom: 6px; }
        .session-info p { color: rgba(255,255,255,0.6); font-size: 14px; }
        .waveform { display: flex; align-items: center; justify-content: center; gap: 3px; height: 50px; margin-bottom: 12px; }
        .wave-bar { width: 4px; background: rgba(255,255,255,0.2); border-radius: 2px; transition: background 0.3s; }
        .wave-bar.active { background: var(--accent); }
        .wave-bar.speaking.active { animation: waveAnim 0.15s ease-in-out infinite alternate; }
        @keyframes waveAnim { from { transform: scaleY(0.85); } to { transform: scaleY(1.15); } }
        .time-display { display: flex; justify-content: space-between; color: rgba(255,255,255,0.6); font-size: 12px; margin-bottom: 20px; }
        .player-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 16px; }
        .control-btn { background: rgba(255,255,255,0.1); border: none; border-radius: 50%; color: white; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
        .control-btn.skip { width: 44px; height: 44px; font-size: 14px; }
        .control-btn.play { width: 64px; height: 64px; font-size: 24px; background: var(--gradient); }
        .control-btn.play:hover { transform: scale(1.05); }
        .control-btn.play.playing { background: linear-gradient(135deg, #EF4444 0%, #F97316 100%); }
        
        /* Ask Interrupt */
        .ask-interrupt { text-align: center; margin-bottom: 20px; }
        .ask-interrupt-btn { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: 24px; padding: 10px 20px; cursor: pointer; transition: all 0.2s; }
        .ask-interrupt-btn:hover { background: rgba(255,255,255,0.15); border-color: var(--accent); }
        .ask-interrupt-btn.listening { background: rgba(0, 180, 216, 0.2); border-color: var(--accent); }
        .ask-mic { font-size: 18px; }
        .ask-text { color: rgba(255,255,255,0.8); font-size: 13px; }
        .listening-waves { display: flex; justify-content: center; gap: 3px; margin-top: 10px; }
        .listening-waves span { width: 3px; height: 12px; background: var(--accent); border-radius: 2px; animation: wave 0.4s ease-in-out infinite alternate; }
        .listening-waves span:nth-child(2) { animation-delay: 0.1s; }
        .listening-waves span:nth-child(3) { animation-delay: 0.2s; }
        
        .current-speaker { text-align: center; margin-bottom: 16px; min-height: 36px; }
        .speaker-indicator { display: inline-flex; align-items: center; gap: 8px; background: rgba(0, 180, 216, 0.2); padding: 8px 16px; border-radius: 20px; color: var(--accent); font-weight: 500; font-size: 13px; }
        .speaking-icon { animation: pulse 0.6s ease infinite alternate; }
        @keyframes pulse { from { opacity: 0.5; } to { opacity: 1; } }
        .speaker-role-small { color: rgba(255,255,255,0.5); font-size: 11px; font-weight: 400; }
        
        .live-transcript { background: rgba(255,255,255,0.05); border-radius: 16px; padding: 16px; max-height: 240px; overflow-y: auto; margin-bottom: 80px; }
        .live-transcript h4 { color: rgba(255,255,255,0.7); font-size: 13px; margin-bottom: 12px; font-weight: 500; }
        .transcript-content { display: flex; flex-direction: column; gap: 12px; }
        .transcript-item { padding: 12px; border-radius: 10px; border-left: 3px solid transparent; }
        .transcript-item.current { background: rgba(0, 180, 216, 0.15); border-left-color: var(--accent); }
        .transcript-speaker { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
        .speaker-name { color: var(--accent); font-weight: 600; font-size: 13px; }
        .speaker-role { color: rgba(255,255,255,0.4); font-size: 11px; }
        .transcript-text { color: rgba(255,255,255,0.9); font-size: 13px; line-height: 1.5; }
        .transcript-placeholder { text-align: center; padding: 30px; }
        .transcript-placeholder p { color: rgba(255,255,255,0.4); font-size: 13px; }
        .citation-badge { display: inline-block; margin-top: 8px; background: rgba(0, 180, 216, 0.2); color: var(--accent); padding: 3px 8px; border-radius: 6px; font-size: 10px; font-weight: 500; }
        
        .cme-tracker { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); width: calc(100% - 32px); max-width: 398px; background: rgba(255,255,255,0.97); border-radius: 14px; padding: 14px 18px; display: flex; align-items: center; gap: 14px; box-shadow: 0 8px 32px rgba(0,0,0,0.3); z-index: 50; }
        .cme-icon { font-size: 24px; }
        .cme-info { flex: 1; }
        .cme-label { font-size: 11px; color: var(--text-secondary); display: block; }
        .cme-value { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 600; color: var(--text); }
        .cme-live { background: #EF4444; color: white; padding: 3px 8px; border-radius: 6px; font-size: 10px; font-weight: 700; animation: blink 1.5s infinite; }
        @keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
        
        /* Ask Modal */
        .ask-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.8); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
        .ask-modal { background: white; border-radius: 20px; padding: 24px; max-width: 360px; width: 100%; max-height: 80vh; overflow-y: auto; }
        .ask-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
        .ask-modal-header h3 { font-family: 'Fraunces', serif; font-size: 18px; }
        .modal-close { background: none; border: none; font-size: 24px; color: var(--text-secondary); cursor: pointer; }
        .ask-modal-question { background: var(--bg); border-radius: 12px; padding: 14px; display: flex; gap: 10px; margin-bottom: 16px; }
        .q-icon { font-size: 20px; }
        .ask-modal-question p { font-size: 14px; color: var(--text); font-style: italic; }
        .ask-modal-answer { margin-bottom: 20px; }
        .answer-speaker { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
        .answer-avatar { font-size: 24px; }
        .answer-speaker span { font-weight: 600; color: var(--text); font-size: 14px; }
        .ask-modal-answer > p { font-size: 14px; color: var(--text); line-height: 1.5; }
        .answer-citation { display: inline-block; margin-top: 10px; font-size: 11px; color: var(--primary); }
        
        .session-complete-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.85); display: flex; align-items: center; justify-content: center; z-index: 100; }
        .complete-modal { background: white; border-radius: 20px; padding: 32px; text-align: center; max-width: 300px; margin: 0 20px; }
        .complete-icon { width: 56px; height: 56px; background: var(--success); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; margin: 0 auto 16px; }
        .complete-modal h3 { font-family: 'Fraunces', serif; font-size: 22px; margin-bottom: 6px; }
        .complete-modal p { color: var(--text-secondary); margin-bottom: 20px; font-size: 14px; }
        
        /* Summary Screen */
        .summary-content { padding: 20px; padding-bottom: 100px; }
        .completion-badge { text-align: center; padding: 24px 0; }
        .badge-icon { font-size: 40px; margin-bottom: 12px; }
        .completion-badge h2 { font-family: 'Fraunces', serif; font-size: 24px; color: var(--text); margin-bottom: 6px; }
        .completion-badge p { color: var(--text-secondary); font-size: 14px; }
        .summary-card { background: var(--card); border-radius: 16px; padding: 20px; margin-bottom: 20px; border: 1px solid var(--border); }
        .summary-card h3 { font-family: 'Fraunces', serif; font-size: 18px; margin-bottom: 4px; }
        .summary-card > p { color: var(--text-secondary); font-size: 13px; margin-bottom: 16px; }
        .summary-stats { display: flex; gap: 12px; }
        .summary-stat { flex: 1; background: var(--bg); padding: 14px; border-radius: 10px; text-align: center; }
        .summary-stat .stat-icon { display: block; font-size: 20px; margin-bottom: 6px; }
        .summary-stat .stat-value { display: block; font-family: 'Fraunces', serif; font-size: 18px; font-weight: 600; color: var(--primary); }
        .summary-stat .stat-label { display: block; font-size: 11px; color: var(--text-secondary); margin-top: 2px; }
        .key-points { margin-bottom: 20px; }
        .key-points h4 { font-size: 15px; font-weight: 600; margin-bottom: 12px; color: var(--text); }
        .point-item { display: flex; gap: 12px; margin-bottom: 10px; padding: 14px; background: var(--card); border-radius: 10px; border: 1px solid var(--border); }
        .point-number { width: 24px; height: 24px; background: var(--gradient); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12px; flex-shrink: 0; }
        .point-item p { color: var(--text); font-size: 13px; line-height: 1.4; }
        .action-buttons { display: flex; flex-direction: column; gap: 10px; }
      
:root { --primary: #0066CC; --accent: #00B4D8; --bg: #F8FAFC; --card: #FFFFFF; --text: #1E293B; --text-secondary: #64748B; --border: #E2E8F0; --success: #10B981; --gradient: linear-gradient(135deg, #0066CC 0%, #00B4D8 100%); }
.sheet, .ask-modal, .complete-modal, .toast, .mini { font-family: 'DM Sans', -apple-system, sans-serif; }
/* ===== cmME pilot additions (built on the v4 prototype styles) ===== */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #EEF3F8; color: #1E293B; }
body.dark { background: #0A1628; }
a { color: inherit; }
.cmme-app a.primary-btn, .cmme-app a.secondary-btn { text-decoration: none; text-align: center; display: flex; align-items: center; justify-content: center; }
.cmme-app a.secondary-btn { display: flex; }
.cmme-app button:focus-visible, .cmme-app a:focus-visible, .cmme-app input:focus-visible, .cmme-app select:focus-visible, .cmme-app textarea:focus-visible, .sheet :focus-visible { outline: 3px solid rgba(0,102,204,.45); outline-offset: 2px; }
.skiplink { position: absolute; left: -999px; top: 0; }
.skiplink:focus { left: 8px; top: 8px; background: #fff; padding: 8px 12px; z-index: 999; border-radius: 8px; }
.boot { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0066CC 0%, #00B4D8 100%); }
.cmme-app .screen { padding-bottom: 110px; }
body.has-mini .cmme-app .screen { padding-bottom: 180px; }
.cmme-app .welcome-screen { padding-top: 12px; }
.cmme-app .logo-container { padding: 22px 24px 10px; }
.cmme-app .welcome-content { margin-top: 8px; }
.cmme-app .stat { text-decoration: none; display: block; }
.stat-sub { display: block; font-size: 11px; color: var(--primary); margin-top: 6px; font-weight: 600; }
.cmme-app .ask-box { text-decoration: none; }
.hl { color: var(--primary); }
.pilot-chip { display: inline-block; margin-top: 14px; background: rgba(255,255,255,.18); color: #fff; border: 1px solid rgba(255,255,255,.35); padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; letter-spacing: .3px; }
.form-error { color: #B91C1C; font-size: 13px; min-height: 0; }
.form-error:empty { display: none; }
.field-note { font-size: 12px; color: var(--text-secondary); }
.field-note.ok { color: #047857; } .field-note.bad { color: #B91C1C; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-secondary); line-height: 1.45; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--primary); flex: none; }
.check a { color: var(--primary); }
.social-btn[disabled] { cursor: not-allowed; opacity: .75; position: relative; flex-wrap: wrap; }
.soon { font-style: normal; font-size: 10px; font-weight: 600; color: var(--primary); background: #E0F2FE; padding: 2px 6px; border-radius: 8px; }
.signup-link { text-decoration: none; }
.input-group select, .input-group textarea, .cmme-app textarea { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 13px 14px; font-size: 16px; font-family: inherit; color: var(--text); width: 100%; }
.input-group input { font-size: 16px !important; }
.opt { font-weight: 400; color: var(--text-secondary); font-size: 12px; }
.muted { color: var(--text-secondary); } .small { font-size: 12px; line-height: 1.5; }
.page-pad { padding: 20px; }
.app-footer { padding: 22px 20px 8px; text-align: center; }
.app-footer p { font-size: 11px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 4px; }
.app-footer a { color: var(--primary); text-decoration: none; }
.welcome-content .app-footer { padding: 18px 0 0; }
.player-screen .app-footer p { color: rgba(255,255,255,.5); }
.cmme-app .nav-item { text-decoration: none; padding: 2px 14px; }
.cmme-app .bottom-nav { z-index: 40; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; margin: 24px 0 10px; }
.sec-h h3 { font-family: 'Fraunces', serif; font-size: 18px; color: var(--text); }
.sec-h span { font-size: 12px; color: var(--text-secondary); }
.ep-list { display: flex; flex-direction: column; gap: 12px; }
.ep-card { display: block; text-decoration: none; border: 1px solid var(--border) !important; box-shadow: 0 2px 10px rgba(15,40,80,.04); }
.ep-card h3, .sel-card h3, .locked-req h3 { font-family: 'Fraunces', serif; font-size: 17px; color: var(--text); margin: 6px 0 4px; line-height: 1.25; }
.ep-card p, .sel-card p, .locked-req p { font-size: 13px; color: var(--text-secondary); line-height: 1.45; margin-bottom: 10px; }
.ep-kicker { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 11px; color: var(--text-secondary); font-weight: 500; text-transform: uppercase; letter-spacing: .4px; }
.lvl { background: #E0F2FE; color: #075985; padding: 2px 8px; border-radius: 8px; font-weight: 700; }
.lvl.found { background: #FEF3C7; color: #92400E; }
.vis-badge { position: absolute; top: 12px; right: 12px; background: #1E293B; color: #fff; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 8px; }
.ep-status { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; color: var(--text-secondary); }
.ep-status.done { color: #047857; font-weight: 600; }
.mini-progress { flex: 1; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.mini-progress i { display: block; height: 100%; background: var(--gradient); }
.continue-card { display: flex; gap: 14px; align-items: center; background: #0A1628; color: #fff; border-radius: 16px; padding: 14px 16px; text-decoration: none; }
.cc-play { width: 40px; height: 40px; border-radius: 50%; background: var(--gradient); display: flex; align-items: center; justify-content: center; flex: none; }
.cc-txt b { display: block; font-size: 14px; } .cc-txt small { color: rgba(255,255,255,.65); font-size: 12px; }
.nudge { display: block; text-decoration: none; background: linear-gradient(135deg, #FFF7ED, #FEF3C7); border: 1px solid #FCD34D; border-radius: 14px; padding: 14px 16px; margin: 4px 0 6px; }
.nudge b { display: block; font-size: 14px; color: #78350F; } .nudge span { font-size: 12px; color: #92400E; }
.next-card { margin-top: 18px; border: 1px dashed #B6C6DA; border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; background: #FAFCFE; }
.next-card b { font-size: 14px; color: var(--text); } .next-card span:not(.next-badge) { font-size: 12px; color: var(--text-secondary); line-height: 1.45; }
.next-badge { align-self: flex-start; font-size: 10px; font-weight: 700; color: #6B4C8A; background: #F1E8FA; padding: 2px 8px; border-radius: 8px; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 4px; }
.feedback-link { text-align: center; font-size: 13px; margin-top: 18px; color: var(--text-secondary); }
.feedback-link a { color: var(--primary); text-decoration: none; font-weight: 600; }
/* syllabus */
.draft-chip { display: inline-block; margin-top: 8px; font-size: 11px; font-weight: 600; color: #92400E; background: #FEF3C7; padding: 3px 8px; border-radius: 8px; }
.syllabus-title { flex: 1; padding-right: 12px; }
.syllabus-item { align-items: flex-start !important; }
.item-checkbox { flex: none; font-family: inherit; }
.item-tag { display: inline-block; margin-top: 6px; font-size: 11px; font-weight: 600; color: var(--primary); }
.item-tag.ready { color: #047857; } .item-tag.req { color: #6B4C8A; }
.item-hours { white-space: nowrap; text-align: right; }
.item-hours b { color: var(--primary); }
.area-tag { font-family: 'DM Sans', sans-serif; font-size: 10px; font-weight: 700; color: #6B4C8A; background: #F1E8FA; padding: 2px 6px; border-radius: 6px; vertical-align: middle; letter-spacing: .3px; text-transform: uppercase; }
/* topics + formats */
.topics-list { padding: 4px 20px 20px; display: flex; flex-direction: column; gap: 12px; }
.sel-card, .locked-req { border: 2px solid var(--border) !important; }
.sel-card.selected { border-color: var(--primary) !important; }
.locked-req { opacity: .85; background: #FAFCFE !important; border-style: dashed !important; }
.locked-req .lock-badge { background: #E0F2FE; color: #075985; font-weight: 700; }
.modality-card { font-family: inherit; color: var(--text); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.modality-card.unavail { opacity: .5; border-style: dashed; }
.hook-card { margin: 0 20px 16px; background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%); border-radius: 14px; padding: 14px 16px; }
.hook-card span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--primary); }
.hook-card p { font-size: 13px; color: var(--text); line-height: 1.5; margin-top: 4px; }
.hook-card.light { margin: 14px 0; }
/* panel */
.panel-q { font-weight: 600; color: var(--text) !important; margin-top: 8px; }
.member-avatar { color: #fff; font-weight: 700; font-family: 'Fraunces', serif; }
.member-avatar.you { background: #E2E8F0; color: #475569; }
.voices-note { font-size: 11px; color: var(--text-secondary); text-align: center; margin: 6px 20px 0; }
/* player */
body.dark .cmme-app { background: #0A1628; }
.scrub { width: 100%; accent-color: #00B4D8; margin: 4px 0 6px; height: 28px; }
.control-btn.skip { flex-direction: column; line-height: 1; gap: 1px; }
.control-btn.skip span { font-size: 18px; } .control-btn.skip small { font-size: 9px; opacity: .8; }
.speed-row { display: flex; justify-content: center; margin-bottom: 14px; }
.speed-btn { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 14px; padding: 6px 14px; font-family: inherit; font-weight: 600; font-size: 13px; cursor: pointer; min-width: 64px; }
.ask-interrupt { text-align: center; margin-bottom: 14px; }
.ask-interrupt-btn { font-family: inherit; color: #fff; font-size: 14px; }
.cite-btn.on { background: rgba(0,180,216,.35) !important; }
.press-play { color: rgba(255,255,255,.5); font-size: 13px; }
.speaker-role-small { font-weight: 400; opacity: .8; font-size: 11px; }
.ptabs { display: flex; gap: 6px; margin-bottom: 10px; overflow-x: auto; }
.ptabs button { flex: 1; background: rgba(255,255,255,.06); color: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 8px 6px; font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.ptabs button.on { background: rgba(0,180,216,.22); color: #fff; border-color: var(--accent); }
.live-transcript { max-height: 46vh !important; margin-bottom: 14px !important; position: relative; }
.live-transcript.wide { max-height: none !important; }
.live-transcript h4 span { font-weight: 400; opacity: .6; font-size: 11px; margin-left: 6px; }
.live-transcript h4 { margin-top: 6px; }
.transcript-item { cursor: pointer; }
.transcript-item .speaker-name { font-weight: 700; font-size: 13px; margin-right: 6px; }
.transcript-item .speaker-role { color: rgba(255,255,255,.45); font-size: 11px; }
.transcript-text { color: rgba(255,255,255,.85); font-size: 14px; line-height: 1.55; margin-top: 4px; }
.transcript-item:not(.current) .transcript-text { color: rgba(255,255,255,.62); }
.cite-note { color: rgba(255,255,255,.5); font-size: 11px; margin-top: 10px; }
.kp-dark, .kp-light { padding-left: 20px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.kp-dark li { color: rgba(255,255,255,.85); font-size: 14px; line-height: 1.55; }
.kp-light li { color: var(--text); font-size: 15px; line-height: 1.6; }
.monday { color: rgba(255,255,255,.85); font-size: 14px; line-height: 1.55; margin-bottom: 8px; }
.case-txt { color: rgba(255,255,255,.85); font-size: 14px; line-height: 1.55; }
.case-q { color: #90E0EF; font-weight: 600; margin: 10px 0 14px; font-size: 15px; }
.case-q.light { color: var(--primary); }
.decision { background: rgba(255,255,255,.06); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.decision summary { color: #fff; font-weight: 600; font-size: 14px; cursor: pointer; line-height: 1.45; list-style: none; display: flex; gap: 10px; }
.decision summary span, .dq span { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--gradient); color: #fff; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.decision p { color: rgba(255,255,255,.8); font-size: 14px; line-height: 1.55; margin-top: 10px; }
.refs { padding-left: 22px; display: flex; flex-direction: column; gap: 12px; font-size: 13px; line-height: 1.5; color: var(--text); }
.refs.dark { color: rgba(255,255,255,.8); }
.refs a { color: var(--primary); word-break: break-all; } .refs.dark a { color: #90E0EF; }
.rtype { font-size: 10px; text-transform: uppercase; letter-spacing: .4px; opacity: .7; }
.asof { font-size: 12px; opacity: .7; margin-top: 10px; }
.live-transcript .asof { color: rgba(255,255,255,.6); }
.dark-disclaimer { color: rgba(255,255,255,.45); font-size: 11px; text-align: center; line-height: 1.5; margin-bottom: 96px; }
.cme-tracker { bottom: calc(14px + env(safe-area-inset-bottom)) !important; }
.cme-info { flex: 1; display: flex; flex-direction: column; }
.cme-label { font-size: 11px; color: var(--text-secondary); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.cme-value { font-family: 'Fraunces', serif; font-size: 20px; color: var(--primary); font-weight: 600; }
.cme-total { font-size: 12px; color: var(--text-secondary); }
.cme-icon { font-size: 22px; }
.complete-icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: var(--gradient); color: #fff; font-size: 30px; display: flex; align-items: center; justify-content: center; }
.link-btn { background: none; border: none; color: var(--primary); font-family: inherit; font-size: 14px; font-weight: 600; margin-top: 12px; cursor: pointer; width: 100%; padding: 6px; }
.ask-modal-overlay { position: fixed; inset: 0; background: rgba(10,22,40,.75); display: flex; align-items: flex-end; justify-content: center; z-index: 120; padding: 0; }
.ask-modal { border-radius: 20px 20px 0 0 !important; max-width: 430px !important; padding-bottom: calc(24px + env(safe-area-inset-bottom)) !important; font-family: 'DM Sans', sans-serif; color: var(--text); }
.ask-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ask-modal-header h3 { font-family: 'Fraunces', serif; font-size: 20px; }
.modal-close, .sheet-close { background: #F1F5F9; border: none; width: 34px; height: 34px; border-radius: 10px; font-size: 20px; cursor: pointer; color: #334155; }
.text-input { width: 100%; }
.dict-hint { font-size: 12px; color: var(--text-secondary); margin: 6px 0 10px; }
.notice { font-size: 12px; line-height: 1.5; color: #334155; background: #F0F9FF; border: 1px solid #BAE6FD; border-radius: 12px; padding: 10px 12px; margin: 10px 0; }
.ask-modal-question { display: flex; gap: 10px; background: #F8FAFC; border-radius: 12px; padding: 12px; margin: 10px 0; font-size: 14px; }
.ask-modal-answer { background: #F0F9FF; border-radius: 12px; padding: 12px; font-size: 14px; line-height: 1.5; margin-bottom: 14px; }
.answer-citation { display: inline-block; margin-top: 8px; font-size: 11px; color: var(--primary); font-weight: 600; }
/* sheets + toast */
.sheet-overlay { position: fixed; inset: 0; background: rgba(10,22,40,.55); z-index: 130; display: flex; align-items: flex-end; justify-content: center; animation: fadeIn2 .2s; }
@keyframes fadeIn2 { from { opacity: 0; } to { opacity: 1; } }
.sheet { position: relative; background: #fff; width: 100%; max-width: 430px; max-height: 88vh; overflow-y: auto; border-radius: 22px 22px 0 0; padding: 22px 20px calc(24px + env(safe-area-inset-bottom)); font-family: 'DM Sans', sans-serif; color: #1E293B; display: flex; flex-direction: column; gap: 12px; }
.sheet h3 { font-family: 'Fraunces', serif; font-size: 21px; padding-right: 40px; }
.sheet p { font-size: 14px; line-height: 1.55; color: #334155; }
.sheet a { color: #0066CC; }
.sheet-close { position: absolute; top: 16px; right: 16px; }
.sheet .input-group { display: flex; flex-direction: column; gap: 6px; }
.sheet label { font-size: 13px; font-weight: 600; }
.sheet input:not([type=radio]):not([type=checkbox]), .sheet textarea { background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 12px; padding: 12px 14px; font-size: 16px; font-family: inherit; width: 100%; }
.sheet .primary-btn, .sheet .secondary-btn { width: 100%; }
.req-topic { background: #F8FAFC; border-radius: 12px; padding: 12px; }
.req-topic span { color: #64748B; font-size: 13px; }
.ok-note { color: #047857 !important; font-size: 13px !important; }
.toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%) translateY(20px); background: #1E293B; color: #fff; padding: 11px 16px; border-radius: 12px; font-family: 'DM Sans', sans-serif; font-size: 14px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 200; max-width: 360px; text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
/* onboarding */
.onb-screen { background: var(--gradient); min-height: 100vh; }
.onb-top { padding: 28px 24px 14px; text-align: center; }
.logo-sm { font-size: 34px !important; }
.steps-dots { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
.steps-dots span { width: 28px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.35); }
.steps-dots span.on { background: #fff; }
.onb-step { color: rgba(255,255,255,.85); font-size: 12px; margin-top: 8px; }
.onb-card { background: #fff; border-radius: 28px 28px 0 0; padding: 28px 22px 140px; min-height: 70vh; }
.onb-card h2, .edit-sec h2 { font-family: 'Fraunces', serif; font-size: 24px; color: var(--text); margin-bottom: 4px; }
.onb-sub { color: var(--text-secondary); font-size: 14px; margin-bottom: 20px; }
.onb-card form, .edit-sec { display: flex; flex-direction: column; gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: inherit; background: var(--bg); border: 1.5px solid var(--border); color: var(--text); padding: 9px 14px; border-radius: 22px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all .15s; }
.chip.on { background: #E6F0FB; border-color: var(--primary); color: #004C99; }
.chip em { font-style: normal; font-size: 10px; color: #6B4C8A; background: #F1E8FA; padding: 1px 6px; border-radius: 6px; margin-left: 2px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.onb-actions { display: flex; gap: 10px; z-index: 30; padding-bottom: calc(16px + env(safe-area-inset-bottom)) !important; }
.onb-actions .secondary-btn { width: 34%; }
.edit-sec { padding: 18px 0 22px; border-bottom: 1px solid var(--border); }
.edit-sec h2 { font-size: 20px; }
.edit-sec .onb-sub { margin-bottom: 4px; }
/* summary */
.summary-content { padding: 0 20px 20px; }
.summary-stats { display: flex; gap: 12px; }
.summary-stat { flex: 1; background: var(--bg); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.summary-stat .stat-value { font-size: 18px; }
.badge-icon { font-size: 52px; margin-bottom: 8px; }
.key-points h4, .reflect-card h4 { font-family: 'Fraunces', serif; font-size: 17px; margin-bottom: 10px; color: var(--text); }
.point-number { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--gradient); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.more-kp summary { color: var(--primary); font-weight: 600; font-size: 13px; cursor: pointer; margin: 4px 0 10px; }
.reflect-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 18px; margin: 18px 0; }
.reflect-card label { display: block; font-size: 14px; color: var(--text-secondary); margin-bottom: 8px; }
.stars { display: flex; gap: 6px; margin-bottom: 14px; }
.star { font-size: 30px; background: none; border: none; color: #CBD5E1; cursor: pointer; padding: 0 2px; line-height: 1; }
.star.on { color: #F59E0B; }
.action-buttons { display: flex; flex-direction: column; gap: 10px; }
/* reading + case */
.read h3 { font-family: 'Fraunces', serif; font-size: 19px; margin: 22px 0 10px; color: var(--text); }
.read p { font-size: 15px; line-height: 1.65; color: var(--text); margin-bottom: 8px; }
.eyebrow { font-size: 11px !important; text-transform: uppercase; letter-spacing: .5px; color: var(--primary) !important; font-weight: 700; }
.read-title { font-family: 'Fraunces', serif; font-size: 26px; line-height: 1.2; margin: 6px 0; color: var(--text); }
.read-sub { color: var(--text-secondary) !important; }
.tx-details { margin: 18px 0; background: var(--bg); border-radius: 12px; padding: 12px 14px; }
.tx-details summary { font-weight: 600; cursor: pointer; color: var(--primary); }
.tx-details p { font-size: 14px !important; margin-top: 8px; }
.read h4, .page-pad h4 { font-family: 'Fraunces', serif; font-size: 18px; margin: 20px 0 10px; }
.patient-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 16px; position: relative; }
.patient-card p { font-size: 15px; line-height: 1.6; }
.pc-tag { display: inline-block; font-size: 10px; font-weight: 700; color: #92400E; background: #FEF3C7; padding: 2px 8px; border-radius: 8px; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .4px; }
.decision-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 10px; }
.dq { display: flex; gap: 10px; font-weight: 600; font-size: 15px; line-height: 1.45; }
.decision-card details summary { color: var(--primary); font-weight: 600; cursor: pointer; font-size: 14px; }
.decision-card details p { font-size: 14px; line-height: 1.6; margin-top: 8px; }
/* ask */
.askflow-content { padding-bottom: 30px; }
.examples { margin: 14px 0 4px; display: flex; flex-direction: column; gap: 8px; }
.ex-h { font-size: 12px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .4px; }
.example-q { text-align: left; background: #F8FAFC; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; font-family: inherit; font-size: 13px; color: var(--text); cursor: pointer; }
.voice-circle { border: none; }
.q-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin-bottom: 10px; }
.q-meta { font-size: 11px; color: var(--text-secondary); margin-bottom: 6px; }
.q-text { font-size: 14px; line-height: 1.5; color: var(--text); }
.q-status { font-weight: 700; color: #92400E; } .q-status.ans { color: #047857; }
.q-reply { margin-top: 10px; background: #F0F9FF; border-radius: 10px; padding: 10px 12px; font-size: 14px; line-height: 1.55; }
.q-reply b { font-size: 12px; color: var(--primary); }
/* progress */
.cpd-hero { background: var(--gradient); color: #fff; border-radius: 20px; padding: 20px; }
.cpd-big { font-family: 'Fraunces', serif; font-size: 44px; font-weight: 600; }
.cpd-of { font-size: 15px; opacity: .9; margin-left: 6px; }
.cpd-label { display: inline-block; font-size: 11px; font-weight: 700; background: rgba(255,255,255,.2); padding: 3px 8px; border-radius: 8px; text-transform: uppercase; letter-spacing: .4px; }
.stat-progress.big { height: 8px; background: rgba(255,255,255,.3); margin: 14px 0 10px; }
.cpd-hero .stat-progress-fill { background: #fff; }
.cpd-meta { font-size: 13px; opacity: .9; }
.fmt-split { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12px; opacity: .9; }
.export-row { display: flex; gap: 10px; margin: 16px 0 8px; }
.export-row .secondary-btn { flex: 1; }
.log-item { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin-bottom: 10px; }
.log-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-secondary); }
.log-st.done { color: #047857; font-weight: 700; }
.log-item h4 { font-family: 'Fraunces', serif; font-size: 16px; margin: 6px 0 4px !important; }
.log-meta { font-size: 12px; color: var(--text-secondary); }
.log-refl { font-size: 13px; line-height: 1.5; margin-top: 8px; color: var(--text); background: var(--bg); border-radius: 10px; padding: 8px 10px; }
.log-link { display: inline-block; margin-top: 8px; font-size: 13px; color: var(--primary); text-decoration: none; font-weight: 600; }
.empty { text-align: center; padding: 20px 0; } .empty p { color: var(--text-secondary); font-size: 14px; margin-bottom: 14px; }
/* profile */
.profile-card { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 16px; }
.pf-avatar { width: 56px; height: 56px; border-radius: 16px; background: var(--gradient); color: #fff; font-family: 'Fraunces', serif; font-size: 22px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
.profile-card h2 { font-family: 'Fraunces', serif; font-size: 19px; }
.profile-card p { font-size: 13px; color: var(--text-secondary); word-break: break-all; }
.pf-sub { color: var(--primary) !important; font-weight: 600; }
.admin-entry { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; margin-top: 14px; background: #0A1628; color: #fff; text-decoration: none; border-radius: 16px; padding: 14px 16px; }
.admin-entry span { grid-row: span 2; font-size: 24px; } .admin-entry small { color: rgba(255,255,255,.65); font-size: 12px; } .admin-entry i { grid-row: 1 / span 2; grid-column: 3; font-style: normal; }
.pf-list { margin-top: 16px; background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.pf-list > a, .pf-list > button { display: flex; flex-direction: column; align-items: flex-start; width: 100%; background: none; border: none; border-bottom: 1px solid var(--border); padding: 14px 16px; text-decoration: none; font-family: inherit; text-align: left; cursor: pointer; color: var(--text); }
.pf-list > :last-child { border-bottom: none; }
.pf-list span { font-size: 15px; font-weight: 600; } .pf-list small { font-size: 12px; color: var(--text-secondary); margin-top: 2px; line-height: 1.4; }
.pf-list .danger span { color: #B91C1C; }
.coming { margin-top: 16px; padding: 14px 16px; border: 1px dashed #B6C6DA; border-radius: 14px; font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.danger-btn { background: #B91C1C !important; }
.secondary-btn.danger { color: #B91C1C; }
.privacy p { font-size: 14px; line-height: 1.6; color: var(--text); margin-bottom: 10px; }
.privacy h3 { font-family: 'Fraunces', serif; font-size: 22px; margin-bottom: 2px; }
.survey fieldset { border: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.survey legend { font-family: 'Fraunces', serif; font-size: 17px; font-weight: 600; margin-bottom: 8px; color: var(--text); line-height: 1.3; }
.radio { display: flex; align-items: center; gap: 10px; background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 12px; padding: 11px 12px; font-size: 14px; cursor: pointer; }
.radio input { width: 18px; height: 18px; accent-color: #0066CC; flex: none; }
.radio:has(input:checked) { border-color: #0066CC; background: #E6F0FB; }
.survey textarea { background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 12px; padding: 12px; font-size: 16px; font-family: inherit; width: 100%; }
/* admin */
.admin-tabs { display: flex; gap: 6px; padding: 12px 16px 0; overflow-x: auto; background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 66px; z-index: 9; }
.admin-tabs a { padding: 9px 12px; font-size: 13px; font-weight: 600; color: var(--text-secondary); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.admin-tabs a.on { color: var(--primary); border-bottom-color: var(--primary); }
.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 6px; }
.kpi { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.kpi b { font-family: 'Fraunces', serif; font-size: 24px; color: var(--primary); line-height: 1.1; }
.kpi b small { display: block; font-family: 'DM Sans', sans-serif; font-size: 11px; color: var(--text-secondary); font-weight: 500; margin-top: 2px; }
.kpi span { font-size: 12px; color: var(--text-secondary); line-height: 1.35; }
.kpi.hl { background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%); border-color: #BAE6FD; }
.adm-sec { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin: 12px 0; }
.adm-sec h3 { font-family: 'Fraunces', serif; font-size: 16px; margin-bottom: 8px; }
.bars { display: flex; flex-direction: column; gap: 6px; }
.bar-row { display: grid; grid-template-columns: 42% 1fr 26px; gap: 8px; align-items: center; font-size: 12px; }
.bar-row div { background: #F1F5F9; border-radius: 4px; height: 10px; overflow: hidden; }
.bar-row i { display: block; height: 100%; background: var(--gradient); }
.bar-row b { text-align: right; }
.tbl-wrap { overflow-x: auto; margin: 10px -20px; padding: 0 20px; }
.tbl { border-collapse: collapse; font-size: 12px; min-width: 640px; width: 100%; background: #fff; }
.tbl th { text-align: left; font-size: 11px; color: var(--text-secondary); padding: 8px 6px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl td { padding: 9px 6px; border-bottom: 1px solid #F1F5F9; vertical-align: top; }
.tbl td small { display: block; color: var(--text-secondary); font-size: 10px; }
.tbl tr { cursor: pointer; } .tbl tr.excl td { opacity: .55; }
.yes { color: #047857; font-style: normal; } .no { color: #CBD5E1; font-style: normal; } .na { color: #CBD5E1; font-style: normal; }
.inline-form { display: flex; gap: 8px; } .inline-form input { flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 11px 12px; font-size: 16px; font-family: inherit; }
.inline-form .primary-btn { width: auto; padding: 11px 14px; font-size: 14px; white-space: nowrap; }
.link-box { margin-top: 10px; background: #F0F9FF; border-radius: 12px; padding: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.link-box code { flex: 1 1 100%; font-size: 12px; word-break: break-all; color: #0C4A6E; }
.link-box .secondary-btn { width: auto; flex: 1; padding: 9px 10px; font-size: 13px; }
.inv { display: flex; flex-direction: column; gap: 8px; padding: 10px 0; border-bottom: 1px solid #F1F5F9; }
.inv b { font-family: ui-monospace, Menlo, monospace; font-size: 14px; } .inv small { display: block; font-size: 12px; color: var(--text-secondary); }
.inv.rev b { text-decoration: line-through; opacity: .6; }
.inv-kind { font-size: 10px; font-weight: 700; background: #E0F2FE; color: #075985; padding: 1px 6px; border-radius: 6px; text-transform: uppercase; }
.inv-act { display: flex; gap: 6px; flex-wrap: wrap; }
.mini-btn { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 6px 10px; font-family: inherit; font-size: 12px; font-weight: 600; color: var(--primary); cursor: pointer; text-decoration: none; }
.reply-box { display: flex; gap: 8px; margin-top: 10px; align-items: flex-end; } .reply-box textarea { flex: 1; font-size: 14px !important; padding: 9px 10px !important; }
.content-row { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin: 10px 0; display: flex; flex-direction: column; gap: 10px; }
.content-row small { display: block; font-size: 12px; color: var(--text-secondary); }
.seg { display: flex; background: var(--bg); border-radius: 10px; padding: 3px; }
.seg button { flex: 1; border: none; background: none; padding: 8px; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--text-secondary); border-radius: 8px; cursor: pointer; }
.seg button.on { background: #fff; color: var(--primary); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; border-bottom: 1px solid #F1F5F9; padding: 6px 0; }
.kv span { color: #64748B; } .kv b { text-align: right; font-weight: 600; }
.sheet-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
/* mini player */
.mini { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(66px + env(safe-area-inset-bottom)); width: calc(100% - 20px); max-width: 410px; background: #0A1628; color: #fff; border-radius: 14px; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; z-index: 45; box-shadow: 0 8px 26px rgba(10,22,40,.35); overflow: hidden; font-family: 'DM Sans', sans-serif; }
.mini-bar { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: rgba(255,255,255,.15); }
.mini-bar i { display: block; height: 100%; background: #00B4D8; }
.mini-open { flex: 1; min-width: 0; text-decoration: none; color: #fff; }
.mini-open b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .mini-open small { font-size: 11px; color: rgba(255,255,255,.6); }
.mini-pp { width: 40px; height: 40px; border-radius: 50%; border: none; background: linear-gradient(135deg, #0066CC, #00B4D8); color: #fff; font-size: 15px; cursor: pointer; flex: none; }
/* print */
.print-page { background: #fff; padding: 24px; max-width: 1000px; margin: 0 auto; font-family: 'DM Sans', sans-serif; color: #1E293B; min-height: 100vh; }
.print-bar { display: flex; gap: 10px; margin-bottom: 20px; } .print-bar button { width: auto; flex: 1; }
.print-head { display: flex; gap: 20px; align-items: center; border-bottom: 2px solid #0066CC; padding-bottom: 14px; margin-bottom: 16px; }
.logo-print { font-family: 'Fraunces', serif; font-size: 36px; font-weight: 700; letter-spacing: -1.5px; } .logo-print .logo-cm { color: #0066CC; } .logo-print .logo-me { color: #00B4D8; }
.print-head h1 { font-family: 'Fraunces', serif; font-size: 22px; } .print-head p { font-size: 13px; color: #475569; }
.print-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.print-table th { text-align: left; background: #F1F5F9; padding: 6px; } .print-table td { padding: 6px; border-bottom: 1px solid #E2E8F0; vertical-align: top; }
.print-table ul { padding-left: 14px; }
.print-foot { font-size: 11px; color: #64748B; margin-top: 16px; }
@media print { .no-print { display: none !important; } body { background: #fff; } .print-page { padding: 0; } .mini, .toast { display: none !important; } }
@media (min-width: 600px) { body { background: #E3EBF4; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.mini[hidden], [hidden] { display: none !important; }
.onb-screen { display: flex; flex-direction: column; } .onb-card { flex: 1; min-height: 0 !important; }

.cmme-app .fade-in { animation: cmFade .25s ease; transform: none; }
@keyframes cmFade { from { opacity: 0; } to { opacity: 1; } }
.cmme-app .welcome-screen { padding-bottom: 0; } .cmme-app .welcome-content { padding-bottom: 110px; } body.has-mini .cmme-app .welcome-content { padding-bottom: 180px; }
.cmme-app .login-screen { padding-bottom: 0; } .cmme-app .login-content { padding-bottom: 40px; }
.social-btn { flex-direction: column; gap: 5px; } .social-row { display: flex; align-items: center; gap: 8px; }

/* ===== syllabus v3 (deep syllabi, 23 Oct 2026) ===== */
.sy-intro { font-size: 14px; color: var(--text-secondary); margin: -8px 0 16px; line-height: 1.45; }
.sy-hot { margin: 0 -20px 18px; }
.sy-hot .section-title { padding: 0 20px; }
.sy-hot-row { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 20px 8px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.sy-hot-row::-webkit-scrollbar { display: none; }
.sy-hot-card { flex: 0 0 78%; max-width: 300px; scroll-snap-align: start; text-align: left; font-family: inherit; background: linear-gradient(160deg, #FFF7ED 0%, #FFFFFF 70%); border: 1px solid #FED7AA; border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; color: var(--text); }
.sy-hot-dom { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: #C2410C; }
.sy-hot-title { font-family: 'Fraunces', serif; font-size: 16px; font-weight: 600; line-height: 1.25; }
.sy-hot-why { font-size: 12.5px; color: #475569; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.sy-hot-foot { margin-top: auto; padding-top: 4px; font-size: 11px; font-weight: 600; color: var(--primary); }
.sy-tools { position: sticky; top: 0; z-index: 5; background: var(--bg); margin: 0 -20px 12px; padding: 8px 20px 10px; border-bottom: 1px solid var(--border); }
.sy-tools input[type=search] { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.sy-filters { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; }
.sy-filters::-webkit-scrollbar { display: none; }
.sy-f { flex: none; font: inherit; font-size: 12.5px; font-weight: 600; padding: 6px 11px; border-radius: 16px; border: 1px solid var(--border); background: #fff; color: var(--text-secondary); cursor: pointer; }
.sy-f.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.sy-exp { margin-left: auto; color: var(--primary); }
.sy-dom { background: var(--card); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 10px; overflow: hidden; }
.sy-dom-h { width: 100%; display: grid; grid-template-columns: 1fr 18px; grid-template-areas: "n c" "m c"; gap: 3px 8px; align-items: center; text-align: left; font: inherit; background: none; border: 0; padding: 14px 14px 13px; cursor: pointer; color: var(--text); }
.sy-dom-name { grid-area: n; font-weight: 700; font-size: 15px; line-height: 1.3; }
.sy-dom-meta { grid-area: m; font-size: 12px; color: var(--text-secondary); }
.sy-chev { grid-area: c; font-size: 22px; color: var(--text-secondary); transition: transform .2s; justify-self: end; }
.sy-dom.open .sy-chev { transform: rotate(90deg); }
.sy-dom-body { padding: 0 10px 4px; border-top: 1px solid var(--border); padding-top: 10px; }
.sy-dom-body .syllabus-item { padding: 12px; }
.item-content { min-width: 0; }
.item-title { line-height: 1.3; }
.item-why { display: block; font-size: 12px; color: #475569; margin-top: 5px; line-height: 1.4; }
.item-why b { color: #0F766E; font-weight: 700; }
.hot-badge { display: inline-block; font-size: 10px; font-weight: 700; color: #C2410C; background: #FFEDD5; padding: 1px 6px; border-radius: 6px; vertical-align: 1px; white-space: nowrap; }
.mine-tag { font-size: 10px; font-weight: 700; color: #0369A1; background: #E0F2FE; padding: 2px 6px; border-radius: 6px; vertical-align: middle; text-transform: uppercase; letter-spacing: .3px; white-space: nowrap; }
.sy-sources { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin: 16px 0; font-size: 13px; }
.sy-sources summary { font-weight: 600; cursor: pointer; color: var(--primary); }
.sy-sources ul { padding-left: 18px; margin: 8px 0; }
.sy-sources li { margin-bottom: 5px; word-break: break-word; }
.sy-sources a { color: var(--primary); }
.sy-browse { margin: 12px 0 8px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-secondary); }
.sy-browse select { font: inherit; font-size: 16px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: #fff; color: var(--text); }
.sy-back { color: var(--primary); font-weight: 600; }
.linkish { background: none; border: 0; color: var(--primary); font: inherit; text-decoration: underline; padding: 0; cursor: pointer; }
.req-why { font-size: 12.5px; color: #475569; }
.sy-listhead { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--text-secondary); margin: 0 2px 8px; font-weight: 600; }
.sy-listhead .linkish { text-decoration: none; font-weight: 700; font-size: 13px; }

.panel-note { display:inline-block; font-size:12.5px; font-weight:600; letter-spacing:.01em; line-height:1.45; padding:5px 10px; border-radius:10px; margin:2px 0 12px; color:#0066CC; background:#E8F2FC; border:1px solid #B9D6F2; }
#pane .panel-note { color:#9BE3F4; background:rgba(0,180,216,.12); border-color:rgba(0,180,216,.55); }

/* ===== AI disclosure + play queue (24 Oct 2026) ===== */
.ai-note { display:flex; flex-direction:column; gap:3px; background:#F0F7FF; border:1px solid #CFE3F7; border-left:3px solid var(--accent, #00B4D8); border-radius:12px; padding:10px 12px; margin:4px 0 16px; text-align:left; }
.ai-note-k { font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:#0066CC; }
.ai-note p { font-size:13px; line-height:1.45; color:#1E293B; margin:0; }
.onb-ai { margin:0 20px 14px; }
.panel-ai { margin:14px 20px 4px; }
.q-card { display:block; text-decoration:none; background:#0A1628; color:#fff; border-radius:16px; padding:14px 16px; margin:16px 0 4px; }
.q-card-head { display:flex; gap:12px; align-items:flex-start; }
.q-card.live { display:flex; gap:12px; align-items:center; }
.q-card-ic { width:38px; height:38px; flex:none; border-radius:50%; background:var(--gradient, linear-gradient(135deg,#0066CC,#00B4D8)); display:flex; align-items:center; justify-content:center; font-size:18px; color:#fff; }
.q-card-txt { flex:1; min-width:0; }
.q-card-txt b { display:block; font-size:15px; font-family:'Fraunces', serif; font-weight:600; }
.q-card-txt small { display:block; color:rgba(255,255,255,.7); font-size:12.5px; line-height:1.4; margin-top:2px; white-space:normal; }
.q-card.live .q-card-txt small { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.q-card-go { font-size:18px; color:#7CC4FF; }
.q-len { display:flex; gap:8px; margin-top:12px; }
.q-chip { flex:1; font-family:inherit; font-size:14px; font-weight:600; padding:10px 0; border-radius:22px; border:1.5px solid rgba(124,196,255,.45); background:transparent; color:#fff; cursor:pointer; }
.q-chip.on, .q-chip:active { background:#fff; color:#0A1628; border-color:#fff; }
.q-wrap { padding:4px 20px 24px; }
.q-wrap .q-len { margin:14px 0 6px; }
.q-wrap .q-chip { color:#0B3A6E; border-color:#CFE3F7; background:#fff; }
.q-wrap .q-chip.on { background:#E6F0FB; border-color:#0066CC; color:#004C99; }
.q-lede { font-size:14px; line-height:1.5; color:#475569; margin:6px 0 0; }
.q-sum { display:flex; justify-content:space-between; align-items:baseline; gap:8px; margin:16px 0 8px; flex-wrap:wrap; }
.q-sum b { font-family:'Fraunces', serif; font-size:18px; color:#1E293B; }
.q-sum span { font-size:12px; color:#64748B; }
.q-short { font-size:13px; color:#92400E; background:#FFF7ED; border:1px solid #FCD34D; border-radius:12px; padding:10px 12px; margin:6px 0 10px; }
.q-list { list-style:none; display:flex; flex-direction:column; gap:8px; margin:0 0 16px; padding:0; }
.q-item { display:flex; align-items:center; gap:6px; background:#fff; border:1px solid #E2E8F0; border-radius:14px; padding:6px 6px 6px 4px; }
.q-item.now { border-color:#0066CC; box-shadow:0 0 0 2px rgba(0,102,204,.12); background:#F5FAFF; }
.q-item.past { opacity:.55; }
.q-main { flex:1; min-width:0; display:flex; align-items:center; gap:10px; background:none; border:0; text-align:left; font-family:inherit; padding:6px 4px; cursor:pointer; color:inherit; }
.q-n { width:28px; height:28px; flex:none; border-radius:50%; background:#EEF3F8; color:#0B3A6E; font-size:13px; font-weight:700; display:flex; align-items:center; justify-content:center; }
.q-item.now .q-n { background:var(--gradient, linear-gradient(135deg,#0066CC,#00B4D8)); color:#fff; }
.q-t { min-width:0; flex:1; }
.q-t b { display:block; font-size:14px; font-weight:600; color:#1E293B; line-height:1.3; overflow:hidden; text-overflow:ellipsis; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.q-t small { display:block; font-size:12px; color:#64748B; margin-top:2px; }
.q-act { display:flex; gap:2px; flex:none; }
.q-act button, .q-add button { width:34px; height:34px; border-radius:10px; border:1px solid #E2E8F0; background:#fff; color:#334155; font-size:15px; font-family:inherit; cursor:pointer; }
.q-act button:disabled { opacity:.3; }
.q-act button[data-qrm] { color:#B42318; }
.q-add { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:8px; }
.q-add li { display:flex; align-items:center; gap:10px; padding:10px 8px 10px 12px; border:1px dashed #CBD5E1; border-radius:14px; background:#FAFCFE; }
.q-add button { color:#0066CC; font-size:20px; font-weight:600; }
.q-strip { display:flex; align-items:center; gap:10px; margin:6px 20px 12px; padding:10px 12px; border-radius:14px; background:rgba(255,255,255,.06); border:1px solid rgba(124,196,255,.25); }
.q-strip a { flex:1; min-width:0; text-decoration:none; color:#fff; }
.q-strip b { display:block; font-size:12px; letter-spacing:.04em; text-transform:uppercase; color:#7CC4FF; }
.q-strip small { display:block; font-size:13px; color:rgba(255,255,255,.85); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.q-strip button { width:42px; height:42px; flex:none; border-radius:50%; border:0; background:var(--gradient, linear-gradient(135deg,#0066CC,#00B4D8)); color:#fff; font-size:16px; cursor:pointer; }
.mini-nx { flex:none; width:40px; height:40px; border-radius:50%; border:0; background:rgba(255,255,255,.12); color:#fff; font-size:15px; cursor:pointer; margin-left:6px; }
.sheet-title { font-family:'Fraunces', serif; font-size:20px; color:#1E293B; margin:4px 0 4px; }
.sheet-sub { font-size:13px; color:#64748B; margin-bottom:14px; }
.q-custom { display:flex; align-items:center; justify-content:center; gap:14px; margin:8px 0 18px; }
.q-custom output { font-family:'Fraunces', serif; font-size:44px; font-weight:600; color:#0B3A6E; min-width:84px; text-align:center; }
.q-custom span { font-size:15px; color:#64748B; margin-left:-8px; }
.q-step { width:48px; height:48px; border-radius:50%; border:1.5px solid #CFE3F7; background:#fff; color:#0066CC; font-size:24px; cursor:pointer; font-family:inherit; }

/* ===== listener feedback, safety flags, reviewers (24 Oct 2026) ===== */
.rev-chip { display:inline-flex; align-items:center; gap:5px; margin-top:8px; font-size:11.5px; font-weight:600; color:#047857; background:#ECFDF5; border:1px solid #A7F3D0; padding:3px 9px; border-radius:10px; }
.rev-chip b { font-weight:700; }
.rev-badge { display:flex; gap:9px; align-items:flex-start; text-align:left; background:#ECFDF5; border:1px solid #A7F3D0; border-radius:12px; padding:9px 12px; margin:10px 0 12px; }
.rev-badge p { margin:0; font-size:13px; line-height:1.45; color:#065F46; }
.rev-badge p + p { margin-top:3px; }
.rev-ic { flex:none; width:20px; height:20px; border-radius:50%; background:#10B981; color:#fff; font-size:12px; font-weight:700; display:flex; align-items:center; justify-content:center; margin-top:1px; }
.player-screen .rev-badge { background:rgba(16,185,129,.12); border-color:rgba(16,185,129,.45); margin:10px auto 0; max-width:340px; }
.player-screen .rev-badge p { color:#A7F3D0; }
.paused-note { display:flex; flex-direction:column; gap:4px; background:#FFF7ED; border:1px solid #FED7AA; border-left:3px solid #EA580C; border-radius:12px; padding:11px 13px; margin:6px 16px 14px; text-align:left; }
.page-pad .paused-note, .modality-screen .paused-note { margin-left:0; margin-right:0; }
.paused-note b { font-size:14px; color:#9A3412; }
.paused-note span { font-size:13px; line-height:1.45; color:#7C2D12; }
.player-screen .paused-note { margin:0 0 14px; }
.paused-chip { display:inline-block; font-size:11px; font-weight:700; color:#9A3412; background:#FFEDD5; border:1px solid #FED7AA; padding:3px 8px; border-radius:8px; margin-bottom:8px; }
.ep-card.ep-paused { opacity:.78; }
.ep-card.ep-paused h3, .ep-card.ep-paused p { color:#64748B; }
.fb-bar { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:16px 0 14px; padding:10px 12px; border:1px solid var(--border); background:#fff; border-radius:14px; }
.fb-q { font-size:13px; font-weight:600; color:#334155; margin-right:2px; }
.fb-t { font-family:inherit; font-size:17px; line-height:1; width:40px; height:36px; border-radius:18px; border:1.5px solid #CFE3F7; background:#fff; cursor:pointer; filter:grayscale(.6); }
.fb-t.on { background:#E6F0FB; border-color:#0066CC; filter:none; }
.fb-c { font-family:inherit; font-size:13px; font-weight:600; color:#0066CC; background:none; border:none; padding:8px 4px; cursor:pointer; }
.fb-flag { font-family:inherit; margin-left:auto; font-size:12.5px; font-weight:600; color:#64748B; background:none; border:none; padding:8px 2px; cursor:pointer; text-decoration:underline; text-underline-offset:3px; }
.fb-bar.dark { background:rgba(255,255,255,.05); border-color:rgba(255,255,255,.12); margin:14px 0 12px; }
.fb-bar.dark .fb-q { color:rgba(255,255,255,.8); }
.fb-bar.dark .fb-t { background:transparent; border-color:rgba(124,196,255,.4); }
.fb-bar.dark .fb-t.on { background:rgba(124,196,255,.22); border-color:#7CC4FF; }
.fb-bar.dark .fb-c { color:#7CC4FF; }
.fb-bar.dark .fb-flag { color:rgba(255,255,255,.62); }
.fb-text { width:100%; box-sizing:border-box; font-family:inherit; font-size:15px; line-height:1.45; border:1.5px solid var(--border); border-radius:12px; padding:10px 12px; resize:vertical; color:#1E293B; }
.fb-count { text-align:right; font-size:11px; color:#94A3B8; margin:4px 0 10px; }
.text-btn { display:block; width:100%; font-family:inherit; font-size:14px; font-weight:600; color:#64748B; background:none; border:none; padding:12px; margin-top:4px; cursor:pointer; }
.flag-reasons { display:flex; flex-direction:column; gap:8px; margin-bottom:14px; }
.flag-r { display:flex; gap:10px; align-items:flex-start; border:1.5px solid var(--border); border-radius:12px; padding:10px 12px; cursor:pointer; }
.flag-r.on { border-color:#0066CC; background:#F0F7FF; }
.flag-r input { margin-top:3px; width:18px; height:18px; accent-color:#0066CC; flex:none; }
.flag-r b { display:block; font-size:14px; color:#1E293B; }
.flag-r small { display:block; font-size:12px; color:#64748B; margin-top:2px; line-height:1.4; }
.flag-l { display:block; font-size:13px; font-weight:600; color:#334155; margin-bottom:6px; }
.flag-l span { font-weight:400; color:#94A3B8; }
.flag-sum { background:#F8FAFC; border:1px solid var(--border); border-radius:12px; padding:10px 12px; margin:6px 0 12px; }
.flag-sum p { margin:0; font-size:14px; line-height:1.45; } .flag-sum p + p { margin-top:4px; color:#475569; }
.flag-warn { font-size:13.5px; line-height:1.45; color:#9A3412; background:#FFF7ED; border:1px solid #FED7AA; border-radius:12px; padding:10px 12px; margin:0 0 14px; }
.primary-btn.danger { background:#C2410C; }
#sheet .form-error { margin:0 0 10px; }
.flag-thanks { text-align:center; padding:8px 4px; }
.flag-thanks p { font-size:14px; line-height:1.5; color:#475569; margin:6px 0 18px; }
.flag-ok { width:52px; height:52px; margin:6px auto 8px; border-radius:50%; background:var(--gradient); color:#fff; font-size:26px; display:flex; align-items:center; justify-content:center; }
.adm-h { font-family:'Fraunces', serif; font-size:17px; margin:20px 0 6px; }
.flag-row { background:#fff; border:1px solid var(--border); border-radius:14px; padding:12px 14px; margin:8px 0; }
.flag-row b { display:block; font-size:14px; } .flag-row small { display:block; font-size:12px; color:var(--text-secondary); margin-top:2px; }
.flag-row p { font-size:13px; margin:8px 0 0; line-height:1.45; }
.flag-row .text-btn { text-align:left; padding:8px 0 0; color:#0066CC; }

/* ---------- For you (25 Oct 2026) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.cmme-app .bottom-nav.nav5 .nav-item { flex: 1 1 0; min-width: 0; padding: 2px 2px; white-space: nowrap; }
.cmme-app .bottom-nav.nav5 .nav-icon { position: relative; }
.nav-dot { position: absolute; top: -1px; right: -7px; width: 9px; height: 9px; border-radius: 50%; background: #E0453A; border: 2px solid #fff; }
.fy-page { padding-top: 6px; }
.fy-intro { font-size: 14px; color: var(--text-secondary); margin: 4px 0 14px; line-height: 1.45; }
.fy-intro b { color: var(--text); font-weight: 600; }
.fy-list { display: flex; flex-direction: column; gap: 18px; }
.fy-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--text-secondary); margin-bottom: 8px; }
.fy-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 3px 8px; border-radius: 8px; background: #E6F0FA; color: #0052A3; }
.fy-tag.new { background: #0066CC; color: #fff; }
.fy-tag.topical { background: #E6F7FA; color: #00708A; }
.vis-badge.inline { position: static; }
.fy-wrap .topic-card { margin: 0; }
.fy-item { background: #fff; border-radius: 18px; padding: 16px 16px 14px; box-shadow: 0 1px 2px rgba(15,23,42,.06), 0 4px 16px rgba(15,23,42,.06); border: 1px solid var(--border); }
.fy-item h3 { font-family: 'Fraunces', serif; font-size: 21px; line-height: 1.2; color: var(--text); margin: 2px 0 6px; letter-spacing: -.2px; }
.fy-sub { font-size: 14px; color: var(--text); line-height: 1.45; margin: 0 0 6px; }
.fy-hook { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin: 0 0 10px; }
.fy-actions { display: flex; gap: 10px; margin: 12px 0 4px; }
.fy-play { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--gradient); color: #fff; font-weight: 700; font-size: 15px; border-radius: 12px; padding: 13px 14px; text-decoration: none; min-height: 48px; box-sizing: border-box; }
.fy-sec { display: flex; align-items: center; justify-content: center; padding: 13px 18px; border-radius: 12px; border: 1.5px solid #B6CDE6; color: #0052A3; font-weight: 600; font-size: 15px; text-decoration: none; min-height: 48px; box-sizing: border-box; }
.fy-car { margin-top: 14px; }
.fy-car-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.fy-car-h b { font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--text); }
.fy-count { font-size: 12px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.fy-track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; overscroll-behavior-x: contain; margin: 0 -16px; padding: 0 16px; scroll-padding: 0 16px; outline: none; }
.fy-track::-webkit-scrollbar { display: none; }
.fy-track:focus-visible { box-shadow: 0 0 0 3px rgba(0,102,204,.35); border-radius: 12px; }
.fy-card { position: relative; flex: 0 0 82%; margin: 0; scroll-snap-align: start; border-radius: 12px; overflow: hidden; background: #0A1A33; aspect-ratio: 1080 / 1350; }
.fy-card img { display: block; width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.fy-hot { position: absolute; background: transparent; border: 0; padding: 0; margin: 0; border-radius: 7px; cursor: pointer; -webkit-tap-highlight-color: rgba(45,212,191,.25); }
.fy-hot:focus-visible { outline: 3px solid #fff; outline-offset: 1px; }
.fy-hot.vote.on { box-shadow: inset 0 0 0 3px #2DD4BF; background: rgba(45,212,191,.22); }
.fy-hot.vote.on::after { content: "✓"; position: absolute; top: -7px; right: -5px; width: 18px; height: 18px; border-radius: 50%; background: #2DD4BF; color: #0A1A33; font: 800 12px/18px 'DM Sans', sans-serif; text-align: center; }
.fy-dots { display: flex; justify-content: center; gap: 0; margin-top: 6px; }
.fy-dot { width: 26px; height: 24px; border: 0; background: transparent; padding: 0; cursor: pointer; position: relative; }
.fy-dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: #C5D3E3; transition: transform .15s, background .15s; }
.fy-dot.on::before { background: #0066CC; transform: scale(1.35); }
.fy-hint { font-size: 12px; color: var(--text-secondary); text-align: center; margin: 2px 0 0; }
.fy-empty { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 18px; font-size: 14px; color: var(--text-secondary); }
.fy-empty b { color: var(--text); font-size: 15px; }
.fy-empty .secondary-btn { margin-top: 8px; }
a.next-card.fy-home { text-decoration: none; color: inherit; }
a.next-card.fy-home.live { border: 1px solid #B6CDE6; background: linear-gradient(135deg, #F0F7FF 0%, #E9F9FC 100%); }
a.next-card.fy-home.live .next-badge { color: #fff; background: #0066CC; }
.fy-lb { position: fixed; inset: 0; z-index: 200; background: rgba(4,10,22,.96); display: flex; flex-direction: column; justify-content: center; padding: calc(52px + env(safe-area-inset-top)) 0 calc(18px + env(safe-area-inset-bottom)); }
.fy-lb .fy-car { margin: 0 auto; width: 100%; max-width: 430px; }
.fy-lb .fy-track { margin: 0; padding: 0 12px; scroll-padding: 0 12px; gap: 12px; }
.fy-lb .fy-card { flex: 0 0 calc(100% - 24px); max-height: calc(100vh - 140px); }
.fy-lb .fy-card img { cursor: default; object-fit: contain; }
.fy-lb .fy-dot::before { background: #4A5D7A; } .fy-lb .fy-dot.on::before { background: #fff; }
.fy-lb-x { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 28px; line-height: 44px; cursor: pointer; }
body.lb-open { overflow: hidden; }
.upd-bar { position: fixed; left: 50%; transform: translateX(-50%); top: calc(10px + env(safe-area-inset-top)); z-index: 300; width: calc(100% - 24px); max-width: 406px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #0A1628; color: #fff; border-radius: 14px; padding: 10px 10px 10px 16px; font-family: 'DM Sans', sans-serif; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.upd-bar button { background: #fff; color: #0066CC; border: 0; border-radius: 10px; padding: 10px 14px; font-weight: 700; font-size: 14px; min-height: 40px; cursor: pointer; }

.fy-lb { background: #040A16; }
a.fy-banner { display: flex; align-items: center; gap: 12px; margin: 18px 0 4px; padding: 10px 12px 10px 10px; border-radius: 16px; background: #fff; border: 1px solid #B6CDE6; box-shadow: 0 4px 16px rgba(0,102,204,.10); text-decoration: none; color: inherit; }
a.fy-banner img { width: 58px; height: 72px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; background: #0A1A33; }
.fy-banner-ic { width: 58px; height: 58px; display: flex; align-items: center; justify-content: center; font-size: 28px; background: #E6F0FA; border-radius: 12px; flex: 0 0 auto; }
.fy-banner-t { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; flex: 1; }
.fy-banner-t b { font-family: 'Fraunces', serif; font-size: 16px; line-height: 1.25; color: var(--text); }
.fy-banner-t small { font-size: 12px; color: var(--text-secondary); }
.fy-banner-go { color: #0066CC; font-size: 20px; font-weight: 700; }

.fy-sec-h:first-of-type { margin-top: 6px; }
.fy-page .fy-sec-h { margin: 18px 0 10px; }
.fy-when { font-weight: 600; color: #0052A3; }

/* ===== UX v2 (25 Oct 2026): one-button home, podcast feed, quieter pages ===== */
.home2-screen { background: var(--bg); padding-bottom: 0; }
.home-hero { position: relative; overflow: hidden; isolation: isolate; min-height: calc(100vh - 76px); min-height: calc(100svh - 76px - env(safe-area-inset-bottom)); display: flex; flex-direction: column; padding: calc(14px + env(safe-area-inset-top)) 20px 14px; background: var(--gradient); border-radius: 0 0 32px 32px; color: #fff; }
.hh-top { display: flex; justify-content: space-between; align-items: center; }
.logo.logo-sm { font-size: 28px; letter-spacing: -1px; }
.hh-me { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; text-decoration: none; }
.hh-greet { margin-top: 26px; }
.hh-greet h2 { font-family: 'Fraunces', serif; font-size: 25px; font-weight: 600; line-height: 1.2; color: #fff; }
.hh-greet p { color: rgba(255,255,255,.85); font-size: 14px; margin-top: 4px; }
.hh-greet a { color: #fff; }
.hh-play { margin-top: auto; padding-top: 24px; }
.big-play { width: 100%; min-height: 172px; border: 0; border-radius: 28px; background: #fff; color: var(--text); display: flex; align-items: center; gap: 18px; padding: 24px 22px; text-align: left; box-shadow: 0 18px 50px rgba(0,30,80,.28); cursor: pointer; font-family: inherit; -webkit-tap-highlight-color: transparent; text-decoration: none; transition: transform .12s; }
.big-play:active { transform: scale(.98); }
.big-play:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.bp-ic { flex: 0 0 76px; height: 76px; border-radius: 50%; background: var(--gradient); color: #fff; font-size: 30px; display: flex; align-items: center; justify-content: center; padding-left: 5px; box-shadow: 0 8px 20px rgba(0,102,204,.35); }
.bp-txt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bp-k { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--primary); }
.bp-t { font-family: 'Fraunces', serif; font-size: 23px; line-height: 1.22; font-weight: 600; color: var(--text); }
.bp-m { font-family: 'DM Sans', sans-serif; font-size: 17px; font-weight: 600; color: var(--text-secondary); white-space: nowrap; }
.bp-sub { color: rgba(255,255,255,.92); font-size: 14px; margin: 14px 6px 0; line-height: 1.45; text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hh-more { align-self: center; margin-top: 14px; color: rgba(255,255,255,.8); font-size: 12px; text-decoration: none; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.hh-more i { font-style: normal; font-size: 20px; margin-top: 2px; }
.home-below { padding: 6px 20px 110px; }
.home-below .fy-banner { margin-top: 18px; }
.hb-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; margin-top: 18px; font-size: 14px; color: var(--text); }
.selflog { border: 1.5px solid var(--primary); background: #fff; color: var(--primary); font: 600 14px 'DM Sans', sans-serif; border-radius: 999px; padding: 9px 14px; cursor: pointer; white-space: nowrap; text-decoration: none; }
.selflog.sm { padding: 7px 12px; font-size: 13px; }
.selflog:disabled { opacity: .5; }
.selflog.done { border-color: transparent; background: #ECFDF5; color: #047857; white-space: normal; font-size: 12px; }
.pod-card { display: flex; align-items: center; gap: 12px; margin-top: 18px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; text-decoration: none; color: var(--text); }
.pod-ic img { display: block; width: 44px; height: 44px; border-radius: 10px; }
.pod-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.pod-txt b { font-size: 15px; }
.pod-txt small { font-size: 12px; color: var(--text-secondary); }
.cpd-line { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; text-decoration: none; color: var(--text); }
.cpd-line-t { display: flex; flex-direction: column; gap: 2px; }
.cpd-line-t b { font-size: 15px; }
.cpd-line-t small { font-size: 12px; color: var(--text-secondary); }
.cpd-line-bar { display: block; height: 6px; border-radius: 6px; background: #E2E8F0; overflow: hidden; }
.cpd-line-bar i { display: block; height: 100%; background: var(--gradient); border-radius: 6px; }
.hb-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hb-links a { flex: 1 1 auto; text-align: center; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px 10px; font-size: 14px; font-weight: 600; color: var(--primary); text-decoration: none; }
.home-below .q-card { margin-top: 10px; margin-bottom: 0; }
.home-below .ep-card p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* podcast page */
.pod-hero { display: flex; gap: 14px; align-items: center; margin: 4px 0 18px; }
.pod-hero img { width: 88px; height: 88px; border-radius: 18px; flex: 0 0 88px; box-shadow: 0 6px 18px rgba(0,60,140,.18); }
.pod-hero h2 { font-family: 'Fraunces', serif; font-size: 21px; line-height: 1.2; color: var(--text); }
.pod-hero p { font-size: 14px; color: var(--text-secondary); margin-top: 4px; line-height: 1.45; }
.pod-apple { min-height: 58px; font-size: 17px; }
.pod-two { display: flex; gap: 10px; margin-top: 10px; }
.pod-two > * { flex: 1; margin: 0 !important; font-size: 14px !important; padding: 13px 8px !important; }
.pod-hint { font-size: 12.5px; color: var(--text-secondary); line-height: 1.5; margin: 10px 2px 0; }
.pod-note { margin-top: 18px; background: #FFF7ED; border: 1px solid #FED7AA; border-radius: 14px; padding: 12px 14px; }
.pod-note b { font-size: 14px; color: #9A3412; }
.pod-note p { font-size: 13px; color: #7C2D12; line-height: 1.5; margin-top: 4px; }
.pod-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.pod-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.pod-list .q-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pod-list .q-t b { font-size: 14px; color: var(--text); }
.pod-list .q-t small { font-size: 12px; color: var(--text-secondary); }
.pod-list .selflog.done { max-width: 50%; text-align: center; }
.pod-manage { margin-top: 22px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
.pod-manage summary { font-weight: 600; font-size: 14px; color: var(--text); cursor: pointer; }
.pod-manage p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin-top: 8px; }
.secondary-btn.danger { color: #B91C1C; border-color: #FECACA; }
/* quieter episode pages */
.modality-list { display: flex !important; flex-direction: column; gap: 10px; }
.modality-list .modality-card { display: grid; grid-template-columns: 40px 1fr auto; grid-template-rows: auto auto; align-items: center; column-gap: 12px; text-align: left; padding: 14px 16px; }
.modality-list .modality-icon { grid-row: 1 / 3; font-size: 26px; margin: 0; }
.modality-list .modality-title { grid-column: 2; margin: 0; }
.modality-list .modality-subtitle { grid-column: 2; margin: 0; }
.modality-list .modality-duration { grid-column: 3; grid-row: 1 / 3; margin: 0; }
.fm-self { margin: 14px 20px 0; }
.panel-fine { font-size: 12.5px; color: var(--text-secondary); line-height: 1.7; margin: 16px 20px 0; }
.cpd-inline { margin-left: 14px; font-size: 13px; color: rgba(255,255,255,.75); }
.cpd-inline b { color: #fff; font-weight: 600; }
.cpd-inline .cme-live { position: static; display: inline; background: none; color: #5EE0D0; font-size: 11px; margin-left: 6px; padding: 0; animation: none; }
.speed-row { display: flex; align-items: center; justify-content: center; }
.nudge-box { margin-top: 18px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px; }
.nudge-box h3 { font-size: 15px; color: var(--text); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nudge-box p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin: 6px 0 10px; }
.vis-badge.inline { position: static; display: inline-block; }
.home-hero::before, .home-hero::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.07); z-index: -1; pointer-events: none; }
.home-hero::before { width: 420px; height: 420px; right: -170px; top: 90px; }
.home-hero::after { width: 300px; height: 300px; left: -150px; top: 300px; }
.bp-m { font-size: 15px; }
.player-screen .session-info { margin-bottom: 12px; }
.player-screen .waveform { height: 30px; margin-bottom: 6px; transform: scaleY(.6); }
.player-screen .current-speaker { min-height: 0; margin-bottom: 12px; }
.player-screen .ask-interrupt { margin-bottom: 12px; }
.panel-screen .panel-member { padding: 10px 12px; }
.panel-screen .panel-members { gap: 8px; }
.big-play { flex-direction: column; align-items: stretch; gap: 14px; padding: 22px 20px 18px; }
.bp-row { display: flex; align-items: center; gap: 18px; }
.bp-m { white-space: normal; font-size: 15px; }
.big-play .bp-sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; padding-top: 12px; border-top: 1px solid var(--border); color: var(--text-secondary); font-size: 14px; line-height: 1.45; text-align: left; }
.bp-vis { display: inline-block; vertical-align: 1px; margin-left: 6px; background: #1E293B; color: #fff; font-size: 10px; letter-spacing: .04em; padding: 2px 7px; border-radius: 6px; }
/* round 2 */
.hh-greet { margin-top: 22px; }
.hh-play { padding-top: 18px; }
.big-play { gap: 12px; padding: 22px 20px 18px; min-height: 0; }
.bp-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 11px; }
.bp-chips .lvl { font-size: 11px; }
.bp-chips .bp-vis { margin-left: 0; }
.big-play .bp-t { font-size: 26px; line-height: 1.18; }
.big-play .bp-sub { border-top: 0; padding-top: 0; -webkit-line-clamp: 3; }
.bp-go { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 64px; border-radius: 18px; background: var(--gradient); color: #fff; font-size: 20px; font-weight: 700; box-shadow: 0 8px 22px rgba(0,102,204,.32); margin-top: 4px; }
.bp-go-ic { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.22); display: flex; align-items: center; justify-content: center; font-size: 17px; padding-left: 3px; }
.big-play .bp-m { font-size: 12.5px; font-weight: 500; color: var(--text-secondary); text-align: center; }
.hh-second { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.hh-pill { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 14px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; }
.hh-pill.ghost { background: transparent; }
.hh-more { margin-top: 10px; }
.p-pills { display: flex; justify-content: center; gap: 8px; margin: 2px 0 12px; }
.p-pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; }
.session-info .lvl { font-size: 11px; padding: 1px 7px; }
.home-below .feedback-link { margin-top: 18px; }
.home-below .feedback-link a { display: inline-block; padding: 8px 6px; }
.hh-greet { margin-top: auto; padding-top: 24px; }
.hh-play { margin-top: 0; padding-top: 16px; }
.hh-greet { margin-top: 22px; padding-top: 0; }
.hh-q { margin-top: auto; padding: 22px 2px 0; }
.hh-q span { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.hh-q p { font-family: 'Fraunces', serif; font-size: 27px; line-height: 1.22; font-weight: 600; color: #fff; margin-top: 8px; }
.hh-play { padding-top: 18px; }
@media (max-height: 700px) { .hh-q p { font-size: 21px; } .big-play .bp-sub { -webkit-line-clamp: 2; } }
.player-screen .cite-btn { font-size: 13px; font-weight: 700; width: auto; padding: 0 12px; color: #fff; }
/* round 3 */
.ep-card { padding-right: 64px; }
.ep-play { position: absolute; right: 14px; bottom: 16px; width: 40px; height: 40px; border-radius: 50%; background: var(--gradient); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; padding-left: 3px; box-shadow: 0 4px 12px rgba(0,102,204,.3); }
.tw-tag { background: #0066CC; color: #fff; padding: 2px 8px; border-radius: 8px; font-weight: 700; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; margin-right: 6px; }
.pod-list .tw-tag { display: inline-block; margin-bottom: 3px; align-self: flex-start; }
.hh-done { display: block; text-align: center; color: rgba(255,255,255,.9); font-size: 13.5px; padding: 10px; text-decoration: none; }
.q-row { display: flex; align-items: center; gap: 12px; margin-top: 10px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; text-decoration: none; color: var(--text); }
.q-row-ic { width: 44px; height: 44px; border-radius: 10px; background: #EFF6FF; color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; }
.q-row-t { flex: 1; display: flex; flex-direction: column; gap: 2px; } .q-row-t b { font-size: 15px; } .q-row-t small { font-size: 12px; color: var(--text-secondary); }
.q-row i { font-style: normal; color: var(--text-secondary); }
.p-pills { flex-wrap: wrap; }
.p-pills button.p-pill { font-family: inherit; cursor: pointer; }
/* round 4 */
.bp-go { min-height: 72px; font-size: 21px; }
.bp-chips .bp-k { font-size: 12px; }
.hh-log { width: 100%; min-height: 48px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.14); color: #fff; border-radius: 14px; font: 500 15px 'DM Sans', sans-serif; cursor: pointer; }
.hh-log b { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.pod-line { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin: -2px 2px 10px; }
.pod-earlier { margin-top: 10px; }
.pod-earlier summary { font-size: 14px; font-weight: 600; color: var(--primary); cursor: pointer; padding: 8px 2px; }
.pod-earlier .pod-list { margin-top: 6px; }
.pod-list .q-t { flex: 1; }
.pod-list .q-t b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cpd-start { font-family: 'Fraunces', serif; font-size: 22px !important; color: #fff !important; display: block; line-height: 1.25; margin-bottom: 8px; }
#nudgebox:empty { display: none; }
#nudgebox .nudge-box { margin: 0 0 14px; }
.hh-log[hidden] { display: none; }
/* round 5 */
.hh-greet { margin-top: auto; padding-top: 20px; }
.hh-q { margin-top: 0; padding-top: 10px; }
.hh-q p { font-size: 30px; line-height: 1.18; margin-top: 0; }
.upnext { text-align: left; margin-top: 14px; padding: 14px; border-radius: 14px; background: #F1F5F9; display: flex; flex-direction: column; gap: 4px; }
.upnext-k { font-size: 11px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .05em; }
.upnext b { font-family: 'Fraunces', serif; font-size: 17px; color: var(--text); }
.upnext small { font-size: 13px; color: var(--text-secondary); line-height: 1.4; }
.upnext .secondary-btn { margin-top: 8px; }
.session-info .ai-mini { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 2px; }

/* ===== v3 (2026-10-25.13): one headline, card fills the hero, Play in the thumb zone ===== */
.hh-greet { margin-top: 18px; padding-top: 0; }
.hh-greet h2 { font-size: 22px; }
.hh-greet p { margin-top: 4px; }
.hh-play { margin-top: 0; padding-top: 16px; flex: 1 1 auto; display: flex; flex-direction: column; }
.big-play.v3 { flex: 1 1 auto; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 22px 20px 18px; min-height: 0; }
.big-play.v3 .bp-k { display: block; font-size: 11.5px; letter-spacing: .05em; color: var(--primary); white-space: nowrap; }
.big-play.v3 .bp-t { margin-top: 12px; font-size: 27px; line-height: 1.16; }
.big-play.v3 .bp-sub { margin-top: 12px; padding: 0; border: 0; font-family: 'Fraunces', serif; font-style: italic; font-size: 19px; line-height: 1.32; color: var(--text-secondary); -webkit-line-clamp: 4; }
.big-play.v3 .bp-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; color: var(--text-secondary); }
.big-play.v3 .bp-meta .lvl { font-size: 11px; }
.big-play.v3 .bp-meta .bp-vis { margin-left: 0; }
.big-play.v3 .bp-state { display: block; margin-top: 12px; font-size: 13.5px; color: var(--text-secondary); }
.big-play.v3 .bp-state.done { color: #0E8A5F; font-weight: 600; }
.bp-bar { display: block; height: 6px; border-radius: 3px; background: var(--border, #E2E8F0); overflow: hidden; }
.bp-bar i { display: block; height: 100%; background: var(--gradient); border-radius: 3px; }
.big-play.v3 .bp-go { margin-top: auto; min-height: 76px; font-size: 22px; }
.big-play.v3 .bp-meta + .bp-go, .big-play.v3 .bp-state + .bp-go { margin-top: auto; }
.big-play.v3 > .bp-go { position: relative; top: 0; }
.big-play.v3::after { content: none; }
.big-play.v3 .bp-meta { margin-bottom: 18px; }
.hh-more { margin-top: 12px; }
.pod-quiet { display: flex; align-items: center; gap: 8px; margin: 18px 4px 4px; color: var(--text-secondary); font-size: 14px; text-decoration: none; }
.pod-quiet i { font-style: normal; margin-left: auto; color: var(--primary); }
/* end sheet */
.complete-icon.ok { background: #E7F7EF; color: #0E8A5F; font-family: 'DM Sans', sans-serif; font-weight: 700; }
.complete-icon.skip { background: #EAF3FF; color: var(--primary); font-family: 'DM Sans', sans-serif; font-weight: 700; }
.complete-modal .secondary-btn#vs { margin-top: 10px; }
.upnext-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.upnext-k b { color: var(--primary); }
.upnext-x { border: 0; background: transparent; color: var(--text-secondary); font: 600 14px 'DM Sans', sans-serif; padding: 8px 4px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.upnext-bar { height: 4px; border-radius: 2px; background: var(--border, #E2E8F0); overflow: hidden; margin: 6px 0 10px; }
.upnext-bar i { display: block; width: 0; height: 100%; background: var(--gradient); transition: width 5s linear; }
.upnext-t { display: block; }
/* player */
.hdr-spacer { width: 44px; height: 1px; }
.session-info .si-meta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 10px; }
.session-info .si-meta .ai-mini { white-space: nowrap; margin: 0; }
/* progress */
.cpd-notes { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; color: var(--text-secondary); font-size: 13.5px; line-height: 1.4; }
.cpd-notes li { padding-left: 14px; position: relative; }
.cpd-notes li::before { content: "·"; position: absolute; left: 2px; font-weight: 700; }

.big-play.v3 .bp-case { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border, #E2E8F0); font-size: 15px; line-height: 1.45; color: var(--text); }
.big-play.v3 .bp-case b { display: block; font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 4px; }
.big-play.v3 .bp-dot { margin: 0 -2px; }
@media (max-height: 760px) { .big-play.v3 .bp-case { -webkit-line-clamp: 2; } .big-play.v3 .bp-sub { font-size: 17px; } }
@media (max-height: 680px) { .big-play.v3 .bp-case { display: none; } }

.big-play.v3 .bp-case { -webkit-line-clamp: 6; font-size: 16px; line-height: 1.5; }
.big-play.v3 .bp-meta { margin-top: auto; padding-top: 16px; }
.big-play.v3 .bp-go { margin-top: 0; }
@media (max-height: 760px) { .big-play.v3 .bp-case { -webkit-line-clamp: 3; font-size: 15px; } }

.big-play.v3 .bp-meta + .bp-go, .big-play.v3 .bp-state + .bp-go { margin-top: 0; }
.big-play.v3 .bp-case { -webkit-line-clamp: 7; }
@media (max-height: 760px) { .big-play.v3 .bp-case { -webkit-line-clamp: 3; } }

.complete-modal h3 { font-size: 24px; line-height: 1.2; }
.upnext-k { font-family: 'DM Sans', sans-serif; }
.upnext-k b { font-family: 'DM Sans', sans-serif; font-variant-numeric: tabular-nums; }
.complete-modal h3 { font-size: 21px; }
.session-complete-overlay .complete-modal h3, .complete-modal h3#x, #done .complete-modal h3 { font-size: 20px; line-height: 1.25; }
#done .complete-modal { padding-left: 22px; padding-right: 22px; }
#done .complete-modal h3 { font-size: 20px; }
#done .complete-modal { max-width: 340px; width: calc(100% - 40px); box-sizing: border-box; }

/* v3 round 2 */
.big-play.v3 { justify-content: space-between; }
.big-play.v3 .bp-top { display: block; }
.big-play.v3 .bp-case { -webkit-line-clamp: 4; margin-top: 18px; }
.big-play.v3 .bp-meta { margin-top: 18px; padding-top: 0; margin-bottom: 14px; }
.big-play.v3 .bp-go { margin-top: 0; }
.big-play.v3 .bp-t { font-size: 29px; }
.big-play.v3 .bp-sub { font-size: 20px; }
.hh-note { margin: 12px 4px 0; text-align: center; color: rgba(255,255,255,.92); font-size: 13.5px; }
.done-note { margin: -2px 0 14px; color: var(--text-secondary); font-size: 13.5px; }
/* player: transport docked at the bottom, in the thumb zone */
.player-content { padding-bottom: 0; }
.p-dock { position: sticky; bottom: 0; z-index: 5; margin: 0 -20px; padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(15,25,45,.0) 0%, rgba(15,25,45,.96) 18%, #0F1A2E 100%); }
.p-dock .time-display { margin-bottom: 8px; }
.p-dock .player-controls { margin-bottom: 0; }
.player-screen .waveform { height: 44px; margin-bottom: 14px; overflow: hidden; }
.player-screen .live-transcript { max-height: 34vh !important; }

.p-dock { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; max-width: 600px; margin-left: auto; margin-right: auto; padding: 18px 20px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(15,26,46,0) 0%, rgba(15,26,46,.97) 16%, #0F1A2E 100%); }
.player-screen .player-content { padding-bottom: 210px; }
.p-dock .time-display { display: flex; align-items: center; justify-content: space-between; }
.p-dock .speed-btn { min-width: 52px; height: 32px; padding: 0 10px; font-size: 13px; }
.cpd-inline-row { text-align: center; margin: 0 0 12px; font-size: 13px; color: rgba(255,255,255,.7); }
.cpd-inline-row[hidden] { display: none; }
.big-play.v3 .bp-case { -webkit-line-clamp: 5; }

.p-dock { background: #0F1A2E; box-shadow: 0 -18px 24px rgba(15,26,46,.95); border-top: 1px solid rgba(255,255,255,.06); padding-top: 14px; }

.reflect-strip { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.1); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; }
.reflect-strip i { margin-left: auto; font-style: normal; }
.ask-hdr { white-space: nowrap; }

/* round 3: panel row in place of the case paragraph */
.big-play.v3 .bp-panel { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border, #E2E8F0); }
.bp-avs { display: flex; }
.bp-avs i { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff; margin-left: -10px; display: flex; align-items: center; justify-content: center; color: #fff; font: 700 15px 'DM Sans', sans-serif; font-style: normal; }
.bp-avs i:first-child { margin-left: 0; }
.bp-pn { display: flex; flex-direction: column; font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.3; }
.bp-pn small { font-size: 12.5px; font-weight: 500; color: var(--text-secondary); }
.big-play.v3 .bp-t { font-size: 31px; }
.big-play.v3 .bp-sub { font-size: 22px; margin-top: 14px; }
.panel-screen .panel-fine { margin-bottom: 110px; }

/* round 4 */
.player-screen .waveform { display: none; }
.player-screen .player-content { padding-bottom: 250px; }
.kp-dark li { margin-bottom: 12px; line-height: 1.5; }
.session-info { margin-bottom: 16px; }
.player-screen .live-transcript.wide { max-height: none !important; }
.big-play.v3 .bp-meta .lvl { text-transform: uppercase; letter-spacing: .04em; }

/* peer votes + version tags (10 Nov 2026) */
.peer-likes{display:inline-flex;align-items:center;gap:5px;margin-top:8px;padding:3px 9px;border-radius:999px;background:#EAF4FF;color:#0B4F8A;font-size:12px;font-weight:600;line-height:1.3}
.peer-likes.dark{background:rgba(255,255,255,.14);color:#fff;margin-top:6px}
.ver-tag{display:inline-block;margin-top:6px;font-size:11.5px;color:#5b6b7c;font-weight:500}
