/* TextMe affiliate area. Inherits the theme font; RTL first. */
.tm-aff{--ink:#1f2d3d;--muted:#5b6b7a;--teal:#07cbd2;--teal-ink:#067f84;--teal-soft:#e6f9fa;--mist:#f4f8f9;--line:#e1e8ec;
  --warn:#8a5300;--warn-bg:#fff5e1;--ok:#0f7a52;--ok-bg:#e5f6ee;--err:#b42318;--err-bg:#fdeceb;--grey-bg:#eef1f4;
  direction:rtl;text-align:right;max-width:1000px;margin:0 auto;padding:8px 16px 48px;box-sizing:border-box;color:var(--ink);line-height:1.55;font-size:16px}
.tm-aff *,.tm-aff *::before,.tm-aff *::after{box-sizing:border-box}
.tm-aff h2,.tm-aff h3,.tm-aff h4{color:var(--ink);font-family:inherit;line-height:1.25;margin:0}
.tm-aff p{margin:0}
.tm-aff a{color:var(--teal-ink);text-decoration:underline;text-underline-offset:3px}
.tm-aff a:hover{color:var(--ink)}
.tm-aff bdi{unicode-bidi:isolate}
.tm-aff-sr{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important;margin:-1px!important;padding:0!important;border:0!important}
.tm-aff-ico{flex:none;display:inline-block;vertical-align:middle}
.tm-aff-muted{color:var(--muted)}

/* Fields. The theme hides form labels site-wide, so ours are shown explicitly. */
.tm-aff label:not(.tm-aff-sr){display:block!important;position:static!important;visibility:visible!important;width:auto!important;height:auto!important;clip:auto!important;clip-path:none!important;overflow:visible!important;white-space:normal!important;margin:16px 0 6px!important;font-size:15px;font-weight:600;color:var(--ink);text-align:right}
.tm-aff input[type=text],.tm-aff input[type=email]{display:block;width:100%;height:48px;margin:0;padding:10px 14px;border:1px solid #c9d4dc;border-radius:10px;font:inherit;font-size:16px;line-height:1.2;background:#fff;color:#000;box-shadow:none;transition:border-color .15s,box-shadow .15s}
.tm-aff input::placeholder{color:#9aa8b4;opacity:1}
.tm-aff input:focus{outline:none;border-color:var(--teal);box-shadow:0 0 0 3px rgba(7,203,210,.28)}
.tm-aff input[readonly]{background:var(--mist);color:var(--ink)}
.tm-aff input[dir=ltr]{text-align:left}
.tm-aff .tm-aff-field__hint{display:block;margin-top:5px;font-size:13px;color:var(--muted)}

/* Buttons */
.tm-aff-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;margin:0;padding:10px 22px;border:0;border-radius:10px;background:linear-gradient(90deg,#22ddbf,#07cbd2);color:#05343a;font:inherit;font-size:16px;font-weight:700;line-height:1.2;text-decoration:none!important;cursor:pointer;white-space:nowrap;transition:filter .15s,transform .15s}
.tm-aff-btn:hover{filter:brightness(.96);color:#05343a}
.tm-aff-btn:active{transform:translateY(1px)}
.tm-aff-btn--block{display:flex;width:100%;margin-top:20px}
.tm-aff-btn--soft{background:#fff;color:var(--ink);border:1px solid #c9d4dc}
.tm-aff-btn--soft:hover{color:var(--ink);border-color:var(--teal)}
.tm-aff-btn--ghost{background:transparent;color:var(--ink);border:1px solid transparent}
.tm-aff-btn--ghost:hover{background:var(--mist);color:var(--ink)}
.tm-aff-btn .tm-aff-ico{width:18px;height:18px}
.tm-aff-btn.is-copied{background:var(--ink);color:#fff}
.tm-aff-linkbtn{display:inline;margin:0;padding:0;border:0;background:none;font:inherit;font-weight:700;color:var(--teal-ink);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.tm-aff-linkbtn:hover{color:var(--ink)}
.tm-aff :focus-visible{outline:3px solid var(--teal);outline-offset:2px}
.tm-aff input:focus-visible{outline:none}

/* Messages */
.tm-aff-msg{display:flex;gap:10px;align-items:flex-start;margin:16px 0;padding:12px 14px;border-radius:10px;font-size:15px;font-weight:600}
.tm-aff-msg .tm-aff-ico{margin-top:1px}
.tm-aff-msg--ok{background:var(--ok-bg);color:var(--ok)}
.tm-aff-msg--error{background:var(--err-bg);color:var(--err)}

/* ---------- Login ---------- */
.tm-aff-auth{display:flex;justify-content:center;padding:8px 0 24px}
.tm-aff-auth__card{width:100%;max-width:440px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:28px 24px 24px;box-shadow:0 18px 40px -24px rgba(31,45,61,.35)}
.tm-aff-auth h2{font-size:24px;font-weight:800;margin-top:22px}
.tm-aff .tm-aff-auth__lead{margin-top:8px;color:var(--muted);font-size:15px}
.tm-aff-email{font-weight:700;color:var(--ink);word-break:break-all}
.tm-aff .tm-aff-auth__note{display:flex;gap:8px;align-items:center;justify-content:center;margin-top:16px;font-size:13px;color:var(--muted);text-align:center}
.tm-aff-auth__note .tm-aff-ico{width:15px;height:15px}
.tm-aff-auth__alt{margin-top:20px;padding-top:16px;border-top:1px solid var(--line);font-size:14px;color:var(--muted);text-align:center}
.tm-aff-resend{margin:0 0 8px}
.tm-aff-auth__back{font-weight:600}
.tm-aff-progress{display:flex;gap:0;margin:0;padding:0;list-style:none;font-size:13px;font-weight:600;color:var(--muted)}
.tm-aff-progress li{display:flex;align-items:center;gap:8px;flex:1;margin:0;padding:0}
.tm-aff-progress li+li::before{content:"";flex:0 0 28px;height:2px;margin-left:8px;background:var(--line);border-radius:2px}
.tm-aff-progress li.is-current+li::before,.tm-aff-progress li+li.is-current::before{background:var(--teal)}
.tm-aff-progress__n{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;border:2px solid var(--line);background:#fff;font-size:13px;color:var(--muted)}
.tm-aff-progress .is-current{color:var(--ink)}
.tm-aff-progress .is-current .tm-aff-progress__n{border-color:var(--teal);background:var(--teal);color:#05343a}
.tm-aff-progress .is-done .tm-aff-progress__n{border-color:var(--teal);color:var(--teal-ink)}

/* One-time code: plain field without JS, six boxes with JS */
.tm-aff input.tm-aff-code{height:56px;font-size:26px;font-weight:700;letter-spacing:12px;text-align:center!important;padding:8px 12px 8px 0;text-indent:12px}
.tm-aff input.tm-aff-code::placeholder{color:#d3dce3;letter-spacing:12px}
.tm-aff-otp{display:flex;gap:8px;justify-content:space-between;direction:ltr}
.tm-aff .tm-aff-otp input[type=text]{flex:1 1 0;min-width:0;width:auto;max-width:56px;height:58px;padding:0;text-align:center!important;font-size:26px;font-weight:700;border-radius:12px}
.tm-aff .tm-aff-otp input.is-filled{border-color:var(--teal);background:var(--teal-soft)}

/* ---------- Dashboard ---------- */
.tm-aff-head{display:flex;gap:16px;align-items:flex-start;justify-content:space-between;padding:4px 0 20px}
.tm-aff-head h2{font-size:28px;font-weight:800;word-break:break-word}
.tm-aff-badges{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 0;padding:0;list-style:none}
.tm-aff-badge{margin:0;padding:4px 12px;border-radius:999px;background:var(--grey-bg);font-size:14px;font-weight:600;color:var(--ink)}
.tm-aff-badge--rate{background:var(--ink);color:#fff}
.tm-aff-badge--rate bdi{color:var(--teal)}
.tm-aff .tm-aff-head__repeat{margin-top:10px;font-size:15px;color:var(--muted);max-width:60ch}

.tm-aff-menu{position:relative;flex:none}
.tm-aff-menu__btn{display:flex;align-items:center;gap:6px;padding:8px 12px;border:1px solid var(--line);border-radius:999px;background:#fff;font-size:14px;font-weight:600;cursor:pointer;list-style:none;user-select:none}
.tm-aff-menu__btn::-webkit-details-marker{display:none}
.tm-aff-menu__btn::marker{content:""}
.tm-aff-menu__btn .tm-aff-ico{width:17px;height:17px}
.tm-aff-menu__btn:hover{border-color:var(--teal)}
.tm-aff-menu[open] .tm-aff-menu__btn .tm-aff-ico:last-child{transform:rotate(180deg)}
.tm-aff-menu__pop{position:absolute;left:0;top:calc(100% + 8px);z-index:20;width:250px;padding:8px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 16px 36px -16px rgba(31,45,61,.4)}
.tm-aff .tm-aff-menu__email{padding:8px 10px 10px;margin-bottom:6px;border-bottom:1px solid var(--line);font-size:13px;color:var(--muted);word-break:break-all}
.tm-aff-menu form{margin:0}
.tm-aff-menu__item{display:flex;align-items:center;gap:10px;width:100%;margin:0;padding:10px;border:0;border-radius:8px;background:none;font:inherit;font-size:15px;color:var(--ink);text-align:right;cursor:pointer}
.tm-aff-menu__item:hover{background:var(--mist)}
.tm-aff-menu__item .tm-aff-ico{width:17px;height:17px;color:var(--muted)}

/* Tabs: anchor list without JS, tabs with JS */
.tm-aff-tabs{margin:0 0 24px;border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none}
.tm-aff-tabs::-webkit-scrollbar{display:none}
.tm-aff-tabs ul{display:flex;gap:4px;margin:0;padding:0;list-style:none;min-width:max-content}
.tm-aff-tabs li{margin:0;padding:0}
.tm-aff a.tm-aff-tab{position:relative;display:flex;align-items:center;gap:8px;padding:12px 14px;font-size:16px;font-weight:600;color:var(--muted);text-decoration:none;white-space:nowrap}
.tm-aff a.tm-aff-tab:hover{color:var(--ink)}
.tm-aff a.tm-aff-tab[aria-selected=true]{color:var(--ink)}
.tm-aff a.tm-aff-tab[aria-selected=true]::after{content:"";position:absolute;right:10px;left:10px;bottom:-1px;height:3px;border-radius:3px 3px 0 0;background:var(--teal)}
.tm-aff-tab__count{padding:1px 8px;border-radius:999px;background:var(--grey-bg);font-size:12px;color:var(--ink)}
.tm-aff-tab__dot{width:8px;height:8px;border-radius:50%;background:var(--teal)}
.tm-aff-tab__dot--warn{background:#e8a317}

.tm-aff-panel{margin:0 0 40px;scroll-margin-top:170px}
.tm-aff.is-js .tm-aff-panel{margin-bottom:0}
.tm-aff.is-js .tm-aff-panel:not(.is-active){display:none}
.tm-aff-panel__head{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;justify-content:space-between;margin-bottom:16px}
.tm-aff-panel__head h3{font-size:22px;font-weight:800}
.tm-aff .tm-aff-panel__sub{margin-top:4px;font-size:15px;color:var(--muted)}

/* Callouts */
.tm-aff-callout{display:flex;gap:12px;align-items:flex-start;margin:0 0 16px;padding:14px 16px;border-radius:12px;font-size:15px}
.tm-aff-callout .tm-aff-ico{margin-top:2px}
.tm-aff-callout--warn{background:var(--warn-bg);color:#5c3a00}
.tm-aff-callout--warn .tm-aff-ico{color:var(--warn)}
.tm-aff-callout--action{background:var(--teal-soft);color:var(--ink)}
.tm-aff-callout--action .tm-aff-ico{color:var(--teal-ink)}
.tm-aff-callout a{font-weight:700;color:inherit}

/* Link hero: the black of the site header, the brand teal on top */
.tm-aff-hero{overflow:hidden;border-radius:18px;background:var(--mist);border:1px solid var(--line)}
.tm-aff-hero__main{position:relative;padding:28px 28px 24px;background:#000;color:#fff;
  background-image:radial-gradient(520px 220px at 0% 0%,rgba(7,203,210,.30),transparent 70%)}
.tm-aff-hero__main::before{content:"";position:absolute;left:28px;top:30px;width:12px;height:12px;background:var(--teal);box-shadow:20px 0 0 var(--teal),40px 0 0 var(--teal)}
.tm-aff .tm-aff-hero__title{display:flex;align-items:center;gap:10px;color:#fff;font-size:22px;font-weight:800}
.tm-aff-hero__title .tm-aff-ico{color:var(--teal);width:22px;height:22px}
.tm-aff .tm-aff-hero__sub{margin-top:6px;max-width:56ch;color:#c8d2da;font-size:15px}
.tm-aff-copy{display:flex;gap:8px;align-items:stretch;margin-top:12px}
.tm-aff-copy input{flex:1 1 auto;min-width:0}
.tm-aff-copy--hero{margin-top:18px}
.tm-aff .tm-aff-copy--hero input[type=text]{height:56px;border:1px solid #2f3b46;background:#121a21;color:#fff;font-size:18px;font-weight:600}
.tm-aff .tm-aff-copy--hero input[type=text]:focus{border-color:var(--teal)}
.tm-aff-copy--hero .tm-aff-btn{min-height:56px;padding:0 26px}
.tm-aff-share{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:16px}
.tm-aff-share__l{font-size:14px;color:#c8d2da;margin-left:4px}
.tm-aff a.tm-aff-share__btn{display:inline-flex;align-items:center;gap:7px;padding:7px 14px;border:1px solid #3a4652;border-radius:999px;color:#fff;font-size:14px;font-weight:600;text-decoration:none}
.tm-aff a.tm-aff-share__btn:hover{border-color:var(--teal);color:#fff}
.tm-aff-share__btn .tm-aff-ico{width:16px;height:16px;color:var(--teal)}
.tm-aff-hero__camp{padding:20px 28px 24px}
.tm-aff .tm-aff-hero__camptitle{font-size:17px;font-weight:800}
.tm-aff .tm-aff-hero__hint{margin-top:4px;font-size:14px;color:var(--muted);max-width:70ch}
.tm-aff-hero__camp label:not(.tm-aff-sr){margin-top:12px}
.tm-aff-hero__camp #tm-aff-campaign{max-width:340px}

/* KPIs */
.tm-aff-kpis{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:24px}
.tm-aff-kpi-group{border:1px solid var(--line);border-radius:14px;background:#fff;padding:18px 18px 16px}
.tm-aff .tm-aff-kpi-group__t{font-size:15px;font-weight:700;color:var(--muted);margin-bottom:14px}
.tm-aff-kpi-row{display:grid;grid-template-columns:repeat(3,1fr)}
.tm-aff-stat{display:flex;flex-direction:column;gap:2px;padding:0 14px;border-right:1px solid var(--line);min-width:0}
.tm-aff-stat:first-child{padding-right:0;border-right:0}
.tm-aff-stat:last-child{padding-left:0}
.tm-aff-stat__i{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;margin-bottom:8px;border-radius:10px;background:var(--mist);color:var(--teal-ink)}
.tm-aff-stat__i .tm-aff-ico{width:18px;height:18px}
.tm-aff-stat__l{font-size:14px;font-weight:600;color:var(--ink)}
.tm-aff-stat__v{font-size:24px;font-weight:800;line-height:1.2;color:var(--ink);font-variant-numeric:tabular-nums;white-space:nowrap}
.tm-aff-stat__h{font-size:12.5px;line-height:1.4;color:var(--muted)}
.tm-aff-stat--lead .tm-aff-stat__i{background:var(--teal);color:#05343a}
.tm-aff-stat--lead .tm-aff-stat__v{color:var(--teal-ink)}

/* How payouts work: a real sequence, so it is numbered */
.tm-aff-how{margin-top:24px;padding:20px;border-radius:14px;background:var(--mist)}
.tm-aff .tm-aff-how__t{font-size:17px;font-weight:800;margin-bottom:16px}
.tm-aff-how__steps{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:0;padding:0;list-style:none;counter-reset:tmstep}
.tm-aff-how__steps li{position:relative;margin:0;padding:0;counter-increment:tmstep;font-size:14px}
.tm-aff-how__steps li::before{content:counter(tmstep);display:flex;align-items:center;justify-content:center;width:32px;height:32px;margin-bottom:10px;border-radius:50%;background:#fff;border:2px solid var(--teal);font-weight:800;color:var(--ink);position:relative;z-index:1}
.tm-aff-how__steps li:not(:last-child)::after{content:"";position:absolute;top:16px;right:40px;left:-8px;height:2px;background:repeating-linear-gradient(to left,var(--teal) 0 6px,transparent 6px 11px);opacity:.6}
.tm-aff-how__steps strong{display:block;font-size:15px;margin-bottom:2px}
.tm-aff-how__steps span{color:var(--muted)}
.tm-aff-how__steps a{font-weight:700}

/* Tables */
.tm-aff-table-wrap{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff}
.tm-aff-table{width:100%;margin:0;border-collapse:collapse;font-size:15px;border:0}
.tm-aff-table th{padding:12px 16px;background:var(--mist);border:0;border-bottom:1px solid var(--line);font-size:13px;font-weight:700;color:var(--muted);text-align:right;white-space:nowrap}
.tm-aff-table td{padding:13px 16px;border:0;border-bottom:1px solid var(--line);text-align:right;vertical-align:middle}
.tm-aff-table tbody tr:last-child td{border-bottom:0}
.tm-aff-table tbody tr:hover td{background:#fafcfd}
.tm-aff-num{font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.tm-aff-pill{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:999px;font-size:13px;font-weight:700;white-space:nowrap;background:var(--grey-bg);color:#4a5866}
.tm-aff-pill .tm-aff-ico{width:14px;height:14px}
.tm-aff-pill--pending,.tm-aff-pill--awaiting_invoice{background:var(--warn-bg);color:var(--warn)}
.tm-aff-pill--approved{background:var(--teal-soft);color:var(--teal-ink)}
.tm-aff-pill--paid{background:var(--ok-bg);color:var(--ok)}
.tm-aff-pill--rejected{background:var(--err-bg);color:var(--err)}
.tm-aff-pill--cancelled{background:var(--grey-bg);color:#4a5866;text-decoration:line-through}

.tm-aff-pager{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin-top:16px}
.tm-aff-pager a,.tm-aff-pager span{display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:40px;padding:0 12px;border-radius:10px;border:1px solid var(--line);color:var(--ink);text-decoration:none;font-weight:600}
.tm-aff-pager a:hover{border-color:var(--teal)}
.tm-aff-pager .is-current{background:var(--ink);border-color:var(--ink);color:#fff}
.tm-aff-pager .tm-aff-pager__gap{border:0;min-width:20px;padding:0}

.tm-aff-empty{display:flex;flex-direction:column;align-items:center;gap:6px;padding:40px 20px;border:1px dashed #c9d4dc;border-radius:14px;text-align:center;background:#fff}
.tm-aff-empty>.tm-aff-ico{width:40px;height:40px;color:var(--teal);margin-bottom:6px}
.tm-aff .tm-aff-empty__t{font-size:18px;font-weight:800}
.tm-aff .tm-aff-empty__d{max-width:44ch;color:var(--muted);font-size:15px}
.tm-aff-empty .tm-aff-btn{margin-top:14px}

/* Bank details */
.tm-aff-dl{display:grid;grid-template-columns:1fr 1fr;margin:0;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff}
.tm-aff-dl__row{padding:14px 18px;border-bottom:1px solid var(--line)}
.tm-aff-dl__row:nth-child(odd){border-left:1px solid var(--line)}
.tm-aff-dl__row:nth-last-child(-n+2){border-bottom:0}
.tm-aff-dl dt{margin:0;font-size:13px;font-weight:600;color:var(--muted)}
.tm-aff-dl dd{margin:2px 0 0;font-size:16px;font-weight:700;color:var(--ink);word-break:break-word}
.tm-aff-dl dd .tm-aff-muted{font-weight:500}
.tm-aff-bank__actions{display:flex;flex-wrap:wrap;gap:12px 16px;align-items:center;margin-top:18px}
.tm-aff .tm-aff-note{display:flex;gap:8px;align-items:center;font-size:14px;color:var(--muted)}
.tm-aff-note .tm-aff-ico{width:16px;height:16px}
.tm-aff-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}
.tm-aff-bankform__actions{display:flex;gap:10px;margin-top:24px}

/* Toast */
.tm-aff-toast{position:fixed;bottom:24px;left:50%;z-index:9999;transform:translate(-50%,20px);padding:12px 20px;border-radius:12px;background:var(--ink);color:#fff;font-size:15px;font-weight:600;box-shadow:0 12px 30px -10px rgba(0,0,0,.45);opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;max-width:calc(100vw - 32px)}
.tm-aff-toast:empty{padding:0}
.tm-aff-toast.is-on{opacity:1;transform:translate(-50%,0)}

/* ---------- Responsive ---------- */
@media (max-width:860px){
  .tm-aff-kpis{grid-template-columns:1fr}
  .tm-aff-how__steps{grid-template-columns:1fr 1fr;row-gap:20px}
  .tm-aff-how__steps li:nth-child(2)::after{display:none}
}
@media (max-width:640px){
  .tm-aff{padding:0 16px 40px}
  .tm-aff-head{padding-bottom:16px}
  .tm-aff-head h2{font-size:23px}
  .tm-aff-menu__btn span{display:none}
  .tm-aff-tabs{margin-left:-16px;margin-right:-16px;padding:0 10px}
  .tm-aff a.tm-aff-tab{padding:12px 8px;font-size:14.5px;gap:6px}
  .tm-aff-panel{scroll-margin-top:90px}
  .tm-aff-hero{border-radius:16px}
  .tm-aff-hero__main{padding:22px 18px 20px}
  .tm-aff-hero__main::before{left:18px;top:24px;width:9px;height:9px;box-shadow:15px 0 0 var(--teal),30px 0 0 var(--teal)}
  .tm-aff .tm-aff-hero__title{font-size:19px}
  .tm-aff-copy--hero{flex-direction:column}
  .tm-aff .tm-aff-copy--hero input[type=text]{font-size:15px;height:50px}
  .tm-aff-copy--hero .tm-aff-btn{min-height:50px}
  .tm-aff-hero__camp{padding:18px}
  .tm-aff-hero__camp #tm-aff-campaign{max-width:none}
  .tm-aff-copy .tm-aff-btn{padding:0 14px}
  .tm-aff-kpi-group{padding:14px 16px 6px}
  .tm-aff-kpi-row{grid-template-columns:1fr}
  .tm-aff-stat{display:grid;grid-template-columns:auto 1fr auto;grid-template-areas:"i l v" "i h v";column-gap:12px;align-items:center;padding:12px 0!important;border-right:0;border-top:1px solid var(--line)}
  .tm-aff-stat:first-child{border-top:0;padding-top:0!important}
  .tm-aff-stat__i{grid-area:i;margin:0}
  .tm-aff-stat__l{grid-area:l}
  .tm-aff-stat__h{grid-area:h}
  .tm-aff-stat__v{grid-area:v;font-size:20px;text-align:left}
  .tm-aff-how{padding:18px 16px}
  .tm-aff-how__steps{grid-template-columns:1fr;row-gap:14px}
  .tm-aff-how__steps li{padding-right:44px;min-height:32px}
  .tm-aff-how__steps li::before{position:absolute;right:0;top:0;margin:0}
  .tm-aff-how__steps li:not(:last-child)::after{display:block;top:36px;bottom:-12px;right:15px;left:auto;width:2px;height:auto;background:repeating-linear-gradient(to bottom,var(--teal) 0 5px,transparent 5px 9px)}
  .tm-aff-how__steps li:nth-child(2)::after{display:block}
  /* tables become stacked cards */
  .tm-aff-table-wrap{border:0;border-radius:0;background:none;overflow:visible}
  .tm-aff-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .tm-aff-table,.tm-aff-table tbody,.tm-aff-table tr,.tm-aff-table td{display:block;width:100%}
  .tm-aff-table tr{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;margin-bottom:10px;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:#fff}
  .tm-aff-table td{padding:0;border:0!important;font-size:15px}
  .tm-aff-table td::before{content:attr(data-label);display:block;font-size:12px;font-weight:600;color:var(--muted)}
  .tm-aff-table tbody tr:hover td{background:none}
  .tm-aff-dl,.tm-aff-grid{grid-template-columns:1fr}
  .tm-aff-dl__row{border-left:0!important;border-bottom:1px solid var(--line)!important}
  .tm-aff-dl__row:last-child{border-bottom:0!important}
  .tm-aff-auth__card{padding:22px 18px 20px;border-radius:14px}
  .tm-aff-bankform__actions .tm-aff-btn{flex:1}
}
@media (prefers-reduced-motion:reduce){
  .tm-aff *,.tm-aff-toast{transition:none!important}
}
