.tla-portal,
.tla-portal * { box-sizing: border-box; }
.tla-portal {
    --tla-green: #1f6b45;
    --tla-green-dark: #114b30;
    --tla-mint: #eaf4ed;
    --tla-ink: #17231d;
    --tla-muted: #63736a;
    --tla-line: #dce6df;
    --tla-gold: #d5a344;
    color: var(--tla-ink);
    font-family: inherit;
    margin: 24px auto;
    max-width: 1240px;
    min-width: 0;
    overflow: hidden;
    width: min(100%, 1240px);
}
.tla-portal > *,
.tla-auth-grid > *,
.tla-dashboard-grid > *,
.tla-side-stack > * { min-width: 0; }
.tla-portal p,
.tla-portal li,
.tla-portal a,
.tla-portal strong,
.tla-portal small { overflow-wrap: anywhere; }
.tla-portal a { color: var(--tla-green); }
.tla-hero {
    background: radial-gradient(circle at 90% 10%, rgba(213,163,68,.28), transparent 34%), linear-gradient(135deg, #123f2b, #1f6b45 65%, #2c7954);
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(17,75,48,.18);
    color: #fff;
    margin-bottom: 24px;
    overflow: hidden;
    padding: clamp(32px, 6vw, 72px);
    position: relative;
}
.tla-hero > span,
.tla-dashboard-head span,
.tla-panel-heading > span,
.tla-referral-card > div > span {
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.tla-hero h2 { color: inherit; font-size: clamp(34px, 5vw, 68px); letter-spacing: -.045em; line-height: .98; margin: 14px 0 20px; max-width: 800px; }
.tla-hero > p { color: rgba(255,255,255,.8); font-size: clamp(16px, 2vw, 20px); line-height: 1.6; margin: 0; max-width: 760px; }
.tla-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.tla-button.is-light { background: #fff; border-color: #fff; color: var(--tla-green-dark) !important; }
.tla-button.is-light:hover { background: #f3f8f4; }
.tla-button.is-ghost { background: transparent; border-color: rgba(255,255,255,.55); color: #fff !important; }
.tla-button.is-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.tla-benefits { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 36px; max-width: 700px; }
.tla-benefits div { backdrop-filter: blur(8px); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 16px; padding: 18px; }
.tla-benefits strong { display: block; font-size: 26px; }
.tla-benefits small { color: rgba(255,255,255,.72); display: block; margin-top: 3px; }
.tla-content-section { margin: clamp(46px, 7vw, 82px) 0; }
.tla-section-heading { margin: 0 auto 28px; max-width: 760px; text-align: center; }
.tla-section-heading > span,
.tla-join-banner > div > span { color: var(--tla-green); display: block; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.tla-section-heading h2,
.tla-join-banner h2 { color: var(--tla-ink); font-size: clamp(28px, 4vw, 44px); letter-spacing: -.035em; line-height: 1.08; margin: 8px 0 12px; }
.tla-section-heading p,
.tla-join-banner p { color: var(--tla-muted); font-size: 16px; line-height: 1.7; margin: 0; }
.tla-step-grid { counter-reset: tla-step; display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tla-step-grid article,
.tla-audience-grid article,
.tla-rule-grid article { background: #fff; border: 1px solid var(--tla-line); border-radius: 19px; box-shadow: 0 12px 32px rgba(23,35,29,.055); padding: 24px; }
.tla-step-grid article > span { align-items: center; background: var(--tla-mint); border-radius: 999px; color: var(--tla-green-dark); display: inline-flex; font-size: 13px; font-weight: 900; height: 34px; justify-content: center; width: 34px; }
.tla-step-grid h3,
.tla-audience-grid h3,
.tla-rule-grid h3 { color: var(--tla-ink); font-size: 19px; margin: 16px 0 9px; }
.tla-step-grid p,
.tla-audience-grid p { color: var(--tla-muted); line-height: 1.65; margin: 0; }
.tla-audience-section { background: linear-gradient(135deg, #f0f7f2, #f9fbf9); border-radius: 28px; padding: clamp(28px, 5vw, 56px); }
.tla-audience-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tla-audience-grid article { box-shadow: none; }
.tla-audience-grid h3 { margin-top: 0; }
.tla-rule-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tla-rule-grid article { border-top: 4px solid var(--tla-green); }
.tla-rule-grid article.is-excluded { border-top-color: var(--tla-gold); }
.tla-rule-grid h3 { font-size: 23px; margin-top: 0; }
.tla-rule-grid ul { color: var(--tla-muted); display: grid; gap: 12px; line-height: 1.6; margin: 0; padding-left: 20px; }
.tla-faq-list { border-bottom: 1px solid var(--tla-line); margin: 0 auto; max-width: 900px; }
.tla-faq-list details { border-top: 1px solid var(--tla-line); padding: 0 2px; }
.tla-faq-list summary { color: var(--tla-ink); cursor: pointer; font-size: 17px; font-weight: 800; list-style-position: outside; margin-left: 18px; padding: 20px 8px; }
.tla-faq-list details[open] summary { color: var(--tla-green); }
.tla-faq-list p { color: var(--tla-muted); line-height: 1.7; margin: -5px 8px 20px 28px; }
.tla-join-banner { align-items: center; background: linear-gradient(120deg, #edf6ef, #fff8e9); border: 1px solid var(--tla-line); border-radius: 24px; display: flex; gap: 28px; justify-content: space-between; margin: clamp(46px, 7vw, 72px) 0 24px; padding: clamp(25px, 5vw, 46px); }
.tla-join-banner > div { max-width: 750px; }
.tla-join-banner h2 { font-size: clamp(26px, 3vw, 38px); }
.tla-join-banner > .tla-button { flex: 0 0 auto; }
.tla-auth-grid { align-items: start; display: grid; gap: 24px; grid-template-columns: minmax(280px, .78fr) minmax(0, 1.35fr); }
.tla-login,
.tla-application { scroll-margin-top: 110px; }
.tla-panel,
.tla-referral-card,
.tla-dashboard-head {
    background: #fff;
    border: 1px solid var(--tla-line);
    border-radius: 22px;
    box-shadow: 0 14px 38px rgba(23,35,29,.07);
    padding: clamp(22px, 4vw, 34px);
}
.tla-panel h2,
.tla-panel h3,
.tla-dashboard-head h2 { color: var(--tla-ink); margin: 4px 0 18px; }
.tla-panel-heading { margin-bottom: 20px; }
.tla-panel-heading > span,
.tla-dashboard-head span,
.tla-referral-card > div > span { color: var(--tla-green); }
.tla-panel-heading h3 { font-size: 26px; letter-spacing: -.025em; margin: 4px 0 0; }
.tla-form { display: grid; gap: 16px; }
.tla-form-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tla-form label { display: grid; gap: 7px; }
.tla-form label > span { color: #31443a; font-size: 13px; font-weight: 700; }
.tla-form label > small { color: var(--tla-muted); font-size: 12px; line-height: 1.45; }
.tla-form input:not([type="checkbox"]),
.tla-form select,
.tla-form textarea,
.tla-copy-row input {
    appearance: none;
    background: #f8faf8;
    border: 1px solid #cedbd2;
    border-radius: 11px;
    color: var(--tla-ink);
    font: inherit;
    min-height: 46px;
    outline: none;
    padding: 11px 13px;
    width: 100%;
}
.tla-form textarea { resize: vertical; }
.tla-form input:focus,
.tla-form select:focus,
.tla-form textarea:focus,
.tla-copy-row input:focus { border-color: var(--tla-green); box-shadow: 0 0 0 3px rgba(31,107,69,.12); }
.tla-check { align-items: start; display: flex !important; gap: 10px !important; }
.tla-check input { accent-color: var(--tla-green); flex: 0 0 auto; margin-top: 3px; }
.tla-check span { font-weight: 500 !important; line-height: 1.5; }
.tla-button {
    align-items: center;
    background: var(--tla-green);
    border: 1px solid var(--tla-green);
    border-radius: 11px;
    color: #fff !important;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 800;
    justify-content: center;
    min-height: 46px;
    padding: 10px 18px;
    text-decoration: none !important;
}
.tla-button:hover { background: var(--tla-green-dark); }
.tla-button.is-secondary { background: #fff; color: var(--tla-green) !important; }
.tla-button:disabled { cursor: not-allowed; opacity: .45; }
.tla-button.is-loading { opacity: .7; }
.tla-text-link { font-size: 13px; justify-self: start; }
.tla-honeypot { height: 0; left: -10000px; overflow: hidden; position: absolute; width: 0; }
.tla-notice { border-left: 4px solid var(--tla-green); border-radius: 10px; margin: 0 0 18px; padding: 13px 15px; }
.tla-notice.is-success { background: #e8f7ee; border-color: #238554; }
.tla-notice.is-info { background: #eef5fb; border-color: #2d78ad; }
.tla-notice.is-warning { background: #fff7e4; border-color: #d89e25; }
.tla-notice.is-error { background: #fff0ef; border-color: #c94235; }
.tla-dashboard { display: grid; gap: 22px; }
.tla-dashboard-head { align-items: center; display: flex; justify-content: space-between; }
.tla-dashboard-head h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 0; }
.tla-head-actions { align-items: center; display: flex; gap: 14px; }
.tla-inline-form { display: inline; margin: 0; }
.tla-link-button { appearance: none; background: none; border: 0; color: var(--tla-green); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }
.tla-referral-card { align-items: center; background: linear-gradient(115deg, #edf6ef, #fff); display: grid; gap: 24px; grid-template-columns: .65fr 1.35fr; }
.tla-referral-card > div strong { color: var(--tla-green-dark); display: block; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.03em; margin: 6px 0 2px; }
.tla-referral-card small { color: var(--tla-muted); }
.tla-referral-card > label { display: grid; gap: 8px; }
.tla-referral-card > label > span:first-child { font-size: 13px; font-weight: 800; }
.tla-copy-row { display: flex; gap: 9px; }
.tla-copy-row input { background: #fff; min-width: 0; }
.tla-copy-row button { flex: 0 0 auto; }
.tla-stat-grid { display: grid; gap: 14px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tla-stat-grid article { background: #fff; border: 1px solid var(--tla-line); border-radius: 17px; padding: 20px; }
.tla-stat-grid span { color: var(--tla-muted); display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.tla-stat-grid strong { display: block; font-size: clamp(22px, 3vw, 31px); margin-top: 7px; }
.tla-dashboard-grid { align-items: start; display: grid; gap: 22px; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr); }
.tla-side-stack { display: grid; gap: 22px; }
.tla-table-wrap { -webkit-overflow-scrolling: touch; max-width: 100%; overflow: auto; overscroll-behavior-inline: contain; width: 100%; }
.tla-table { border-collapse: collapse; font-size: 14px; min-width: 650px; width: 100%; }
.tla-table th { color: var(--tla-muted); font-size: 11px; letter-spacing: .08em; padding: 10px 12px; text-align: left; text-transform: uppercase; }
.tla-table td { border-top: 1px solid var(--tla-line); padding: 13px 12px; vertical-align: middle; }
.tla-table td small { color: var(--tla-muted); display: block; margin-top: 2px; }
.tla-empty { color: var(--tla-muted); text-align: center; }
.tla-status { background: #edf1ee; border-radius: 999px; color: #526158; display: inline-flex; font-size: 11px; font-weight: 800; padding: 6px 9px; text-transform: uppercase; }
.tla-status.is-active,
.tla-status.is-payable,
.tla-status.is-paid { background: #e2f5e9; color: #15663b; }
.tla-status.is-pending,
.tla-status.is-approved,
.tla-status.is-requested,
.tla-status.is-processing { background: #fff2d5; color: #8a5d00; }
.tla-status.is-void,
.tla-status.is-rejected,
.tla-status.is-reversal { background: #fde7e4; color: #a33228; }
.tla-saved-detail { background: var(--tla-mint); border-radius: 11px; display: flex; justify-content: space-between; margin-bottom: 15px; padding: 12px; }
.tla-form.is-compact { gap: 12px; }
.tla-payout-row { align-items: center; border-top: 1px solid var(--tla-line); display: flex; justify-content: space-between; padding: 11px 0; }
.tla-payout-row strong { font-size: 21px; }
.tla-policy { margin-inline: auto; max-width: 920px; }
.tla-policy h1 { color: var(--tla-ink); font-size: clamp(30px, 5vw, 48px); letter-spacing: -.035em; line-height: 1.08; margin: 0 0 24px; }
.tla-policy h2 { color: var(--tla-green-dark); font-size: clamp(20px, 3vw, 27px); margin: 32px 0 10px; }
.tla-policy p,
.tla-policy li { color: #405148; line-height: 1.75; }
.tla-policy ul { display: grid; gap: 8px; padding-left: 22px; }
html.tla-modal-open,
body.tla-modal-open { overflow: hidden !important; }
.tla-modal[hidden] { display: none !important; }
.tla-modal {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    overflow-y: auto;
    padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
    position: fixed;
    z-index: 999999;
}
.tla-modal-backdrop {
    background: rgba(9, 25, 17, .72);
    backdrop-filter: blur(7px);
    inset: 0;
    opacity: 0;
    position: fixed;
    transition: opacity .18s ease;
}
.tla-modal-dialog {
    background: #fff;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 24px;
    box-shadow: 0 32px 90px rgba(4, 24, 14, .32);
    margin: auto;
    max-height: calc(100dvh - 36px);
    max-width: 520px;
    opacity: 0;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 30px;
    position: relative;
    transform: translateY(18px) scale(.985);
    transition: opacity .18s ease, transform .18s ease;
    width: min(100%, 520px);
    z-index: 1;
}
.tla-modal-dialog.is-wide { max-width: 850px; width: min(100%, 850px); }
.tla-modal.is-open .tla-modal-backdrop { opacity: 1; }
.tla-modal.is-open .tla-modal-dialog { opacity: 1; transform: translateY(0) scale(1); }
.tla-modal-close {
    align-items: center;
    appearance: none;
    background: #edf5ef;
    border: 0;
    border-radius: 999px;
    color: var(--tla-green-dark);
    cursor: pointer;
    display: inline-flex;
    font: 700 26px/1 system-ui, sans-serif;
    height: 42px;
    justify-content: center;
    position: absolute;
    right: 18px;
    top: 18px;
    width: 42px;
    z-index: 2;
}
.tla-modal-close:hover { background: #dfece2; }
.tla-modal .tla-panel { border: 0; border-radius: 0; box-shadow: none; padding: 0; }
.tla-modal .tla-panel-heading { padding-right: 48px; }
.tla-modal-switch {
    align-items: center;
    border-top: 1px solid var(--tla-line);
    color: var(--tla-muted);
    display: flex;
    font-size: 14px;
    gap: 8px;
    justify-content: center;
    margin-top: 22px;
    padding-top: 18px;
    text-align: center;
}
.tla-modal-switch a { font-weight: 800; }
@media (max-width: 900px) {
    .tla-portal { padding-inline: 16px; }
    .tla-step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tla-audience-grid { grid-template-columns: 1fr; }
    .tla-auth-grid,
    .tla-dashboard-grid,
    .tla-referral-card,
    .tla-rule-grid { grid-template-columns: 1fr; }
    .tla-join-banner { align-items: flex-start; flex-direction: column; }
    .tla-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tla-dashboard-head { align-items: flex-start; gap: 16px; }
    .tla-head-actions { flex-wrap: wrap; justify-content: flex-end; }
}
@media (max-width: 600px) {
    .tla-portal {
        margin: 8px auto;
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
    }
    .tla-hero { margin-bottom: 18px; }
    .tla-hero,
    .tla-panel,
    .tla-referral-card,
    .tla-dashboard-head { border-radius: 16px; padding: 20px 17px; }
    .tla-hero h2 { font-size: clamp(32px, 11vw, 46px); line-height: 1.02; margin: 12px 0 16px; }
    .tla-hero > p { font-size: 16px; line-height: 1.55; }
    .tla-benefits { grid-template-columns: 1fr; }
    .tla-benefits { gap: 9px; margin-top: 24px; }
    .tla-benefits div { padding: 14px 15px; }
    .tla-benefits strong { font-size: 22px; }
    .tla-hero-actions { align-items: stretch; flex-direction: column; }
    .tla-hero-actions .tla-button { width: 100%; }
    .tla-content-section { margin: 38px 0; }
    .tla-section-heading { margin-bottom: 20px; }
    .tla-section-heading h2,
    .tla-join-banner h2 { font-size: clamp(27px, 8.8vw, 36px); }
    .tla-step-grid { grid-template-columns: 1fr; }
    .tla-step-grid article,
    .tla-audience-grid article,
    .tla-rule-grid article { border-radius: 16px; padding: 20px 18px; }
    .tla-audience-section { border-radius: 17px; padding: 22px 16px; }
    .tla-section-heading { text-align: left; }
    .tla-rule-grid { gap: 14px; }
    .tla-rule-grid h3 { font-size: 21px; }
    .tla-faq-list summary { font-size: 16px; margin-left: 16px; padding: 17px 5px; }
    .tla-faq-list p { margin: -2px 5px 18px 21px; }
    .tla-join-banner { border-radius: 17px; gap: 20px; margin-top: 38px; padding: 23px 18px; }
    .tla-join-banner > .tla-button { width: 100%; }
    .tla-auth-grid { gap: 18px; }
    .tla-form-grid { grid-template-columns: 1fr; }
    .tla-form { gap: 14px; }
    .tla-form input:not([type="checkbox"]),
    .tla-form select,
    .tla-form textarea,
    .tla-copy-row input { font-size: 16px; max-width: 100%; }
    .tla-form textarea { min-height: 105px; }
    .tla-form > .tla-button { width: 100%; }
    .tla-panel-heading h3 { font-size: 24px; }
    .tla-dashboard-head { align-items: flex-start; gap: 15px; }
    .tla-dashboard-head,
    .tla-head-actions { flex-direction: column; }
    .tla-head-actions { align-items: stretch; width: 100%; }
    .tla-head-actions .tla-button,
    .tla-head-actions .tla-inline-form,
    .tla-head-actions .tla-inline-form button { width: 100%; }
    .tla-copy-row { align-items: stretch; flex-direction: column; }
    .tla-copy-row button { width: 100%; }
    .tla-stat-grid { grid-template-columns: 1fr 1fr; }
    .tla-stat-grid article:last-child { grid-column: 1 / -1; }
    .tla-stat-grid article { padding: 17px 15px; }
    .tla-stat-grid strong { font-size: 23px; }
    .tla-table-wrap { border: 1px solid var(--tla-line); border-radius: 12px; }
    .tla-table { font-size: 13px; min-width: 580px; }
    .tla-table th,
    .tla-table td { padding-left: 10px; padding-right: 10px; }
    .tla-saved-detail,
    .tla-payout-row { align-items: flex-start; flex-direction: column; gap: 5px; }
    .tla-text-link { font-size: 14px; padding-block: 4px; }
    .tla-notice { line-height: 1.5; }
    .tla-modal {
        align-items: flex-end;
        padding: max(8px, env(safe-area-inset-top)) 0 0;
    }
    .tla-modal-dialog,
    .tla-modal-dialog.is-wide {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        border-radius: 22px 22px 0 0;
        margin: auto 0 0;
        max-height: calc(100dvh - max(8px, env(safe-area-inset-top)));
        max-width: none;
        padding: 25px 16px max(22px, env(safe-area-inset-bottom));
        transform: translateY(32px);
        width: 100%;
    }
    .tla-modal-close { height: 40px; right: 14px; top: 14px; width: 40px; }
    .tla-modal .tla-panel-heading { padding-right: 44px; }
    .tla-modal-switch { align-items: stretch; flex-direction: column; gap: 5px; }
}
@media (max-width: 420px) {
    .tla-portal { padding-left: max(9px, env(safe-area-inset-left)); padding-right: max(9px, env(safe-area-inset-right)); }
    .tla-hero,
    .tla-panel,
    .tla-referral-card,
    .tla-dashboard-head { padding: 18px 15px; }
    .tla-hero h2 { font-size: clamp(30px, 10.5vw, 40px); }
    .tla-stat-grid { grid-template-columns: 1fr; }
    .tla-stat-grid article:last-child { grid-column: auto; }
    .tla-button { padding-inline: 13px; width: 100%; }
    .tla-check { gap: 8px !important; }
    .tla-check span { overflow-wrap: anywhere; }
}

/* v1.3: existing-account application and session feedback. */
.tla-shared-account-note { grid-column: 1 / -1; min-width: 0; padding: 12px 14px; border: 1px solid #cbded1; border-radius: 12px; background: #f1f8f4; color: #204631; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.tla-form input[readonly] { background: #f4f6f5; color: #3e5046; }
.tla-form [data-tla-submit-error] { width: 100%; box-sizing: border-box; overflow-wrap: anywhere; }
.tla-status.is-review { background: #fff1d6; color: #714806; }

/* v1.3.1: manual dashboard coach-mark tour. */
.tla-tour-launch {
    align-items: center;
    appearance: none;
    background: #eef7f1;
    border: 1px solid #cfe2d5;
    border-radius: 999px;
    color: var(--tla-green-dark);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 13px;
    font-weight: 850;
    gap: 7px;
    min-height: 40px;
    padding: 7px 13px 7px 9px;
    white-space: nowrap;
}
.tla-tour-launch:hover { background: #e3f1e8; border-color: #b8d5c2; }
.tla-tour-launch:focus-visible { outline: 3px solid rgba(31,107,69,.2); outline-offset: 2px; }
.tla-tour-launch-icon {
    align-items: center;
    background: var(--tla-green);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex: 0 0 25px;
    font-size: 14px;
    font-weight: 900;
    height: 25px;
    justify-content: center;
    width: 25px;
}
.tla-tour-launch.is-heartbeat { animation: tla-tour-heartbeat 1.05s ease-in-out 4; transform-origin: center; }
@keyframes tla-tour-heartbeat {
    0%, 100% { box-shadow: 0 0 0 0 rgba(31,107,69,0); transform: scale(1); }
    18% { box-shadow: 0 0 0 7px rgba(31,107,69,.12); transform: scale(1.045); }
    36% { box-shadow: 0 0 0 0 rgba(31,107,69,0); transform: scale(1); }
    53% { box-shadow: 0 0 0 5px rgba(31,107,69,.09); transform: scale(1.028); }
    72% { box-shadow: 0 0 0 0 rgba(31,107,69,0); transform: scale(1); }
}
.tla-tour-dialog[open] {
    --tla-green: #1f6b45;
    --tla-green-dark: #114b30;
    background: transparent;
    border: 0;
    height: 100dvh;
    inset: 0;
    margin: 0;
    max-height: none;
    max-width: none;
    overflow: visible;
    padding: 0;
    position: fixed;
    width: 100vw;
    z-index: 1000000;
}
.tla-tour-dialog::backdrop { background: transparent; backdrop-filter: none; }
.tla-tour-spotlight {
    border: 3px solid #2f8b58;
    border-radius: 18px;
    box-shadow: 0 0 0 5px rgba(47,139,88,.14), 0 10px 34px rgba(15,69,42,.14);
    pointer-events: none;
    position: fixed;
    transition: left .18s ease, top .18s ease, width .18s ease, height .18s ease;
    z-index: 1;
}
.tla-tour-card {
    background: #fff;
    border: 1px solid #cfe0d4;
    border-radius: 18px;
    box-shadow: 0 22px 60px rgba(12,48,30,.22);
    color: #17231d;
    max-width: calc(100vw - 20px);
    overflow: visible;
    padding: 0;
    position: fixed;
    width: min(350px, calc(100vw - 20px));
    z-index: 3;
}
.tla-tour-card-head {
    align-items: center;
    background: #f0f8f2;
    border-radius: 17px 17px 0 0;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    padding: 10px 12px 8px 14px;
}
.tla-tour-counter { color: #315d43; font-size: 11px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.tla-tour-close {
    align-items: center;
    appearance: none;
    background: #e3efe6;
    border: 0;
    border-radius: 50%;
    color: #18452d;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 34px;
    font: 700 22px/1 system-ui,sans-serif;
    height: 34px;
    justify-content: center;
    width: 34px;
}
.tla-tour-body { padding: 12px 14px 10px; }
.tla-tour-title { color: #17231d; font-size: 19px; letter-spacing: -.02em; line-height: 1.2; margin: 0 0 7px; }
.tla-tour-text { color: #52655a; font-size: 13px; line-height: 1.5; margin: 0; }
.tla-tour-actions {
    align-items: center;
    border-top: 1px solid #e4ece7;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    padding: 9px 14px 11px;
}
.tla-tour-actions button {
    appearance: none;
    border: 1px solid #cbd9cf;
    border-radius: 10px;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    min-height: 40px;
    padding: 8px 13px;
}
.tla-tour-back { background: #fff; color: #315243; }
.tla-tour-next { background: var(--tla-green); border-color: var(--tla-green) !important; color: #fff; }
.tla-tour-back:disabled { cursor: default; opacity: .38; }
.tla-tour-arrow {
    background: #fff;
    border-left: 1px solid #cfe0d4;
    border-top: 1px solid #cfe0d4;
    height: 16px;
    pointer-events: none;
    position: fixed;
    transform: rotate(45deg);
    width: 16px;
    z-index: 2;
}
.tla-tour-dialog[data-placement="bottom"] .tla-tour-arrow { background: #f0f8f2; }
.tla-tour-dialog[data-placement="right"] .tla-tour-arrow,
.tla-tour-dialog[data-placement="left"] .tla-tour-arrow { background: #fff; }
@media (max-width: 600px) {
    .tla-head-actions .tla-tour-launch { justify-content: center; width: 100%; }
    .tla-tour-card { border-radius: 16px; width: min(330px, calc(100vw - 18px)); }
    .tla-tour-card-head { border-radius: 15px 15px 0 0; padding: 9px 11px 7px 12px; }
    .tla-tour-body { padding: 10px 12px 8px; }
    .tla-tour-title { font-size: 17px; }
    .tla-tour-text { font-size: 12.5px; }
    .tla-tour-actions { padding: 8px 12px 9px; }
}
@media (prefers-reduced-motion: reduce) {
    .tla-tour-launch.is-heartbeat { animation: none !important; }
    .tla-tour-spotlight { transition: none !important; }
}

/* v1.3.2: public dashboard preview using the real affiliate dashboard layout. */
.tla-hero-actions .tla-tour-launch.is-public {
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.42);
    color: #fff;
}
.tla-hero-actions .tla-tour-launch.is-public:hover {
    background: rgba(255,255,255,.2);
    border-color: rgba(255,255,255,.66);
}
.tla-hero-actions .tla-tour-launch.is-public .tla-tour-launch-icon {
    background: #fff;
    color: var(--tla-green-dark);
}
html.tla-demo-preview-open,
body.tla-demo-preview-open { overflow: hidden !important; }
.tla-demo-preview[hidden] { display: none !important; }
.tla-demo-preview {
    background: #f5f8f6;
    inset: 0;
    opacity: 0;
    position: fixed;
    transition: opacity .18s ease;
    z-index: 999980;
}
.tla-demo-preview.is-open { opacity: 1; }
.tla-demo-preview-bar {
    align-items: center;
    background: #123f2b;
    box-shadow: 0 4px 18px rgba(9,44,27,.16);
    color: #fff;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    min-height: 68px;
    padding: 10px max(18px, calc((100vw - 1240px) / 2));
    position: relative;
    z-index: 2;
}
.tla-demo-preview-bar > div { display: grid; gap: 2px; min-width: 0; }
.tla-demo-preview-bar strong { font-size: 15px; }
.tla-demo-preview-bar span { color: rgba(255,255,255,.72); font-size: 12px; line-height: 1.35; }
.tla-demo-preview-close {
    align-items: center;
    appearance: none;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.26);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 42px;
    font: 700 28px/1 system-ui,sans-serif;
    height: 42px;
    justify-content: center;
    width: 42px;
}
.tla-demo-preview-close:hover { background: rgba(255,255,255,.2); }
.tla-demo-preview-scroll {
    height: calc(100dvh - 68px);
    overflow: auto;
    overscroll-behavior: contain;
    padding: 16px 0 40px;
}
.tla-demo-preview .tla-demo-dashboard { margin-bottom: 0; margin-top: 0; padding-left: 14px; padding-right: 14px; }
.tla-demo-preview .tla-demo-form [disabled],
.tla-demo-preview button[disabled] { cursor: default; opacity: .78; }
.tla-demo-preview .tla-link-button[disabled] { color: var(--tla-green); }
.tla-demo-preview .tla-table small { display: block; }
@media (max-width: 600px) {
    .tla-hero-actions .tla-tour-launch.is-public { justify-content: center; width: 100%; }
    .tla-demo-preview-bar { min-height: 76px; padding: 9px 12px; }
    .tla-demo-preview-bar strong { font-size: 14px; }
    .tla-demo-preview-bar span { font-size: 11px; }
    .tla-demo-preview-close { flex-basis: 40px; height: 40px; width: 40px; }
    .tla-demo-preview-scroll { height: calc(100dvh - 76px); padding-top: 10px; }
    .tla-demo-preview .tla-demo-dashboard { padding-left: 9px; padding-right: 9px; }
}
@media (prefers-reduced-motion: reduce) {
    .tla-demo-preview { transition: none !important; }
}
