/* ═══════════════════════════════════════════════════════
   Rexona v3 — Face-First Dashboard
   Full-screen EMO face, floating menu dot, slide panels
   ═══════════════════════════════════════════════════════ */

:root {
    --bg: #050508;
    --bg2: #0c0c14;
    --bg3: #14142a;
    --card: rgba(16, 16, 30, 0.92);
    --text: #e8e8f0;
    --text2: #8888a8;
    --muted: #444460;
    --accent: #39ff14;
    --accent-dim: rgba(57, 255, 20, 0.12);
    --accent-glow: rgba(57, 255, 20, 0.4);
    --danger: #ff3b5c;
    --border: rgba(255, 255, 255, 0.06);
    --glass: rgba(12, 12, 22, 0.88);
    --glass-border: rgba(255, 255, 255, 0.08);
    --radius: 16px;
    --radius-sm: 10px;
    --font: 'Vazirmatn', -apple-system, sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 15px;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    direction: rtl;
}

.hidden {
    display: none !important;
}

.glass {
    background: var(--glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
}

/* ═══ RX Logo ═══ */
.rx-logo {
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 900;
    font-size: 2.2rem;
    letter-spacing: 4px;
    background: linear-gradient(135deg, var(--accent), #00ff88);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.rx-logo.small {
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.splash-logo {
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 900;
    font-size: 3rem;
    letter-spacing: 6px;
    background: linear-gradient(135deg, var(--accent), #00ff88);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    text-shadow: 0 0 40px var(--accent-glow);
}

/* ═══ Splash ═══ */
.splash {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    z-index: 1000;
    transition: opacity 0.8s, transform 0.8s;
}

.splash.fade-out {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}

.splash-face {
    margin-bottom: 16px;
    filter: drop-shadow(0 0 40px var(--accent-glow));
    animation: float 3s ease-in-out infinite;
}

.splash-text {
    font-size: 1rem;
    color: var(--text2);
    margin-bottom: 16px;
    animation: pulse-text 2s ease-in-out infinite;
}

.splash-loader {
    width: 180px;
    height: 2px;
    background: var(--bg3);
    border-radius: 2px;
    overflow: hidden;
}

.loader-bar {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #00ff88);
    border-radius: 2px;
    animation: load 2.5s forwards;
    box-shadow: 0 0 8px var(--accent-glow);
}

@keyframes load {
    0% {
        width: 0
    }

    50% {
        width: 70%
    }

    100% {
        width: 100%
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-8px)
    }
}

@keyframes pulse-text {

    0%,
    100% {
        opacity: .5
    }

    50% {
        opacity: 1
    }
}

/* ═══ Login ═══ */
.login {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    z-index: 999;
}

.login-card {
    padding: 40px 36px;
    border-radius: var(--radius);
    text-align: center;
    max-width: 380px;
    width: 90%;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 50px rgba(57, 255, 20, 0.04);
    animation: card-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes card-in {
    from {
        opacity: 0;
        transform: translateY(30px) scale(.95)
    }

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

.login-card canvas {
    margin-bottom: 12px;
    filter: drop-shadow(0 0 20px var(--accent-glow));
}

.login-card p {
    color: var(--text2);
    margin-bottom: 20px;
    font-size: .9rem;
}

.login-card input {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg3);
    color: var(--text);
    font-family: var(--font);
    font-size: 1rem;
    margin-bottom: 14px;
    text-align: center;
    transition: var(--transition);
}

.login-card input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-dim);
}

.login-error {
    color: #ff4444;
    font-size: .85rem;
    margin-top: 8px;
}

/* ═══ Buttons ═══ */
.btn-primary {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--accent), #00cc44);
    color: #050508;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-small {
    width: auto;
    padding: 8px 16px;
    font-size: .85rem;
}

.btn-icon {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-icon:hover {
    background: var(--accent-dim);
}

.btn-send {
    background: linear-gradient(135deg, var(--accent), #00cc44);
    color: #050508;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-send:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* ═══ FACE HOME (Full Screen — Default) ═══ */
.face-home {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, var(--bg2) 0%, var(--bg) 70%);
    overflow: hidden;
    z-index: 1;
}

.face-home::before,
.face-home::after {
    content: '';
    position: absolute;
    width: 42vw;
    height: 42vw;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
    opacity: 0.18;
    animation: face-aurora 12s ease-in-out infinite;
}

.face-home::before {
    top: -12vw;
    right: -8vw;
    background: radial-gradient(circle, rgba(57, 255, 20, 0.35), transparent 65%);
}

.face-home::after {
    bottom: -18vw;
    left: -10vw;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.22), transparent 68%);
    animation-delay: -6s;
}

.face-home canvas {
    filter: drop-shadow(0 0 60px var(--accent-glow));
    max-width: 90vw;
    max-height: 65vh;
    z-index: 2;
}

.face-status-bar {
    position: absolute;
    bottom: 30px;
    display: flex;
    gap: 24px;
    align-items: center;
    font-size: .85rem;
    color: var(--muted);
    z-index: 3;
}

@keyframes face-aurora {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(3vw, -1.2vw, 0) scale(1.08);
    }

    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
}

.face-mood-label {
    color: var(--accent);
    font-weight: 600;
}

/* Voice indicator on face */
.voice-indicator {
    position: absolute;
    bottom: 80px;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    padding: 12px 24px;
    border-radius: 100px;
    background: rgba(57, 255, 20, 0.08);
    border: 1px solid rgba(57, 255, 20, 0.2);
}

.voice-wave {
    width: 4px;
    border-radius: 4px;
    background: var(--accent);
    animation: wave 1.2s ease-in-out infinite;
}

.voice-wave:nth-child(1) {
    height: 8px;
    animation-delay: 0s;
}

.voice-wave:nth-child(2) {
    height: 16px;
    animation-delay: .1s;
}

.voice-wave:nth-child(3) {
    height: 24px;
    animation-delay: .2s;
}

.voice-wave:nth-child(4) {
    height: 16px;
    animation-delay: .3s;
}

.voice-wave:nth-child(5) {
    height: 8px;
    animation-delay: .4s;
}

#voice-text {
    margin-right: 12px;
    color: var(--accent);
    font-size: .85rem;
}

@keyframes wave {

    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(1.8);
    }
}

/* ═══ Menu Dot (floating top-right) ═══ */
.menu-dot {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 200;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.menu-dot:hover {
    background: var(--accent-dim);
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-dim);
}

.dot-inner {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
    transition: var(--transition);
}

.menu-dot.open .dot-inner {
    background: var(--danger);
    box-shadow: 0 0 8px rgba(255, 59, 92, 0.4);
}

/* ═══ Menu Panel ═══ */
.menu-panel {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 190;
    width: 260px;
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
    animation: menu-in .25s ease;
}

@keyframes menu-in {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(.95)
    }

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

.menu-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
}

.menu-header span {
    font-weight: 700;
    color: var(--accent);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-right: auto;
}

.status-dot.online {
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent-glow);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        box-shadow: 0 0 4px var(--accent-glow)
    }

    50% {
        box-shadow: 0 0 12px var(--accent-glow)
    }
}

.menu-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.menu-item {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text2);
    font-family: var(--font);
    font-size: .9rem;
    cursor: pointer;
    text-align: right;
    transition: var(--transition);
}

.menu-item:hover {
    background: var(--accent-dim);
    color: var(--text);
}

.menu-item.active {
    color: var(--accent);
    font-weight: 600;
}

.menu-footer {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    font-size: .75rem;
}

.status-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    color: var(--muted);
}

/* ═══ Slide Panels ═══ */
.slide-panel {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: 480px;
    z-index: 300;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    animation: slide-in .3s ease;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.5);
}

@keyframes slide-in {
    from {
        transform: translateX(-100%)
    }

    to {
        transform: translateX(0)
    }
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.panel-header h2 {
    font-size: 1rem;
    font-weight: 700;
}

.openclaw-actions {
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.openclaw-health {
    font-size: .75rem;
    color: var(--accent);
    border: 1px solid rgba(57, 255, 20, 0.28);
    background: rgba(57, 255, 20, 0.1);
    border-radius: 999px;
    padding: 4px 10px;
    white-space: nowrap;
}

.openclaw-health.is-warning {
    color: #ffb347;
    border-color: rgba(255, 179, 71, 0.3);
    background: rgba(255, 179, 71, 0.12);
}

.panel-back {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg3);
    border: none;
    color: var(--text2);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.panel-back:hover {
    background: var(--accent-dim);
    color: var(--accent);
}

.panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ═══ Chat ═══ */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
    width: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--bg3);
    border-radius: 3px;
}

.message {
    display: flex;
    gap: 10px;
    max-width: 90%;
    animation: msg-in .3s ease;
}

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

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

.message.bot {
    align-self: flex-start;
}

.message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    font-weight: 900;
    flex-shrink: 0;
    background: var(--bg3);
    color: var(--accent);
}

.message.user .message-avatar {
    background: var(--accent-dim);
}

.message-content {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    line-height: 1.7;
    font-size: .9rem;
}

.message.bot .message-content {
    background: var(--bg3);
}

.message.user .message-content {
    background: var(--accent-dim);
    border: 1px solid rgba(57, 255, 20, .1);
}

.message-content p {
    margin: 0;
}

.message-content pre {
    background: var(--bg);
    padding: 10px;
    border-radius: 6px;
    margin: 8px 0;
    overflow-x: auto;
    font-size: .8rem;
    direction: ltr;
    text-align: left;
}

.message-content code {
    font-family: monospace;
    font-size: .85em;
}

.chat-input-area {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

#chat-input {
    flex: 1;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text);
    font-family: var(--font);
    font-size: .9rem;
    resize: none;
    max-height: 100px;
    line-height: 1.5;
    transition: var(--transition);
    direction: rtl;
}

#chat-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 12px var(--accent-dim);
}

#chat-input::placeholder {
    color: var(--muted);
}

/* Voice recording pulse */
.btn-icon.recording {
    animation: pulse-rec 1s infinite;
    color: var(--danger);
}

@keyframes pulse-rec {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 59, 92, .3)
    }

    50% {
        box-shadow: 0 0 0 10px rgba(255, 59, 92, 0)
    }
}

/* ═══ Voice Panel ═══ */
.voice-panel-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.voice-panel-body canvas {
    filter: drop-shadow(0 0 30px var(--accent-glow));
}

.voice-status {
    color: var(--accent);
    font-size: 1rem;
    font-weight: 600;
}

.voice-big-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 100px;
    background: linear-gradient(135deg, var(--accent), #00cc44);
    color: #050508;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.voice-big-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--accent-glow);
}

.voice-big-btn.active {
    background: linear-gradient(135deg, #ff3b5c, #ff006e);
    animation: pulse-rec 1.5s infinite;
}

.voice-big-btn.active span:first-child::after {
    content: '🔴';
}

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

/* ═══ Cards ═══ */
.card {
    padding: 20px;
    border-radius: var(--radius);
}

.card h3 {
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.qr-container {
    background: #fff;
    border-radius: 8px;
    padding: 12px;
    display: inline-block;
    margin: 12px 0;
}

.qr-container canvas {
    display: block;
}

/* Device List */
.device-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.device-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--bg3);
    border-radius: 8px;
}

.device-info {
    flex: 1;
}

.device-info strong {
    display: block;
    font-size: .85rem;
}

.device-status {
    font-size: .7rem;
    padding: 2px 6px;
    border-radius: 100px;
}

.device-status.online {
    background: var(--accent-dim);
    color: var(--accent);
}

.device-status.offline {
    background: rgba(255, 59, 92, .1);
    color: var(--danger);
}

.perm-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

.toggle {
    appearance: none;
    width: 40px;
    height: 22px;
    border-radius: 11px;
    background: var(--bg3);
    border: 1px solid var(--border);
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.toggle::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--muted);
    top: 2px;
    right: 2px;
    transition: var(--transition);
}

.toggle:checked {
    background: var(--accent-dim);
    border-color: var(--accent);
}

.toggle:checked::after {
    background: var(--accent);
    right: calc(100% - 18px);
    box-shadow: 0 0 6px var(--accent-glow);
}

/* Soul Editor */
.soul-editor {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    color: var(--text2);
    font-family: var(--font);
    font-size: .85rem;
    resize: vertical;
    margin-bottom: 10px;
    direction: rtl;
    line-height: 1.7;
}

.memory-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.memory-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--bg3);
    border-radius: 8px;
}

.memory-date {
    font-size: .7rem;
    color: var(--muted);
    white-space: nowrap;
}

.memory-item p {
    flex: 1;
    font-size: .85rem;
    margin: 0;
}

/* Settings */
.setting-group {
    margin-bottom: 14px;
}

.setting-group label {
    display: block;
    font-size: .8rem;
    color: var(--text2);
    margin-bottom: 6px;
}

.select-input,
.text-input {
    width: 100%;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg3);
    color: var(--text);
    font-family: var(--font);
    font-size: .85rem;
    transition: var(--transition);
}

.select-input:focus,
.text-input:focus {
    outline: none;
    border-color: var(--accent);
}

.risk-field-error {
    margin-top: 4px;
    font-size: .72rem;
    color: #ff5f67;
    line-height: 1.35;
}

.range-input {
    width: 100%;
    appearance: none;
    height: 3px;
    background: var(--bg3);
    border-radius: 2px;
    outline: none;
}

.range-input::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 0 8px var(--accent-glow);
}

.color-picker {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.color-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.color-btn:hover,
.color-btn.active {
    border-color: #fff;
    transform: scale(1.15);
}

/* ═══ Responsive ═══ */
@media (max-width: 600px) {
    .slide-panel {
        max-width: 100%;
    }

    .menu-panel {
        width: calc(100% - 20px);
        right: 10px;
    }

    .face-home canvas {
        max-height: 50vh;
    }

    .openclaw-actions {
        gap: 6px;
    }

    .openclaw-health {
        font-size: .65rem;
        padding: 3px 8px;
    }

    #btn-openclaw-reload {
        padding: 6px 10px;
        font-size: .72rem;
    }
}

/* ═══ Terminal ═══ */
.terminal-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #0a0a10;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
}

.terminal-output {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    font-size: .8rem;
    line-height: 1.6;
    color: #c0c0c0;
    direction: ltr;
    text-align: left;
}

.terminal-output::-webkit-scrollbar {
    width: 3px;
}

.terminal-output::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

.term-line {
    white-space: pre-wrap;
    word-break: break-all;
    margin-bottom: 2px;
}

.term-cmd {
    color: var(--accent);
}

.term-error {
    color: var(--danger);
}

.term-cursor {
    animation: blink-cursor 1s step-end infinite;
    color: var(--accent);
}

@keyframes blink-cursor {

    0%,
    50% {
        opacity: 1
    }

    51%,
    100% {
        opacity: 0
    }
}

.terminal-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-top: 1px solid #222;
    background: #080812;
}

.term-prompt {
    color: var(--accent);
    font-size: .85rem;
    font-weight: 700;
    font-family: monospace;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #e0e0e0;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: .85rem;
    outline: none;
    direction: ltr;
    text-align: left;
}

.terminal-input::placeholder {
    color: #444;
}

/* ═══ Logs ═══ */
.log-viewer {
    background: #0a0a10;
    color: #888;
    padding: 12px;
    border-radius: 6px;
    font-family: monospace;
    font-size: .75rem;
    line-height: 1.5;
    overflow-x: auto;
    max-height: 400px;
    overflow-y: auto;
    direction: ltr;
    text-align: left;
    white-space: pre-wrap;
    word-break: break-all;
    margin-bottom: 10px;
}

/* ═══ Always-on voice glow on face ═══ */
.face-home.listening {}

.face-home.listening .voice-indicator {
    display: flex;
}
