/* ==========================================================================
   TempMy Pro theme — standalone stylesheet
   ==========================================================================

   Fully self-contained: no external stylesheet, icon font, or framework
   dependency. Every rule is scoped under `body.tm-theme-pro` and uses the
   `tm-pro-*` prefix. Icons are inline SVG. Mobile-first; the min-width
   blocks layer on larger screens.

   Loaded only when TEMPMY_THEME=pro. Icons are inline SVG in the markup.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Reset (scoped)
   -------------------------------------------------------------------------- */
body.tm-theme-pro,
body.tm-theme-pro * ,
body.tm-theme-pro *::before,
body.tm-theme-pro *::after {
    box-sizing: border-box;
}

body.tm-theme-pro {
    --pro-bg: #ffffff;
    --pro-bg-soft: #f8fafc;
    --pro-bg-muted: #f1f5f9;
    --pro-fg: #0f172a;
    --pro-muted: #64748b;
    --pro-border: #e5e7eb;
    --pro-blue: #2563eb;
    --pro-blue-hover: #1d4ed8;
    --pro-blue-soft: #eff6ff;
    --pro-green: #16a34a;
    --pro-radius: 14px;
    --pro-radius-lg: 22px;
    --pro-maxw: 1120px;
    --pro-shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
    --pro-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 30px rgba(15, 23, 42, .07);
    --pro-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --pro-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

    margin: 0;
    padding: 0;
    background: var(--pro-bg);
    color: var(--pro-fg);
    font-family: var(--pro-font);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body.tm-theme-pro h1,
body.tm-theme-pro h2,
body.tm-theme-pro h3 {
    margin: 0;
    color: var(--pro-fg);
    line-height: 1.18;
    letter-spacing: -0.015em;
}

body.tm-theme-pro p { margin: 0; color: var(--pro-muted); }
body.tm-theme-pro ul { margin: 0; padding: 0; list-style: none; }
body.tm-theme-pro a { color: inherit; text-decoration: none; }
body.tm-theme-pro img,
body.tm-theme-pro svg { display: block; max-width: 100%; }
body.tm-theme-pro button { font-family: inherit; }

body.tm-theme-pro .tm-pro-container {
    width: 100%;
    max-width: var(--pro-maxw);
    margin-inline: auto;
    padding-inline: 18px;
}


body.tm-theme-pro[data-tm-theme="dark"] {
    --pro-bg: #0b1220;
    --pro-bg-soft: #111827;
    --pro-bg-muted: #1e293b;
    --pro-fg: #e5eefc;
    --pro-muted: #94a3b8;
    --pro-border: #263244;
    --pro-blue: #60a5fa;
    --pro-blue-hover: #3b82f6;
    --pro-blue-soft: #102a4c;
    --pro-green: #4ade80;
    --pro-shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
    --pro-shadow: 0 1px 2px rgba(0, 0, 0, .28), 0 18px 40px rgba(0, 0, 0, .35);
}
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-header {
    background: rgba(11, 18, 32, .88);
}

body.tm-theme-pro .tm-pro-sr {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
body.tm-theme-pro .tm-pro-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .05s ease;
}
body.tm-theme-pro .tm-pro-btn:active { transform: translateY(1px); }
body.tm-theme-pro .tm-pro-btn svg { width: 18px; height: 18px; }

body.tm-theme-pro .tm-pro-btn--primary { background: var(--pro-blue); color: #fff; }
body.tm-theme-pro .tm-pro-btn--primary:hover { background: var(--pro-blue-hover); }

body.tm-theme-pro .tm-pro-btn--secondary { background: #fff; color: var(--pro-fg); border-color: var(--pro-border); }
body.tm-theme-pro .tm-pro-btn--secondary:hover { border-color: var(--pro-blue); color: var(--pro-blue); }

body.tm-theme-pro .tm-pro-btn--ghost { background: var(--pro-bg-muted); color: var(--pro-fg); }
body.tm-theme-pro .tm-pro-btn--ghost:hover { background: #e2e8f0; }
body.tm-theme-pro .tm-pro-btn--danger { background: #fff; color: #dc2626; border-color: #fecaca; }
body.tm-theme-pro .tm-pro-btn--danger:hover { background: #fef2f2; border-color: #fca5a5; }

body.tm-theme-pro .tm-pro-btn--sm { min-height: 40px; padding: 9px 14px; font-size: 14px; border-radius: 10px; }
body.tm-theme-pro .tm-pro-btn[disabled] { opacity: .55; cursor: not-allowed; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
body.tm-theme-pro .tm-pro-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--pro-border);
}
body.tm-theme-pro .tm-pro-header__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    gap: 14px;
}
body.tm-theme-pro .tm-pro-logo {
    direction: ltr;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 17.5px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--pro-fg);
}
body.tm-theme-pro .tm-pro-logo__mark {
    display: inline-flex;
    width: 26px; height: 26px;
    align-items: center; justify-content: center;
    border-radius: 8px;
    background: transparent;
    color: #fff;
}
body.tm-theme-pro .tm-pro-logo__mark img,
body.tm-theme-pro .tm-pro-logo__mark svg { width: 100%; height: 100%; display: block; }
body.tm-theme-pro .tm-pro-logo__word { color: var(--pro-fg); }
body.tm-theme-pro .tm-pro-logo__accent { color: var(--pro-blue); }

body.tm-theme-pro .tm-pro-nav { display: none; align-items: center; gap: 6px; }
body.tm-theme-pro .tm-pro-nav a {
    padding: 8px 12px;
    border-radius: 9px;
    color: var(--pro-muted);
    font-size: 14.5px;
    font-weight: 500;
}
body.tm-theme-pro .tm-pro-nav a:hover { background: var(--pro-bg-muted); color: var(--pro-fg); }

body.tm-theme-pro .tm-pro-header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 auto;
}
body.tm-theme-pro .tm-pro-header__actions--desktop { display: none; }
body.tm-theme-pro .tm-pro-header__actions--mobile { display: flex; }
body.tm-theme-pro .tm-pro-account-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--pro-muted);
    font-size: 14px;
    font-weight: 700;
}
body.tm-theme-pro .tm-pro-account-link:hover { background: var(--pro-bg-muted); color: var(--pro-fg); }
body.tm-theme-pro .tm-pro-account-menu { position: relative; }
body.tm-theme-pro .tm-pro-account-menu__toggle,
body.tm-theme-pro .tm-pro-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--pro-border);
    background: #fff;
    color: var(--pro-fg);
    cursor: pointer;
    box-shadow: var(--pro-shadow-sm);
}
body.tm-theme-pro .tm-pro-account-menu__toggle {
    gap: 8px;
    min-height: 40px;
    padding: 6px 10px 6px 7px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}
body.tm-theme-pro .tm-pro-account-menu__toggle:hover,
body.tm-theme-pro .tm-pro-mobile-toggle:hover { border-color: var(--pro-blue); color: var(--pro-blue); }
body.tm-theme-pro .tm-pro-account-menu__toggle svg { width: 15px; height: 15px; }
body.tm-theme-pro .tm-pro-account-menu__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--pro-blue-soft);
    color: var(--pro-blue);
    font-size: 13px;
    font-weight: 800;
}
body.tm-theme-pro .tm-pro-account-menu__panel {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-end: 0;
    z-index: 80;
    width: min(280px, calc(100vw - 36px));
    padding: 8px;
    border: 1px solid var(--pro-border);
    border-radius: var(--pro-radius);
    background: #fff;
    box-shadow: var(--pro-shadow);
}
body.tm-theme-pro .tm-pro-account-menu__identity,
body.tm-theme-pro .tm-pro-mobile-sheet__identity {
    display: grid;
    gap: 3px;
    padding: 10px 11px;
    color: var(--pro-muted);
    font-size: 12.5px;
}
body.tm-theme-pro .tm-pro-account-menu__identity strong,
body.tm-theme-pro .tm-pro-mobile-sheet__identity strong {
    min-width: 0;
    color: var(--pro-fg);
    font-size: 14px;
    font-weight: 700;
    overflow-wrap: anywhere;
}
body.tm-theme-pro .tm-pro-account-menu__links,
body.tm-theme-pro .tm-pro-mobile-sheet__links { display: grid; gap: 2px; }
body.tm-theme-pro .tm-pro-account-menu__links a,
body.tm-theme-pro .tm-pro-mobile-sheet__links a,
body.tm-theme-pro .tm-pro-mobile-sheet__link {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 9px 11px;
    border-radius: 10px;
    color: var(--pro-fg);
    font-size: 14px;
    font-weight: 700;
}
body.tm-theme-pro .tm-pro-account-menu__links a:hover,
body.tm-theme-pro .tm-pro-mobile-sheet__links a:hover,
body.tm-theme-pro .tm-pro-mobile-sheet__link:hover { background: var(--pro-bg-muted); color: var(--pro-blue); }
body.tm-theme-pro .tm-pro-account-menu__logout,
body.tm-theme-pro .tm-pro-mobile-sheet__logout { margin: 6px 0 0; padding-top: 6px; border-top: 1px solid var(--pro-border); }
body.tm-theme-pro .tm-pro-account-menu__logout button,
body.tm-theme-pro .tm-pro-mobile-sheet__logout button {
    width: 100%;
    min-height: 40px;
    padding: 9px 11px;
    border: 0;
    border-radius: 10px;
    background: #fff;
    color: #dc2626;
    text-align: start;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
body.tm-theme-pro .tm-pro-account-menu__logout button:hover,
body.tm-theme-pro .tm-pro-mobile-sheet__logout button:hover { background: #fef2f2; }

/* Mobile sheet "More" section: general site links, kept visually distinct from
   the account actions above so the two roles never read as duplicates. */
body.tm-theme-pro .tm-pro-mobile-sheet__section {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--pro-border);
}
body.tm-theme-pro .tm-pro-mobile-sheet__label {
    display: block;
    padding: 2px 11px 4px;
    color: var(--pro-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}
body.tm-theme-pro .tm-pro-mobile-toggle {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}
body.tm-theme-pro .tm-pro-mobile-toggle svg { width: 20px; height: 20px; }

body.tm-theme-pro .tm-pro-mobile-preferences-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 58px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--pro-border);
    border-radius: 999px;
    background: #fff;
    color: var(--pro-fg);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--pro-shadow-sm);
}
body.tm-theme-pro .tm-pro-mobile-preferences-indicator:hover { border-color: var(--pro-blue); color: var(--pro-blue); }
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-mobile-preferences-indicator {
    background: var(--pro-bg-soft);
    border-color: var(--pro-border);
    color: var(--pro-fg);
}
body.tm-theme-pro .tm-pro-mobile-sheet {
    position: absolute;
    top: calc(100% + 1px);
    inset-inline: 18px;
    z-index: 70;
}
body.tm-theme-pro .tm-pro-mobile-sheet__panel {
    padding: 10px;
    border: 1px solid var(--pro-border);
    border-radius: var(--pro-radius);
    background: #fff;
    box-shadow: var(--pro-shadow);
}
body.tm-theme-pro .tm-pro-mobile-sheet__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 4px 0 8px;
}
body.tm-theme-pro .tm-pro-mobile-sheet__actions .tm-pro-btn { width: 100%; min-width: 0; }

body.tm-theme-pro .tm-pro-preferences {
    display: flex;
    align-items: center;
    gap: 8px;
}
body.tm-theme-pro .tm-pro-preferences--mobile {
    display: grid;
    gap: 10px;
    margin: 8px 0;
    padding: 10px;
    border: 1px solid var(--pro-border);
    border-radius: var(--pro-radius);
    background: var(--pro-bg-soft);
}
body.tm-theme-pro .tm-pro-language-menu { position: relative; }
body.tm-theme-pro .tm-pro-preferences__trigger,
body.tm-theme-pro .tm-pro-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 7px 10px;
    border: 1px solid var(--pro-border);
    border-radius: 999px;
    background: #fff;
    color: var(--pro-fg);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: var(--pro-shadow-sm);
}
body.tm-theme-pro .tm-pro-preferences__trigger:hover,
body.tm-theme-pro .tm-pro-theme-toggle:hover { border-color: var(--pro-blue); color: var(--pro-blue); }
body.tm-theme-pro .tm-pro-preferences__trigger svg,
body.tm-theme-pro .tm-pro-theme-toggle svg { width: 16px; height: 16px; }
body.tm-theme-pro .tm-pro-theme-toggle__moon { display: none; }
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-theme-toggle__sun { display: none; }
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-theme-toggle__moon { display: block; }
body.tm-theme-pro .tm-pro-preferences__panel {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-end: 0;
    z-index: 80;
    width: min(230px, calc(100vw - 36px));
    padding: 8px;
    border: 1px solid var(--pro-border);
    border-radius: var(--pro-radius);
    background: #fff;
    box-shadow: var(--pro-shadow);
}
body.tm-theme-pro .tm-pro-preferences__label {
    display: block;
    padding: 3px 2px 6px;
    color: var(--pro-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}
body.tm-theme-pro .tm-pro-preferences__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 40px;
    padding: 9px 10px;
    border-radius: 10px;
    color: var(--pro-fg);
    font-size: 14px;
    font-weight: 700;
}
body.tm-theme-pro .tm-pro-preferences__option strong {
    color: var(--pro-muted);
    font-size: 12px;
    font-weight: 800;
}
body.tm-theme-pro .tm-pro-preferences__option:hover,
body.tm-theme-pro .tm-pro-preferences__option.is-active { background: var(--pro-bg-muted); color: var(--pro-blue); }
body.tm-theme-pro .tm-pro-preferences__section { display: grid; gap: 7px; }
body.tm-theme-pro .tm-pro-preferences__choices {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}
body.tm-theme-pro .tm-pro-preferences__section + .tm-pro-preferences__section .tm-pro-preferences__choices { grid-template-columns: 1fr 1fr; }
body.tm-theme-pro .tm-pro-preferences__choice {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 9px;
    border: 1px solid var(--pro-border);
    border-radius: 10px;
    background: #fff;
    color: var(--pro-fg);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    text-align: center;
}
body.tm-theme-pro .tm-pro-preferences__choice:hover,
body.tm-theme-pro .tm-pro-preferences__choice.is-active,
body.tm-theme-pro .tm-pro-preferences__choice[aria-pressed="true"] {
    border-color: var(--pro-blue);
    background: var(--pro-blue-soft);
    color: var(--pro-blue);
}

body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-btn--secondary,
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-account-menu__toggle,
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-mobile-toggle,
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-preferences__trigger,
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-theme-toggle,
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-preferences__panel,
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-account-menu__panel,
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-mobile-sheet__panel,
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-preferences__choice,
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-chip,
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-widget,
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-msg,
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-card,
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-step,
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-faq__item,
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-linklist a,
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-inbox,
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-reader__back,
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-auth__card,
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-account__table-card,
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-account__detail-card,
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-pricing-card,
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-msg__delete,
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-table-card {
    background: var(--pro-bg-soft);
    border-color: var(--pro-border);
    color: var(--pro-fg);
}
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-msg__delete {
    color: #f87171;
}
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-msg__delete:hover {
    border-color: #f87171;
    background: rgba(248, 113, 113, .12);
}
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-hero { background: var(--pro-bg); }
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-address,
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-preferences--mobile,
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-account-menu__links a:hover,
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-mobile-sheet__links a:hover,
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-mobile-sheet__link:hover,
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-preferences__option:hover,
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-preferences__option.is-active,
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-nav a:hover { background: var(--pro-bg-muted); }
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-teaser__inner,
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-pricing-card--featured {
    background: linear-gradient(180deg, var(--pro-bg-soft), var(--pro-blue-soft));
    border-color: var(--pro-border);
}
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-input,
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-textarea,
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-account-menu__logout button,
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-mobile-sheet__logout button {
    background: var(--pro-bg);
    border-color: var(--pro-border);
    color: var(--pro-fg);
}
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-btn--ghost { background: var(--pro-bg-muted); color: var(--pro-fg); }
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-btn--danger { background: var(--pro-bg); color: #fca5a5; border-color: #7f1d1d; }
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-copy,
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-btn--primary { color: #fff; }
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-reader__head { background: var(--pro-bg-soft); }
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-reader__frame { background: #fff; }
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-account__table th { background: var(--pro-bg-muted); color: var(--pro-muted); }
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-account__table td,
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-account__table th,
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-pricing-table th,
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-pricing-table td { border-color: var(--pro-border); }
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-footer { background: var(--pro-bg-soft); }


@media (max-width: 380px) {
    body.tm-theme-pro .tm-pro-header__inner { gap: 8px; }
    body.tm-theme-pro .tm-pro-logo { gap: 6px; font-size: 16px; }
    body.tm-theme-pro .tm-pro-logo__mark { width: 24px; height: 24px; }
    body.tm-theme-pro .tm-pro-header__actions { gap: 6px; }
    body.tm-theme-pro .tm-pro-mobile-preferences-indicator { min-width: 52px; padding-inline: 8px; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
body.tm-theme-pro .tm-pro-hero {
    background:
        radial-gradient(900px 420px at 85% -15%, var(--pro-blue-soft), transparent 60%),
        var(--pro-bg);
    padding: 22px 0 8px;
}
body.tm-theme-pro .tm-pro-hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: center;
}
/* Mobile source order is copy -> widget -> CTAs, so the email generator sits
   right under the headline/chips instead of below all the marketing copy. */
body.tm-theme-pro .tm-pro-hero__app { order: 2; }
body.tm-theme-pro .tm-pro-hero__cta { order: 3; margin-top: 4px; }

/* Single subtle sign-in hint, shown to guests just above the inline generator. */
body.tm-theme-pro .tm-pro-hero__appnote {
    margin: 0 0 12px;
    color: var(--pro-muted);
    font-size: 13px;
    line-height: 1.35;
}
body.tm-theme-pro .tm-pro-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--pro-blue-soft);
    color: var(--pro-blue);
    font-size: 13px;
    font-weight: 600;
}
body.tm-theme-pro .tm-pro-eyebrow__dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--pro-blue);
}
body.tm-theme-pro .tm-pro-hero__title {
    margin-top: 16px;
    font-size: clamp(28px, 7vw, 46px);
    font-weight: 800;
    letter-spacing: -0.025em;
}
body.tm-theme-pro .tm-pro-hero__title .tm-pro-accent { color: var(--pro-blue); }
body.tm-theme-pro .tm-pro-hero__subtitle {
    margin-top: 14px;
    font-size: clamp(15px, 3.6vw, 18px);
    max-width: 34em;
}
body.tm-theme-pro .tm-pro-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}
body.tm-theme-pro .tm-pro-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--pro-border);
    color: var(--pro-fg);
    font-size: 13px;
    font-weight: 500;
}
body.tm-theme-pro .tm-pro-chip svg { width: 14px; height: 14px; color: var(--pro-green); }
body.tm-theme-pro .tm-pro-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}
body.tm-theme-pro .tm-pro-hero__cta .tm-pro-btn { flex: 1 1 auto; }

/* --------------------------------------------------------------------------
   Email widget (standalone)
   -------------------------------------------------------------------------- */
body.tm-theme-pro .tm-pro-widget {
    background: #fff;
    border: 1px solid var(--pro-border);
    border-radius: var(--pro-radius-lg);
    box-shadow: var(--pro-shadow);
    padding: 18px;
}
body.tm-theme-pro .tm-pro-widget__label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--pro-muted);
    margin-bottom: 8px;
}
body.tm-theme-pro .tm-pro-widget__live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--pro-green);
    text-transform: none;
    letter-spacing: 0;
    font-size: 12px;
}
body.tm-theme-pro .tm-pro-widget__live::before {
    content: "";
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--pro-green);
    box-shadow: 0 0 0 0 rgba(22,163,74,.5);
    animation: tmProPulse 2s infinite;
}
@keyframes tmProPulse {
    0% { box-shadow: 0 0 0 0 rgba(22,163,74,.45); }
    70% { box-shadow: 0 0 0 7px rgba(22,163,74,0); }
    100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); }
}

/* Address row (also the #inbox anchor target) */
body.tm-theme-pro .tm-pro-address {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--pro-bg-soft);
    border: 1px solid var(--pro-border);
    border-radius: 12px;
    padding: 8px 8px 8px 14px;
    /* Clear the sticky header when jumping to #inbox from the CTAs. */
    scroll-margin-top: 72px;
}
body.tm-theme-pro .tm-pro-address__value {
    flex: 1 1 auto;
    min-width: 0;
    font-family: var(--pro-mono);
    font-size: clamp(13px, 3.4vw, 15px);
    font-weight: 600;
    color: var(--pro-fg);
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.3;
}
body.tm-theme-pro .tm-pro-address__value[data-empty="1"] { color: var(--pro-muted); font-weight: 500; }
body.tm-theme-pro .tm-pro-copy {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    border: 0;
    background: var(--pro-blue);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}
body.tm-theme-pro .tm-pro-copy:hover { background: var(--pro-blue-hover); }
body.tm-theme-pro .tm-pro-copy svg { width: 16px; height: 16px; }
body.tm-theme-pro .tm-pro-copy.is-done { background: var(--pro-green); }
body.tm-theme-pro .tm-pro-copy__label { display: none; }

/* Widget actions */
body.tm-theme-pro .tm-pro-widget__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}
body.tm-theme-pro .tm-pro-widget__actions .tm-pro-btn--openinbox { grid-column: 1 / -1; }

/* Messages */
body.tm-theme-pro .tm-pro-messages {
    margin-top: 14px;
    border-top: 1px solid var(--pro-border);
    padding-top: 12px;
}
body.tm-theme-pro .tm-pro-messages__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
body.tm-theme-pro .tm-pro-messages__title { font-size: 14px; font-weight: 700; color: var(--pro-fg); }
body.tm-theme-pro .tm-pro-messages__meta { font-size: 12px; color: var(--pro-muted); }
body.tm-theme-pro .tm-pro-messages__list { display: grid; gap: 8px; max-height: 320px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }

/* Message row: message button + separate delete action */
body.tm-theme-pro .tm-pro-msg-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
}
body.tm-theme-pro .tm-pro-msg-row .tm-pro-msg {
    flex: 1 1 auto;
    min-width: 0;
}
body.tm-theme-pro .tm-pro-msg__delete {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    padding: 0;
    border: 1px solid var(--pro-border);
    border-radius: 12px;
    background: #fff;
    color: #dc2626;
    cursor: pointer;
    transition: border-color .12s ease, background-color .12s ease, color .12s ease;
}
body.tm-theme-pro .tm-pro-msg__delete:hover {
    border-color: #dc2626;
    background: rgba(220, 38, 38, .08);
}
body.tm-theme-pro .tm-pro-msg__delete:focus-visible {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
}
body.tm-theme-pro .tm-pro-msg__delete:disabled {
    opacity: .5;
    cursor: default;
}

body.tm-theme-pro .tm-pro-msg {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--pro-border);
    border-radius: 12px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color .12s ease, background-color .12s ease;
}
body.tm-theme-pro a.tm-pro-msg:hover {
    border-color: var(--pro-blue);
    background: var(--pro-blue-soft);
}
body.tm-theme-pro .tm-pro-msg__chevron {
    color: var(--pro-muted);
    font-size: 20px;
    line-height: 1;
}
body.tm-theme-pro .tm-pro-messages__readall {
    display: block;
    margin-top: 10px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--pro-blue);
    text-decoration: none;
}
body.tm-theme-pro .tm-pro-messages__readall:hover { text-decoration: underline; }
body.tm-theme-pro .tm-pro-msg__avatar {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 9px;
    background: var(--pro-blue-soft);
    color: var(--pro-blue);
    font-weight: 700;
    text-transform: uppercase;
}
body.tm-theme-pro .tm-pro-msg__body { min-width: 0; }
body.tm-theme-pro .tm-pro-msg__from { font-size: 13px; font-weight: 600; color: var(--pro-fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.tm-theme-pro .tm-pro-msg__subject { font-size: 13px; color: var(--pro-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.tm-theme-pro .tm-pro-msg__snippet { margin-top: 2px; font-size: 12px; line-height: 1.35; color: var(--pro-muted); opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.tm-theme-pro .tm-pro-msg__time { font-size: 11.5px; color: var(--pro-muted); white-space: nowrap; }

/* States */
body.tm-theme-pro .tm-pro-state {
    text-align: center;
    padding: 22px 12px;
    color: var(--pro-muted);
    font-size: 14px;
}
body.tm-theme-pro .tm-pro-state svg { width: 30px; height: 30px; margin: 0 auto 8px; color: #94a3b8; }
body.tm-theme-pro .tm-pro-state--error { color: #b91c1c; }
body.tm-theme-pro [hidden] { display: none !important; }

body.tm-theme-pro .tm-pro-spinner {
    width: 22px; height: 22px;
    margin: 0 auto 8px;
    border: 3px solid var(--pro-border);
    border-top-color: var(--pro-blue);
    border-radius: 50%;
    animation: tmProSpin .7s linear infinite;
}
@keyframes tmProSpin { to { transform: rotate(360deg); } }

/* Copy toast */
body.tm-theme-pro .tm-pro-toast {
    position: fixed;
    left: 50%;
    bottom: calc(22px + env(safe-area-inset-bottom));
    transform: translateX(-50%) translateY(20px);
    background: var(--pro-fg);
    color: #fff;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--pro-shadow);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    z-index: 100;
}
body.tm-theme-pro .tm-pro-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Respect reduced-motion: stop the live pulse, spinner spin, and transitions. */
@media (prefers-reduced-motion: reduce) {
    body.tm-theme-pro .tm-pro-widget__live::before,
    body.tm-theme-pro .tm-pro-spinner { animation: none; }
    body.tm-theme-pro .tm-pro-spinner { border-top-color: var(--pro-blue); }
    body.tm-theme-pro .tm-pro-btn,
    body.tm-theme-pro a.tm-pro-msg,
    body.tm-theme-pro .tm-pro-toast { transition: none; }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
body.tm-theme-pro .tm-pro-section { padding: 42px 0; }
body.tm-theme-pro .tm-pro-section--soft { background: var(--pro-bg-soft); border-block: 1px solid var(--pro-border); }
body.tm-theme-pro .tm-pro-section__head { max-width: 40em; margin: 0 auto 26px; text-align: center; }
body.tm-theme-pro .tm-pro-kicker {
    color: var(--pro-blue);
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 8px;
}
body.tm-theme-pro .tm-pro-section__head h2 { font-size: clamp(22px, 5.2vw, 30px); }
body.tm-theme-pro .tm-pro-section__head p { margin-top: 10px; font-size: 16px; }

body.tm-theme-pro .tm-pro-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }

body.tm-theme-pro .tm-pro-card {
    background: #fff;
    border: 1px solid var(--pro-border);
    border-radius: var(--pro-radius);
    padding: 20px;
    box-shadow: var(--pro-shadow-sm);
}
body.tm-theme-pro .tm-pro-card__icon {
    width: 42px; height: 42px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 11px;
    background: var(--pro-blue-soft);
    color: var(--pro-blue);
    margin-bottom: 12px;
}
body.tm-theme-pro .tm-pro-card__icon svg { width: 20px; height: 20px; }
body.tm-theme-pro .tm-pro-card h3 { font-size: 16.5px; margin-bottom: 6px; }
body.tm-theme-pro .tm-pro-card p { font-size: 14px; }

body.tm-theme-pro .tm-pro-step {
    background: #fff;
    border: 1px solid var(--pro-border);
    border-radius: var(--pro-radius);
    padding: 20px;
}
body.tm-theme-pro .tm-pro-step__num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--pro-blue);
    color: #fff;
    font-weight: 700; font-size: 14px;
    margin-bottom: 12px;
}
body.tm-theme-pro .tm-pro-step h3 { font-size: 16.5px; margin-bottom: 6px; }
body.tm-theme-pro .tm-pro-step p { font-size: 14px; }

/* Pro teaser */
body.tm-theme-pro .tm-pro-teaser__inner {
    background: linear-gradient(180deg, #fff, var(--pro-blue-soft));
    border: 1px solid var(--pro-border);
    border-radius: var(--pro-radius-lg);
    padding: 28px 20px;
    text-align: center;
}
body.tm-theme-pro .tm-pro-teaser h2 { font-size: clamp(20px, 5vw, 24px); }
body.tm-theme-pro .tm-pro-teaser p { margin: 10px auto 16px; max-width: 34em; font-size: 15px; }
body.tm-theme-pro .tm-pro-teaser__list {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 8px 18px; margin-bottom: 18px;
}
body.tm-theme-pro .tm-pro-teaser__list li {
    display: inline-flex; align-items: center; gap: 7px;
    color: var(--pro-fg); font-size: 14px; font-weight: 500;
}
body.tm-theme-pro .tm-pro-teaser__list svg { width: 16px; height: 16px; color: var(--pro-blue); }

/* FAQ */
body.tm-theme-pro .tm-pro-faq { max-width: 760px; margin-inline: auto; display: grid; gap: 10px; }
body.tm-theme-pro .tm-pro-faq__item {
    background: #fff;
    border: 1px solid var(--pro-border);
    border-radius: var(--pro-radius);
    padding: 2px 18px;
}
body.tm-theme-pro .tm-pro-faq__item summary {
    cursor: pointer;
    list-style: none;
    padding: 15px 0;
    font-weight: 600;
    font-size: 15px;
    color: var(--pro-fg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
body.tm-theme-pro .tm-pro-faq__item summary::-webkit-details-marker { display: none; }
body.tm-theme-pro .tm-pro-faq__item summary::after {
    content: "";
    width: 10px; height: 10px;
    border-right: 2px solid var(--pro-blue);
    border-bottom: 2px solid var(--pro-blue);
    transform: rotate(45deg);
    transition: transform .15s ease;
    flex: 0 0 auto;
}
body.tm-theme-pro .tm-pro-faq__item[open] summary::after { transform: rotate(-135deg); }
body.tm-theme-pro .tm-pro-faq__item p { padding: 0 0 15px; font-size: 14px; }

/* Internal SEO links */
body.tm-theme-pro .tm-pro-linklist {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    max-width: 760px;
    margin-inline: auto;
}
body.tm-theme-pro .tm-pro-linklist a {
    display: block;
    padding: 12px 14px;
    border: 1px solid var(--pro-border);
    border-radius: 12px;
    background: #fff;
    color: var(--pro-fg);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .12s ease, color .12s ease;
}
body.tm-theme-pro .tm-pro-linklist a:hover { border-color: var(--pro-blue); color: var(--pro-blue); }

/* Footer */
body.tm-theme-pro .tm-pro-footer {
    background: var(--pro-bg-soft);
    border-top: 1px solid var(--pro-border);
    /* Safe-area bottom keeps the last content clear of the iOS Safari toolbar. */
    padding: 24px 0 calc(24px + env(safe-area-inset-bottom));
}
body.tm-theme-pro .tm-pro-footer__inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
}
body.tm-theme-pro .tm-pro-footer__brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: -0.02em; }
body.tm-theme-pro .tm-pro-footer__brand span { color: var(--pro-blue); }
body.tm-theme-pro .tm-pro-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; }
body.tm-theme-pro .tm-pro-footer__links a { color: var(--pro-muted); font-size: 14px; }
body.tm-theme-pro .tm-pro-footer__links a:hover { color: var(--pro-blue); }
body.tm-theme-pro .tm-pro-footer__copy { font-size: 13px; color: var(--pro-muted); }

/* --------------------------------------------------------------------------
   Breakpoints
   -------------------------------------------------------------------------- */
@media (min-width: 600px) {
    body.tm-theme-pro .tm-pro-copy__label { display: inline; }
    body.tm-theme-pro .tm-pro-widget__actions { grid-template-columns: 1fr 1fr 1fr; }
    body.tm-theme-pro .tm-pro-widget__actions .tm-pro-btn--openinbox { grid-column: auto; }
}

@media (min-width: 768px) {
    body.tm-theme-pro .tm-pro-container { padding-inline: 24px; }
    body.tm-theme-pro .tm-pro-header__inner { min-height: 62px; }
    body.tm-theme-pro .tm-pro-logo { font-size: 19px; }
    body.tm-theme-pro .tm-pro-logo__mark { width: 30px; height: 30px; border-radius: 9px; }
    body.tm-theme-pro .tm-pro-nav { display: flex; }

    body.tm-theme-pro .tm-pro-header__actions--desktop { display: flex; }
    body.tm-theme-pro .tm-pro-header__actions--mobile,
    body.tm-theme-pro .tm-pro-mobile-sheet { display: none; }
    body.tm-theme-pro .tm-pro-hero { padding: 60px 0 20px; }
    body.tm-theme-pro .tm-pro-hero__cta .tm-pro-btn { flex: 0 0 auto; }
    body.tm-theme-pro .tm-pro-widget { padding: 22px; }
    body.tm-theme-pro .tm-pro-grid--3 { grid-template-columns: repeat(3, 1fr); }
    body.tm-theme-pro .tm-pro-grid--4 { grid-template-columns: repeat(2, 1fr); }
    body.tm-theme-pro .tm-pro-linklist { grid-template-columns: repeat(3, 1fr); }
    body.tm-theme-pro .tm-pro-footer__inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

@media (min-width: 1024px) {
    /* Two columns: copy + CTAs stacked on the left, widget on the right. */
    body.tm-theme-pro .tm-pro-hero__grid {
        grid-template-columns: 1.02fr 0.98fr;
        grid-template-areas: "copy app" "cta app";
        align-items: start;
        gap: 16px 44px;
    }
    body.tm-theme-pro .tm-pro-hero__copy { grid-area: copy; order: 0; }
    body.tm-theme-pro .tm-pro-hero__cta  { grid-area: cta;  order: 0; margin-top: 8px; }
    body.tm-theme-pro .tm-pro-hero__app  { grid-area: app;  order: 0; align-self: center; }
    body.tm-theme-pro .tm-pro-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   Pro inbox page (standalone, two-pane)
   ========================================================================== */
body.tm-theme-pro .tm-pro-inboxpage {
    padding: 22px 0 calc(40px + env(safe-area-inset-bottom));
    overflow-x: hidden;
}
body.tm-theme-pro .tm-pro-inboxpage__head { margin-bottom: 16px; }
body.tm-theme-pro .tm-pro-inboxpage__title { font-size: clamp(22px, 5.5vw, 30px); font-weight: 800; }
body.tm-theme-pro .tm-pro-inboxpage__sub { margin-top: 6px; font-size: 15px; }

body.tm-theme-pro .tm-pro-inbox {
    background: #fff;
    border: 1px solid var(--pro-border);
    border-radius: var(--pro-radius-lg);
    box-shadow: var(--pro-shadow);
    padding: 16px;
    min-width: 0;
    scroll-margin-top: 70px;
}


/* Address + actions bar */
body.tm-theme-pro .tm-pro-inbox__bar { display: grid; gap: 10px; }
body.tm-theme-pro .tm-pro-inbox__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
body.tm-theme-pro .tm-pro-inbox__actions [data-tm-pro-openfull] { grid-column: 1 / -1; }
body.tm-theme-pro .tm-pro-inbox__actions .tm-pro-btn { min-width: 0; }

/* Panes: mobile = single column (reader overlays list when reading) */
body.tm-theme-pro .tm-pro-inbox__panes { margin-top: 14px; min-width: 0; }
body.tm-theme-pro .tm-pro-inbox__list { min-width: 0; }
body.tm-theme-pro .tm-pro-inbox__reader { display: none; min-width: 0; }
body.tm-theme-pro .tm-pro-inbox.is-reading .tm-pro-inbox__list { display: none; }
body.tm-theme-pro .tm-pro-inbox.is-reading .tm-pro-inbox__reader { display: block; }

/* List rows are buttons here (homepage uses anchors) */
body.tm-theme-pro button.tm-pro-msg {
    width: 100%;
    max-width: 100%;
    font: inherit;
    text-align: start;
    cursor: pointer;
}
body.tm-theme-pro button.tm-pro-msg:hover { border-color: var(--pro-blue); background: var(--pro-blue-soft); }

/* Reader */
body.tm-theme-pro .tm-pro-reader__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--pro-border);
}
body.tm-theme-pro .tm-pro-reader__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    min-height: 38px;
    padding: 6px 12px;
    border: 1px solid var(--pro-border);
    border-radius: 10px;
    background: #fff;
    color: var(--pro-fg);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
body.tm-theme-pro .tm-pro-reader__back svg { width: 16px; height: 16px; }
body.tm-theme-pro .tm-pro-reader__back:hover { border-color: var(--pro-blue); color: var(--pro-blue); }
body.tm-theme-pro .tm-pro-reader__meta { min-width: 0; flex: 1 1 auto; }
body.tm-theme-pro .tm-pro-reader__subject { font-size: 15px; font-weight: 700; color: var(--pro-fg); overflow-wrap: anywhere; }
body.tm-theme-pro .tm-pro-reader__code { flex: 0 0 auto; margin-left: auto; }
body.tm-theme-pro .tm-pro-reader__code svg { width: 15px; height: 15px; }
/* Delete the open message (reader head). Right-aligns after the growing meta;
   sits after the optional code button when both are shown. */
body.tm-theme-pro .tm-pro-reader__delete { flex: 0 0 auto; margin-left: auto; color: #dc2626; }
body.tm-theme-pro .tm-pro-reader__code + .tm-pro-reader__delete { margin-left: 0; }
body.tm-theme-pro .tm-pro-reader__delete svg { width: 15px; height: 15px; }
body.tm-theme-pro .tm-pro-reader__delete:hover { border-color: #dc2626; color: #dc2626; background: rgba(220, 38, 38, .08); }
body.tm-theme-pro .tm-pro-reader__delete:disabled { opacity: .5; cursor: default; }
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-reader__delete { color: #f87171; }
body.tm-theme-pro[data-tm-theme="dark"] .tm-pro-reader__delete:hover { border-color: #f87171; background: rgba(248, 113, 113, .12); }
body.tm-theme-pro .tm-pro-reader__codeval { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 700; letter-spacing: .04em; padding: 1px 7px; border-radius: 999px; background: rgba(37,99,235,.12); color: var(--pro-blue); }
body.tm-theme-pro .tm-pro-reader__codeval:empty { display: none; }
body.tm-theme-pro .tm-pro-reader__from { font-size: 13px; color: var(--pro-muted); overflow-wrap: anywhere; }
body.tm-theme-pro .tm-pro-reader__body { position: relative; min-width: 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
body.tm-theme-pro .tm-pro-reader__frame {
    width: 100%;
    min-height: 340px;
    height: min(62vh, 520px);
    height: min(62svh, 520px);
    border: 0;
    border-radius: 12px;
    background: #fff;
}

@supports (height: 100dvh) {
    body.tm-theme-pro .tm-pro-reader__frame {
        height: min(62dvh, 520px);
    }
}

/* Reduced motion: no row hover transition surprises (animations already gated) */
@media (prefers-reduced-motion: reduce) {
    body.tm-theme-pro button.tm-pro-msg { transition: none; }
}

@media (max-width: 899px) {
    body.tm-theme-pro .tm-pro-inbox.is-reading { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
    body.tm-theme-pro .tm-pro-reader__head {
        position: sticky;
        top: 54px;
        z-index: 3;
        background: #fff;
        padding-top: 6px;
        /* Stack safely: controls on the top row, subject/from full width below.
           Prevents the flex row from squeezing meta to ~0 width (which made the
           subject wrap letter-by-letter). */
        flex-wrap: wrap;
        align-items: center;
        row-gap: 8px;
    }
    body.tm-theme-pro .tm-pro-reader__back { order: 1; }
    body.tm-theme-pro .tm-pro-reader__code { order: 2; margin-left: auto; }
    body.tm-theme-pro .tm-pro-reader__delete { order: 2; }
    body.tm-theme-pro .tm-pro-reader__meta {
        order: 3;
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
    }
    body.tm-theme-pro .tm-pro-reader__subject {
        width: 100%;
        white-space: normal;
        overflow-wrap: break-word;
        word-break: normal;
    }
    body.tm-theme-pro .tm-pro-reader__from {
        width: 100%;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    body.tm-theme-pro .tm-pro-inbox .tm-pro-messages__list {
        max-height: min(52vh, 430px);
        max-height: min(52svh, 430px);
        padding-bottom: calc(8px + env(safe-area-inset-bottom));
    }
}

/* Desktop: side-by-side list + reader */
@media (min-width: 900px) {
    body.tm-theme-pro .tm-pro-inbox { padding: 20px; }
    body.tm-theme-pro .tm-pro-inbox__actions {
        grid-template-columns: auto auto auto 1fr;
        justify-content: start;
    }
    body.tm-theme-pro .tm-pro-inbox__actions [data-tm-pro-openfull] { grid-column: auto; justify-self: end; }
    body.tm-theme-pro .tm-pro-inbox__panes {
        display: grid;
        grid-template-columns: minmax(280px, 360px) 1fr;
        gap: 16px;
        align-items: start;
    }
    /* Both panes always visible on desktop; "Back" is mobile-only. */
    body.tm-theme-pro .tm-pro-inbox__reader { display: block; }
    body.tm-theme-pro .tm-pro-inbox.is-reading .tm-pro-inbox__list { display: block; }
    body.tm-theme-pro .tm-pro-reader__back { display: none; }
    body.tm-theme-pro .tm-pro-inbox__reader {
        border-inline-start: 1px solid var(--pro-border);
        padding-inline-start: 16px;
    }
    body.tm-theme-pro .tm-pro-reader__frame { min-height: 420px; height: 64vh; }
}

/* ------------------------------------------------------------------ *
   Pro prose — readable rich-text reading column for content pages
   (legal: privacy / terms, and FAQ). Genuine Pro design-system class,
   scoped under body.tm-theme-pro. The Pro base reset deliberately strips
   list markers (ul { list-style: none }) and link affordance
   (a { color: inherit; text-decoration: none }); .tm-pro-prose restores
   readable typography for translated HTML bodies without any legacy CSS.
   Uses logical properties so RTL locales (e.g. ar) stay correct.
 * ------------------------------------------------------------------ */
body.tm-theme-pro .tm-pro-prose {
    max-width: 760px;
    margin-inline: auto;
    color: var(--pro-fg);
    font-size: 16px;
    line-height: 1.7;
    text-align: start;
}
body.tm-theme-pro .tm-pro-prose > :first-child { margin-top: 0; }
body.tm-theme-pro .tm-pro-prose h2,
body.tm-theme-pro .tm-pro-prose h3,
body.tm-theme-pro .tm-pro-prose h4 {
    color: var(--pro-fg);
    line-height: 1.3;
    margin: 1.6em 0 .5em;
}
body.tm-theme-pro .tm-pro-prose h2 { font-size: 22px; }
body.tm-theme-pro .tm-pro-prose h3 { font-size: 18px; }
body.tm-theme-pro .tm-pro-prose h4 { font-size: 16px; }
body.tm-theme-pro .tm-pro-prose p { color: var(--pro-muted); margin: 0 0 1em; }
body.tm-theme-pro .tm-pro-prose ul,
body.tm-theme-pro .tm-pro-prose ol {
    margin: 0 0 1em;
    padding-inline-start: 1.4em;
    color: var(--pro-muted);
}
body.tm-theme-pro .tm-pro-prose ul { list-style: disc; }
body.tm-theme-pro .tm-pro-prose ol { list-style: decimal; }
body.tm-theme-pro .tm-pro-prose li { margin: .35em 0; }
body.tm-theme-pro .tm-pro-prose a {
    color: var(--pro-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}
body.tm-theme-pro .tm-pro-prose a:hover { color: var(--pro-blue-hover); }
body.tm-theme-pro .tm-pro-prose strong { color: var(--pro-fg); font-weight: 600; }

/* ------------------------------------------------------------------ *
   Pro CTA row — centered button row for landing/SEO hero heads.
   Genuine Pro helper (scoped under body.tm-theme-pro); reuses .tm-pro-btn.
 * ------------------------------------------------------------------ */
body.tm-theme-pro .tm-pro-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 22px;
}

/* ------------------------------------------------------------------ *
   Pro forms — genuine Pro form controls for content pages (contact).
   Scoped under body.tm-theme-pro, built on the Pro design tokens. The Pro
   base shell ships no input styling; this is a first-class Pro addition,
   not a legacy/hybrid patch. Logical properties keep RTL correct.
 * ------------------------------------------------------------------ */
body.tm-theme-pro .tm-pro-form { max-width: 640px; margin-inline: auto; }
body.tm-theme-pro .tm-pro-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
body.tm-theme-pro .tm-pro-field { margin-bottom: 16px; text-align: start; }
body.tm-theme-pro .tm-pro-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--pro-fg);
}
body.tm-theme-pro .tm-pro-input,
body.tm-theme-pro .tm-pro-textarea {
    width: 100%;
    padding: 11px 13px;
    font: inherit;
    color: var(--pro-fg);
    background: var(--pro-bg);
    border: 1px solid var(--pro-border);
    border-radius: var(--pro-radius);
    line-height: 1.5;
}
body.tm-theme-pro .tm-pro-textarea { resize: vertical; min-height: 130px; }
body.tm-theme-pro .tm-pro-input:focus,
body.tm-theme-pro .tm-pro-textarea:focus {
    outline: none;
    border-color: var(--pro-blue);
    box-shadow: 0 0 0 3px var(--pro-blue-soft);
}
body.tm-theme-pro .tm-pro-input--error,
body.tm-theme-pro .tm-pro-input--error:focus { border-color: #dc2626; }
body.tm-theme-pro .tm-pro-field__error { margin-top: 6px; font-size: 13px; color: #dc2626; }
body.tm-theme-pro .tm-pro-alert {
    max-width: 640px;
    margin: 0 auto 20px;
    padding: 12px 14px;
    border-radius: var(--pro-radius);
    font-size: 14px;
}
body.tm-theme-pro .tm-pro-alert--success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
body.tm-theme-pro .tm-pro-alert--error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
@media (max-width: 640px) {
    body.tm-theme-pro .tm-pro-form__row { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ *
   Pro auth - login, registration, and password reset shell.
   Auth pages are rendered through layouts.auth and use only tm-pro-* classes.
 * ------------------------------------------------------------------ */
body.tm-theme-pro .tm-pro-auth {
    min-height: calc(100vh - 188px);
    display: flex;
    align-items: center;
    background: var(--pro-bg-soft);
}
body.tm-theme-pro .tm-pro-auth__shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
}
body.tm-theme-pro .tm-pro-auth__intro {
    max-width: 520px;
}
body.tm-theme-pro .tm-pro-auth__intro h1,
body.tm-theme-pro .tm-pro-auth__head h1 {
    font-size: clamp(28px, 7vw, 42px);
    font-weight: 800;
}
body.tm-theme-pro .tm-pro-auth__intro p:not(.tm-pro-kicker),
body.tm-theme-pro .tm-pro-auth__head p:not(.tm-pro-kicker) {
    margin-top: 12px;
    font-size: 16px;
}
body.tm-theme-pro .tm-pro-auth__single {
    max-width: 520px;
    margin-inline: auto;
}
body.tm-theme-pro .tm-pro-auth__card {
    width: 100%;
    padding: 22px;
    box-shadow: var(--pro-shadow);
}
body.tm-theme-pro .tm-pro-auth__head {
    margin-bottom: 20px;
    text-align: start;
}
body.tm-theme-pro .tm-pro-auth__form {
    max-width: none;
}
body.tm-theme-pro .tm-pro-auth__label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}
body.tm-theme-pro .tm-pro-auth__label-row .tm-pro-label {
    margin-bottom: 0;
}
body.tm-theme-pro .tm-pro-auth__link,
body.tm-theme-pro .tm-pro-auth__footer a {
    color: var(--pro-blue);
    font-size: 14px;
    font-weight: 700;
}
body.tm-theme-pro .tm-pro-auth__link:hover,
body.tm-theme-pro .tm-pro-auth__footer a:hover {
    color: var(--pro-blue-hover);
    text-decoration: underline;
    text-underline-offset: 2px;
}
body.tm-theme-pro .tm-pro-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--pro-fg);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
body.tm-theme-pro .tm-pro-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--pro-blue);
}
body.tm-theme-pro .tm-pro-auth__footer {
    margin-top: 18px;
    color: var(--pro-muted);
    font-size: 14px;
    text-align: center;
}
body.tm-theme-pro .tm-pro-auth__footer a {
    margin-inline-start: 4px;
}
body.tm-theme-pro .tm-pro-auth__captcha {
    overflow-x: auto;
}
body.tm-theme-pro .tm-pro-auth__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
body.tm-theme-pro .tm-pro-auth__actions .tm-pro-btn {
    flex: 1 1 180px;
}
body.tm-theme-pro .tm-pro-auth__copy {
    margin-bottom: 18px;
}
body.tm-theme-pro .tm-pro-auth__inline-form {
    margin: 0;
}

@media (min-width: 860px) {
    body.tm-theme-pro .tm-pro-auth__shell {
        grid-template-columns: minmax(0, 1fr) minmax(380px, 460px);
        gap: 56px;
    }
    body.tm-theme-pro .tm-pro-auth__card {
        padding: 28px;
    }
}

/* ------------------------------------------------------------------ *
   Pro account - dashboard and settings pages.
   Scoped under the standalone Pro shell; no Bootstrap or legacy UI classes.
 * ------------------------------------------------------------------ */
body.tm-theme-pro .tm-pro-account {
    background: var(--pro-bg-soft);
    min-height: calc(100vh - 188px);
}
body.tm-theme-pro .tm-pro-account__head {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 22px;
}
body.tm-theme-pro .tm-pro-account__head h1 {
    font-size: clamp(28px, 7vw, 42px);
    font-weight: 800;
}
body.tm-theme-pro .tm-pro-account__head p:not(.tm-pro-kicker) {
    margin-top: 10px;
    font-size: 16px;
}
body.tm-theme-pro .tm-pro-account__head-actions,
body.tm-theme-pro .tm-pro-account__security-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
body.tm-theme-pro .tm-pro-account__summary-grid,
body.tm-theme-pro .tm-pro-account__settings-grid {
    margin-bottom: 16px;
}
body.tm-theme-pro .tm-pro-account__summary-grid,
body.tm-theme-pro .tm-pro-account__settings-grid {
    grid-template-columns: 1fr;
}
body.tm-theme-pro .tm-pro-account__metric {
    display: grid;
    gap: 12px;
}
body.tm-theme-pro .tm-pro-account__metric-label,
body.tm-theme-pro .tm-pro-account__details dt {
    color: var(--pro-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
body.tm-theme-pro .tm-pro-account__metric strong {
    color: var(--pro-fg);
    font-size: 28px;
    line-height: 1;
}
body.tm-theme-pro .tm-pro-account__metric strong span {
    color: var(--pro-muted);
    font-size: 16px;
}
body.tm-theme-pro .tm-pro-account__metric small {
    color: var(--pro-muted);
}
body.tm-theme-pro .tm-pro-meter {
    width: 100%;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--pro-bg-muted);
}
body.tm-theme-pro .tm-pro-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--pro-blue);
}
body.tm-theme-pro .tm-pro-account__notice {
    display: grid;
    gap: 10px;
}
body.tm-theme-pro .tm-pro-account__notice p {
    color: inherit;
}
body.tm-theme-pro .tm-pro-account__create {
    margin-bottom: 16px;
}
body.tm-theme-pro .tm-pro-account__create h2,
body.tm-theme-pro .tm-pro-account__card-head h2,
body.tm-theme-pro .tm-pro-account__detail-card h2 {
    font-size: 18px;
    font-weight: 800;
}
body.tm-theme-pro .tm-pro-account__create-form {
    max-width: none;
    display: grid;
    gap: 12px;
    margin-top: 16px;
}
body.tm-theme-pro .tm-pro-account__create .tm-pro-alert {
    margin-top: 16px;
}
body.tm-theme-pro .tm-pro-account__create .tm-pro-alert ul {
    list-style: disc;
    padding-inline-start: 20px;
}
body.tm-theme-pro .tm-pro-account__table-card {
    padding: 0;
    overflow: hidden;
}
body.tm-theme-pro .tm-pro-account__card-head {
    padding: 18px 20px;
    border-bottom: 1px solid var(--pro-border);
}
body.tm-theme-pro .tm-pro-account__table-card > p {
    padding: 20px;
}
body.tm-theme-pro .tm-pro-account__table-wrap {
    overflow-x: auto;
}
body.tm-theme-pro .tm-pro-account__table {
    width: 100%;
    border-collapse: collapse;
    color: var(--pro-fg);
    font-size: 14px;
    text-align: start;
}
body.tm-theme-pro .tm-pro-account__table th,
body.tm-theme-pro .tm-pro-account__table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--pro-border);
    vertical-align: top;
}
body.tm-theme-pro .tm-pro-account__table tr:last-child td {
    border-bottom: 0;
}
body.tm-theme-pro .tm-pro-account__table th {
    background: var(--pro-bg-soft);
    color: var(--pro-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
body.tm-theme-pro .tm-pro-account__table code,
body.tm-theme-pro .tm-pro-account__mono {
    color: var(--pro-blue);
    font-family: var(--pro-mono);
    overflow-wrap: anywhere;
}
body.tm-theme-pro .tm-pro-account__actions {
    display: grid;
    gap: 8px;
}
body.tm-theme-pro .tm-pro-account__actions form {
    margin: 0;
}
body.tm-theme-pro .tm-pro-account__rename {
    display: grid;
    gap: 8px;
}
body.tm-theme-pro .tm-pro-account__details {
    margin: 16px 0 0;
}
body.tm-theme-pro .tm-pro-account__details dt {
    margin-top: 14px;
}
body.tm-theme-pro .tm-pro-account__details dt:first-child {
    margin-top: 0;
}
body.tm-theme-pro .tm-pro-account__details dd {
    margin: 3px 0 0;
    color: var(--pro-fg);
    font-weight: 600;
}
body.tm-theme-pro .tm-pro-account__detail-card {
    display: grid;
    gap: 14px;
    align-content: start;
}
body.tm-theme-pro .tm-pro-account__detail-card p {
    font-size: 14px;
}

@media (min-width: 760px) {
    body.tm-theme-pro .tm-pro-account__head {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    body.tm-theme-pro .tm-pro-account__head-actions {
        justify-content: flex-end;
    }
    body.tm-theme-pro .tm-pro-account__summary-grid,
    body.tm-theme-pro .tm-pro-account__settings-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    body.tm-theme-pro .tm-pro-account__create-form {
        grid-template-columns: minmax(0, 1fr) minmax(180px, .75fr) auto;
        align-items: end;
    }
}

@media (min-width: 1024px) {
    body.tm-theme-pro .tm-pro-account__actions {
        grid-template-columns: repeat(2, minmax(0, auto));
        justify-content: start;
    }
    body.tm-theme-pro .tm-pro-account__rename {
        grid-column: 1 / -1;
        grid-template-columns: minmax(150px, 1fr) auto;
    }
}

@media (max-width: 720px) {
    body.tm-theme-pro .tm-pro-account__table,
    body.tm-theme-pro .tm-pro-account__table thead,
    body.tm-theme-pro .tm-pro-account__table tbody,
    body.tm-theme-pro .tm-pro-account__table th,
    body.tm-theme-pro .tm-pro-account__table td,
    body.tm-theme-pro .tm-pro-account__table tr {
        display: block;
    }
    body.tm-theme-pro .tm-pro-account__table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
    body.tm-theme-pro .tm-pro-account__table tr {
        padding: 14px 16px;
        border-bottom: 1px solid var(--pro-border);
    }
    body.tm-theme-pro .tm-pro-account__table tr:last-child {
        border-bottom: 0;
    }
    body.tm-theme-pro .tm-pro-account__table td {
        border-bottom: 0;
        padding: 6px 0;
    }
    body.tm-theme-pro .tm-pro-account__table td::before {
        content: attr(data-label);
        display: block;
        color: var(--pro-muted);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: .06em;
        text-transform: uppercase;
    }
}

/* ------------------------------------------------------------------ *
   Pro pricing - plan cards, checkout actions, and comparison table.
   Scoped to the genuine Pro shell and built only from tm-pro-* classes.
 * ------------------------------------------------------------------ */
body.tm-theme-pro .tm-pro-btn--block { width: 100%; }
body.tm-theme-pro .tm-pro-muted { color: var(--pro-muted); }
body.tm-theme-pro .tm-pro-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--pro-blue);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}
body.tm-theme-pro .tm-pro-pill--neutral {
    background: var(--pro-blue-soft);
    color: var(--pro-blue);
}
body.tm-theme-pro .tm-pro-pricing-grid {
    align-items: stretch;
    gap: 16px;
}
body.tm-theme-pro .tm-pro-pricing-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
body.tm-theme-pro .tm-pro-pricing-card--featured {
    border-color: rgba(37, 99, 235, .42);
    box-shadow: var(--pro-shadow);
}
body.tm-theme-pro .tm-pro-pricing-card__topline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
body.tm-theme-pro .tm-pro-pricing-card h2 { font-size: 24px; }
body.tm-theme-pro .tm-pro-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    color: var(--pro-fg);
}
body.tm-theme-pro .tm-pro-price__currency {
    color: var(--pro-muted);
    font-size: 22px;
    font-weight: 700;
}
body.tm-theme-pro .tm-pro-price__amount {
    color: var(--pro-fg);
    font-size: clamp(34px, 10vw, 48px);
    font-weight: 800;
    line-height: 1;
}
body.tm-theme-pro .tm-pro-price__period {
    color: var(--pro-muted);
    font-size: 14px;
    font-weight: 600;
}
body.tm-theme-pro .tm-pro-price--text .tm-pro-price__amount { font-size: clamp(28px, 8vw, 38px); }
body.tm-theme-pro .tm-pro-price__sub {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--pro-muted);
    font-size: 14px;
}
body.tm-theme-pro .tm-pro-feature-list {
    display: grid;
    gap: 10px;
    color: var(--pro-fg);
    font-size: 14.5px;
}
body.tm-theme-pro .tm-pro-feature-list li {
    position: relative;
    padding-inline-start: 22px;
}
body.tm-theme-pro .tm-pro-feature-list li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: .55em;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--pro-green);
    box-shadow: 0 0 0 4px #dcfce7;
}
body.tm-theme-pro .tm-pro-pricing-actions {
    display: grid;
    gap: 10px;
    margin-top: auto;
}
body.tm-theme-pro .tm-pro-pricing-form { margin: 0; }
body.tm-theme-pro .tm-pro-pricing-note {
    display: block;
    color: var(--pro-muted);
    font-size: 13px;
    line-height: 1.5;
}
body.tm-theme-pro .tm-pro-table-card { padding: 0; overflow: hidden; }
body.tm-theme-pro .tm-pro-table-wrap { overflow-x: auto; }
body.tm-theme-pro .tm-pro-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--pro-fg);
    font-size: 14.5px;
    text-align: start;
}
body.tm-theme-pro .tm-pro-table th,
body.tm-theme-pro .tm-pro-table td {
    padding: 15px 16px;
    border-bottom: 1px solid var(--pro-border);
    vertical-align: top;
}
body.tm-theme-pro .tm-pro-table tr:last-child th,
body.tm-theme-pro .tm-pro-table tr:last-child td { border-bottom: 0; }
body.tm-theme-pro .tm-pro-table thead th {
    background: var(--pro-bg-soft);
    color: var(--pro-muted);
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}
body.tm-theme-pro .tm-pro-table tbody th { font-weight: 700; }
body.tm-theme-pro .tm-pro-pricing-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
    color: var(--pro-blue);
    font-size: 14px;
    font-weight: 600;
}
body.tm-theme-pro .tm-pro-pricing-links a:hover { color: var(--pro-blue-hover); text-decoration: underline; text-underline-offset: 2px; }
body.tm-theme-pro .tm-pro-pricing-links span { color: var(--pro-muted); }

@media (max-width: 640px) {
    body.tm-theme-pro .tm-pro-table,
    body.tm-theme-pro .tm-pro-table thead,
    body.tm-theme-pro .tm-pro-table tbody,
    body.tm-theme-pro .tm-pro-table th,
    body.tm-theme-pro .tm-pro-table td,
    body.tm-theme-pro .tm-pro-table tr {
        display: block;
    }
    body.tm-theme-pro .tm-pro-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
    body.tm-theme-pro .tm-pro-table tbody tr {
        padding: 12px 0;
        border-bottom: 1px solid var(--pro-border);
    }
    body.tm-theme-pro .tm-pro-table tbody tr:last-child { border-bottom: 0; }
    body.tm-theme-pro .tm-pro-table th,
    body.tm-theme-pro .tm-pro-table td {
        border-bottom: 0;
        padding: 6px 16px;
    }
    body.tm-theme-pro .tm-pro-table tbody th { padding-bottom: 10px; }
    body.tm-theme-pro .tm-pro-table td::before {
        content: attr(data-label);
        display: block;
        color: var(--pro-muted);
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .06em;
    }
}

@media (min-width: 760px) {
    body.tm-theme-pro .tm-pro-pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------------ *
   Pro account inbox page.
   Scoped to the Pro account component; preserves backend contracts while
   avoiding legacy tmx visual classes.
 * ------------------------------------------------------------------ */
body.tm-theme-pro .tm-pro-account-inbox { position: relative; display: grid; gap: 16px; }
body.tm-theme-pro .tm-pro-account-inbox__layout { display: grid; gap: 16px; }
body.tm-theme-pro .tm-pro-account-inbox__summary { margin-bottom: 0; }
body.tm-theme-pro .tm-pro-account-inbox__sidebar,
body.tm-theme-pro .tm-pro-account-inbox__controls,
body.tm-theme-pro .tm-pro-account-inbox__messages { min-width: 0; }
body.tm-theme-pro .tm-pro-account-inbox__card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}
body.tm-theme-pro .tm-pro-account-inbox__card-head h2 { font-size: 18px; font-weight: 800; }
body.tm-theme-pro .tm-pro-account-inbox__card-head p { margin-top: 4px; font-size: 13px; }
body.tm-theme-pro .tm-pro-account-inbox__list { display: grid; gap: 10px; max-height: 420px; overflow: auto; }
body.tm-theme-pro .tm-pro-account-inbox__item {
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--pro-border);
    border-radius: 8px;
    background: var(--pro-bg);
}
body.tm-theme-pro .tm-pro-account-inbox__item.is-active {
    border-color: rgba(37, 99, 235, .48);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
body.tm-theme-pro .tm-pro-account-inbox__open-form,
body.tm-theme-pro .tm-pro-account-inbox__item-actions form { margin: 0; }
body.tm-theme-pro .tm-pro-account-inbox__open {
    width: 100%;
    display: grid;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--pro-fg);
    text-align: start;
    cursor: pointer;
}
body.tm-theme-pro .tm-pro-account-inbox__open:disabled { cursor: default; }
body.tm-theme-pro .tm-pro-account-inbox__email,
body.tm-theme-pro .tm-pro-account-inbox__current,
body.tm-theme-pro .tm-pro-account-inbox__email-input { font-family: var(--pro-mono); overflow-wrap: anywhere; }
body.tm-theme-pro .tm-pro-account-inbox__meta,
body.tm-theme-pro .tm-pro-account-inbox__message-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--pro-muted);
    font-size: 12px;
}
body.tm-theme-pro .tm-pro-account-inbox__item-actions,
body.tm-theme-pro .tm-pro-account-inbox__toolbar,
body.tm-theme-pro .tm-pro-account-inbox__empty-actions { display: flex; flex-wrap: wrap; gap: 8px; }
body.tm-theme-pro .tm-pro-account-inbox__rename {
    flex-basis: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}
body.tm-theme-pro .tm-pro-account-inbox__rename .tm-pro-input { min-width: 0; }
body.tm-theme-pro .tm-pro-account-inbox__create {
    display: grid;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--pro-border);
}
body.tm-theme-pro .tm-pro-account-inbox__create h3 { font-size: 16px; font-weight: 800; }
body.tm-theme-pro .tm-pro-account-inbox__copy-row { display: grid; gap: 10px; margin-bottom: 12px; }
body.tm-theme-pro .tm-pro-account-inbox__auto {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--pro-border);
}
body.tm-theme-pro .tm-pro-account-inbox__toggle { display: inline-flex; align-items: center; gap: 8px; color: var(--pro-fg); font-weight: 700; }
body.tm-theme-pro .tm-pro-account-inbox__status { min-height: 20px; margin-top: 10px; color: var(--pro-muted); font-size: 13px; }
body.tm-theme-pro .tm-pro-account-inbox__message-error { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
body.tm-theme-pro .tm-pro-account-inbox__skeleton { display: grid; gap: 10px; margin-bottom: 14px; }
body.tm-theme-pro .tm-pro-account-inbox__skeleton span { display: block; height: 18px; border-radius: 999px; background: var(--pro-bg-muted); }
body.tm-theme-pro .tm-pro-account-inbox__skeleton span:nth-child(2) { width: 78%; }
body.tm-theme-pro .tm-pro-account-inbox__skeleton span:nth-child(3) { width: 62%; }
body.tm-theme-pro .tm-pro-account-inbox__skeleton span:nth-child(4) { width: 84%; }
body.tm-theme-pro .tm-pro-account-inbox__message-search { margin-bottom: 14px; }
body.tm-theme-pro .tm-pro-account-inbox__search-row { display: grid; gap: 8px; }
body.tm-theme-pro .tm-pro-account-inbox__message-list { display: grid; gap: 10px; }
body.tm-theme-pro .tm-pro-account-inbox__message {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--pro-border);
    border-radius: 8px;
    background: var(--pro-bg);
    color: var(--pro-fg);
}
body.tm-theme-pro .tm-pro-account-inbox__message:hover { border-color: rgba(37, 99, 235, .45); text-decoration: none; }
body.tm-theme-pro .tm-pro-account-inbox__message-from { color: var(--pro-muted); font-family: var(--pro-mono); font-size: 12px; overflow-wrap: anywhere; }
body.tm-theme-pro .tm-pro-account-inbox__empty {
    display: grid;
    gap: 10px;
    padding: 24px;
    border: 1px dashed var(--pro-border);
    border-radius: 8px;
    background: var(--pro-bg-soft);
}
body.tm-theme-pro .tm-pro-account-inbox__empty h3 { font-size: 18px; font-weight: 800; }
body.tm-theme-pro .tm-pro-account-inbox__toast-stack { position: fixed; z-index: 70; inset-inline-end: 16px; bottom: 16px; display: grid; gap: 8px; }
body.tm-theme-pro .tm-pro-account-inbox__toast {
    max-width: min(340px, calc(100vw - 32px));
    padding: 10px 12px;
    border: 1px solid var(--pro-border);
    border-radius: 8px;
    background: var(--pro-bg);
    color: var(--pro-fg);
    box-shadow: var(--pro-shadow);
    font-weight: 700;
}
body.tm-theme-pro .tm-pro-account-inbox__toast.is-success { border-color: #a7f3d0; color: #065f46; }
body.tm-theme-pro .tm-pro-account-inbox__toast.is-error { border-color: #fecaca; color: #991b1b; }

@media (min-width: 760px) {
    body.tm-theme-pro .tm-pro-account-inbox__copy-row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
    body.tm-theme-pro .tm-pro-account-inbox__search-row { grid-template-columns: minmax(0, 1fr) auto; }
    body.tm-theme-pro .tm-pro-account-inbox__auto { grid-template-columns: auto minmax(120px, 160px) minmax(120px, 160px) minmax(0, 1fr); align-items: center; }
}

@media (min-width: 1060px) {
    body.tm-theme-pro .tm-pro-account-inbox__layout { grid-template-columns: minmax(300px, 360px) minmax(0, 1fr); align-items: start; }
    body.tm-theme-pro .tm-pro-account-inbox__sidebar { position: sticky; top: 92px; }
}

/* ---------------------------------------------------------------------------
   Cookie consent banner (Pro public theme only).
   Scoped to body.tm-theme-pro so legacy layouts (which ship their own
   .tm-cookie styles in tm-bundle.css) are never affected. Markup/data-attrs
   are unchanged; this is visual polish only. Reuses --pro-* design tokens so
   it inherits light/dark theming automatically.
   --------------------------------------------------------------------------- */
body.tm-theme-pro .tm-cookie {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    /* Compact card that keeps a real gap from the browser bottom bar on
       iPhone/Safari (safe-area) with a sensible minimum floor. */
    bottom: max(18px, calc(env(safe-area-inset-bottom) + 12px));
    z-index: 90;
    /* Narrower card so it does not blanket the generator behind it. */
    width: min(680px, calc(100% - 28px));
}
body.tm-theme-pro .tm-cookie[hidden] { display: none; }

body.tm-theme-pro .tm-cookie__inner {
    display: flex;
    align-items: center;
    gap: 12px 18px;
    flex-wrap: wrap;
    background: var(--pro-bg);
    border: 1px solid var(--pro-border);
    border-radius: var(--pro-radius);
    box-shadow: var(--pro-shadow);
    padding: 12px 16px;
}
body.tm-theme-pro .tm-cookie__text { flex: 1 1 300px; min-width: 0; }
body.tm-theme-pro .tm-cookie__title { margin: 0 0 1px; font-size: 14.5px; font-weight: 700; color: var(--pro-fg); }
body.tm-theme-pro .tm-cookie__msg { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--pro-muted); }
body.tm-theme-pro .tm-cookie__msg a { color: var(--pro-blue); text-decoration: underline; }

/* Buttons hug the right on desktop for a clean single-row layout. */
body.tm-theme-pro .tm-cookie__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }
body.tm-theme-pro .tm-cookie__btn {
    font-family: inherit;
    font-weight: 600;
    font-size: 13.5px;
    line-height: 1;
    min-height: 38px;
    padding: 9px 15px;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
/* Accept = primary */
body.tm-theme-pro .tm-cookie__btn--primary { background: var(--pro-blue); color: #fff; }
body.tm-theme-pro .tm-cookie__btn--primary:hover { background: var(--pro-blue-hover); }
/* Reject = secondary/outline */
body.tm-theme-pro .tm-cookie__btn--outline { background: var(--pro-bg); color: var(--pro-fg); border-color: var(--pro-border); }
body.tm-theme-pro .tm-cookie__btn--outline:hover { border-color: var(--pro-blue); color: var(--pro-blue); }
/* Manage = subtle/ghost */
body.tm-theme-pro .tm-cookie__btn--ghost { background: transparent; color: var(--pro-muted); }
body.tm-theme-pro .tm-cookie__btn--ghost:hover { background: var(--pro-bg-muted); color: var(--pro-fg); }

@media (max-width: 640px) {
    body.tm-theme-pro .tm-cookie { width: calc(100% - 20px); bottom: max(12px, calc(env(safe-area-inset-bottom) + 10px)); }
    body.tm-theme-pro .tm-cookie__inner { padding: 12px 14px; gap: 10px; }
    body.tm-theme-pro .tm-cookie__text { flex: 1 1 100%; }
    body.tm-theme-pro .tm-cookie__actions { width: 100%; margin-left: 0; gap: 8px; }
    /* Reject | Accept share the top row; Manage sits subtly beneath. */
    body.tm-theme-pro .tm-cookie__btn--outline { order: 1; flex: 1 1 0; text-align: center; }
    body.tm-theme-pro .tm-cookie__btn--primary { order: 2; flex: 1 1 0; text-align: center; }
    body.tm-theme-pro .tm-cookie__btn--ghost { order: 3; flex: 1 1 100%; text-align: center; }
}

/* Preferences modal (opened by "Manage") */
body.tm-theme-pro .tm-cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
body.tm-theme-pro .tm-cookie-modal[hidden] { display: none; }
body.tm-theme-pro .tm-cookie-modal__overlay { position: absolute; inset: 0; background: rgba(15, 23, 42, .5); }
body.tm-theme-pro .tm-cookie-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    max-height: calc(100vh - 32px);
    overflow: auto;
    background: var(--pro-bg);
    border: 1px solid var(--pro-border);
    border-radius: var(--pro-radius-lg);
    box-shadow: var(--pro-shadow);
    padding: 20px;
}
body.tm-theme-pro .tm-cookie-modal__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
body.tm-theme-pro .tm-cookie-modal__title { margin: 0 0 4px; font-size: 17px; font-weight: 700; color: var(--pro-fg); }
body.tm-theme-pro .tm-cookie-modal__desc { margin: 0; font-size: 13px; line-height: 1.5; color: var(--pro-muted); }
body.tm-theme-pro .tm-cookie-modal__close { background: transparent; border: 0; font-size: 22px; line-height: 1; color: var(--pro-muted); cursor: pointer; padding: 2px 6px; border-radius: 8px; }
body.tm-theme-pro .tm-cookie-modal__close:hover { background: var(--pro-bg-muted); color: var(--pro-fg); }
body.tm-theme-pro .tm-cookie-modal__body { display: grid; gap: 12px; margin: 12px 0 16px; }
body.tm-theme-pro .tm-cookie-pref { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border: 1px solid var(--pro-border); border-radius: 12px; background: var(--pro-bg-soft); }
body.tm-theme-pro .tm-cookie-pref__label { margin: 0 0 2px; font-size: 14px; font-weight: 600; color: var(--pro-fg); }
body.tm-theme-pro .tm-cookie-pref__hint { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--pro-muted); }
body.tm-theme-pro .tm-cookie-chip { font-size: 12px; font-weight: 600; color: var(--pro-green); background: #f0fdf4; border: 1px solid #bbf7d0; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
/* Toggle switch */
body.tm-theme-pro .tm-cookie-switch { position: relative; display: inline-block; width: 44px; height: 26px; flex: none; }
body.tm-theme-pro .tm-cookie-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
body.tm-theme-pro .tm-cookie-slider { position: absolute; inset: 0; background: #cbd5e1; border-radius: 999px; cursor: pointer; transition: background .15s ease; }
body.tm-theme-pro .tm-cookie-slider::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .15s ease; }
body.tm-theme-pro .tm-cookie-switch input:checked + .tm-cookie-slider { background: var(--pro-blue); }
body.tm-theme-pro .tm-cookie-switch input:checked + .tm-cookie-slider::before { transform: translateX(18px); }
body.tm-theme-pro .tm-cookie-modal__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
body.tm-theme-pro .tm-cookie-modal__footer-btns { display: flex; gap: 8px; flex-wrap: wrap; }
body.tm-theme-pro .tm-cookie-modal__footer a { font-size: 13px; color: var(--pro-blue); text-decoration: underline; }

/* End TempMy Pro standalone stylesheet */

/* TEMP-PRO-MOBILE-AUDIT-1
   Mobile polish for current Pro theme pages.
   Scope: language/preferences panel viewport fit, account sheet layering,
   footer clearance above mobile browser chrome/bottom nav.
   CSS-only. No route/layout/JS changes. */
@media (max-width: 767.98px) {
  html,
  body.tm-theme-pro {
    max-width: 100%;
    overflow-x: hidden;
  }

  body.tm-theme-pro {
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }

  body.tm-theme-pro .tm-pro-header {
    z-index: 3200;
  }

  body.tm-theme-pro .tm-pro-preferences,
  body.tm-theme-pro .tm-pro-language-menu,
  body.tm-theme-pro .tm-pro-account-menu {
    position: relative;
  }

  body.tm-theme-pro .tm-pro-preferences__panel {
    position: fixed;
    top: calc(76px + env(safe-area-inset-top, 0px));
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
    max-height: min(66vh, 560px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    z-index: 4300;
  }

  html[dir="rtl"] body.tm-theme-pro .tm-pro-preferences__panel {
    right: 12px;
    left: 12px;
  }

  body.tm-theme-pro .tm-pro-mobile-sheet {
    z-index: 4200;
  }

  body.tm-theme-pro .tm-pro-mobile-sheet__panel {
    max-height: calc(100vh - 92px - env(safe-area-inset-top, 0px));
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  body.tm-theme-pro .tm-pro-footer {
    padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px));
  }

  body.tm-theme-pro .tm-pro-footer__links a,
  body.tm-theme-pro .tm-pro-mobile-sheet__links a,
  body.tm-theme-pro .tm-pro-mobile-sheet__link {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
  }
}


/* Pro account inbox message actions */
body.tm-theme-pro .tm-pro-account-inbox__message {
  display: grid;
  gap: 8px;
}

body.tm-theme-pro .tm-pro-account-inbox__message-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

body.tm-theme-pro .tm-pro-account-inbox__message-actions .tm-pro-btn {
  min-height: 36px;
  padding: 8px 12px;
}

@media (max-width: 575.98px) {
  body.tm-theme-pro .tm-pro-account-inbox__message-actions {
    justify-content: stretch;
  }

  body.tm-theme-pro .tm-pro-account-inbox__message-actions .tm-pro-btn {
    flex: 1 1 auto;
  }
}
