/* app-skin.css (was career-coach.css until 2026-09-22) - Companion chat app styles (Parts Work | Journal)
   v2 design system skin: dark slate surfaces (#0e1116 / #12171f / #1b2129), #2a3340 lines,
   mint->sky gradient actions with dark ink, per-state accents. Structure unchanged. */

:root {
    color-scheme: dark;
}

/* Base (these pages no longer load styles.css) */
body {
    margin: 0;
    background: #0e1116;
    color: #eef2f7;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

* {
    box-sizing: border-box;
}

.companion-page {
    display: flex;
    height: calc(100vh - 64px);
    /* dvh tracks the VISIBLE viewport on mobile — with plain 100vh the input
       bar sits behind Safari/Chrome's bottom toolbar, which never collapses
       because this page doesn't body-scroll. Older browsers keep the vh line. */
    height: calc(100dvh - 64px);
    overflow: hidden;
    background: #0e1116;
    color: #eef2f7;
}

/* ==================== SITE HEADER (v2 system navbar, self-contained) ==================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(14, 17, 22, 0.82);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #2a3340;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.site-header .nav-row {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    height: 64px;
}

.site-header .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #eef2f7;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.site-header .brand img {
    height: 34px;
    width: 34px;
    border-radius: 9px;
    object-fit: cover;
}

.site-header .nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header .nav-links a {
    display: block;
    color: #aeb9c7;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 9px;
}

.site-header .nav-links a:hover {
    color: #eef2f7;
    background: #161b22;
}

.site-header .nav-links a.active {
    color: #eef2f7;
}

.site-header .nav-links a.reports {
    color: #06251b;
    background: linear-gradient(100deg, #6ee7b7, #7cc4ff);
    border-radius: 999px;
    padding: 8px 18px;
    margin-left: 8px;
}

.site-header #menuBtn {
    display: none;
    background: none;
    border: 1px solid #2a3340;
    color: #eef2f7;
    border-radius: 10px;
    padding: 8px 11px;
    cursor: pointer;
}

@media (max-width: 1080px) {
    .site-header #menuBtn {
        display: block;
    }

    .site-header .nav-links {
        display: none;
        position: fixed;
        inset: 64px 0 auto 0;
        z-index: 49;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        background: rgba(14, 17, 22, 0.98);
        border-bottom: 1px solid #2a3340;
        padding: 14px 20px 22px;
    }

    .site-header .nav-links.open {
        display: flex;
    }

    .site-header .nav-links a {
        padding: 12px 14px;
        font-size: 16px;
    }

    .site-header .nav-links a.reports {
        margin: 10px 0 0;
        text-align: center;
    }
}

/* ==================== AUTH GATE HELPERS (replaces inline styles) ==================== */

.auth-gate-sub {
    max-width: 420px;
    margin: 0 auto 24px;
    line-height: 1.7;
    color: #aeb9c7;
    font-size: 15px;
}

.auth-gate-or {
    font-weight: 400;
    color: #7d8896;
}

.auth-gate-more {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #2a3340;
}

.auth-gate-more p {
    font-size: 13px;
    color: #7d8896;
    margin-bottom: 8px;
}

.auth-gate-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.auth-gate-chip {
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 12px;
    color: #7cc4ff;
    text-decoration: none;
    border: 1px solid #2a3340;
    background: #1b2129;
}

.auth-gate-chip:hover {
    border-color: #3a4a5e;
}

/* ==================== SIDEBAR ==================== */

.companion-sidebar {
    width: 280px;
    min-width: 280px;
    background: #12171f;
    border-right: 1px solid #232c38;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-header {
    padding: 16px;
    border-bottom: 1px solid #232c38;
}

.new-session-btn {
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(100deg, #6ee7b7, #7cc4ff);
    color: #06251b;
    border: none;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.15s, box-shadow 0.15s;
}

.new-session-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(110, 231, 183, 0.2);
}

.sessions-list {
    flex: 1;
    overflow-y: auto;
    /* The history is what the sidebar is FOR. Everything below it is auto-height,
       so without a floor a tall footer can scroll it down to a sliver — which is
       exactly what the voice picker did before it became one line. */
    min-height: 96px;
    padding: 8px;
    scrollbar-width: thin;
    scrollbar-color: #2a3340 transparent;
}

.sessions-list::-webkit-scrollbar {
    width: 5px;
}

.sessions-list::-webkit-scrollbar-thumb {
    background: #2a3340;
    border-radius: 3px;
}

.session-item {
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 4px;
    transition: background 0.15s;
}

.session-item:hover {
    background: #1b2129;
}

.session-item.active {
    background: #1b2129;
    border-left: 3px solid #7cc4ff;
}

.session-item-title {
    font-size: 14px;
    font-weight: 500;
    color: #c2ccd8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.session-item-date {
    font-size: 12px;
    color: #7d8896;
    margin-top: 4px;
}

/* The session recap disclosure. The title still has to ellipsis inside the flex row,
   which it will not do without min-width:0 on the shrinking child. */
.session-item-head {
    display: flex;
    align-items: center;
    gap: 6px;
}

.session-item-head .session-item-title {
    flex: 1;
    min-width: 0;
}

.session-item-recap-toggle {
    background: none;
    border: none;
    padding: 2px 4px;
    color: #7d8896;
    cursor: pointer;
    font-size: 11px;
    line-height: 1;
    flex: 0 0 auto;
}

.session-item-recap-toggle:hover {
    color: #c2ccd8;
}

.session-item-recap {
    margin-top: 8px;
    padding-left: 9px;
    border-left: 2px solid #2a3340;
    font-size: 13px;
    line-height: 1.6;
    color: #9aa5b3;
    white-space: pre-wrap;
}

/* ==================== SIDEBAR PROFILE LINK ==================== */

.sidebar-profile-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin-top: auto;
    border-top: 1px solid #232c38;
    color: #aeb9c7;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}

.sidebar-profile-link:hover {
    background: #1b2129;
    color: #7cc4ff;
}

.sidebar-profile-link>i:first-child {
    color: #7cc4ff;
    font-size: 16px;
    flex-shrink: 0;
}

.sidebar-profile-arrow {
    margin-left: auto;
    font-size: 11px;
    color: #7d8896;
}

/* ==================== MAIN CHAT AREA ==================== */

.companion-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

.chat-header {
    display: flex;
    padding: 10px 16px 0;
    background: #12171f;
    border-bottom: 1px solid #232c38;
    flex-direction: column;
    gap: 0;
}

.chat-header-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 8px;
}

/* View toggle (Coach | Parts Work | Journal) — segmented control */
.coach-mode-toggle {
    display: inline-flex;
    margin: 0 auto;
    background: #0e1116;
    border: 1px solid #2a3340;
    border-radius: 999px;
    padding: 3px;
    gap: 2px;
}

.coach-mode-btn {
    border: none;
    background: transparent;
    color: #7d8896;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.coach-mode-btn:hover {
    color: #c2ccd8;
}

.coach-mode-btn i {
    font-size: 11px;
    opacity: 0.75;
    margin-right: 3px;
}

.coach-mode-btn.active {
    background: #2a3340;
    color: #eef2f7;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

@media (max-width: 420px) {
    .coach-mode-btn {
        font-size: 11.5px;
        padding: 6px 8px;
    }

    .coach-mode-btn i {
        display: none;
    }
}

.sidebar-disclaimer {
    padding: 8px 12px;
    font-size: 10px;
    color: #5f6b7a;
    line-height: 1.4;
    text-align: center;
}

/* ==================== MESSAGES ==================== */

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scrollbar-width: thin;
    scrollbar-color: #2a3340 transparent;
}

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

.chat-messages::-webkit-scrollbar-thumb {
    background: #2a3340;
    border-radius: 3px;
}

.message {
    display: flex;
    max-width: 80%;
    animation: messageIn 0.3s ease-out;
}

@keyframes messageIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.message-bubble {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.55;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.message.user .message-bubble {
    background: linear-gradient(135deg, #6ee7b7, #7cc4ff);
    color: #06251b;
    font-weight: 500;
    border-bottom-right-radius: 4px;
}

.message.assistant .message-bubble {
    background: #1b2129;
    color: #c2ccd8;
    border: 1px solid #2a3340;
    border-bottom-left-radius: 4px;
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 16px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: #6ee7b7;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) { animation-delay: 0s; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    40% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

/* Welcome state */
.chat-welcome {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
    color: #aeb9c7;
}

.chat-welcome h2 {
    font-size: 24px;
    color: #eef2f7;
    margin-bottom: 8px;
}

.chat-welcome p {
    font-size: 15px;
    max-width: 400px;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* ==================== INPUT BAR ==================== */

.chat-input-bar {
    padding: 16px 24px;
    /* Installed app (PWA) on iPhone: env() lifts the bar above the
       home-indicator gesture area; resolves to 0 in a normal browser tab */
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    background: #12171f;
    border-top: 1px solid #232c38;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    transition: opacity 0.3s, background 0.3s;
}

.chat-input-bar.archived {
    background: #10151c;
    opacity: 0.8;
}

.chat-input-bar.archived .chat-input {
    background: #10151c;
    cursor: default;
    color: #7d8896;
}

.chat-input-wrapper {
    flex: 1;
    position: relative;
}

.chat-input {
    width: 100%;
    padding: 12px 16px;
    background: #0e1116;
    border: 1px solid #2a3340;
    border-radius: 24px;
    font-size: 15px;
    font-family: inherit;
    color: #eef2f7;
    resize: none;
    max-height: 120px;
    line-height: 1.4;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.chat-input:focus {
    border-color: #7cc4ff;
}

.chat-input::placeholder {
    color: #7d8896;
}

.mic-btn,
.send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.send-btn {
    background: linear-gradient(135deg, #6ee7b7, #7cc4ff);
    color: #06251b;
}

.send-btn:hover {
    transform: scale(1.05);
}

.send-btn:disabled {
    background: #2a3340;
    color: #7d8896;
    cursor: not-allowed;
    transform: none;
}

.mic-btn {
    background: #1b2129;
    border: 1px solid #2a3340;
    color: #aeb9c7;
}

.mic-btn:hover {
    background: #232c38;
    color: #eef2f7;
}

.mic-btn.listening {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.5);
    color: #f87171;
    animation: micPulse 1.5s infinite;
}

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

.voice-status {
    font-size: 12px;
    color: #f87171;
    text-align: center;
    padding: 4px 0 0;
    /* Terminal mic errors explain the cause and the fix, so this can run to a
       couple of sentences — keep it readable instead of one long thin line. */
    line-height: 1.45;
    max-width: 560px;
    margin: 0 auto;
    text-wrap: pretty;
}

.interim-text {
    font-size: 13px;
    color: #7d8896;
    font-style: italic;
    padding: 2px 16px;
}

/* ==================== AUTH GATE ==================== */

.auth-gate {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    background: #0e1116;
    color: #eef2f7;
    min-height: calc(100vh - 64px);
    min-height: calc(100dvh - 64px);
}

.auth-gate h2 {
    font-size: 24px;
    margin-bottom: 12px;
    color: #eef2f7;
}

.auth-gate p {
    color: #aeb9c7;
    margin-bottom: 24px;
    max-width: 400px;
}

.auth-gate-btn {
    padding: 13px 32px;
    background: linear-gradient(100deg, #6ee7b7, #7cc4ff);
    color: #06251b;
    border: none;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 8px 30px rgba(110, 231, 183, 0.18);
}

.auth-gate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 38px rgba(110, 231, 183, 0.28);
}

.auth-gate-pricing {
    margin-top: 32px;
    width: 100%;
    max-width: 340px;
}

.auth-gate-free {
    font-size: 13px;
    color: #6ee7b7;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

.auth-gate-plan {
    background: #1b2129;
    border: 1px solid rgba(124, 196, 255, 0.3);
    border-radius: 12px;
    padding: 20px 24px;
    text-align: left;
}

.auth-gate-plan-price {
    font-size: 22px;
    font-weight: 700;
    color: #7cc4ff;
}

.auth-gate-plan ul {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
}

.auth-gate-plan ul li {
    font-size: 14px;
    color: #aeb9c7;
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-gate-plan ul li i {
    color: #6ee7b7;
    font-size: 12px;
}

/* Risk reversal on the signed-out door. Windows must match the Refunds clause
   in /terms-of-service.html and the GUARANTEE consts in the paywall modals. */
/* Specificity note: `.auth-gate p` (0,1,1) sets the colour for every paragraph in
   the gate, so this needs the extra class to win — a bare .auth-gate-plan-note
   loses and the note renders as body text. */
.auth-gate .auth-gate-plan-note {
    margin: 12px 0 0;
    font-size: 12.5px;
    line-height: 1.45;
    color: #93a8a2;
}

/* ==================== CREDITS BANNER ==================== */

.upgrade-banner {
    position: relative;
    margin: 8px;
    padding: 12px 14px;
    background: #1b2129;
    border: 1px solid rgba(124, 196, 255, 0.3);
    border-radius: 10px;
    color: #eef2f7;
}

/* Only the monthly→yearly line carries this: a paying subscriber gets to make the
   nudge go away for good. Absolutely positioned so adding it can't reflow the row. */
.upgrade-banner-dismiss {
    position: absolute;
    top: 4px;
    right: 6px;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #6b7684;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
}

.upgrade-banner-dismiss:hover {
    color: #eef2f7;
    background: rgba(255, 255, 255, .06);
}

.upgrade-banner-text {
    font-size: 12px;
    color: #aeb9c7;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.upgrade-banner-text i {
    color: #fbbf24;
}

.upgrade-banner-btn {
    width: 100%;
    padding: 8px 12px;
    background: linear-gradient(100deg, #6ee7b7, #7cc4ff);
    color: #06251b;
    border: none;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s;
}

.upgrade-banner-btn:hover {
    transform: translateY(-1px);
}

/* ==================== SUBSCRIPTION MODAL ==================== */

.subscription-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(6, 10, 15, 0.72);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.subscription-modal {
    background: #161b22;
    border: 1px solid #2a3340;
    border-radius: 16px;
    padding: 32px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    color: #eef2f7;
}

.subscription-modal h3 {
    font-size: 22px;
    margin-bottom: 8px;
    color: #eef2f7;
}

.subscription-modal .close-btn {
    margin-top: 12px;
    background: none;
    border: none;
    color: #7d8896;
    cursor: pointer;
    font-size: 14px;
}

.subscription-modal .close-btn:hover {
    color: #c2ccd8;
}

.subscribe-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(100deg, #6ee7b7, #7cc4ff);
    color: #06251b;
    border: none;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s;
}

.subscribe-btn:hover {
    transform: translateY(-1px);
}

/* Risk-reversal line under the subscribe button. Shared: both doors' subscribe
   modals render it, so it lives in the shared skin rather than companion.css. */
.sub-guarantee {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 7px;
    margin: 12px 0 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: #93a8a2;
    text-align: center;
}

.sub-guarantee i {
    color: #6ee7b7;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Unified subscription offer inside the coach credits modal */
.coach-sub-offer {
    position: relative;
    border: 1px solid rgba(124, 196, 255, 0.4);
    background: rgba(124, 196, 255, 0.06);
    border-radius: 14px;
    padding: 18px 16px 16px;
    margin: 16px 0 6px;
    text-align: center;
}

.coach-sub-offer-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(100deg, #6ee7b7, #7cc4ff);
    color: #06251b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 999px;
}

.coach-sub-offer-title {
    font-weight: 700;
    font-size: 15px;
    color: #eef2f7;
    margin-bottom: 4px;
}

.coach-sub-offer-desc {
    font-size: 12.5px;
    color: #7d8896;
    margin-bottom: 12px;
    line-height: 1.4;
}

.coach-sub-offer-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.coach-sub-btn {
    border: 1px solid #2a3340;
    background: #1b2129;
    color: #eef2f7;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}

.coach-sub-btn span {
    font-weight: 500;
    font-size: 12px;
    color: #7d8896;
}

.coach-sub-btn.primary {
    background: linear-gradient(100deg, #6ee7b7, #7cc4ff);
    border-color: transparent;
    color: #06251b;
}

.coach-sub-btn.primary span {
    color: rgba(6, 37, 27, 0.75);
}

.coach-sub-btn:hover {
    transform: translateY(-1px);
}

/* ==================== MOBILE RESPONSIVE ==================== */

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #c2ccd8;
    padding: 10px; /* ~40px tap box — it's the only way into sessions on mobile */
    margin: -6px;  /* keep the visual footprint where it was */
}

@media (max-width: 768px) {
    .companion-page {
        height: auto;
        min-height: calc(100vh - 64px);
        min-height: calc(100dvh - 64px);
        overflow: visible;
    }

    .auth-gate {
        overflow-y: auto;
        justify-content: flex-start;
        padding: 24px 16px;
    }

    .companion-sidebar {
        position: fixed;
        top: 64px;
        left: -300px;
        width: 280px;
        height: calc(100vh - 64px);
        height: calc(100dvh - 64px);
        z-index: 100;
        transition: left 0.3s ease;
        box-shadow: 2px 0 12px rgba(0, 0, 0, 0.5);
    }

    .companion-sidebar.open {
        left: 0;
    }

    .sidebar-toggle {
        display: flex;
    }

    .chat-header {
        display: flex;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 64px; left: 0; right: 0; bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 99;
    }

    .sidebar-overlay.visible {
        display: block;
    }

    .message {
        max-width: 90%;
    }

    .chat-input-bar {
        padding: 12px 16px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    }

    .mic-btn {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    /* 16px floor: anything smaller makes iOS auto-zoom the page on focus */
    .chat-input,
    .journal-input {
        font-size: 16px;
    }

}

/* Page title inside site header */
.header-page-title {
    font-size: 14px;
    font-weight: 500;
    color: #7cc4ff;
    margin-left: auto;
    margin-right: 24px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .header-page-title {
        display: none;
    }
}

/* ==================== VOICE OUTPUT TOGGLE ==================== */

.voice-output-toggle {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none;
    border: 1px solid #2a3340;
    border-radius: 50%;
    cursor: pointer;
    color: #7d8896;
    font-size: 15px;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    flex-shrink: 0;
}

.voice-output-toggle:hover {
    color: #c2ccd8;
    border-color: #3a4a5e;
}

.voice-output-toggle.active {
    color: #7cc4ff;
    border-color: #7cc4ff;
    background: rgba(124, 196, 255, 0.1);
}

.voice-output-toggle.speaking {
    color: #7cc4ff;
    border-color: #7cc4ff;
    background: rgba(124, 196, 255, 0.1);
    animation: pulse-voice 1.4s ease-in-out infinite;
}

@keyframes pulse-voice {
    0%, 100% { box-shadow: 0 0 0 0 rgba(124, 196, 255, 0.3); }
    50% { box-shadow: 0 0 0 6px rgba(124, 196, 255, 0); }
}

/* ==================== VOICE CONTROLS ====================
   Mic (speak) and speaker (hear) live together in the input bar as one pill,
   so hands-free mode is a single obvious place rather than two buttons at
   opposite ends of the screen. Both halves persist across sessions.
   Shared by both doors — the Coach page and the Companion page. */

.voice-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border-radius: 26px;
    background: #151a21;
    border: 1px solid #2a3340;
    flex-shrink: 0;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* Either half being live lights the whole pill — voice mode is never ambiguous */
.voice-controls.voice-active {
    border-color: rgba(124, 196, 255, 0.55);
    box-shadow: 0 0 0 3px rgba(124, 196, 255, 0.08);
}

.voice-controls .mic-btn {
    width: 40px;
    height: 40px;
    font-size: 17px;
}

/* Restored-from-last-session mic: browsers need a gesture to open the mic, so
   we surface the pending state instead of hot-miking on load. */
.voice-controls .mic-btn.armed {
    border-color: rgba(124, 196, 255, 0.6);
    color: #7cc4ff;
    animation: micArmed 2s ease-in-out infinite;
}

@keyframes micArmed {
    0%, 100% { box-shadow: 0 0 0 0 rgba(124, 196, 255, 0.35); }
    50% { box-shadow: 0 0 0 7px rgba(124, 196, 255, 0); }
}

/* Override the header-era styling: match the mic so the pair reads as one unit */
.voice-controls .voice-output-toggle {
    margin-left: 0;
    width: 40px;
    height: 40px;
    font-size: 16px;
    background: #1b2129;
    border: 1px solid #2a3340;
    color: #aeb9c7;
}

.voice-controls .voice-output-toggle:hover {
    background: #232c38;
    color: #eef2f7;
}

.voice-controls .voice-output-toggle.active {
    color: #7cc4ff;
    border-color: #7cc4ff;
    background: rgba(124, 196, 255, 0.12);
}

@media (max-width: 640px) {
    .voice-controls {
        gap: 4px;
        padding: 3px;
    }

    /* 40px, not 36 — the mic is the primary control on the phone, and 36px
       tap targets are where "the microphone doesn't work" reports start */
    .voice-controls .mic-btn,
    .voice-controls .voice-output-toggle {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* ==================== VOICE PICKER ====================
   Sidebar voice chooser. Sits above the disclaimer; renders empty and takes no
   space if /api/companion/voices can't be reached. One line by design — an
   open list of five options crowded the session history out of the sidebar. */

.voice-picker:empty {
    display: none;
}

.voice-picker {
    flex: 0 0 auto;
    padding: 12px 16px;
    border-top: 1px solid var(--line, #2a3340);
}

.voice-picker-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.voice-picker-label {
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-dim, #7d8896);
    cursor: pointer;
}

.voice-picker-select {
    display: block;
    width: 100%;
    /* The native popup is drawn by the OS; without this it renders white-on-white
       against a dark sidebar in some browsers. */
    color-scheme: dark;
    appearance: none;
    -webkit-appearance: none;
    background: #1b2129 url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' fill='none' stroke='%23aeb9c7' stroke-width='1.4'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 10px center / 10px 6px;
    border: 1px solid var(--line, #2a3340);
    border-radius: 8px;
    padding: 7px 26px 7px 10px;
    font-size: 12.5px;
    font-family: inherit;
    color: var(--ink, #eef2f7);
    cursor: pointer;
    text-overflow: ellipsis;
}

.voice-picker-select:hover {
    border-color: #3a4655;
}

.voice-picker-select:focus-visible {
    outline: none;
    border-color: #6ee7b7;
    box-shadow: 0 0 0 3px rgba(110, 231, 183, .12);
}

.voice-picker-play {
    flex: 0 0 auto;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid var(--line, #2a3340);
    background: transparent;
    color: var(--ink-soft, #aeb9c7);
    font-family: inherit;
    font-size: 10.5px;
    letter-spacing: .02em;
    cursor: pointer;
}

.voice-picker-play:hover:not(:disabled) {
    border-color: #6ee7b7;
    color: #6ee7b7;
}

/* Loading: the label pulses rather than being swapped for a spinner, so the
   button keeps its width and the label beside it doesn't shift mid-click. */
.voice-picker-play.loading {
    color: #6ee7b7;
    border-color: rgba(110, 231, 183, .5);
    animation: voicePreviewPulse 1.1s ease-in-out infinite;
}

@keyframes voicePreviewPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .45; }
}

.voice-picker-play:disabled {
    cursor: default;
}

/* ==================== VOICE BROWSER BANNER ==================== */

.voice-browser-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 16px;
    padding: 10px 14px;
    background: #161b22;
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 8px;
    font-size: 13px;
    color: #aeb9c7;
    line-height: 1.4;
}

.voice-browser-banner strong {
    color: #eef2f7;
}

.voice-browser-banner i {
    color: #fbbf24;
    flex-shrink: 0;
}

.voice-browser-banner-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 18px;
    line-height: 1;
    color: #7d8896;
    cursor: pointer;
    padding: 0 2px;
    flex-shrink: 0;
}

.voice-browser-banner-close:hover {
    color: #eef2f7;
}

/* ==================== JOURNAL ==================== */

.journal-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 22px 20px 40px;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    scrollbar-width: thin;
    scrollbar-color: #2a3340 transparent;
}

.journal-view::-webkit-scrollbar {
    width: 5px;
}

.journal-view::-webkit-scrollbar-thumb {
    background: #2a3340;
    border-radius: 3px;
}

.journal-composer {
    background: #1b2129;
    border: 1px solid #2a3340;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.journal-modes {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.journal-mode-chip {
    border: 1px solid #2a3340;
    background: #0e1116;
    color: #7d8896;
    font-size: 12.5px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.15s;
}

.journal-mode-chip:hover {
    border-color: #3a4a5e;
    color: #c2ccd8;
}

.journal-mode-chip.active {
    background: linear-gradient(100deg, #6ee7b7, #7cc4ff);
    border-color: transparent;
    color: #06251b;
    font-weight: 700;
}

.journal-input {
    width: 100%;
    border: none;
    resize: vertical;
    min-height: 110px;
    font-size: 15px;
    line-height: 1.55;
    font-family: inherit;
    color: #eef2f7;
    outline: none;
    background: transparent;
}

.journal-input::placeholder {
    color: #7d8896;
}

.journal-interim {
    min-height: 18px;
    font-size: 13px;
    color: #7d8896;
    font-style: italic;
}

.journal-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
}

.journal-mic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #2a3340;
    background: none;
    color: #aeb9c7;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.journal-mic:hover {
    color: #eef2f7;
    border-color: #7cc4ff;
}

.journal-mic.listening {
    color: #fff;
    background: #ef4444;
    border-color: #ef4444;
    animation: pulse-voice 1.4s ease-in-out infinite;
}

.journal-save {
    background: linear-gradient(100deg, #6ee7b7, #7cc4ff);
    color: #06251b;
    border: none;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.15s, opacity 0.15s;
}

.journal-save:hover {
    transform: translateY(-1px);
}

.journal-save:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
}

.journal-reflection {
    margin-top: 14px;
    background: rgba(124, 196, 255, 0.07);
    border: 1px solid rgba(124, 196, 255, 0.25);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 14.5px;
    line-height: 1.55;
    color: #c2ccd8;
}

.journal-reflection-label {
    font-size: 12px;
    font-weight: 700;
    color: #7cc4ff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.journal-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 26px 0 10px;
}

.journal-list-header h3 {
    font-size: 15px;
    color: #aeb9c7;
    margin: 0;
}

.journey-report-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: none;
    border: 1px solid rgba(124, 196, 255, 0.45);
    color: #7cc4ff;
    font-weight: 600;
    font-size: 13px;
    padding: 7px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s;
}

.journey-report-btn:hover {
    background: rgba(124, 196, 255, 0.1);
}

.journal-entries {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.journal-entry {
    background: #1b2129;
    border: 1px solid #2a3340;
    border-radius: 12px;
    padding: 13px 15px;
}

.journal-entry-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.journal-entry-mode {
    font-size: 11px;
    font-weight: 700;
    color: #7cc4ff;
    background: rgba(124, 196, 255, 0.12);
    border-radius: 999px;
    padding: 2px 9px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.journal-entry-date {
    font-size: 12px;
    color: #7d8896;
}

.journal-entry-text {
    font-size: 14px;
    line-height: 1.5;
    color: #c2ccd8;
    white-space: pre-wrap;
}

.journal-entry-reflection {
    margin-top: 9px;
    padding-top: 9px;
    border-top: 1px dashed #2a3340;
    font-size: 13px;
    line-height: 1.5;
    color: #aeb9c7;
}

.journal-entry-reflection i {
    color: #a5b4fc;
    margin-right: 5px;
}

.journal-empty {
    text-align: center;
    color: #7d8896;
    font-size: 13.5px;
    padding: 18px 10px;
    line-height: 1.5;
}

/* Journey report modal */
.journey-modal {
    max-width: 560px;
    text-align: left;
}

.journey-modal h3 {
    text-align: center;
}

.journey-modal h3 i {
    color: #7cc4ff;
    margin-right: 6px;
}

.journey-modal-body {
    max-height: 55vh;
    max-height: 55dvh;
    overflow-y: auto;
    margin: 14px 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: #c2ccd8;
    scrollbar-width: thin;
    scrollbar-color: #2a3340 transparent;
}

.journey-modal-body::-webkit-scrollbar {
    width: 5px;
}

.journey-modal-body::-webkit-scrollbar-thumb {
    background: #2a3340;
    border-radius: 3px;
}

.journey-modal-body h4 {
    color: #7cc4ff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 18px 0 6px;
}

.journey-modal-body h4:first-of-type {
    margin-top: 4px;
}

.journey-modal-body p {
    margin: 0 0 10px;
}

.journey-report-date {
    font-size: 12px;
    color: #7d8896;
    margin-bottom: 10px;
}

.journey-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.journey-generate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(100deg, #6ee7b7, #7cc4ff);
    color: #06251b;
    border: none;
    font-weight: 700;
    font-size: 14px;
    padding: 11px 24px;
    border-radius: 999px;
    cursor: pointer;
    width: 100%;
}

.journey-generate-btn:disabled {
    opacity: 0.55;
    cursor: default;
}

@media (max-width: 600px) {
    .journal-view {
        padding: 14px 12px 30px;
    }
}

/* ==================== YOUR STORY (bio + life events) ==================== */

.story-section {
    background: #1b2129;
    border: 1px solid #2a3340;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 6px;
}

.story-label {
    font-size: 11px;
    font-weight: 700;
    color: #7d8896;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.story-bio-head,
.story-events-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.story-events-head {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed #2a3340;
}

.story-bio-text {
    font-size: 14px;
    line-height: 1.55;
    color: #c2ccd8;
    white-space: pre-wrap;
}

.story-bio-text.story-bio-empty {
    color: #7d8896;
    font-style: italic;
}

.story-bio-input,
.story-input {
    width: 100%;
    border: 1px solid #2a3340;
    background: #0e1116;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13.5px;
    font-family: inherit;
    color: #eef2f7;
    margin-bottom: 6px;
}

.story-bio-input:focus,
.story-input:focus {
    outline: none;
    border-color: #7cc4ff;
}

.story-bio-input::placeholder,
.story-input::placeholder {
    color: #7d8896;
}

.story-row-actions {
    display: flex;
    gap: 8px;
}

.story-mini-btn {
    border: 1px solid #2a3340;
    background: #1b2129;
    color: #aeb9c7;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.15s;
}

.story-mini-btn:hover {
    color: #eef2f7;
    border-color: #3a4a5e;
}

.story-mini-btn.primary {
    background: linear-gradient(100deg, #6ee7b7, #7cc4ff);
    border-color: transparent;
    color: #06251b;
    font-weight: 700;
}

.story-event-form {
    background: #161b22;
    border: 1px solid #232c38;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
}

.story-events {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.story-event {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #232c38;
    background: #161b22;
}

.story-event-main {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 10px;
    font-size: 13.5px;
}

.story-event-when {
    font-size: 11px;
    font-weight: 700;
    color: #7cc4ff;
    background: rgba(124, 196, 255, 0.12);
    border-radius: 999px;
    padding: 2px 8px;
    white-space: nowrap;
}

.story-event-title {
    font-weight: 600;
    color: #eef2f7;
}

.story-event-detail {
    color: #7d8896;
    font-size: 12.5px;
    flex-basis: 100%;
}

.story-event-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.story-icon-btn {
    border: none;
    background: none;
    color: #5f6b7a;
    cursor: pointer;
    font-size: 12px;
    padding: 4px 6px;
    border-radius: 6px;
}

.story-icon-btn:hover {
    color: #eef2f7;
    background: #232c38;
}

.story-event-editor {
    flex: 1;
}

/* ==================== JOURNAL EXTRAS (daily prompt, mood, lookback) ==================== */

.daily-prompt {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    width: 100%;
    text-align: left;
    background: rgba(165, 180, 252, 0.08);
    border: 1px dashed rgba(165, 180, 252, 0.35);
    border-radius: 10px;
    padding: 10px 13px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 13.5px;
    line-height: 1.5;
    color: #c2ccd8;
    font-family: inherit;
    transition: background 0.15s, border-color 0.15s;
}

.daily-prompt:hover {
    background: rgba(165, 180, 252, 0.14);
    border-color: rgba(165, 180, 252, 0.55);
}

.daily-prompt i {
    margin-top: 2px;
    font-size: 12px;
    opacity: 0.8;
    flex-shrink: 0;
    color: #a5b4fc;
}

.journal-mood {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.journal-mood-label {
    font-size: 12px;
    color: #7d8896;
    margin-right: 2px;
}

.journal-mood-btn {
    border: 1px solid transparent;
    background: none;
    font-size: 19px;
    padding: 3px 6px;
    border-radius: 8px;
    cursor: pointer;
    filter: grayscale(55%);
    transition: filter 0.15s, transform 0.15s, background 0.15s;
}

.journal-mood-btn:hover {
    filter: none;
    transform: scale(1.12);
}

.journal-mood-btn.selected {
    filter: none;
    background: rgba(124, 196, 255, 0.12);
    border-color: rgba(124, 196, 255, 0.4);
    transform: scale(1.12);
}

.journal-lookback {
    margin-top: 14px;
    background: #161b22;
    border: 1px solid #232c38;
    border-radius: 12px;
    padding: 13px 16px;
}

.journal-lookback-label {
    font-size: 11px;
    font-weight: 700;
    color: #a5b4fc;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.journal-lookback-label i {
    margin-right: 5px;
}

.journal-lookback-text {
    font-size: 13.5px;
    line-height: 1.55;
    color: #aeb9c7;
    font-style: italic;
}

.journal-entry-moodchip {
    font-size: 14px;
    line-height: 1;
}

/* Email reminders row (free, opt-in) */
.journal-reminders {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    padding: 0 2px;
}

.journal-reminders-label {
    font-size: 12px;
    color: #7d8896;
    margin-right: 4px;
}

.journal-reminders-label i {
    font-size: 11px;
    margin-right: 4px;
    color: #a5b4fc;
}

.journal-reminder-chip {
    border: 1px solid #2a3340;
    background: #1b2129;
    color: #7d8896;
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 11px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.15s;
}

.journal-reminder-chip:hover {
    color: #c2ccd8;
    border-color: #3a4a5e;
}

.journal-reminder-chip.active {
    background: linear-gradient(100deg, #6ee7b7, #7cc4ff);
    border-color: transparent;
    color: #06251b;
    font-weight: 700;
}

/* ==================== AUTH MODAL (v2 dark skin) ====================
   /auth-modal.css is authored for the light pages and leans on the styles.css
   tokens these app pages don't load. Loaded after it, this section reskins the
   shared modal to the app: slate card, mint->sky action, sky links. */

.auth-modal-overlay {
    background: rgba(6, 10, 15, 0.78);
}

.auth-modal-container {
    background: #161b22;
    border: 1px solid #2a3340;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    color: #eef2f7;
    scrollbar-width: thin;
    scrollbar-color: #2a3340 transparent;
}

.auth-modal-container::-webkit-scrollbar {
    width: 5px;
}

.auth-modal-container::-webkit-scrollbar-thumb {
    background: #2a3340;
    border-radius: 3px;
}

.auth-modal-header {
    border-bottom-color: #2a3340;
}

.auth-modal-header h3 {
    color: #eef2f7;
    font-weight: 700;
}

.auth-modal-close {
    color: #7d8896;
}

.auth-modal-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #eef2f7;
}

.auth-form-group label {
    color: #c2ccd8;
}

.auth-form-group input {
    background: #0e1116;
    border: 1px solid #2a3340;
    border-radius: 10px;
    color: #eef2f7;
}

.auth-form-group input::placeholder {
    color: #7d8896;
}

.auth-form-group input:focus {
    border-color: #7cc4ff;
    box-shadow: 0 0 0 3px rgba(124, 196, 255, 0.18);
}

.auth-form-group input.error {
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.18);
}

.auth-form-group button {
    background: linear-gradient(100deg, #6ee7b7, #7cc4ff);
    color: #06251b;
    border-radius: 999px;
    font-weight: 700;
    padding: 13px;
}

.auth-form-group button:hover:not(:disabled) {
    background: linear-gradient(100deg, #6ee7b7, #7cc4ff);
    box-shadow: none;
    transform: translateY(-1px);
}

.auth-google-button {
    background: #1b2129;
    border: 1px solid #2a3340;
    border-radius: 999px;
    color: #eef2f7;
}

.auth-google-button:hover:not(:disabled) {
    background: #222a34;
    border-color: #3a4a5e;
    box-shadow: none;
}

/* The mark's first arc is tinted for a white button (#1f2937) and vanishes on
   this one — same treatment as the login page's dark Google button. */
.auth-google-button svg path:first-child {
    fill: #eef2f7;
}

.auth-divider::before,
.auth-divider::after {
    background: #2a3340;
}

.auth-divider span {
    color: #7d8896;
}

.auth-error-message {
    background: rgba(127, 29, 29, 0.35);
    color: #fecaca;
    border-left-color: #f87171;
}

.auth-error-message.success {
    background: rgba(22, 101, 52, 0.35);
    color: #bbf7d0;
    border-left-color: #22c55e;
}

.auth-toggle {
    color: #7d8896;
}

.auth-toggle-link {
    color: #7cc4ff;
}

.auth-toggle-link:hover {
    color: #a5d8ff;
}
