/* CloudSurf Landing Page — app.css
   Project-specific overrides on top of surf-ui.css.
   surf-ui.css provides: reset, nav, buttons, forms, sections, hero, footer,
   badges, empty-state, focus-visible, responsive nav, reduced-motion. */

/* ============================================================
   VARIABLE OVERRIDES & ALIASES
   ============================================================ */

:root {
    /* Light mode (default) */
    --background: #fafafa;
    --surface: #ffffff;
    --surface-hover: #f0f0f2;
    --border: #e2e4e9;
    --text: #171717;
    --text-muted: #6b7280;
    --nav-bg: rgba(250, 250, 250, 0.88);
    --radius: 12px;
    --radius-sm: 8px;

    /* Aliases used in templates */
    --card: var(--surface);
    --card-hover: var(--surface-hover);
    --foreground: var(--text);
    --muted-foreground: var(--text-muted);
}

[data-theme="dark"] {
    --background: #050510;
    --surface: rgba(12, 12, 28, 0.85);
    --surface-hover: rgba(20, 20, 40, 0.9);
    --border: rgba(255, 255, 255, 0.08);
    --text: #e5e5e5;
    --text-muted: #8a8a9a;
    --nav-bg: rgba(5, 5, 16, 0.92);
}

body {
    background: radial-gradient(ellipse at top left, rgba(245,158,11,0.4) 0%, rgba(253,230,138,0.3) 6%, rgba(125,211,252,0.2) 16%, rgba(37,99,235,0.1) 32%, rgba(37,99,235,0.04) 45%, #ffffff 60%);
    background-attachment: fixed;
}

[data-theme="dark"] body {
    background: var(--background) url('/assets/stars-tile.png');
    background-attachment: fixed;
}

/* ============================================================
   NAV OVERRIDES (doc.surf style)
   ============================================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1120px;
    padding: 12px 24px;
    gap: 8px;
}

.nav-brand {
    margin-right: auto;
}

.nav-emblem {
    width: 34px;
    height: 34px;
    border-radius: 8px;
}

.nav-brand span {
    font-weight: 700;
    font-size: 1rem;
}

.reg {
    font-size: 0.55em;
    vertical-align: super;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 1px;
}

.nav-links {
    gap: 4px;
}

.nav-links a:not(.nav-cta) {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background 150ms ease, color 150ms ease;
}

.nav-links a:not(.nav-cta):hover {
    color: var(--text);
    background: var(--surface);
}

.nav-cta {
    padding: 6px 16px;
    font-size: 0.875rem;
}

/* Theme toggle */
.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 150ms ease, border-color 150ms ease;
    margin-left: 4px;
}

.theme-toggle:hover {
    color: var(--text);
    border-color: var(--text-muted);
}

.icon-sun { display: none; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

main {
    padding-top: 56px;
}

/* ============================================================
   BUTTON OVERRIDES
   ============================================================ */

.btn {
    border-radius: var(--radius-sm);
}

.btn-submit {
    width: 100%;
    margin-top: 8px;
}

.btn-danger {
    background: transparent;
    color: #ef4444;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

/* ============================================================
   SECTION OVERRIDES
   ============================================================ */

.section-inner {
    max-width: 960px;
    padding: 96px 24px;
}

.section-headline {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
}

/* ============================================================
   HERO OVERRIDES
   ============================================================ */

.hero {
    padding-top: 0;
}

.hero .section-inner {
    padding-top: 120px;
    padding-bottom: 80px;
}

.hero-headline {
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.05;
    margin-bottom: 20px;
}

.hero-subtitle {
    max-width: 520px;
    margin-bottom: 40px;
}

/* Hero brand (unique to cloudsurf) */
.hero-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
}

.hero-emblem {
    width: 180px;
    height: 180px;
    margin-bottom: 8px;
}

.hero-brand-name {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
}

/* ============================================================
   FORM OVERRIDES
   ============================================================ */

.form-group {
    margin-bottom: 16px;
}

/* Bare input/textarea styling (templates use <input> not .form-input) */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 0.9375rem;
    line-height: 1.5;
    transition: border-color 150ms ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================================
   FOOTER (doc.surf 3-column style)
   ============================================================ */

.footer {
    border-top: none;
    padding: 48px 0 32px;
}

.footer-inner {
    max-width: 1120px;
    padding: 0 24px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 32px;
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
}

.footer-emblem {
    border-radius: 6px;
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-heading {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.footer-col a {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 150ms ease;
}

.footer-col a:hover {
    color: var(--text);
}

.footer-copyright {
    font-size: 0.8125rem;
    color: var(--text-muted);
    padding-top: 24px;
}

/* ============================================================
   BADGE OVERRIDE
   ============================================================ */

.badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--accent);
    color: #fff;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 4px;
    border: none;
    letter-spacing: 0;
}

/* ============================================================
   PRODUCTS (unique to cloudsurf.com)
   ============================================================ */

.products-section {
    border-top: none;
}

.products-section .section-inner {
    padding-bottom: 48px;
}

.products-label {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
    margin-bottom: 16px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.products-label + .products-grid {
    margin-bottom: 40px;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 680px;
    margin: 0 auto;
}

.product-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    color: var(--text);
    text-decoration: none;
    transition: all 200ms ease;
}

.product-card[data-product="wavesite"] { --product-accent: #2B6CB0; }
.product-card[data-product="surfdoc"] { --product-accent: #D97706; }
.product-card[data-product="surfdoc-spec"] { --product-accent: #2563EB; }
.product-card[data-product="surfcontext"] { --product-accent: #6366f1; }

.product-card:hover {
    background: var(--surface-hover);
    border-color: var(--product-accent, var(--accent));
    color: var(--text);
    transform: translateY(-2px);
}

.product-body {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.product-emblem {
    border-radius: 8px;
    object-fit: contain;
    flex-shrink: 0;
}

.product-name {
    font-weight: 700;
    font-size: 1.125rem;
    display: block;
}

.product-tagline {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-top: 2px;
}

.product-arrow {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 200ms ease, color 200ms ease;
}

.product-card:hover .product-arrow {
    transform: translateX(4px);
    color: var(--product-accent, var(--accent));
}

/* ============================================================
   ABOUT / VALUES (unique to cloudsurf.com)
   ============================================================ */

.about-section {
    border-top: none;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.value-card {
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.value-icon {
    color: var(--accent);
    margin-bottom: 16px;
}

.value-card h3 {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.value-card p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================================
   CONTACT FORM (unique to cloudsurf.com)
   ============================================================ */

.contact-section {
    border-top: none;
}

.contact-form {
    max-width: 640px;
    margin: 0 auto;
}

/* ============================================================
   LEGAL PAGES (unique to cloudsurf.com)
   ============================================================ */

.legal-section {
    padding-top: 0;
    color: var(--text);
}

.legal-section .section-inner {
    padding-top: 56px;
    padding-bottom: 32px;
}

.legal-updated {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.legal-embed,
.legal-content .surfdoc-embed {
    margin-top: 24px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #fff;
}

.legal-embed iframe,
.legal-content .surfdoc-embed iframe {
    width: 100%;
    height: 80vh;
    border: none;
    display: block;
}

.legal-content {
    max-width: 720px;
    color: var(--text);
}

.legal-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 12px;
}

.legal-content p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.legal-content ul {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
    padding-left: 24px;
}

.legal-content li {
    margin-bottom: 6px;
}

.legal-trademark {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
}

/* ============================================================
   BACK BUTTON (shared across subpages)
   ============================================================ */

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: color 150ms ease, background 150ms ease;
    margin-bottom: 16px;
}

.back-link:hover {
    color: var(--text);
    background: var(--surface);
}

.back-link svg {
    width: 16px;
    height: 16px;
}

/* ============================================================
   SUPPORT PAGE (unique to cloudsurf.com)
   ============================================================ */

.support-hero { padding: 4rem 0 2rem; text-align: center; }
.support-hero h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.support-subtitle { color: var(--text-muted); font-size: 1.1rem; }
.support-products { padding: 2rem 0; }
.support-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }

.support-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    background: var(--surface);
}

.support-card h2 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.support-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }

.support-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    font-size: 0.9rem;
}

.support-card ul li {
    padding: 0.25rem 0;
    padding-left: 1.2rem;
    position: relative;
}

.support-card ul li::before {
    content: "\2022";
    position: absolute;
    left: 0;
    color: var(--accent, #3b82f6);
}

.support-link {
    font-size: 0.85rem;
    color: var(--accent, #3b82f6);
    text-decoration: none;
}

.support-link:hover { text-decoration: underline; }
.support-contact { padding: 0 0 4rem; }
.support-contact .section-inner { max-width: 960px; margin: 0 auto; padding: 2rem 24px 0; }
.support-contact h2 { font-size: 1.5rem; margin-bottom: 0.5rem; text-align: center; }
.support-contact p { color: var(--text-muted); margin-bottom: 1.5rem; text-align: center; }
.support-email { margin-bottom: 2rem; text-align: center; }

.support-email a {
    font-size: 1.1rem;
    color: var(--accent, #3b82f6);
    text-decoration: none;
    font-weight: 500;
}

.support-email a:hover { text-decoration: underline; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ============================================================
   ADMIN LOGIN (unique to cloudsurf.com)
   ============================================================ */

.admin-login {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 120px);
    padding-top: 52px;
}

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.login-card h1 {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

/* ============================================================
   STATS DASHBOARD (unique to cloudsurf.com)
   ============================================================ */

.stats-section {
    padding-top: 52px;
    border-bottom: 1px solid var(--border);
}

.stats-section .section-inner {
    padding-top: 80px;
    padding-bottom: 32px;
}

.stats-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.stats-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
}

.stats-mrr {
    font-size: 1.125rem;
    font-weight: 700;
    color: #22c55e;
}

.table-wrap {
    overflow-x: auto;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.stats-table th {
    text-align: left;
    padding: 8px 16px;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stats-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.stats-table th.num,
.stats-table td.num {
    text-align: right;
}

.stats-table tbody tr:hover {
    background: var(--surface);
}

.product-cell {
    font-weight: 700;
    white-space: nowrap;
}

.mrr-cell {
    color: #22c55e;
    font-weight: 600;
}

.highlights-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.highlight-tag {
    display: inline-flex;
    gap: 4px;
    padding: 2px 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.highlight-tag strong {
    color: var(--text);
}

/* ============================================================
   INBOX (unique to cloudsurf.com)
   ============================================================ */

.inbox-section .section-inner {
    padding-top: 80px;
}

.stats-section + .inbox-section .section-inner {
    padding-top: 32px;
}

.inbox-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.inbox-header h1 {
    font-size: 1.75rem;
}

.inbox-count {
    font-size: 0.875rem;
    color: var(--accent);
    font-weight: 600;
}

.message-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message-row {
    padding: 20px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: opacity 300ms ease;
}

.message-row.unread {
    border-left: 3px solid var(--accent);
}

.message-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.875rem;
}

.message-sender {
    font-weight: 700;
    color: var(--text);
}

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

.message-time {
    color: var(--text-muted);
    margin-left: auto;
}

.message-subject {
    font-weight: 600;
    margin-bottom: 4px;
}

.message-body {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 12px;
    white-space: pre-wrap;
}

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

/* ============================================================
   CONFIG FORM / AI DASHBOARD (unique to cloudsurf.com)
   ============================================================ */

.config-form {
    margin-top: 4px;
}

.config-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.config-row .form-group {
    margin-bottom: 0;
    flex: 1;
    min-width: 180px;
}

.config-save {
    margin-bottom: 0;
    white-space: nowrap;
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23737373' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.label-hint {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.provider-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 4px;
    color: #22c55e;
    font-size: 0.8125rem;
    font-weight: 600;
}

.stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nowrap {
    white-space: nowrap;
}

/* ============================================================
   SURFDOC BLOCK OVERRIDES
   ============================================================ */

/* Logo — override surf-ui.css defaults:
   - `margin: 2rem 0` → zero both (gap controlled by hero padding only)
   - img `display: inline-block` → block (removes baseline descender gap) */
.surfdoc-logo {
    padding-top: 64px;
    padding-bottom: 0;
    margin: 0;
}

.surfdoc-logo img {
    display: block;
    margin: 0 auto;
}

/* Hero — override surf-ui.css default `margin: 2rem 0; padding: 3rem 0` */
.surfdoc-hero {
    margin-top: 0;
    padding-top: 8px;
    padding-bottom: 80px;
}

.surfdoc-hero-headline {
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.05;
}

.surfdoc-hero-subtitle {
    max-width: 520px;
    margin: 0 auto 40px;
}

.surfdoc-hero-btn {
    border-radius: var(--radius-sm);
}

/* Features */
.surfdoc-features {
    border: none;
    padding: 0;
}

.surfdoc-feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}

.surfdoc-feature-card:hover {
    background: var(--surface-hover);
}

.surfdoc-feature-icon {
    color: var(--accent);
}

.surfdoc-feature-title {
    font-weight: 700;
    font-size: 1.125rem;
}

.surfdoc-feature-body {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Sections */
.surfdoc-section {
    border-top: none;
}

.surfdoc-section-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 48px 24px 96px;
}

.surfdoc-section-headline {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 8px;
}

.surfdoc-section-subtitle {
    color: var(--text-muted);
    font-size: 1.0625rem;
    margin-bottom: 48px;
}

.section-dark {
    background: var(--surface);
}

/* Stats */
.surfdoc-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 32px 24px;
    max-width: 960px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.surfdoc-stat {
    text-align: center;
}

.surfdoc-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
}

.surfdoc-stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Pipeline */
.surfdoc-pipeline {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 16px 0;
}

.surfdoc-pipeline-step {
    text-align: center;
    flex: 1;
    min-width: 120px;
    max-width: 180px;
}

.surfdoc-pipeline-label {
    font-weight: 700;
    font-size: 0.9375rem;
    margin-bottom: 4px;
}

.surfdoc-pipeline-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.surfdoc-pipeline-arrow {
    color: var(--text-muted);
    font-size: 1.25rem;
    margin-top: 8px;
}

/* CTA button */
.surfdoc-cta {
    border-radius: var(--radius-sm);
}

.surfdoc-cta-primary {
    background: var(--accent);
    color: #fff;
}

.surfdoc-cta-primary:hover {
    opacity: 0.9;
}

/* ============================================================
   RESPONSIVE OVERRIDES
   ============================================================ */

@media (max-width: 768px) {
    /* Mobile nav: hamburger appears to the right of theme toggle */
    .nav-toggle { order: 10; }
    .theme-toggle { order: 9; }

    /* Mobile nav popout: solid background to avoid gradient bleed-through */
    .nav-links {
        background: var(--background);
    }

    .hero-headline {
        font-size: 2.25rem;
    }

    .hero .section-inner {
        padding-top: 80px;
        padding-bottom: 60px;
    }

    /* Compact hero for above-the-fold platforms */
    .surfdoc-logo {
        padding-top: 16px;
    }

    .surfdoc-logo img {
        width: 100px;
        height: 100px;
    }

    .surfdoc-hero {
        padding-bottom: 24px;
    }

    .surfdoc-hero-headline {
        font-size: 2rem;
    }

    .surfdoc-hero-subtitle {
        margin-bottom: 20px;
    }

    .products-section .section-inner {
        padding-top: 24px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .section-inner {
        padding: 64px 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .legal-embed iframe,
    .legal-content .surfdoc-embed iframe {
        height: 70vh;
    }

    .stats-table {
        font-size: 0.8125rem;
    }

    .stats-table th,
    .stats-table td {
        padding: 8px 10px;
    }

    .highlights-cell {
        min-width: 180px;
    }

    .inbox-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .message-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .message-time {
        margin-left: 0;
    }

    .message-actions {
        flex-wrap: wrap;
    }
}
