/* ============================================================================
   AI Interview Co-pilot — Frontend Styles v2
   ============================================================================
   Premium dark-mode glassmorphism design system.
   v2: Added nav buttons, auto-answer toggle, copy button styles.
   ============================================================================ */

/* --- Google Font --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
    --bg-primary: #07070e;
    --bg-secondary: #0d0d1a;
    --bg-tertiary: #131325;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.06);
    --surface-active: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 255, 255, 0.15);

    --text-primary: rgba(255, 255, 255, 0.92);
    --text-secondary: rgba(255, 255, 255, 0.55);
    --text-muted: rgba(255, 255, 255, 0.3);

    --accent-blue: #00d4ff;
    --accent-purple: #7c3aed;
    --accent-gradient: linear-gradient(135deg, #00d4ff, #7c3aed);
    --accent-glow: 0 0 20px rgba(0, 212, 255, 0.3);

    --danger: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 15px; scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 212, 255, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(124, 58, 237, 0.04) 0%, transparent 40%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }

/* --- App Container --- */
.app-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: opacity var(--transition-base), transform var(--transition-slow);
}

/* --- Glass Panel --- */
.glass-panel {
    background: var(--surface);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
.glass-panel:hover { border-color: var(--border-hover); }

/* --- Header Bar --- */
.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.header-left { display: flex; align-items: center; gap: 14px; }
.app-title {
    font-size: 1.15rem;
    font-weight: 600;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}
.status-indicator {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all var(--transition-base);
}
.status-indicator.offline { background: rgba(239, 68, 68, 0.15); color: var(--danger); }
.status-indicator.listening { background: rgba(34, 197, 94, 0.15); color: var(--success); }
.status-indicator.processing { background: rgba(0, 212, 255, 0.15); color: var(--accent-blue); }

.header-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* --- Provider Selector --- */
.provider-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-family: var(--font-sans);
    cursor: pointer;
    outline: none;
    transition: border-color var(--transition-fast);
}
.provider-select:focus { border-color: var(--accent-blue); box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.15); }
.provider-select option { background: #1a1a2e; }

/* --- Stealth Controls --- */
.stealth-controls { display: flex; align-items: center; gap: 8px; }
.opacity-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.opacity-slider {
    -webkit-appearance: none;
    width: 70px; height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px; outline: none; cursor: pointer;
}
.opacity-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--accent-blue); cursor: pointer;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    outline: none;
    line-height: 1;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 2px 12px rgba(0, 212, 255, 0.2);
}
.btn-primary:hover { box-shadow: 0 4px 20px rgba(0, 212, 255, 0.35); transform: translateY(-1px); }

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--surface-hover); border-color: var(--border-hover); box-shadow: var(--accent-glow); }

.btn-danger {
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.btn-danger:hover { background: rgba(239, 68, 68, 0.2); box-shadow: 0 0 15px rgba(239, 68, 68, 0.2); }

.btn-listen {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 9px 18px;
}
.btn-listen.active {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.3);
    color: var(--success);
    animation: pulse-listen 2s infinite;
}

/* --- Auto-Answer Button --- */
.btn-auto-answer {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    position: relative;
}
.btn-auto-answer.active {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.4);
    color: var(--success);
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.2);
    animation: pulse-auto 2.5s infinite;
}
@keyframes pulse-auto {
    0%, 100% { box-shadow: 0 0 8px rgba(34, 197, 94, 0.15); }
    50% { box-shadow: 0 0 18px rgba(34, 197, 94, 0.35); }
}

.btn-sm { padding: 6px 12px; font-size: 0.78rem; }

@keyframes pulse-listen {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.3); }
    50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

/* --- Panel Navigation Buttons --- */
.panel-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-nav {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-sans);
    outline: none;
}
.btn-nav:hover:not(:disabled) {
    background: var(--surface-hover);
    border-color: var(--border-hover);
    color: var(--text-primary);
}
.btn-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.btn-nav:active:not(:disabled) { transform: scale(0.95); }

.btn-copy {
    background: rgba(0, 212, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.15);
    color: var(--accent-blue);
}
.btn-copy:hover:not(:disabled) {
    background: rgba(0, 212, 255, 0.15);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.15);
}
.btn-copy.copied {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
    color: var(--success);
}

.nav-counter {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    min-width: 36px;
    text-align: center;
}

/* --- Main Content --- */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

/* --- Panel Header --- */
.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.panel-header h2 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
}

/* --- Transcription Panel --- */
.transcription-panel { position: relative; }

.transcription-feed {
    max-height: 180px;
    overflow-y: auto;
    padding: 12px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    line-height: 1.7;
}

.final-text { color: var(--text-primary); }
.interim-text { color: var(--text-muted); font-style: italic; }
.placeholder-text { color: var(--text-muted); font-style: italic; font-size: 0.85rem; }

.manual-input-row { display: flex; gap: 8px; margin-top: 12px; }
.manual-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    outline: none;
    transition: border-color var(--transition-fast);
}
.manual-input:focus { border-color: var(--accent-blue); box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.1); }
.manual-input::placeholder { color: var(--text-muted); }

/* --- Classification Badge --- */
.badge {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.badge.technical { background: rgba(0, 212, 255, 0.15); color: var(--accent-blue); }
.badge.behavioral { background: rgba(124, 58, 237, 0.15); color: #a78bfa; }
.badge.system_design { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.badge.follow_up { background: rgba(34, 197, 94, 0.15); color: var(--success); }
.badge.general { background: rgba(255, 255, 255, 0.08); color: var(--text-secondary); }

/* --- Control Panel --- */
.control-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 4px 0;
}

/* --- Response Panel --- */
.response-panel { position: relative; }

.response-content {
    min-height: 120px;
    max-height: 440px;
    overflow-y: auto;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    line-height: 1.75;
}

/* Markdown rendered styles */
.response-content h1, .response-content h2, .response-content h3, .response-content h4 {
    color: var(--accent-blue); margin: 16px 0 8px; font-weight: 600;
}
.response-content h1 { font-size: 1.1rem; }
.response-content h2 { font-size: 1rem; }
.response-content h3 { font-size: 0.95rem; }
.response-content strong { color: #e2e8f0; font-weight: 600; }
.response-content code {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px; border-radius: 4px;
    font-family: var(--font-mono); font-size: 0.82rem; color: var(--accent-blue);
}
.response-content pre {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px; overflow-x: auto; margin: 12px 0;
}
.response-content pre code { background: transparent; padding: 0; color: var(--text-primary); }
.response-content ul, .response-content ol { padding-left: 22px; margin: 8px 0; }
.response-content li { margin: 4px 0; }
.response-content blockquote {
    border-left: 3px solid var(--accent-purple);
    padding-left: 14px; margin: 10px 0;
    color: var(--text-secondary); font-style: italic;
}

.star-label {
    display: inline-block;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700; margin-right: 4px;
}

.provider-badge {
    font-size: 0.68rem; padding: 3px 8px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

/* --- Streaming cursor --- */
.streaming-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--accent-blue);
    animation: blink-cursor 0.8s infinite;
    margin-left: 2px;
    vertical-align: text-bottom;
}
@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* --- Typing Indicator --- */
.typing-indicator { display: flex; align-items: center; gap: 4px; padding: 12px 16px; }
.typing-indicator span {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--accent-blue);
    animation: bounce 1.4s infinite ease-in-out both;
}
.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }
.typing-indicator span:nth-child(3) { animation-delay: 0s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0.5); opacity: 0.3; }
    40% { transform: scale(1); opacity: 1; }
}

/* --- Hotkey Hints Footer --- */
.hotkey-hints { display: flex; justify-content: center; gap: 20px; padding: 10px; flex-wrap: wrap; }
.hotkey-hints span {
    font-size: 0.68rem; color: var(--text-muted);
    font-family: var(--font-mono);
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Toast Notifications --- */
.toast-container {
    position: fixed; top: 20px; right: 20px; z-index: 10000;
    display: flex; flex-direction: column; gap: 8px;
}
.toast {
    padding: 12px 18px; border-radius: var(--radius-sm);
    font-size: 0.82rem; font-weight: 500;
    backdrop-filter: blur(16px); border: 1px solid var(--border);
    animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
    max-width: 340px;
}
.toast.info { background: rgba(0, 212, 255, 0.12); color: var(--accent-blue); border-color: rgba(0, 212, 255, 0.2); }
.toast.success { background: rgba(34, 197, 94, 0.12); color: var(--success); border-color: rgba(34, 197, 94, 0.2); }
.toast.error { background: rgba(239, 68, 68, 0.12); color: var(--danger); border-color: rgba(239, 68, 68, 0.2); }

@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(30px); } }

/* --- Stealth Mode --- */
.stealth-active {
    position: fixed !important; top: 20px; right: 20px;
    max-width: 400px; min-height: auto; z-index: 9999;
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    padding: 12px; overflow: hidden;
}
.stealth-active .header-bar { padding: 8px 12px; }
.stealth-active .app-title { font-size: 0.9rem; }
.stealth-active .transcription-feed { max-height: 100px; }
.stealth-active .response-content { max-height: 200px; }
.stealth-active .hotkey-hints { display: none; }
.stealth-active .control-panel { gap: 4px; }
.stealth-active .btn { padding: 6px 10px; font-size: 0.72rem; }
.stealth-active .btn span:not(.mic-icon) { display: none; }
.stealth-active .stealth-controls .opacity-label { display: none; }
.stealth-active .panel-nav { gap: 3px; }
.stealth-active .btn-nav { padding: 3px 6px; font-size: 0.65rem; }
.stealth-active .nav-counter { display: none; }

.stealth-hidden {
    opacity: 0 !important; pointer-events: none !important;
    transition: opacity 0.2s ease;
}

/* --- Drag Handle --- */
.drag-handle {
    position: absolute; top: 4px; left: 50%; transform: translateX(-50%);
    cursor: grab; color: var(--text-muted); font-size: 0.9rem;
    padding: 2px 12px; z-index: 10; user-select: none; letter-spacing: 2px;
}
.drag-handle:active { cursor: grabbing; }

.hidden { display: none !important; }

/* --- Speaker Tags (Dual Channel) --- */
.speaker-tag {
    font-weight: 600;
    font-size: 0.78rem;
    margin-right: 4px;
    letter-spacing: 0.02em;
}
.speaker-tag.speaker-you {
    color: var(--accent-blue);
}
.speaker-tag.speaker-interviewer {
    color: #f59e0b;
}
.speaker-you {
    border-left: 3px solid var(--accent-blue);
    padding-left: 10px;
    margin-bottom: 4px;
}
.speaker-interviewer {
    border-left: 3px solid #f59e0b;
    padding-left: 10px;
    margin-bottom: 4px;
}

/* --- System Audio Button --- */
.btn-system-audio {
    background: rgba(245, 158, 11, 0.08);
    color: var(--text-secondary);
    border: 1px solid rgba(245, 158, 11, 0.2);
}
.btn-system-audio:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.35);
    color: #f59e0b;
}
.btn-system-audio.active {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
    color: #f59e0b;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.2);
    animation: pulse-system 2.5s infinite;
}
@keyframes pulse-system {
    0%, 100% { box-shadow: 0 0 8px rgba(245, 158, 11, 0.12); }
    50% { box-shadow: 0 0 16px rgba(245, 158, 11, 0.3); }
}

/* --- Nav Divider --- */
.nav-divider {
    color: var(--text-muted);
    font-size: 0.7rem;
    opacity: 0.3;
    user-select: none;
}

/* --- Transcription Panel Resize --- */
.transcription-feed {
    transition: max-height 0.2s ease, font-size 0.15s ease;
}

/* --- Response Content text-size transition --- */
.response-content {
    transition: font-size 0.15s ease;
}

/* --- Pop-out Button --- */
.btn-popout {
    background: rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.25);
    color: #a78bfa;
}
.btn-popout:hover:not(:disabled) {
    background: rgba(124, 58, 237, 0.2);
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.2);
    color: #c4b5fd;
}

/* --- Floating PiP Widget --- */
.floating-widget {
    position: fixed;
    top: 60px;
    right: 30px;
    width: 420px;
    min-width: 280px;
    min-height: 180px;
    max-width: 90vw;
    max-height: 80vh;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    background: rgba(13, 13, 26, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 0 30px rgba(124, 58, 237, 0.1);
    overflow: hidden;
    transition: opacity 0.2s ease, box-shadow 0.3s ease;
}

.floating-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    cursor: grab;
    user-select: none;
    flex-shrink: 0;
}
.floating-header:active { cursor: grabbing; }

.floating-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
}

.floating-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.floating-opacity-label {
    font-size: 0.7rem;
    cursor: default;
}

.floating-opacity-slider {
    -webkit-appearance: none;
    width: 55px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}
.floating-opacity-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px; height: 12px; border-radius: 50%;
    background: #a78bfa;
    cursor: pointer;
    box-shadow: 0 0 6px rgba(124, 58, 237, 0.4);
}

.floating-content {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    font-size: 0.88rem;
    line-height: 1.75;
    color: var(--text-primary);
}
/* Inherit markdown styles */
.floating-content h1, .floating-content h2, .floating-content h3, .floating-content h4 {
    color: var(--accent-blue); margin: 12px 0 6px; font-weight: 600;
}
.floating-content h1 { font-size: 1.1rem; }
.floating-content h2 { font-size: 1rem; }
.floating-content h3 { font-size: 0.95rem; }
.floating-content strong { color: #e2e8f0; font-weight: 600; }
.floating-content code {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px; border-radius: 4px;
    font-family: var(--font-mono); font-size: 0.82rem; color: var(--accent-blue);
}
.floating-content pre {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px; overflow-x: auto; margin: 10px 0;
}
.floating-content pre code { background: transparent; padding: 0; color: var(--text-primary); }
.floating-content ul, .floating-content ol { padding-left: 20px; margin: 6px 0; }
.floating-content li { margin: 3px 0; }

.btn-float-close {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.25);
    color: var(--danger);
    font-weight: 700;
}
.btn-float-close:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.25);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.2);
}

/* Resize handle */
.floating-resize {
    position: absolute;
    bottom: 2px;
    right: 4px;
    width: 18px;
    height: 18px;
    cursor: nwse-resize;
    color: var(--text-muted);
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    opacity: 0.5;
    transition: opacity 0.15s ease;
}
.floating-resize:hover { opacity: 1; }

/* --- Responsive --- */
@media (max-width: 640px) {
    .app-container { padding: 10px; }
    .header-bar { flex-direction: column; align-items: flex-start; }
    .header-right { width: 100%; }
    .control-panel { justify-content: flex-start; }
    .stealth-active { max-width: 90vw; }
    .hotkey-hints { display: none; }
    .panel-nav { flex-wrap: wrap; }
    .floating-widget { width: 90vw; right: 5vw; }
}
