/* ============================================
   AlphaMadera Mobile Stylesheet
   Dedicated mobile-only — not responsive.
   ============================================ */

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

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a24;
    --bg-card-hover: #22222e;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #666680;
    --accent: #4f46e5;
    --positive: #10b981;
    --negative: #ef4444;
    --terminal-green: #00ff88;
    --border-color: #2a2a3a;
    --tab-bar-height: 56px;
    --header-height: 48px;
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

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

img {
    max-width: 100%;
    height: auto;
}

/* --- Header --- */
.m-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    height: var(--header-height);
}

.m-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: 100%;
}

.m-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.m-logo-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.m-logo-text {
    font-family: monospace;
    font-size: 16px;
    font-weight: 700;
    color: var(--terminal-green);
    letter-spacing: -0.5px;
}

.m-avatar-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
    border-radius: 50%;
}

.m-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: block;
}

/* Login link (unauthenticated) */
.m-login-link {
    font-size: 14px;
    font-family: monospace;
    color: var(--terminal-green);
}

/* --- User Dropdown Menu --- */
.m-user-dropdown {
    position: fixed;
    top: calc(var(--header-height) + 6px);
    right: 12px;
    z-index: 200;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    min-width: 220px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
    transform-origin: top right;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.m-user-dropdown--open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.m-user-dropdown-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px 12px;
}

.m-user-dropdown-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.m-user-dropdown-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.m-user-dropdown-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.m-user-dropdown-email {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.m-user-dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0;
}

.m-user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    font-size: 15px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.1s;
    -webkit-tap-highlight-color: transparent;
}

.m-user-dropdown-item:active {
    background: var(--bg-card-hover);
}

.m-user-dropdown-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--text-muted);
}

.m-user-dropdown-item--logout {
    color: var(--negative);
}

.m-user-dropdown-item--logout svg {
    color: var(--negative);
}

/* Backdrop to close menu on outside tap */
.m-user-dropdown-backdrop {
    position: fixed;
    inset: 0;
    z-index: 199;
    display: none;
}

.m-user-dropdown-backdrop--visible {
    display: block;
}

/* Back button for detail pages */
.m-back-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--terminal-green);
    font-size: 15px;
    font-family: monospace;
    padding: 4px 0;
}

.m-back-btn svg {
    width: 18px;
    height: 18px;
}

/* --- Main content area --- */
.m-main {
    padding-top: var(--header-height);
    padding-bottom: calc(var(--tab-bar-height) + var(--safe-area-bottom));
    min-height: 100vh;
    min-height: 100dvh;
}

/* --- Bottom Tab Bar --- */
.m-tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    height: calc(var(--tab-bar-height) + var(--safe-area-bottom));
    padding-bottom: var(--safe-area-bottom);
}

.m-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--text-muted);
    transition: color 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.m-tab--active {
    color: var(--terminal-green);
}

.m-tab-icon {
    width: 22px;
    height: 22px;
}

.m-tab-label {
    font-size: 11px;
    font-weight: 500;
}

/* --- Section Headers --- */
.m-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 8px;
}

.m-section-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}

.m-section-link {
    font-size: 14px;
    color: var(--terminal-green);
    font-family: monospace;
}

/* ============================================
   HOME PAGE: Futures Bar (market closed)
   ============================================ */

/* ============================================
   HOME PAGE: Login Banner (unauthenticated)
   ============================================ */
.m-login-banner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    padding: 20px 16px 18px;
    border-bottom: 1px solid var(--border-color);
    background:
        radial-gradient(circle at 100% 0%, rgba(0, 255, 136, 0.08), rgba(10, 10, 15, 0) 55%),
        linear-gradient(180deg, rgba(18, 18, 26, 0.9), rgba(10, 10, 15, 0.95));
}

.m-login-eyebrow {
    font-family: monospace;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--terminal-green);
    margin-bottom: 8px;
}

.m-login-banner-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.4px;
    line-height: 1.25;
    margin-bottom: 8px;
}

.m-login-banner-body {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 14px;
}

.m-login-callout-grid {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.m-login-callout-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px;
}

.m-login-callout-card h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.m-login-callout-card p {
    font-size: 14px;
    line-height: 1.45;
    color: var(--text-secondary);
}

.m-login-callout-card--desktop {
    border-color: rgba(0, 255, 136, 0.25);
    background: linear-gradient(180deg, rgba(0, 255, 136, 0.04), rgba(26, 26, 36, 0.95));
}

.m-login-callout-card ul {
    margin: 0 0 10px 18px;
    padding: 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.4;
}

.m-login-callout-card li {
    margin-bottom: 5px;
}

.m-login-callout-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--terminal-green);
    text-decoration: underline;
}

.m-login-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 600;
    padding: 11px 20px;
    border-radius: 8px;
    width: 100%;
    max-width: 280px;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.15s;
}

.m-login-banner-btn:active {
    opacity: 0.85;
}

/* ============================================
   HOME PAGE: Watchlist Table
   ============================================ */
.m-watchlist {
    border-bottom: 1px solid var(--border-color);
}

.m-watchlist-header {
    display: flex;
    align-items: center;
    padding: 6px 16px 6px 14px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    gap: 0;
}

.m-watchlist-header span {
    font-family: monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.m-watchlist-col-symbol { width: 58px; flex-shrink: 0; }
.m-watchlist-col-name   { flex: 1; min-width: 0; }
.m-watchlist-col-price  { width: 72px; flex-shrink: 0; text-align: right; }
.m-watchlist-col-change { width: 62px; flex-shrink: 0; text-align: right; }

.m-watchlist-sortable {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.m-watchlist-sortable:active {
    color: var(--text-secondary);
}

.m-sort-icon {
    opacity: 0.4;
    font-style: normal;
}

.m-sort-asc .m-sort-icon,
.m-sort-desc .m-sort-icon {
    opacity: 1;
    color: var(--terminal-green);
}

.m-watchlist-row {
    display: flex;
    align-items: center;
    padding: 13px 16px 13px 14px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    gap: 0;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.1s;
}

.m-watchlist-row:last-child {
    border-bottom: none;
}

.m-watchlist-row:active {
    background: var(--bg-card);
}

/* Colored left accent bar */
.m-watchlist-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
}

.m-watchlist-row.positive::before { background: var(--positive); }
.m-watchlist-row.negative::before { background: var(--negative); }

.m-watchlist-symbol {
    font-family: monospace;
    font-size: 14px;
    font-weight: 700;
    color: var(--terminal-green);
    letter-spacing: 0.03em;
    width: 58px;
    flex-shrink: 0;
}

.m-watchlist-name {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 8px;
}

.m-watchlist-price {
    font-family: monospace;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    width: 72px;
    flex-shrink: 0;
    text-align: right;
}

.m-watchlist-change {
    font-family: monospace;
    font-size: 13px;
    font-weight: 600;
    width: 62px;
    flex-shrink: 0;
    text-align: right;
}

.m-watchlist-change.positive { color: var(--positive); }
.m-watchlist-change.negative { color: var(--negative); }

/* Quote delta highlight: only applied when a polled value actually changes. */
.m-quote-cell-flash {
    animation: m-quote-cell-fade 0.85s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, filter, text-shadow;
}

@keyframes m-quote-cell-fade {
    0% {
        opacity: 0.15;
        filter: brightness(2.2) saturate(1.4);
        text-shadow: 0 0 14px currentColor;
    }
    45% {
        opacity: 1;
        filter: brightness(1.35) saturate(1.15);
        text-shadow: 0 0 8px currentColor;
    }
    100% {
        opacity: 1;
        filter: brightness(1) saturate(1);
        text-shadow: none;
    }
}

/* Empty state */
.m-empty-state {
    text-align: center;
    padding: 32px 16px;
    color: var(--text-muted);
    font-size: 15px;
}

.m-empty-state a {
    color: var(--terminal-green);
}

/* ============================================
   HOME PAGE: News Feed
   ============================================ */
.m-news-list {
    padding: 0 16px;
}

.m-news-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.m-news-item--stock {
    cursor: pointer;
}

.m-news-item:last-child {
    border-bottom: none;
}

.m-news-thumb {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-card);
}

.m-news-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.m-news-headline {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.m-news-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.m-news-ticker-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.m-news-ticker-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: monospace;
    font-size: 12px;
    padding: 1px 6px;
    border-radius: 3px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.m-news-ticker-link {
    cursor: pointer;
}

.m-news-ticker-link:active {
    background: var(--bg-card-hover);
}

.m-news-ticker-badge .symbol {
    font-weight: 600;
    color: var(--text-primary);
}

.m-news-ticker-badge .change {
    font-weight: 500;
}

.m-news-ticker-badge .change.positive {
    color: var(--positive);
}

.m-news-ticker-badge .change.negative {
    color: var(--negative);
}

/* Show More button */
.m-show-more {
    display: block;
    width: 100%;
    padding: 14px;
    margin: 4px 0 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--terminal-green);
    font-family: monospace;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.m-show-more::after {
    content: "Loading...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--terminal-green);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
}

.m-show-more:active {
    background: var(--bg-card-hover);
}

.m-show-more.htmx-request {
    pointer-events: none;
    color: transparent !important;
    cursor: wait;
}

.m-show-more.htmx-request::after {
    opacity: 1;
}

/* ============================================
   STOCK DETAIL PAGE
   ============================================ */
/* Stock hero: symbol+name left, price+change right — all in one tight row */
.m-stock-hero-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: var(--header-height);
    z-index: 95;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.m-stock-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px 6px;
    gap: 12px;
}

.m-stock-identity {
    flex: 1;
    min-width: 0;
}

.m-stock-symbol {
    font-family: "SF Mono", ui-monospace, monospace;
    font-size: 20px;
    font-weight: 700;
    color: var(--terminal-green);
    letter-spacing: 0.02em;
}

.m-stock-name {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.m-trading-status-banner {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border: 1px solid rgba(245, 158, 11, 0.55);
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.12);
}

.m-trading-status-pill {
    color: #f59e0b;
    font-family: "SF Mono", ui-monospace, monospace;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.m-trading-status-text {
    color: #fcd34d;
    font-size: 12px;
    font-weight: 600;
}

.m-stock-price-block {
    text-align: right;
    flex-shrink: 0;
}

.m-stock-price {
    font-family: "SF Mono", ui-monospace, monospace;
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    line-height: 1;
}

.m-stock-change {
    font-family: "SF Mono", ui-monospace, monospace;
    font-size: 14px;
    font-weight: 500;
    margin-top: 3px;
}

.m-stock-change.positive {
    color: var(--positive);
}

.m-stock-change.negative {
    color: var(--negative);
}

/* Fav button lives in the header bar */
.m-stock-fav-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text-muted);
    -webkit-tap-highlight-color: transparent;
}

.m-stock-fav-btn.favorited {
    color: #f59e0b;
}

.m-stock-fav-btn svg {
    width: 22px;
    height: 22px;
    display: block;
}

/* Chart container */
.m-chart-container {
    padding: 4px 0 0;
    height: 320px;
}

.m-chart-container .stock-chart-container {
    height: 100% !important;
    min-height: 0 !important;
}

/* Stock metrics row */
.m-stock-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border-color);
    margin: 16px 16px 0;
    border-radius: 8px;
    overflow: hidden;
}

.m-metric {
    background: var(--bg-card);
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.m-metric-label {
    font-size: 12px;
    color: var(--text-muted);
}

.m-metric-value {
    font-family: monospace;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Mobile stock detail sections */
.m-stock-detail-section {
    margin: 14px 16px 0;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.m-stock-detail-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.m-stock-detail-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.m-track-scroll-note {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
}

.m-company-description {
    margin-top: 8px;
}

.m-company-description-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
    white-space: pre-line;
}

.m-company-description-text.is-collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.m-company-description-toggle {
    margin-top: 8px;
    background: none;
    border: none;
    padding: 0;
    font-family: monospace;
    font-size: 13px;
    color: var(--terminal-green);
}

.m-track-period-toggle {
    margin-top: 10px;
    display: inline-flex;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.m-track-period-btn {
    min-width: 92px;
    height: 30px;
    border: none;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    padding: 0 12px;
}

.m-track-period-btn + .m-track-period-btn {
    border-left: 1px solid var(--border-color);
}

.m-track-period-btn.is-active {
    background: rgba(0, 255, 136, 0.14);
    color: var(--terminal-green);
}

.m-track-record-panel {
    margin-top: 10px;
}

.m-track-record-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.m-track-table {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    background: var(--bg-secondary);
}

.m-track-table .m-track-metric-head,
.m-track-table .m-track-metric-name {
    position: sticky;
    left: 0;
    z-index: 1;
    min-width: 96px;
    max-width: 96px;
    background: var(--bg-card);
    color: var(--text-secondary);
    text-align: left;
}

.m-track-table .m-track-metric-head {
    z-index: 2;
}

.m-track-table .m-track-period-head,
.m-track-table .m-track-value-cell {
    min-width: 62px;
    max-width: 62px;
    text-align: right;
}

.m-track-table th,
.m-track-table td {
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 7px 6px;
    white-space: nowrap;
    font-family: monospace;
}

.m-track-table th {
    font-size: 11px;
    color: var(--text-muted);
}

.m-track-table td {
    font-size: 12px;
    color: var(--text-primary);
}

.m-track-table tbody tr:last-child td,
.m-track-table tbody tr:last-child th {
    border-bottom: none;
}

.m-track-table tr th:last-child,
.m-track-table tr td:last-child {
    border-right: none;
}

.m-track-table .m-track-value-cell.is-negative {
    color: var(--negative);
}

/* Stock news section */
.m-stock-news-header {
    padding: 20px 16px 8px;
}

.m-stock-news-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
}

.m-login-banner-btn--desktop {
    background: var(--terminal-green);
    color: var(--bg-primary);
}

.m-onboard-upgrade {
    padding: 20px 16px 24px;
}

.m-onboard-upgrade-eyebrow {
    font-family: monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--terminal-green);
    margin-bottom: 8px;
}

.m-onboard-upgrade-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.m-onboard-upgrade-body {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 14px;
}

.m-onboard-upgrade-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 10px;
}

.m-onboard-upgrade-card--secondary {
    background: var(--bg-secondary);
}

.m-onboard-upgrade-card-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}

.m-onboard-upgrade-list {
    margin: 0;
    padding-left: 18px;
    color: var(--text-secondary);
}

.m-onboard-upgrade-list li {
    margin-bottom: 6px;
    line-height: 1.4;
}

.m-onboard-upgrade-actions {
    margin-top: 14px;
}

.m-onboard-upgrade-secondary-link {
    display: block;
    margin-top: 10px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    text-decoration: underline;
}

/* ============================================
   PROFILE PAGE
   ============================================ */
.m-profile-shell {
    padding: 16px;
}

.m-profile-flash-list {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.m-profile-flash {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.4;
}

.m-profile-flash--success {
    border-color: rgba(16, 185, 129, 0.35);
    color: var(--positive);
    background: rgba(16, 185, 129, 0.08);
}

.m-profile-flash--error {
    border-color: rgba(239, 68, 68, 0.35);
    color: var(--negative);
    background: rgba(239, 68, 68, 0.08);
}

.m-profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.m-profile-card-header {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(180deg, rgba(18, 18, 26, 0.95), rgba(26, 26, 36, 0.95));
}

.m-profile-card-title {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.m-profile-form {
    padding: 14px;
    display: grid;
    gap: 12px;
}

.m-profile-row {
    display: grid;
    gap: 6px;
}

.m-profile-label {
    font-family: monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.m-profile-value {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.4;
    word-break: break-word;
}

.m-profile-input {
    width: 100%;
    height: 42px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 16px;
    padding: 0 12px;
    outline: none;
}

.m-profile-input:focus {
    border-color: var(--terminal-green);
    box-shadow: 0 0 0 1px rgba(0, 255, 136, 0.15);
}

.m-profile-actions {
    margin-top: 2px;
}

.m-profile-save-btn {
    width: 100%;
    height: 44px;
    border: 1px solid var(--terminal-green);
    border-radius: 8px;
    background: var(--terminal-green);
    color: var(--bg-primary);
    font-family: monospace;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.m-profile-save-btn:disabled {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-muted);
    cursor: not-allowed;
}

.m-profile-news-pref {
    padding: 14px;
}

.m-profile-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.m-profile-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    flex-shrink: 0;
    accent-color: var(--terminal-green);
}

.m-profile-logout-wrap {
    padding-top: 4px;
    padding-bottom: 8px;
}

.m-profile-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    border: 1px solid rgba(239, 68, 68, 0.45);
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.08);
    color: var(--negative);
    font-family: monospace;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    -webkit-tap-highlight-color: transparent;
}

.m-profile-logout-btn:active {
    background: rgba(239, 68, 68, 0.14);
}

/* ============================================
   MOBILE MODAL
   ============================================ */
body.m-modal-open {
    overflow: hidden;
}

.m-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.65);
    pointer-events: auto;
}

.m-modal-backdrop:not([hidden]) {
    display: flex;
}

.m-modal-backdrop[hidden] {
    display: none !important;
}

.m-modal-card {
    position: relative;
    z-index: 10001;
    width: 100%;
    max-width: 360px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.m-modal-body {
    padding: 16px 16px 10px;
}

.m-modal-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.m-modal-message {
    margin-top: 8px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.45;
}

.m-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px 16px 16px;
}

.m-modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid var(--border-color);
}

.m-modal-btn--cancel {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.m-modal-btn--confirm {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.45);
    color: var(--negative);
}

.m-modal-btn--cancel:active {
    background: var(--bg-card-hover);
}

.m-modal-btn--confirm:active {
    background: rgba(239, 68, 68, 0.2);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.positive-text {
    color: var(--positive);
}

.negative-text {
    color: var(--negative);
}

.text-muted {
    color: var(--text-muted);
}

/* Desktop override link */
.m-desktop-link {
    display: block;
    text-align: center;
    padding: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.m-desktop-link a {
    color: var(--text-secondary);
    text-decoration: underline;
}

/* Loading skeleton */
.m-skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: m-shimmer 1.5s infinite;
    border-radius: 4px;
}

@keyframes m-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Divider */
.m-divider {
    height: 8px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* ============================================
   MARKET PAGE: Indices Section
   ============================================ */

/* Live indicator in section header */
.m-indices-live-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
}

.m-indices-live-label {
    font-family: monospace;
    font-size: 12px;
    font-weight: 600;
    color: var(--positive);
    letter-spacing: 0.05em;
}

/* Pulsing green dot */
.m-indices-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--positive);
    flex-shrink: 0;
    animation: m-indices-pulse 2s ease-in-out infinite;
}

@keyframes m-indices-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.75); }
}

/* Category header row */
.m-indices-category-header {
    padding: 8px 16px 4px 16px;
    font-size: 11px;
    font-weight: 700;
    font-variant: small-caps;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    text-transform: uppercase;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

/* Index rows: widen symbol column to fit longer index symbols (up to ~10 chars) */
.m-indices-symbol {
    width: 80px !important;
    flex-shrink: 0;
}

.m-indices-price {
    width: 80px !important;
    flex-shrink: 0;
    text-align: right;
}

/* Unavailable / zero-price rows */
.m-indices-row--unavailable {
    opacity: 0.45;
}

/* text-dim utility for em-dash cells */
.text-dim {
    color: var(--text-muted);
}

/* ============================================
   MARKET PAGE: Movers Tab Switcher
   ============================================ */

/* Tab strip container */
.m-tabs {
    display: flex;
    flex-direction: row;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

/* Individual tab button */
.m-tab-btn {
    flex: 1;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0 8px;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s, border-color 0.15s;
}

.m-tab-btn:active {
    color: var(--text-secondary);
}

/* Active tab state */
.m-tab-btn--active {
    color: var(--terminal-green);
    border-bottom-color: var(--terminal-green);
}

/* Tab content panels */
.m-tab-panel {
    display: none;
}

.m-tab-panel--active {
    display: block;
}

/* ============================================
   HEADER: Actions group (search + avatar/login)
   ============================================ */
.m-header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

/* ============================================
   HEADER: Search Button
   ============================================ */
.m-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--text-secondary);
    -webkit-tap-highlight-color: transparent;
    border-radius: 50%;
    transition: color 0.15s, background 0.15s;
}

.m-search-btn:active {
    color: var(--terminal-green);
    background: rgba(0, 255, 136, 0.08);
}

.m-search-btn svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   SEARCH: Full-Screen Overlay
   ============================================ */
.m-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0.2s;
}

.m-search-overlay--open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0s;
}

/* Overlay header: input + cancel */
.m-search-overlay-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    padding-top: max(8px, env(safe-area-inset-top, 8px));
}

/* Input wrapper */
.m-search-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0 12px;
    height: 40px;
    gap: 8px;
    transition: border-color 0.15s;
}

.m-search-input-wrap:focus-within {
    border-color: var(--terminal-green);
    box-shadow: 0 0 0 1px rgba(0, 255, 136, 0.15);
}

.m-search-input-icon {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.m-search-input-wrap:focus-within .m-search-input-icon {
    color: var(--terminal-green);
}

/* Search input */
.m-search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 16px;
    font-family: inherit;
    line-height: 1;
    padding: 0;
    min-width: 0;
    -webkit-appearance: none;
    appearance: none;
}

.m-search-input::placeholder {
    color: var(--text-muted);
}

/* Hide Safari's default search cancel */
.m-search-input::-webkit-search-cancel-button,
.m-search-input::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
}

/* Right-side icons in input */
.m-search-input-right {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

/* Spinner */
.m-search-spinner {
    width: 20px;
    height: 20px;
    color: var(--terminal-green);
    animation: m-search-spin 1s linear infinite;
}

.m-search-spinner[aria-hidden="true"] {
    display: none;
}

.m-search-spinner svg {
    width: 100%;
    height: 100%;
}

@keyframes m-search-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Clear button */
.m-search-clear-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--bg-card-hover);
    border: none;
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    color: var(--text-secondary);
    -webkit-tap-highlight-color: transparent;
    transition: color 0.1s, background 0.1s;
}

.m-search-clear-btn:active {
    background: var(--border-color);
    color: var(--text-primary);
}

.m-search-clear-btn svg {
    width: 14px;
    height: 14px;
}

/* Cancel button */
.m-search-cancel-btn {
    background: none;
    border: none;
    color: var(--terminal-green);
    font-family: monospace;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 4px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.m-search-cancel-btn:active {
    opacity: 0.7;
}

/* ============================================
   SEARCH: Results Area
   ============================================ */
.m-search-results-area {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* Section header */
.m-search-section-header {
    font-family: monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 14px 16px 6px;
    background: var(--bg-primary);
    position: sticky;
    top: 0;
    z-index: 1;
}

/* Ticker row */
.m-search-ticker-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    min-height: 48px;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.1s;
}

.m-search-ticker-row:active {
    background: var(--bg-card);
}

.m-search-ticker-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.m-search-ticker-symbol {
    font-family: monospace;
    font-size: 15px;
    font-weight: 700;
    color: var(--terminal-green);
    letter-spacing: 0.03em;
}

.m-search-ticker-name {
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Type badge */
.m-search-type-badge {
    font-family: monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 3px 7px;
    border-radius: 4px;
    background: rgba(0, 255, 136, 0.12);
    color: var(--terminal-green);
    flex-shrink: 0;
    margin-left: 12px;
}

.m-search-type-badge--etf {
    background: rgba(79, 70, 229, 0.15);
    color: var(--accent);
}

.m-search-type-badge--fund {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}

/* News row */
.m-search-news-row {
    padding: 12px 16px;
    min-height: 48px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.1s;
}

.m-search-news-row:active {
    background: var(--bg-card);
}

.m-search-news-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

.m-search-news-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.m-search-news-dot {
    font-weight: 700;
}

/* Empty state */
.m-search-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
}

/* Error state */
.m-search-error {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
    color: var(--negative);
    font-size: 15px;
}

/* ======================== */
/* Mobile AI Chat           */
/* ======================== */

/* Login prompt for unauthenticated users on AI page */
.m-ai-login {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 48px 24px 32px;
}

.m-ai-login-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(0, 255, 136, 0.08);
    border: 1px solid rgba(0, 255, 136, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.m-ai-login-icon svg {
    color: var(--terminal-green);
}

.m-ai-login-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    margin-bottom: 10px;
}

.m-ai-login-body {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 280px;
    margin-bottom: 24px;
}

/* Override .m-main for AI chat page to fill viewport between header and tab bar.
   With box-sizing: border-box, height includes padding. Set height to 100dvh
   so the content area (height minus padding) equals the space between header
   and tab bar. */
body:has(.mai-container--mobile) .m-main {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
}

/* Mobile AI container: fill available space as flex column */
/* Bridge desktop CSS vars used by madera-ai.css to mobile equivalents */
.mai-container--mobile {
    --border: var(--border-color);
    --bg-tertiary: var(--bg-card);
    --text-dim: var(--text-muted);
    --accent-hover: #4338ca;
    display: flex;
    flex-direction: column;
    flex: 1;
    height: auto;
    min-height: 0;
    overflow: hidden;
    position: relative;
    background: var(--bg-primary);
}

/* Sidebar as slide-out drawer on mobile */
.mai-container--mobile .mai-sidebar {
    position: fixed;
    left: -100%;
    top: var(--header-height);
    height: calc(100% - var(--header-height));
    width: 280px;
    min-width: 280px;
    z-index: 200;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    /* Use only `left` for animation — neutralize the transform from madera-ai.css @media
       which runs a separate transform transition and causes the sidebar to briefly appear
       in the viewport during the open animation */
    transform: none;
    transition: left 0.25s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mai-container--mobile .mai-sidebar.open {
    left: 0;
    transform: none;
}

/* Sidebar overlay backdrop */
.mai-container--mobile .mai-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 199;
}

.mai-container--mobile .mai-sidebar.open ~ .mai-sidebar-overlay {
    display: block;
}

/* Sidebar header */
.mai-container--mobile .mai-sidebar-header {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.mai-container--mobile .mai-new-chat-btn {
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.mai-container--mobile .mai-new-chat-btn:active {
    border-color: var(--terminal-green);
    color: var(--terminal-green);
    background: rgba(0, 255, 136, 0.04);
}

/* Sessions list */
.mai-container--mobile .mai-sessions-list {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* Session delete button always visible on mobile (no hover) */
.mai-container--mobile .mai-session-delete {
    opacity: 0.5;
}

/* Chat panel fills remaining space */
.mai-container--mobile .mai-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* Welcome screen */
.mai-container--mobile .mai-welcome {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    text-align: center;
    gap: 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mai-container--mobile .mai-welcome-title {
    font-size: 1.2rem;
}

.mai-container--mobile .mai-welcome-desc {
    font-size: 0.85rem;
    max-width: 320px;
}

/* Single-column prompt cards on mobile */
.mai-container--mobile .mai-welcome-prompts {
    grid-template-columns: 1fr;
    max-width: 320px;
    gap: 8px;
}

.mai-container--mobile .mai-prompt-card {
    padding: 12px 14px;
    font-size: 0.8rem;
    -webkit-tap-highlight-color: transparent;
}

.mai-container--mobile .mai-prompt-card:active {
    border-color: var(--terminal-green);
    background: rgba(0, 255, 136, 0.03);
}

/* Messages area */
.mai-container--mobile .mai-messages {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 1rem;
    gap: 12px;
}

.mai-container--mobile .mai-msg {
    max-width: 92%;
}

/* Table wrapper: horizontal scroll on mobile */
.mai-container--mobile .mai-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Input area: pinned at bottom */
.mai-container--mobile .mai-input-area {
    flex-shrink: 0;
    padding: 0.75rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-primary);
}

.mai-container--mobile .mai-input-row {
    max-width: none;
    margin: 0;
    padding: 4px 4px 4px 12px;
    border-color: var(--border-color);
    background: var(--bg-secondary);
}

.mai-container--mobile .mai-input-row:focus-within {
    border-color: var(--accent);
}

/* CRITICAL: 16px font-size prevents iOS Safari auto-zoom */
.mai-container--mobile #maiTextarea {
    font-size: 16px;
    resize: none;
}

/* Send/stop buttons: 44px minimum touch target on mobile */
.mai-container--mobile .mai-send-btn,
.mai-container--mobile .mai-stop-btn {
    width: 44px;
    height: 44px;
}

/* Hide keyboard hint on mobile (irrelevant for touch) */
.mai-container--mobile .mai-input-hint {
    display: none;
}

/* Mobile toggle button: visible and positioned */
.mai-container--mobile .mai-mobile-toggle {
    display: flex;
    position: fixed;
    top: calc(var(--header-height) + 8px);
    left: 8px;
    bottom: auto;
    z-index: 150;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    -webkit-tap-highlight-color: transparent;
}

.mai-container--mobile .mai-mobile-toggle:active {
    color: var(--terminal-green);
    background: var(--bg-card);
}

/* Thinking indicator mobile sizing */
.mai-container--mobile .mai-thinking {
    max-width: 92%;
}

/* Tool badge mobile sizing */
.mai-container--mobile .mai-tool-badge {
    font-size: 0.68rem;
}

/* Message limit warning */
.mai-container--mobile .mai-limit-warning {
    font-size: 0.7rem;
}
