/* sg2026 page group «reseller» (e: reseller panel). Loaded after app.css by skin.helper (A284), with its own ?v=filemtime.
   OWNER: the Felix instance assigned to this group in the install plan, «Wave split». Edit ONLY this file, your group's view
   overrides and skin/manifest/reseller.json. Tokens, shell and shared components live in app.css (B4 owner): ask, never copy.
   SCOPE RULE: every rule starts with html[data-skin="sg26"] and a selector unique to the page (its .skeleton id, its view root
   class, or body:has(<unique element>)), so nothing leaks to other groups. Existing tokens only (GL-003 §7.7).
   Boards: Reseller* (18), AdminResellers* (5)

   W1 (Felix, 2026-10-10). The reseller views already carry the boards' structure (the boards were drawn from them, 05/10):
   one class vocabulary, rsp-*, from reseller-panel.css. This file re-dresses that vocabulary with the kit's look, so the panel
   pages match their boards without forking the views. The rsp-* classes are the reseller plugin's own (never generic product
   components); their kit equivalents (.card .btn .input .table .badge .alert) are read here as token values, not copied as
   classes. Roots: #reseller-portal (tenant panel shell), #reseller-signup (signup/setup shell on the platform),
   #resellers.rsp-adm (platform admin), body.np-reseller:has(.npr-wrap|.npo-wrap) (customer /subscribe, /checkout). */


/* ==========================================================================================================================
   0. Owner menu on the tenant (panel-navigation.fragment.php). The plugin hides the owner's user items with
      `.nav-menu li a[href$=…]{display:none!important}`; the B3 shell sets `li > a{display:flex!important}` with a higher
      specificity, so the items came back. Same list as the code ($rsp_hide), nothing added: the whole <li> goes.
   ========================================================================================================================== */
html[data-skin="sg26"] body.sghas-f362fdaa > nav .nav-menu li:has(> a:is([href$="/post"], [href$="/calendar"], [href$="/captions"], [href$="/accounts"], [href$="/e/stats"], [href$="/e/reactions"], [href$="/feedback"], [href$="/e/coupon"], [href$="/e/helpcenter"], [href$="/e/support-ticket"])) {
  display: none !important;
}

/* Board icons for the 10 panel items (decision C), same mask mechanism as the shell (app.css §10, --sg-i). */
html[data-skin="sg26"] body > nav .nav-menu a[href$="/reseller/"]{--sg-i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 14 4-4'/%3E%3Cpath d='M3.34 19a10 10 0 1 1 17.32 0'/%3E%3C/svg%3E")}
html[data-skin="sg26"] body > nav .nav-menu a[href$="/e/management/?a=users"]{--sg-i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E")}
html[data-skin="sg26"] body > nav .nav-menu a[href$="/reseller/tickets"]{--sg-i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='m4.93 4.93 4.24 4.24M14.83 9.17l4.24-4.24M14.83 14.83l4.24 4.24M9.17 14.83l-4.24 4.24'/%3E%3C/svg%3E")}
html[data-skin="sg26"] body > nav .nav-menu a[href$="/reseller/branding"]{--sg-i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72'/%3E%3Cpath d='m14 7 3 3M5 6v4M19 14v4M10 2v2M7 8H3M21 16h-4M11 3H9'/%3E%3C/svg%3E")}
html[data-skin="sg26"] body > nav .nav-menu a[href$="/reseller/domain"]{--sg-i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20M2 12h20'/%3E%3C/svg%3E")}
html[data-skin="sg26"] body > nav .nav-menu a[href$="/reseller/connect"]{--sg-i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='14' x='2' y='5' rx='2'/%3E%3Cpath d='M2 10h20'/%3E%3C/svg%3E")}
html[data-skin="sg26"] body > nav .nav-menu a[href$="/reseller/pricing"]{--sg-i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12.59 2.59A2 2 0 0 0 11.17 2H4a2 2 0 0 0-2 2v7.17a2 2 0 0 0 .59 1.41l8.7 8.7a2.43 2.43 0 0 0 3.42 0l6.58-6.58a2.43 2.43 0 0 0 0-3.42z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1'/%3E%3C/svg%3E")}
html[data-skin="sg26"] body > nav .nav-menu a[href$="/reseller/proxies"]{--sg-i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m18 14 4 4-4 4M18 2l4 4-4 4'/%3E%3Cpath d='M2 18h1.97a4 4 0 0 0 3.3-1.7l5.45-8.6a4 4 0 0 1 3.3-1.7H22M2 6h1.97a4 4 0 0 1 3.3 1.7l.53.8M22 18h-5.95a4 4 0 0 1-3.3-1.7l-.53-.8'/%3E%3C/svg%3E")}
html[data-skin="sg26"] body > nav .nav-menu a[href$="/reseller/mail"]{--sg-i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E")}
html[data-skin="sg26"] body > nav .nav-menu a[href$="/reseller/ai"]{--sg-i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z'/%3E%3C/svg%3E")}
html[data-skin="sg26"] body > nav .nav-menu a:is([href$="/reseller/"], [href$="/e/management/?a=users"], [href$="/reseller/tickets"], [href$="/reseller/branding"], [href$="/reseller/domain"], [href$="/reseller/connect"], [href$="/reseller/pricing"], [href$="/reseller/proxies"], [href$="/reseller/mail"], [href$="/reseller/ai"]) :is(.sli, .mdi)::before {
  content: "" !important; display: block; width: 1em; height: 1em; background: currentColor;
  -webkit-mask: var(--sg-i) center/100% 100% no-repeat; mask: var(--sg-i) center/100% 100% no-repeat;
}


/* ==========================================================================================================================
   1. Column. Boards: <main class="content"><div class="rs-col"> (960, dashboard/tickets/signup «is-wide» 1200), no outer
      surface: the panel used to paint .rsp as a card of its own. Gaps = --gap-block.
   ========================================================================================================================== */
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) > .container-1200 { max-width: none; width: auto; margin: 0; padding: 0; }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp {
  --rsp-bg: transparent; --rsp-surface: var(--surface); --rsp-surface-alt: var(--surface-alt); --rsp-border: var(--border);
  --rsp-control-border: var(--border-strong); --rsp-text: var(--text); --rsp-radius: var(--r-md);
  --rsp-accent: var(--brand-primary); --rsp-on-accent: var(--brand-on-primary); --rsp-link: var(--brand-primary-text); --rsp-ring: var(--brand-focus-ring);
  background: transparent; color: var(--text); min-height: 0; font: 400 14px/22px var(--f);
}
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-main { max-width: 960px; margin: 0; padding: 0; outline: 0; }
html[data-skin="sg26"] body #reseller-portal .rsp-main:has(.rsp-kpis, .sta-wrap),
html[data-skin="sg26"] body #reseller-signup .rsp-main:has(.rsp-signup) { max-width: 1200px; }

/* head: .rs-head = h1 28/34 + body-lg text-2, gap 6, then the block gap */
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-title {
  margin: 0 0 6px; font: 500 28px/34px var(--f) !important; letter-spacing: -.027em; color: var(--text);
}
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-sub {
  margin: 0 0 var(--gap-block); font: 400 16px/25px var(--f); color: var(--text-2);
}
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-section-title {
  margin: var(--gap-block) 0 6px; font: 500 20px/26px var(--f) !important; letter-spacing: -.018em; color: var(--text);
}
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-muted-text {
  margin: 0 0 16px; font: 400 14px/21px var(--f); color: var(--text-2);
}
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-help { font: 400 12px/16px var(--f); color: var(--text-3); }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-field-error { font: 400 12px/16px var(--f); color: var(--status-danger); }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp a:is(:not([class]), .rsp-textlink) { color: var(--brand-primary-text); }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp a:is(:not([class]), .rsp-textlink):hover { color: var(--sg-soft); }


/* ==========================================================================================================================
   2. Surfaces: .rsp-card / .rsp-kpi / .rsp-tablewrap = kit .card (radius 16, edge gradient, card shadow)
   ========================================================================================================================== */
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) :is(.rsp-card, .rsp-kpi, .rsp-tablewrap, .rsp-panel) {
  position: relative; border-radius: var(--r-lg); border: 1px solid transparent;
  background: var(--card-bg) padding-box, var(--card-edge) border-box; box-shadow: var(--card-shadow); color: var(--text);
}
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-card {
  display: flex; flex-direction: column; gap: 16px; padding: var(--pad-card); margin: 0 0 var(--gap-block); box-sizing: border-box; min-width: 0;
}
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-card > * { margin-top: 0; margin-bottom: 0; }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-card .rsp-section-title { margin: 0; }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-card > .rsp-section-title + .rsp-help { margin-top: -10px; }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-card p { margin: 0; }

/* KPI rows: 5 (customers) / 4 (money) equal columns, gap 24; tile 18/20, caption 12/16 text-2, value kpi 28/34 */
html[data-skin="sg26"] body #reseller-portal .rsp-kpis {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap-block); margin: 0 0 var(--gap-block); padding: 0; list-style: none;
}
html[data-skin="sg26"] body #reseller-portal .rsp-kpis:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
html[data-skin="sg26"] body #reseller-portal .rsp-kpi { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; min-width: 0; }
html[data-skin="sg26"] body #reseller-portal .rsp-kpi-label { margin: 0; font: 400 12px/16px var(--f); letter-spacing: .01em; color: var(--text-2); }
html[data-skin="sg26"] body #reseller-portal .rsp-kpi-value { font: 500 28px/34px var(--f); letter-spacing: -.03em; color: var(--text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
html[data-skin="sg26"] body #reseller-portal .rsp-kpi--suspended .rsp-kpi-value { color: var(--status-danger); }
html[data-skin="sg26"] body #reseller-portal .rsp-kpi--expired .rsp-kpi-value { color: var(--status-warning); }
@media (min-width: 768px) and (max-width: 1279.98px) {
  html[data-skin="sg26"] body #reseller-portal .rsp-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html[data-skin="sg26"] body #reseller-portal .rsp-kpis:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  html[data-skin="sg26"] body #reseller-portal .rsp-kpis,
  html[data-skin="sg26"] body #reseller-portal .rsp-kpis:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}


/* ==========================================================================================================================
   3. Tables = kit .table inside a card (.r-scroll on ledgers)
   ========================================================================================================================== */
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-tablewrap { overflow-x: auto; overscroll-behavior-x: contain; margin: 0 0 var(--gap-block); }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-tablewrap:focus-visible { outline: 2px solid var(--brand-focus-ring); outline-offset: 2px; }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0; background: transparent !important; box-shadow: none; font: 400 14px/20px var(--f); }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-table thead th {
  padding: 10px 16px; background: var(--fill-2) !important; border-bottom: 1px solid var(--border) !important;
  font: 500 12px/16px var(--f) !important; letter-spacing: .02em; text-transform: none; color: var(--text-3) !important; white-space: nowrap; text-align: left;
}
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-table :is(tbody td, tbody th) {
  padding: 14px 16px; background: transparent !important; border-bottom: 1px solid var(--border) !important; color: var(--text) !important;
  font: 400 14px/20px var(--f); vertical-align: middle; text-align: left;
}
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-table tbody th { font-weight: 500; }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-table tbody tr:last-child :is(td, th) { border-bottom: 0 !important; }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-table tbody tr:hover :is(td, th) { background: var(--fill-1) !important; }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-table .rsp-num { text-align: right; font-variant-numeric: tabular-nums; }


/* ==========================================================================================================================
   4. Status pills = kit .badge with .dot; notices = kit .alert (tones by --t / --tc)
   ========================================================================================================================== */
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup, #resellers) .rsp-status {
  --t: var(--t-neutral); --tc: var(--text-2);
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; box-sizing: border-box; border-radius: var(--r-full);
  border: 1px solid rgba(var(--t), .3); background: rgba(var(--t), .1); color: var(--tc); font: 500 12px/16px var(--f); white-space: nowrap;
}
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup, #resellers) .rsp-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup, #resellers) .rsp-status--active { --t: var(--t-success); --tc: var(--status-success); }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup, #resellers) .rsp-status--suspended { --t: var(--t-danger); --tc: var(--status-danger); }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup, #resellers) :is(.rsp-status--expired, .rsp-status--pending) { --t: var(--t-warning); --tc: var(--status-warning); }

html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-notice {
  --t: var(--t-neutral); --tc: var(--text-2);
  display: block; margin: 0 0 var(--gap-block); padding: 14px 16px; border-radius: var(--r-inset);
  border: 1px solid rgba(var(--t), .28); background: rgba(var(--t), .06); color: var(--text); font: 400 14px/21px var(--f);
}
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-card .rsp-notice { margin: 0; }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-notice strong { font-weight: 600; color: var(--text); }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-notice--error { --t: var(--t-danger); --tc: var(--status-danger); }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-notice--warning { --t: var(--t-warning); --tc: var(--status-warning); }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) :is(.rsp-notice--success, .rsp-notice--ok) { --t: var(--t-success); --tc: var(--status-success); }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-notice--info { --t: var(--t-info); --tc: var(--status-info); }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-notice a:not(.rsp-btn) { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-errlist { margin: 6px 0 0; padding-left: 18px; }
/* alert icon as on the boards: a tone glyph before the text (decorative) */
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-notice:not(:has(> .mdi, > svg)) { position: relative; padding-left: 46px; }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-notice:not(:has(> .mdi, > svg))::before {
  content: ""; position: absolute; left: 16px; top: 16px; width: 18px; height: 18px; background: var(--tc);
  -webkit-mask: var(--rs-alert-i) center/100% 100% no-repeat; mask: var(--rs-alert-i) center/100% 100% no-repeat;
  --rs-alert-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4M12 8h.01'/%3E%3C/svg%3E");
}
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-notice--error:not(:has(> .mdi, > svg))::before { --rs-alert-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4M12 16h.01'/%3E%3C/svg%3E"); }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) :is(.rsp-notice--success, .rsp-notice--ok):not(:has(> .mdi, > svg))::before { --rs-alert-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpath d='m9 11 3 3L22 4'/%3E%3C/svg%3E"); }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-notice--warning:not(:has(> .mdi, > svg))::before { --rs-alert-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='m4.93 4.93 4.24 4.24M14.83 9.17l4.24-4.24M14.83 14.83l4.24 4.24M9.17 14.83l-4.24 4.24'/%3E%3C/svg%3E"); }
/* the dashboard's ticket notice is a flex row (inline style in the view): icon in flow there */
html[data-skin="sg26"] body #reseller-portal .rsp-notice[style*="flex"] { display: flex !important; align-items: center !important; }
html[data-skin="sg26"] body #reseller-portal .rsp-notice[style*="flex"]::before { top: 50%; margin-top: -9px; }

html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-empty {
  margin: 0 0 var(--gap-block); padding: 40px 24px; text-align: center; border-radius: var(--r-lg); border: 1px dashed var(--border-dash);
  background: var(--fill-1); color: var(--text-2); font: 400 14px/21px var(--f);
}
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-card .rsp-empty { margin: 0; padding: 0; border: 0; background: transparent; text-align: left; }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-pager { margin: 0 0 var(--gap-block); gap: 10px; }


/* ==========================================================================================================================
   5. Controls: .rsp-btn = .btn-primary (pill 40, glow), --ghost = .btn-ghost, --danger = .btn-danger; fields = .field/.input
   ========================================================================================================================== */
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; box-sizing: border-box;
  border-radius: var(--r-full); border: 1px solid transparent; background: var(--brand-primary); color: var(--brand-on-primary);
  font: 500 14px/20px var(--f); text-decoration: none; white-space: nowrap; cursor: pointer; box-shadow: var(--sg-glow-rest); transition: var(--tr);
}
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-btn:hover { background: var(--brand-primary); color: var(--brand-on-primary); transform: translateY(-1px); box-shadow: var(--sg-glow-hover); }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-btn:active { transform: none; }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-btn:focus-visible { outline: 2px solid var(--brand-focus-ring); outline-offset: 2px; }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-btn:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; transform: none; }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-btn.rsp-btn--ghost { background: transparent; color: var(--text-2); box-shadow: none; }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-btn.rsp-btn--ghost:hover { background: var(--hover-fill); color: var(--text-max); transform: none; }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-btn.rsp-btn--danger {
  --t: var(--t-danger); background: rgba(var(--t), .1); border-color: rgba(var(--t), .3); color: var(--status-danger); box-shadow: none;
}
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-btn.rsp-btn--danger:hover { background: rgba(var(--t), .22); color: var(--danger-hover-fg); transform: none; }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) :is(.rsp-actions, .rsp-form-actions) { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) form > .rsp-form-actions { margin: 0 0 var(--gap-block); }

html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-field { display: flex; flex-direction: column; gap: 6px; margin: 0; max-width: none; }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-field label,
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-asset-field label { margin: 0; font: 500 13px/18px var(--f); color: var(--text); }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) :is(.rsp-input, .rsp-select) {
  display: block; width: 100%; min-width: 0; height: 40px; box-sizing: border-box; padding: 0 12px; margin: 0;
  background: var(--input-bg) !important; border: 1px solid var(--border-strong) !important; border-radius: var(--r-md) !important;
  color: var(--text) !important; font: 400 14px/22px var(--f) !important; box-shadow: none !important; transition: border-color .2s;
}
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) textarea.rsp-input { height: auto; min-height: 96px; padding: 9px 12px; resize: vertical; }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) :is(.rsp-input, .rsp-select)::placeholder { color: var(--text-3); }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) :is(.rsp-input, .rsp-select):hover { border-color: var(--border-strong-hover) !important; }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) :is(.rsp-input, .rsp-select):focus { border-color: var(--brand-primary-border) !important; outline: 0; }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) :is(.rsp-input, .rsp-select):focus-visible { outline: 2px solid var(--brand-focus-ring); outline-offset: 2px; }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) :is(.rsp-field--error .rsp-input, .rsp-input[aria-invalid="true"]) { border-color: var(--status-danger-line) !important; }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) select.rsp-select,
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) select.rsp-input {
  appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background: var(--input-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aeaeb2' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center/16px 16px no-repeat !important;
}
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-check { display: inline-flex; align-items: center; gap: 10px; min-height: 28px; font: 400 14px/20px var(--f); color: var(--text); cursor: pointer; }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--brand-primary); }

/* file inputs = kit .file-in (tonal pill button, no box) */
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-file {
  display: block; width: 100%; max-width: 100%; padding: 0; border: 0 !important; background: transparent !important; border-radius: 0;
  font: 400 13px/20px var(--f); color: var(--text-2);
}
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-file::file-selector-button {
  height: 36px; margin-right: 12px; padding: 0 14px; border-radius: var(--r-full); border: 1px solid var(--border-2);
  background: var(--tonal-bg); color: var(--text); font: 500 13px/18px var(--f); cursor: pointer;
}
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-file:focus-visible { outline: 2px solid var(--brand-focus-ring); outline-offset: 2px; border-radius: var(--r-sm); }

/* code and description lists = kit .code / .kv */
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-code {
  font: 500 13px/20px ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--text); background: var(--fill-3);
  border: 1px solid var(--inset-border); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; word-break: break-all;
}
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-table .rsp-code { background: var(--fill-3); padding: 1px 6px; }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) dl.rsp-dl { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 0 16px; margin: 0; }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) dl.rsp-dl > :is(dt, dd) { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; padding: 12px 0; border-bottom: 1px solid var(--border); }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) dl.rsp-dl > :is(dt, dd):nth-last-child(-n+2) { border-bottom: 0; }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-dl dt { font: 400 13px/20px var(--f); color: var(--text-2); }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-dl dd { margin: 0; font: 500 14px/20px var(--f); color: var(--text); }

html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-confirm { border: 1px solid var(--border-2); border-radius: var(--r-inset); padding: 12px 16px; background: var(--fill-1); }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-confirm > summary { font: 500 14px/20px var(--f); color: var(--status-danger); list-style: none; }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-confirm > summary::-webkit-details-marker { display: none; }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-confirm-body { margin-top: 10px; font: 400 13px/20px var(--f); color: var(--text-2); }

@media (max-width: 767.98px) {
  html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-btn { height: 44px; }
  html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) :is(.rsp-actions, .rsp-form-actions) > .rsp-btn { flex: 1 1 auto; }
  html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) dl.rsp-dl { grid-template-columns: minmax(0, 1fr); }
  html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) dl.rsp-dl > dt { padding-bottom: 0; border-bottom: 0; }
  html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) dl.rsp-dl > dd { padding-top: 4px; }
  html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-file::file-selector-button { height: 44px; }
  html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-card { padding: 16px; }
  html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-title { font-size: 24px !important; line-height: 30px !important; }
}


/* ==========================================================================================================================
   6. Branding: color row, logo tiles (kit .rs-asset 200px tile + field; tiles are theme islands)
   ========================================================================================================================== */
html[data-skin="sg26"] body #reseller-portal .rsp-color-row { display: flex; align-items: center; gap: 10px; }
html[data-skin="sg26"] body #reseller-portal .rsp-color-hex { width: 160px; max-width: 160px; flex: 0 0 auto; }
html[data-skin="sg26"] body #reseller-portal .rsp-swatch {
  width: 44px; height: 40px; padding: 3px; box-sizing: border-box; border: 1px solid var(--border-strong); border-radius: var(--r-md); background: var(--input-bg); cursor: pointer;
}
html[data-skin="sg26"] body #reseller-portal .rsp-swatch::-webkit-color-swatch-wrapper { padding: 0; }
html[data-skin="sg26"] body #reseller-portal .rsp-swatch::-webkit-color-swatch { border: 0; border-radius: 6px; }
html[data-skin="sg26"] body #reseller-portal .rsp-asset {
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; align-items: center; padding: 16px 0; border-top: 1px solid var(--border);
}
html[data-skin="sg26"] body #reseller-portal .rsp-help + .rsp-asset,
html[data-skin="sg26"] body #reseller-portal .rsp-asset:first-of-type { border-top: 0; padding-top: 0; }
html[data-skin="sg26"] body #reseller-portal .rsp-asset-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
html[data-skin="sg26"] body #reseller-portal .rsp-preview {
  width: auto; height: 88px; padding: 12px; box-sizing: border-box; border-radius: var(--r-inset); display: grid; place-items: center;
  background: var(--bg); color: var(--text); border: 1px solid var(--border-2);
}
html[data-skin="sg26"] body #reseller-portal .rsp-preview img { max-height: 56px; max-width: 100%; }
html[data-skin="sg26"] body #reseller-portal .rsp-card:has(.rsp-asset) > .rsp-help { margin-top: -10px; }
@media (max-width: 767.98px) {
  html[data-skin="sg26"] body #reseller-portal .rsp-asset { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  html[data-skin="sg26"] body #reseller-portal .rsp-swatch { height: 44px; }
}


/* ==========================================================================================================================
   7. Forms inside a card stack with the kit's 16px rhythm (.rs-fields); a form that IS the section (mail server) becomes
      the card itself. kv rows: one continuous divider per row (kit .kv).
   ========================================================================================================================== */
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-card form { display: flex; flex-direction: column; gap: 16px; margin: 0; }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-card form > :is(.rsp-field, .rsp-form-actions, .rsp-actions, p, .rsp-notice) { margin: 0; }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-card form > button.rsp-btn { align-self: flex-start; }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-card .rsp-field--wide input[type="number"] { max-width: 240px; }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) dl.rsp-dl { column-gap: 0; }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) dl.rsp-dl > dd { padding-left: 16px; }
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-dl :is(.rsp-muted-text, p) { margin: 0; color: var(--text); font: 400 14px/20px var(--f); }
/* a table inside a card = kit .r-scroll.inset */
html[data-skin="sg26"] body :is(#reseller-portal, #reseller-signup) .rsp-card .rsp-tablewrap {
  margin: 0; border-radius: var(--r-inset); border: 1px solid var(--inset-border); background: var(--fill-3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}
/* /reseller/pricing ledger: sub-rows indented, plan rows with a stronger top line, net in the soft accent */
html[data-skin="sg26"] body #reseller-portal .rsp-table td.rsp-subrow { padding-left: 32px; }
html[data-skin="sg26"] body #reseller-portal .rsp-table tr:has(> td.rsp-subrow) td { padding-top: 8px; padding-bottom: 12px; }
html[data-skin="sg26"] body #reseller-portal .rsp-table:has(td.rsp-subrow) tbody tr:not(:first-child):not(:has(> td.rsp-subrow)) td { border-top: 1px solid var(--border-2) !important; }
html[data-skin="sg26"] body #reseller-portal .rsp-table td.rsp-price-net { color: var(--sg-soft) !important; }

/* /reseller/mail: the save form is the «Il tuo server di posta» card; Porta + Cifratura and Username + Password pair up */
html[data-skin="sg26"] body #reseller-portal .rsp-main > form:has(> input[name="verb"][value="save"]) {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: var(--pad-card); margin: 0 0 var(--gap-block);
  border-radius: var(--r-lg); border: 1px solid transparent; background: var(--card-bg) padding-box, var(--card-edge) border-box; box-shadow: var(--card-shadow);
}
html[data-skin="sg26"] body #reseller-portal .rsp-main > form:has(> input[name="verb"][value="save"]) > * { grid-column: 1 / -1; margin: 0; }
html[data-skin="sg26"] body #reseller-portal .rsp-main > form:has(> input[name="verb"][value="save"]) > .rsp-field:has(#rsp-port, #rsp-enc, #rsp-user, #rsp-pass) { grid-column: auto; align-self: start; }
html[data-skin="sg26"] body #reseller-portal .rsp-main > form:has(> input[name="verb"][value="save"]) > input[type="hidden"] { display: none; }
html[data-skin="sg26"] body #reseller-portal .rsp-main > form:has(> input[name="verb"][value="save"]) > .rsp-section-title { margin: 0; }
html[data-skin="sg26"] body #reseller-portal .rsp-main > form:has(> input[name="verb"][value="test"]) { margin: 0 0 var(--gap-block); }
@media (max-width: 767.98px) {
  html[data-skin="sg26"] body #reseller-portal .rsp-main > form:has(> input[name="verb"][value="save"]) { grid-template-columns: minmax(0, 1fr); padding: 16px; }
}

/* dashboard: the ticket notice's button is .btn-sm on the board */
html[data-skin="sg26"] body #reseller-portal .rsp-notice[style*="flex"] .rsp-btn { height: 32px; padding: 0 14px; font-size: 13px; line-height: 18px; }


/* ==========================================================================================================================
   8. /reseller/ai (fixed dark): the support-ticket settings palette (.sts-*) re-dressed as kit cards and fields
   ========================================================================================================================== */
html[data-skin="sg26"] body #reseller-portal .rsp-main:has(.sts-section) { max-width: 960px; }
html[data-skin="sg26"] body #reseller-portal .sts-wrap { max-width: none; margin: 0; padding: 0; }
html[data-skin="sg26"] body #reseller-portal .sts-wrap form { display: block; margin: 0; }
html[data-skin="sg26"] body #reseller-portal .sts-section {
  display: flex; flex-direction: column; gap: 16px; margin: 0 0 var(--gap-block); padding: var(--pad-card); box-sizing: border-box;
  border-radius: var(--r-lg); border: 1px solid transparent; background: var(--card-bg) padding-box, var(--card-edge) border-box; box-shadow: var(--card-shadow);
}
html[data-skin="sg26"] body #reseller-portal .sts-section > h3 { margin: 0; font: 500 20px/26px var(--f) !important; letter-spacing: -.018em; color: var(--text); text-transform: none; }
html[data-skin="sg26"] body #reseller-portal .sts-section > .lead { margin: -10px 0 0; font: 400 14px/21px var(--f); color: var(--text-2); }
html[data-skin="sg26"] body #reseller-portal .sts-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; }
html[data-skin="sg26"] body #reseller-portal .sts-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
html[data-skin="sg26"] body #reseller-portal .sts-field > label { margin: 0; font: 500 13px/18px var(--f) !important; letter-spacing: 0; text-transform: none; color: var(--text) !important; }
html[data-skin="sg26"] body #reseller-portal .sts-field :is(input:not([type="checkbox"]):not([type="radio"]), select) {
  width: 100%; height: 40px; box-sizing: border-box; padding: 0 12px; margin: 0; background-color: var(--input-bg) !important; border: 1px solid var(--border-strong) !important;
  border-radius: var(--r-md) !important; color: var(--text) !important; font: 400 14px/22px var(--f) !important; box-shadow: none !important;
}
html[data-skin="sg26"] body #reseller-portal .sts-field select {
  appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aeaeb2' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 12px center !important; background-size: 16px 16px !important;
}
html[data-skin="sg26"] body #reseller-portal .sts-field :is(input, select)::placeholder { color: var(--text-3); }
html[data-skin="sg26"] body #reseller-portal .sts-field :is(input, select):focus { border-color: var(--brand-primary-border) !important; }
html[data-skin="sg26"] body #reseller-portal .sts-field.has-error :is(input, select) { border-color: var(--status-danger-line) !important; }
html[data-skin="sg26"] body #reseller-portal .sts-field .hint { font: 400 12px/16px var(--f); color: var(--text-3); text-transform: none; letter-spacing: 0; }
html[data-skin="sg26"] body #reseller-portal .sts-field .error { font: 400 12px/16px var(--f); color: var(--status-danger); }
html[data-skin="sg26"] body #reseller-portal .sts-secret { display: flex; align-items: center; gap: 10px; }
html[data-skin="sg26"] body #reseller-portal .sts-input-wrap { position: relative; flex: 1 1 auto; min-width: 0; }
html[data-skin="sg26"] body #reseller-portal .sts-input-wrap input { padding-right: 48px !important; }
html[data-skin="sg26"] body #reseller-portal .sts-input-wrap .reveal-btn {
  position: absolute; right: 4px; top: 4px; width: 32px; height: 32px; padding: 0; display: grid; place-items: center; border: 0; border-radius: var(--r-full);
  background: transparent; color: var(--text-2); cursor: pointer; transform: none;
}
html[data-skin="sg26"] body #reseller-portal .sts-input-wrap .reveal-btn:hover { background: var(--hover-fill); color: var(--text-max); }
html[data-skin="sg26"] body #reseller-portal .sts-input-wrap .reveal-btn:focus-visible { outline: 2px solid var(--brand-focus-ring); outline-offset: 2px; }
html[data-skin="sg26"] body #reseller-portal .sts-secret .clear-btn {
  --t: var(--t-danger); flex: 0 0 auto; height: 40px; padding: 0 18px; border-radius: var(--r-full); border: 1px solid rgba(var(--t), .3);
  background: rgba(var(--t), .1); color: var(--status-danger); font: 500 14px/20px var(--f); cursor: pointer;
}
html[data-skin="sg26"] body #reseller-portal .sts-secret .clear-btn:hover { background: rgba(var(--t), .22); color: var(--danger-hover-fg); }
html[data-skin="sg26"] body #reseller-portal .sts-status-pill {
  --t: var(--t-info); --tc: var(--status-info);
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: auto; min-height: 24px; padding: 3px 10px; margin: 0;
  border-radius: var(--r-full); border: 1px solid rgba(var(--t), .3); background: rgba(var(--t), .1); color: var(--tc);
  font: 500 12px/16px var(--f) !important; letter-spacing: 0; text-transform: none; white-space: normal;
}
html[data-skin="sg26"] body #reseller-portal .sts-status-pill.ok { --t: var(--t-success); --tc: var(--status-success); }
html[data-skin="sg26"] body #reseller-portal .sts-status-pill .mdi { font-size: 13px; line-height: 1; }
html[data-skin="sg26"] body #reseller-portal .sts-banner {
  --t: var(--t-danger); margin: 0 0 var(--gap-block); padding: 14px 16px; border-radius: var(--r-inset);
  border: 1px solid rgba(var(--t), .28); background: rgba(var(--t), .06); color: var(--text); font: 400 14px/21px var(--f);
}
html[data-skin="sg26"] body #reseller-portal .sts-banner.ok { --t: var(--t-success); }
html[data-skin="sg26"] body #reseller-portal .sts-banner strong { color: var(--text); font-weight: 600; }
html[data-skin="sg26"] body #reseller-portal .sts-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 var(--gap-block); padding: 0; border: 0; background: transparent; }
html[data-skin="sg26"] body #reseller-portal .rsp-btn .mdi { font-size: 16px; line-height: 1; }
@media (max-width: 767.98px) {
  html[data-skin="sg26"] body #reseller-portal .sts-row { grid-template-columns: minmax(0, 1fr); }
  html[data-skin="sg26"] body #reseller-portal .sts-section { padding: 16px; }
}


/* ==========================================================================================================================
   9. /reseller/tickets (fixed dark): the shared support inbox fragment (.sta-*), dressed as the ResellerTickets board
   ========================================================================================================================== */
html[data-skin="sg26"] body #reseller-portal .sta-wrap { padding: 0; margin: 0; }
html[data-skin="sg26"] body #reseller-portal .sta-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-block); margin: 0 0 var(--gap-block); }
html[data-skin="sg26"] body #reseller-portal .sta-stat {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: var(--r-lg); border: 1px solid transparent;
  background: var(--card-bg) padding-box, var(--card-edge) border-box; box-shadow: var(--card-shadow); color: var(--text); text-decoration: none;
}
html[data-skin="sg26"] body #reseller-portal .sta-stat .k { font: 400 12px/16px var(--f); letter-spacing: .01em; text-transform: none; color: var(--text-2); }
html[data-skin="sg26"] body #reseller-portal .sta-stat .v { margin: 0; font: 500 28px/34px var(--f); letter-spacing: -.03em; color: var(--text); }
html[data-skin="sg26"] body #reseller-portal .sta-tabs { display: flex; gap: 4px; margin: 0 0 var(--gap-block); padding: 0; border-bottom: 1px solid var(--border); overflow-x: auto; }
html[data-skin="sg26"] body #reseller-portal .sta-tab {
  display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; min-height: 44px; padding: 0 14px; box-sizing: border-box;
  border-bottom: 2px solid transparent; color: var(--text-2); font: 500 14px/20px var(--f); white-space: nowrap; text-decoration: none; background: transparent;
}
html[data-skin="sg26"] body #reseller-portal .sta-tab:hover { color: var(--text-max); }
html[data-skin="sg26"] body #reseller-portal .sta-tab.is-active { color: var(--text-max); border-bottom-color: var(--brand-primary-border); }
html[data-skin="sg26"] body #reseller-portal .sta-tab .badge {
  --t: var(--t-neutral); display: inline-flex; align-items: center; height: 22px; min-width: 0; padding: 0 9px; border-radius: var(--r-full);
  border: 1px solid rgba(var(--t), .3); background: rgba(var(--t), .1); color: var(--text-2); font: 500 12px/16px var(--f);
}
html[data-skin="sg26"] body #reseller-portal .sta-tab.is-active .badge { background: var(--brand-primary-subtle); border-color: transparent; color: var(--sg-soft); }
html[data-skin="sg26"] body #reseller-portal .sta-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 var(--gap-block); }
html[data-skin="sg26"] body #reseller-portal .sta-search {
  flex: 1 1 260px; min-width: 0; height: 40px; box-sizing: border-box; padding: 0 12px 0 38px; margin: 0; border-radius: var(--r-md);
  border: 1px solid var(--border-strong); color: var(--text); font: 400 14px/22px var(--f); background-color: var(--input-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aeaeb2' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 12px center; background-size: 16px 16px;
}
html[data-skin="sg26"] body #reseller-portal .sta-search::placeholder { color: var(--text-3); }
html[data-skin="sg26"] body #reseller-portal .sta-search:focus { border-color: var(--brand-primary-border); }
html[data-skin="sg26"] body #reseller-portal .sta-prio-pills { gap: 6px; }
html[data-skin="sg26"] body #reseller-portal .sta-prio-pill {
  display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: var(--r-full); border: 1px solid var(--border-2);
  background: var(--fill-3); color: var(--text-2); font: 500 13px/18px var(--f); text-transform: none; letter-spacing: 0; text-decoration: none;
}
html[data-skin="sg26"] body #reseller-portal .sta-prio-pill:hover { color: var(--text-max); border-color: color-mix(in srgb, var(--sg-accent-2) 40%, transparent); }
html[data-skin="sg26"] body #reseller-portal .sta-prio-pill.is-active { background: var(--brand-primary-subtle); border-color: color-mix(in srgb, var(--sg-accent-2) 38%, transparent); color: var(--sg-soft); }
html[data-skin="sg26"] body #reseller-portal .sta-list { gap: 8px; }
html[data-skin="sg26"] body #reseller-portal .sta-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 8px 16px; padding: 14px 18px;
  border-radius: var(--r-lg); border: 1px solid transparent; background: var(--card-bg) padding-box, var(--card-edge) border-box; box-shadow: var(--card-shadow);
  color: var(--text); text-decoration: none; transition: var(--tr);
}
html[data-skin="sg26"] body #reseller-portal .sta-card:hover { border-color: var(--border-hover); }
html[data-skin="sg26"] body #reseller-portal .sta-card__id { font: 500 13px/20px var(--f); color: var(--text-3); }
html[data-skin="sg26"] body #reseller-portal .sta-card__subj { font: 500 15px/22px var(--f); color: var(--text-max); }
html[data-skin="sg26"] body #reseller-portal .sta-card__customer { font: 400 12px/16px var(--f); color: var(--text-2); }
html[data-skin="sg26"] body #reseller-portal .sta-card__meta { grid-column: 1 / -1; text-align: right; font: 400 12px/16px var(--f); color: var(--text-3); }
html[data-skin="sg26"] body #reseller-portal :is(.sta-card__priority, .sta-card__status) {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: var(--r-full); font: 500 12px/16px var(--f);
}
html[data-skin="sg26"] body #reseller-portal .sta-card__priority { --t: var(--t-neutral); border: 1px solid rgba(var(--t), .3); background: rgba(var(--t), .1); color: var(--text); text-transform: uppercase; letter-spacing: .03em; }
html[data-skin="sg26"] body #reseller-portal .sta-card__priority.urgent { --t: var(--t-danger); color: var(--status-danger); }
html[data-skin="sg26"] body #reseller-portal .sta-card__priority.high { --t: var(--t-warning); color: var(--status-warning); }
html[data-skin="sg26"] body #reseller-portal .sta-empty { border-radius: var(--r-lg); border: 1px dashed var(--border-dash); background: var(--fill-1); }
@media (min-width: 768px) and (max-width: 1279.98px) { html[data-skin="sg26"] body #reseller-portal .sta-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) {
  html[data-skin="sg26"] body #reseller-portal .sta-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  html[data-skin="sg26"] body #reseller-portal .sta-card { grid-template-columns: auto minmax(0, 1fr); }
  html[data-skin="sg26"] body #reseller-portal .sta-card__subj { white-space: normal; }
  html[data-skin="sg26"] body #reseller-portal :is(.sta-card__priority, .sta-card__status) { justify-self: start; }
  html[data-skin="sg26"] body #reseller-portal .sta-card__meta { text-align: left; }
}



/* ==========================================================================================================================
   10. /reseller-signup (platform host; override skin/views/plugins/reseller-portal/views/reseller-signup.php, board ResellerSignup).
       The override is kit markup inside <div class="sg-root"> (B4 §11.B gives .card .card-grad .icon-tile .btn .input .field
       .hint .alert .point .link .inset .kpi-sm .h1-.h3 …). Only the board's PAGE rules live here (kit «screen: diventa reseller»).
       The old reseller-panel.css tints (blue/violet/green/amber/cyan) are gone: one brand-derived icon tile.
   ========================================================================================================================== */
html[data-skin="sg26"] body #reseller-signup .rs-signup { display: flex; flex-direction: column; gap: var(--gap-block); max-width: none; margin: 0; padding: 0; background: transparent; }
html[data-skin="sg26"] body #reseller-signup .rs-signup > * { margin: 0; }
html[data-skin="sg26"] body #reseller-signup .rs-signup .rs-stack { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
html[data-skin="sg26"] body #reseller-signup .rs-signup .rs-card { padding: var(--pad-card); display: flex; flex-direction: column; gap: 16px; box-sizing: border-box; min-width: 0; }
html[data-skin="sg26"] body #reseller-signup .rs-signup .rs-card-title { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
html[data-skin="sg26"] body #reseller-signup .rs-signup .rs-card-title.is-top { align-items: flex-start; flex-wrap: nowrap; }
html[data-skin="sg26"] body #reseller-signup .rs-signup .rs-pagehead { padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
html[data-skin="sg26"] body #reseller-signup .rs-signup .rs-pagehead-main { display: flex; align-items: center; gap: 18px; min-width: 0; }
html[data-skin="sg26"] body #reseller-signup .rs-signup .rs-pagehead-action { flex-shrink: 0; }
html[data-skin="sg26"] body #reseller-signup .rs-signup .rs-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-block); align-items: start; }
html[data-skin="sg26"] body #reseller-signup .rs-signup .rs-how { grid-column: span 7; }
html[data-skin="sg26"] body #reseller-signup .rs-signup .rs-side { grid-column: span 5; display: flex; flex-direction: column; gap: var(--gap-block); min-width: 0; }
html[data-skin="sg26"] body #reseller-signup .rs-signup .rs-steps { display: flex; flex-direction: column; gap: 6px; counter-reset: st; }
html[data-skin="sg26"] body #reseller-signup .rs-signup .rs-step { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding: 12px 14px; border-radius: var(--r-inset); }
html[data-skin="sg26"] body #reseller-signup .rs-signup .rs-step .h3::before { counter-increment: st; content: counter(st) ". "; color: var(--text-3); }
html[data-skin="sg26"] body #reseller-signup .rs-signup .rs-step.is-ours { border: 1px dashed var(--border-dash); background: var(--fill-3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
html[data-skin="sg26"] body #reseller-signup .rs-signup .rs-step.is-ours .icon-tile { box-shadow: inset 0 0 0 1px currentColor; }
html[data-skin="sg26"] body #reseller-signup .rs-signup .rs-example { font-size: 14px; line-height: 20px; }
html[data-skin="sg26"] body #reseller-signup .rs-signup .rs-figs { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
html[data-skin="sg26"] body #reseller-signup .rs-signup .rs-fig { padding: 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
html[data-skin="sg26"] body #reseller-signup .rs-signup .rs-fig dd { margin: 0; }
html[data-skin="sg26"] body #reseller-signup .rs-signup .rs-fig-ico { order: -1; color: var(--sg-soft); }
html[data-skin="sg26"] body #reseller-signup .rs-signup .rs-fig-ico svg { width: 18px; height: 18px; display: block; }
html[data-skin="sg26"] body #reseller-signup .rs-signup .rs-fig.is-yours { background: var(--sg-gradient-fill); border-color: transparent; box-shadow: var(--sg-glow-rest); }
html[data-skin="sg26"] body #reseller-signup .rs-signup .rs-fig.is-yours :is(dt, dd, .kpi-sm, .caption, .rs-fig-ico) { color: var(--brand-on-primary); }
html[data-skin="sg26"] body #reseller-signup .rs-signup .rs-points { display: flex; flex-direction: column; gap: 12px; }
html[data-skin="sg26"] body #reseller-signup .rs-signup .rs-pt { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; color: var(--sg-soft); flex-shrink: 0; }
html[data-skin="sg26"] body #reseller-signup .rs-signup .rs-pt svg { width: 18px; height: 18px; }
html[data-skin="sg26"] body #reseller-signup .rs-signup .rs-cta { padding: 40px 32px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
html[data-skin="sg26"] body #reseller-signup .rs-signup .rs-cta-form { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 14px; text-align: left; margin: 0; }
html[data-skin="sg26"] body #reseller-signup .rs-signup .rs-inline { display: flex; gap: 10px; }
html[data-skin="sg26"] body #reseller-signup .rs-signup .rs-inline .input { flex: 1 1 auto; min-width: 0; }
html[data-skin="sg26"] body #reseller-signup .rs-signup .rs-inline .btn { flex-shrink: 0; }
html[data-skin="sg26"] body #reseller-signup .rs-signup .rs-alert p { margin: 4px 0 0; }
/* the old .rsp-signup surface paints from reseller-panel.css; the root is transparent here */
html[data-skin="sg26"] body #reseller-signup .rs-signup.rsp-signup { color: var(--text); }
@media (max-width: 1023.98px) {
  html[data-skin="sg26"] body #reseller-signup .rs-signup .rs-pagehead { flex-direction: column; align-items: flex-start; }
  html[data-skin="sg26"] body #reseller-signup .rs-signup :is(.rs-how, .rs-side) { grid-column: 1 / -1; }
}
@media (max-width: 767.98px) {
  html[data-skin="sg26"] body #reseller-signup .rs-signup .rs-pagehead { padding: 20px; }
  html[data-skin="sg26"] body #reseller-signup .rs-signup .rs-pagehead-main { align-items: flex-start; }
  html[data-skin="sg26"] body #reseller-signup .rs-signup .rs-pagehead .btn { width: 100%; }
  html[data-skin="sg26"] body #reseller-signup .rs-signup .rs-cta { padding: 28px 20px; }
  html[data-skin="sg26"] body #reseller-signup .rs-signup .rs-figs { grid-template-columns: minmax(0, 1fr); }
  html[data-skin="sg26"] body #reseller-signup .rs-signup .rs-inline { flex-direction: column; }
}


/* ==========================================================================================================================
   11. /reseller-setup (platform host, board ResellerSetup / ResellerSetupPending): step cards with a status badge in the
       title, the mail form on a 6-column grid (Server 4 + Porta 2, Username 3 + Password 3), kv tables for DNS / request.
   ========================================================================================================================== */
html[data-skin="sg26"] body #reseller-signup .rsp-card > .rsp-section-title { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
html[data-skin="sg26"] body #reseller-signup .rsp-card > p:not([class]) { font: 400 14px/21px var(--f); color: var(--text); }
html[data-skin="sg26"] body #reseller-signup .rsp-card .rsp-muted-text { margin: 0; color: var(--text-2); }
html[data-skin="sg26"] body #reseller-signup .rsp-card > .rsp-section-title + .rsp-muted-text { margin-top: -6px; }
html[data-skin="sg26"] body #reseller-signup .rsp-card form + form { margin-top: 0; }
html[data-skin="sg26"] body #reseller-signup .rsp-card form > .rsp-actions { margin: 0; }
html[data-skin="sg26"] body #reseller-signup form:has(> input[name="verb"][value="mail-save"]) { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
html[data-skin="sg26"] body #reseller-signup form:has(> input[name="verb"][value="mail-save"]) > * { grid-column: 1 / -1; }
html[data-skin="sg26"] body #reseller-signup form:has(> input[name="verb"][value="mail-save"]) > input[type="hidden"] { display: none; }
html[data-skin="sg26"] body #reseller-signup form:has(> input[name="verb"][value="mail-save"]) > .rsp-field:has(#st-host) { grid-column: span 4; }
html[data-skin="sg26"] body #reseller-signup form:has(> input[name="verb"][value="mail-save"]) > .rsp-field:has(#st-port) { grid-column: span 2; }
html[data-skin="sg26"] body #reseller-signup form:has(> input[name="verb"][value="mail-save"]) > .rsp-field:has(#st-user, #st-pass) { grid-column: span 3; align-self: start; }
html[data-skin="sg26"] body #reseller-signup .rsp-card input[name="markup_percent"] { max-width: 210px; }
html[data-skin="sg26"] body #reseller-signup .rsp-card textarea.rsp-input { min-height: 84px; }
/* table.rsp-dl = kit .kv.inset (140px key column) */
html[data-skin="sg26"] body #reseller-signup table.rsp-dl {
  width: 100%; margin: 0; border-collapse: separate; border-spacing: 0; border-radius: var(--r-inset);
  background: var(--fill-3); border: 1px solid var(--inset-border); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}
html[data-skin="sg26"] body #reseller-signup table.rsp-dl :is(th, td) { padding: 12px 16px; border-bottom: 1px solid var(--border); background: transparent; vertical-align: middle; text-align: left; }
html[data-skin="sg26"] body #reseller-signup table.rsp-dl tr:last-child :is(th, td) { border-bottom: 0; }
html[data-skin="sg26"] body #reseller-signup table.rsp-dl th { width: 140px; font: 400 13px/20px var(--f) !important; color: var(--text-2) !important; text-transform: none; letter-spacing: 0; }
html[data-skin="sg26"] body #reseller-signup table.rsp-dl td { font: 500 14px/20px var(--f); color: var(--text); overflow-wrap: anywhere; }
html[data-skin="sg26"] body #reseller-signup .rsp-card .rsp-empty { color: var(--text-2); }
@media (max-width: 767.98px) {
  html[data-skin="sg26"] body #reseller-signup form:has(> input[name="verb"][value="mail-save"]) > .rsp-field:is(:has(#st-host), :has(#st-port), :has(#st-user), :has(#st-pass)) { grid-column: 1 / -1; }
  html[data-skin="sg26"] body #reseller-signup table.rsp-dl :is(tr, th, td) { display: block; width: auto; }
  html[data-skin="sg26"] body #reseller-signup table.rsp-dl th { padding-bottom: 0; border-bottom: 0; }
  html[data-skin="sg26"] body #reseller-signup table.rsp-dl td { padding-top: 4px; }
}


/* ==========================================================================================================================
   12. Dashboard (override of dashboard.php): «Ultimi clienti» = kit .table.is-stack on the phone; button icons; phone actions
   ========================================================================================================================== */
html[data-skin="sg26"] body #reseller-portal .rsp-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
html[data-skin="sg26"] body #reseller-portal .rsp-tablewrap:has(> .rs-stack) { overflow: hidden; }
html[data-skin="sg26"] body #reseller-portal .rs-stack td.rs-rowlabel { font-weight: 500; }
html[data-skin="sg26"] body #reseller-portal .rsp-pager.rs-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 767.98px) {
  html[data-skin="sg26"] body #reseller-portal .rs-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  html[data-skin="sg26"] body #reseller-portal :is(.rs-stack, .rs-stack tbody, .rs-stack tr, .rs-stack td) { display: block; }
  html[data-skin="sg26"] body #reseller-portal .rs-stack tr { padding: 12px 16px; border-bottom: 1px solid var(--border); }
  html[data-skin="sg26"] body #reseller-portal .rs-stack tbody tr:last-child { border-bottom: 0; }
  html[data-skin="sg26"] body #reseller-portal .rsp-table.rs-stack tbody td {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 28px; padding: 4px 0; border: 0 !important; text-align: right;
    overflow-wrap: anywhere; background: transparent !important;
  }
  html[data-skin="sg26"] body #reseller-portal .rs-stack td[data-label]::before {
    content: attr(data-label); flex-shrink: 0; font: 500 12px/16px var(--f); letter-spacing: .02em; color: var(--text-3); text-align: left;
  }
  html[data-skin="sg26"] body #reseller-portal .rsp-table.rs-stack tbody td.rs-rowlabel { display: block; text-align: left; }
  html[data-skin="sg26"] body #reseller-portal .rsp-pager.rs-actions > .rsp-btn { flex: 1 1 auto; }
  html[data-skin="sg26"] body #reseller-portal .rsp-notice[style*="flex"] { flex-direction: column; align-items: flex-start !important; padding-left: 46px; }
  html[data-skin="sg26"] body #reseller-portal .rsp-notice[style*="flex"]::before { top: 16px; margin-top: 0; }
}


/* ==========================================================================================================================
   13. Customer pages on the tenant host (fixed dark, as in the code: /subscribe, /billing -> /subscribe, /checkout/*).
       Board ResellerCheckout: the minipage frame (wordmark on an ambient brand glow, one kit card 520 wide, status icon tile,
       kv rows, full-width primary pill, «Torna ai piani» link). Platform name never printed here; colours from --brand-*.
   ========================================================================================================================== */
/* no fake «OFFERTA FLASH» countdown on tenant renders (decision 10/10). The block stays in the DOM, so its script keeps
   finding it; only its paint is removed. */
html[data-skin="sg26"] body.np-reseller .npr-offer { display: none !important; }

html[data-skin="sg26"] body.np-reseller.npr-body.sghas-63b9ccd0 { font-family: var(--f) !important; background: var(--bg) !important; }
html[data-skin="sg26"] body.np-reseller #npo .npr-fullscreen {
  background: radial-gradient(1200px 820px at 50% -440px, color-mix(in srgb, var(--brand-primary) var(--glow-a1), transparent), color-mix(in srgb, var(--sg-accent-2) var(--glow-a2), transparent) 58%, transparent 100%) var(--bg);
  font: 400 14px/22px var(--f); color: var(--text);
}
html[data-skin="sg26"] body.np-reseller #npo .npo-wrap { max-width: 520px; padding: 32px 20px 80px; }
html[data-skin="sg26"] body.np-reseller #npo .npr-logo { margin: 0 0 110px; }
html[data-skin="sg26"] body.np-reseller #npo .npr-logo .npr-logo-name { font: 700 17px/24px var(--f); letter-spacing: -.02em; color: var(--text); }
html[data-skin="sg26"] body.np-reseller #npo .npr-logo img { max-height: 32px; }
html[data-skin="sg26"] body.np-reseller #npo .npo-card {
  display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 40px; text-align: center;
  border-radius: var(--r-lg); border: 1px solid transparent; background: var(--card-bg) padding-box, var(--card-edge) border-box; box-shadow: var(--card-shadow);
}
html[data-skin="sg26"] body.np-reseller #npo .npo-icon {
  --t: var(--t-info); --tc: var(--status-info);
  display: grid; place-items: center; align-self: center; width: 44px; height: 44px; margin: 0 0 24px; border-radius: 13px;
  background: rgba(var(--t), .14); color: var(--tc); font-size: 22px; line-height: 1;
}
html[data-skin="sg26"] body.np-reseller #npo .npo-icon--ok { --t: var(--t-success); --tc: var(--status-success); }
html[data-skin="sg26"] body.np-reseller #npo .npo-icon--danger { --t: var(--t-danger); --tc: var(--status-danger); }
html[data-skin="sg26"] body.np-reseller #npo .npo-title { margin: 0 0 10px; font: 500 28px/34px var(--f); letter-spacing: -.027em; color: var(--text); outline: 0; }
html[data-skin="sg26"] body.np-reseller #npo .npo-sub { margin: 0; font: 400 16px/25px var(--f); color: var(--text-2); }
html[data-skin="sg26"] body.np-reseller #npo .npo-rows {
  margin: 24px 0 0; padding: 0 18px; text-align: left; border-radius: var(--r-inset);
  background: var(--fill-3); border: 1px solid var(--inset-border); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}
html[data-skin="sg26"] body.np-reseller #npo .npo-row { padding: 12px 0; border-top: 1px solid var(--border); font: 400 13px/20px var(--f); align-items: center; }
html[data-skin="sg26"] body.np-reseller #npo .npo-row:first-child { border-top: 0; }
html[data-skin="sg26"] body.np-reseller #npo .npo-row dt { color: var(--text-2); }
html[data-skin="sg26"] body.np-reseller #npo .npo-row dd { font: 500 14px/20px var(--f); color: var(--text); }
html[data-skin="sg26"] body.np-reseller #npo .npo-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; max-width: none; height: 44px; margin: 24px 0 0; padding: 0 22px;
  border-radius: var(--r-full); background: var(--brand-primary); color: var(--brand-on-primary); font: 500 15px/20px var(--f);
  box-shadow: var(--sg-glow-rest); transition: var(--tr);
}
html[data-skin="sg26"] body.np-reseller #npo .npo-cta:hover { background: var(--brand-primary); color: var(--brand-on-primary); transform: translateY(-1px); box-shadow: var(--sg-glow-hover); }
html[data-skin="sg26"] body.np-reseller #npo .npo-cta::after {
  content: ""; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E") center/100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}
html[data-skin="sg26"] body.np-reseller #npo .npo-ghost {
  display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 18px; border-radius: var(--r-full);
  background: var(--tonal-bg); border: 1px solid var(--border-2); color: var(--text); font: 500 14px/20px var(--f); box-shadow: inset 0 1px 0 var(--hi);
}
html[data-skin="sg26"] body.np-reseller #npo .npo-ghost:hover { color: var(--text-max); border-color: var(--border-hover); }
html[data-skin="sg26"] body.np-reseller #npo .npo-card > p { margin: 16px 0 0; }
html[data-skin="sg26"] body.np-reseller #npo .npo-back { margin: 24px 0 0; }
html[data-skin="sg26"] body.np-reseller #npo .npo-back a {
  color: var(--sg-soft); font: 500 14px/21px var(--f); text-decoration: underline; text-underline-offset: 4px;
  text-decoration-color: color-mix(in srgb, var(--sg-soft) 50%, transparent);
}
html[data-skin="sg26"] body.np-reseller #npo .npo-back a:hover { color: var(--text-max); }
@media (max-width: 767.98px) {
  html[data-skin="sg26"] body.np-reseller #npo .npo-wrap { padding: 24px 16px 60px; }
  html[data-skin="sg26"] body.np-reseller #npo .npr-logo { margin-bottom: 48px; }
  html[data-skin="sg26"] body.np-reseller #npo .npo-card { padding: 28px 20px; }
  html[data-skin="sg26"] body.np-reseller #npo .npo-title { font-size: 24px; line-height: 30px; }
}

/* /subscribe frame (fixed dark): kit type, ambient brand glow, page gutters. The plan catalogue itself only renders when the
   tenant's legal pages are complete and Stripe charges are on (SubscribeController::show); on dev the tenant has no legal
   details, so only the empty state can be checked here. The catalogue's own rules (Mostra, -N% badges, pink Klarna badge)
   are left exactly as the code prints them. */
html[data-skin="sg26"] body.np-reseller .npr-fullscreen:has(> .npr-wrap) {
  background: radial-gradient(1200px 820px at 50% -440px, color-mix(in srgb, var(--brand-primary) var(--glow-a1), transparent), color-mix(in srgb, var(--sg-accent-2) var(--glow-a2), transparent) 58%, transparent 100%) var(--bg);
}
html[data-skin="sg26"] body.np-reseller .npr-wrap { font-family: var(--f); }
html[data-skin="sg26"] body.np-reseller .npr-wrap .npr-heading { font: 500 32px/38px var(--f); letter-spacing: -.035em; color: var(--text); }
html[data-skin="sg26"] body.np-reseller .npr-wrap .npr-subheading { font: 400 16px/25px var(--f); color: var(--text-2); }
html[data-skin="sg26"] body.np-reseller .npr-wrap .np-empty {
  max-width: 620px; margin: 0 auto; padding: 40px 24px; text-align: center; border-radius: var(--r-lg); border: 1px dashed var(--border-dash);
  background: var(--fill-1); color: var(--text-2); font: 400 14px/21px var(--f); box-shadow: none;
}
@media (max-width: 767.98px) {
  html[data-skin="sg26"] body.np-reseller .npr-wrap { padding-left: 16px; padding-right: 16px; }
  html[data-skin="sg26"] body.np-reseller .npr-wrap .npr-heading { font-size: 28px; line-height: 34px; }
}
/* /subscribe when subscriptions are not available yet: the view prints the older #renew frame with .np-empty. Scoped to that
   state only (#renew with .np-empty on a tenant), so the platform /renew page (group core) is untouched. */
html[data-skin="sg26"] body.np-reseller #renew:has(.np-empty) .header h1 { font: 500 32px/38px var(--f) !important; letter-spacing: -.035em; color: var(--text) !important; }
html[data-skin="sg26"] body.np-reseller #renew:has(.np-empty) .header h1 big { font: inherit; }
html[data-skin="sg26"] body.np-reseller #renew:has(.np-empty) .header p { font: 400 16px/25px var(--f) !important; color: var(--text-2) !important; }
html[data-skin="sg26"] body.np-reseller #renew:has(.np-empty) .np-empty {
  max-width: 620px; margin: 0 auto; padding: 40px 24px; text-align: center; border-radius: var(--r-lg); border: 1px dashed var(--border-dash);
  background: var(--fill-1); color: var(--text-2); font: 400 14px/21px var(--f); box-shadow: none;
}
@media (max-width: 767.98px) {
  html[data-skin="sg26"] body.np-reseller #renew:has(.np-empty) .subscriptions .inner { padding-left: 16px; padding-right: 16px; box-sizing: border-box; }
  html[data-skin="sg26"] body.np-reseller #renew:has(.np-empty) .header h1 { font-size: 28px !important; line-height: 34px !important; }
}



/* ==========================================================================================================================
   14. /admin/resellers* (platform admin; overrides admin/resellers.php + fragments/admin-stats.partial.php, kit markup in
       .sg-root.rs-adm). Board page rules (AdminResellers*), scoped to the admin shell #resellers. The admin shell is
       .skeleton--full (no padding), so the page column carries the board content padding.
   ========================================================================================================================== */
html[data-skin="sg26"] body #resellers > .sg-root.rs-adm { padding: var(--pad-page); box-sizing: border-box; }
html[data-skin="sg26"] body #resellers .rs-adm .page-w { width: 100%; max-width: 1180px; box-sizing: border-box; display: flex; flex-direction: column; gap: var(--gap-block); }
html[data-skin="sg26"] body #resellers .rs-adm .card-pad { padding: var(--pad-card); display: flex; flex-direction: column; gap: 20px; }
html[data-skin="sg26"] body #resellers .rs-adm .card-head { display: flex; align-items: flex-start; gap: 12px; }
html[data-skin="sg26"] body #resellers .rs-adm .card-head > div { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; min-width: 0; }
html[data-skin="sg26"] body #resellers .rs-adm .card-head .icon-tile.sm + div { justify-content: center; min-height: 28px; }
html[data-skin="sg26"] body #resellers .rs-adm .kv { display: grid; grid-template-columns: minmax(120px, max-content) minmax(0, 1fr); gap: 8px 20px; margin: 0; }
html[data-skin="sg26"] body #resellers .rs-adm .kv dt { font: 400 13px/20px var(--f); color: var(--text-3); }
html[data-skin="sg26"] body #resellers .rs-adm .kv dd { margin: 0; font: 500 14px/20px var(--f); color: var(--text); overflow-wrap: anywhere; }
html[data-skin="sg26"] body #resellers .rs-adm .kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; --kpi-cols: 4; }
html[data-skin="sg26"] body #resellers .rs-adm .kpi-card { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
html[data-skin="sg26"] body #resellers .rs-adm .kpi-card .caption { color: var(--text-3); }
html[data-skin="sg26"] body #resellers .rs-adm .t-scroll { overflow-x: auto; position: relative; }
html[data-skin="sg26"] body #resellers .rs-adm .statline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0; }
html[data-skin="sg26"] body #resellers .rs-adm .pill-ok { color: var(--status-success); }
html[data-skin="sg26"] body #resellers .rs-adm .rs-adm-step { display: inline-flex; align-items: center; gap: 6px; }
html[data-skin="sg26"] body #resellers .rs-adm .rs-adm-step svg { width: 16px; height: 16px; }
html[data-skin="sg26"] body #resellers .rs-adm .sel-wrap { position: relative; }
html[data-skin="sg26"] body #resellers .rs-adm .sel-wrap select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer; }
html[data-skin="sg26"] body #resellers .rs-adm .sel-wrap svg { position: absolute; right: 12px; top: 12px; width: 16px; height: 16px; pointer-events: none; color: var(--text-3); }
html[data-skin="sg26"] body #resellers .rs-adm .rs-adm-filters { display: flex; align-items: flex-end; gap: 12px; }
html[data-skin="sg26"] body #resellers .rs-adm .rs-adm-q { flex: 1 1 260px; }
html[data-skin="sg26"] body #resellers .rs-adm .rs-adm-st { flex: 0 1 200px; }
html[data-skin="sg26"] body #resellers .rs-adm .rs-adm-count { margin-left: auto; align-self: center; }
html[data-skin="sg26"] body #resellers .rs-adm .rs-adm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-block); align-items: start; }
html[data-skin="sg26"] body #resellers .rs-adm .rs-adm-pager { display: flex; align-items: center; justify-content: center; gap: 12px; }
html[data-skin="sg26"] body #resellers .rs-adm .rs-adm-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
html[data-skin="sg26"] body #resellers .rs-adm .rs-adm-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
html[data-skin="sg26"] body #resellers .rs-adm .legend { display: flex; flex-wrap: wrap; gap: 6px 16px; }
html[data-skin="sg26"] body #resellers .rs-adm .legend span { display: inline-flex; align-items: center; gap: 6px; font: 400 12px/16px var(--f); color: var(--text-2); }
html[data-skin="sg26"] body #resellers .rs-adm .legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
html[data-skin="sg26"] body #resellers .rs-adm .chart { display: flex; align-items: flex-end; gap: 10px; height: 160px; padding: 8px 0 0; border-bottom: 1px solid var(--border); }
html[data-skin="sg26"] body #resellers .rs-adm .chart > div { flex: 1 1 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
html[data-skin="sg26"] body #resellers .rs-adm .chart b { display: block; width: 100%; max-width: 44px; border-radius: 0; }
html[data-skin="sg26"] body #resellers .rs-adm .chart b:first-child { border-radius: 6px 6px 0 0; }
html[data-skin="sg26"] body #resellers .rs-adm .chart-x { display: flex; gap: 10px; }
html[data-skin="sg26"] body #resellers .rs-adm .chart-x span { flex: 1 1 0; text-align: center; font: 400 12px/16px var(--f); color: var(--text-3); }
html[data-skin="sg26"] body #resellers .rs-adm .rs-adm-details { padding: 12px 16px; }
html[data-skin="sg26"] body #resellers .rs-adm .rs-adm-details > summary { cursor: pointer; }
html[data-skin="sg26"] body #resellers .rs-adm .rs-adm-details > .t-scroll { margin-top: 12px; }
html[data-skin="sg26"] body #resellers .rs-adm .empty .icon-tile { margin: 0 auto; }
@media (min-width: 768px) and (max-width: 1279.98px) {
  html[data-skin="sg26"] body #resellers .rs-adm .kpis:not([style*="repeat("]) { grid-template-columns: repeat(2, minmax(0, 1fr)); --kpi-cols: 2; }
  html[data-skin="sg26"] body #resellers .rs-adm .rs-adm-split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1023.98px) {
  html[data-skin="sg26"] body #resellers .rs-adm .rs-adm-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767.98px) {
  html[data-skin="sg26"] body #resellers .rs-adm .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; --kpi-cols: 2 !important; }
  html[data-skin="sg26"] body #resellers .rs-adm .rs-adm-split { grid-template-columns: minmax(0, 1fr); }
  html[data-skin="sg26"] body #resellers .rs-adm .rs-adm-filters { flex-wrap: wrap; }
  html[data-skin="sg26"] body #resellers .rs-adm :is(.rs-adm-q, .rs-adm-st) { flex: 1 1 100%; }
  html[data-skin="sg26"] body #resellers .rs-adm .rs-adm-filters > .btn { flex: 1 1 auto; }
  html[data-skin="sg26"] body #resellers .rs-adm .rs-adm-count { margin-left: 0; flex: 1 1 100%; }
  html[data-skin="sg26"] body #resellers .rs-adm .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  html[data-skin="sg26"] body #resellers .rs-adm .kv dd { margin-bottom: 8px; }
  html[data-skin="sg26"] body #resellers .rs-adm .t-scroll { overflow-x: clip; }
}
html[data-skin="sg26"] body #resellers .rs-adm .table th.num { text-align: right; }

/* detail (override of admin/reseller-detail.php): two-card rows, settings fields side by side, actions */
html[data-skin="sg26"] body #resellers .rs-adm .rs-adm-2col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-block); align-items: start; }
html[data-skin="sg26"] body #resellers .rs-adm .rs-adm-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
html[data-skin="sg26"] body #resellers .rs-adm .rs-adm-end { display: flex; justify-content: flex-end; }
html[data-skin="sg26"] body #resellers .rs-adm .rs-adm-actions { display: flex; flex-wrap: wrap; gap: 10px; }
html[data-skin="sg26"] body #resellers .rs-adm .rs-adm-stack { display: flex; flex-direction: column; gap: 12px; }
html[data-skin="sg26"] body #resellers .rs-adm form { margin: 0; }
html[data-skin="sg26"] body #resellers .rs-adm .link svg { width: 16px; height: 16px; }
html[data-skin="sg26"] body #resellers .rs-adm .btn svg { width: 16px; height: 16px; flex-shrink: 0; }
html[data-skin="sg26"] body #resellers .rs-adm .pill-bad { color: var(--status-danger); }
html[data-skin="sg26"] body #resellers .rs-adm .kv dd .mono, html[data-skin="sg26"] body #resellers .rs-adm .kv dd.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
html[data-skin="sg26"] body #resellers .rs-adm .statline .mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
@media (max-width: 1023.98px) {
  html[data-skin="sg26"] body #resellers .rs-adm .rs-adm-2col { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767.98px) {
  html[data-skin="sg26"] body #resellers .rs-adm .rs-adm-fields { grid-template-columns: minmax(0, 1fr); }
  html[data-skin="sg26"] body #resellers .rs-adm .rs-adm-end > .btn, html[data-skin="sg26"] body #resellers .rs-adm .rs-adm-actions > form { flex: 1 1 auto; }
  html[data-skin="sg26"] body #resellers .rs-adm .rs-adm-end > .btn, html[data-skin="sg26"] body #resellers .rs-adm .rs-adm-actions .btn { width: 100%; }
}
/* create form (override of admin/reseller-form.php) */
html[data-skin="sg26"] body #resellers .rs-adm .rs-adm-narrow { max-width: 880px; }
html[data-skin="sg26"] body #resellers .rs-adm .rs-adm-back { align-self: flex-start; }
html[data-skin="sg26"] body #resellers .rs-adm .rs-adm-form { gap: var(--gap-block); }
html[data-skin="sg26"] body #resellers .rs-adm .rs-adm-span { grid-column: 1 / -1; }
html[data-skin="sg26"] body #resellers .rs-adm fieldset.rs-adm-radios { margin: 0; padding: 0; border: 0; min-width: 0; }
html[data-skin="sg26"] body #resellers .rs-adm fieldset.rs-adm-radios > legend { padding: 0; margin: 0 0 6px; }
html[data-skin="sg26"] body #resellers .rs-adm fieldset.rs-adm-radios > .r-wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; }
html[data-skin="sg26"] body #resellers .rs-adm .rs-adm-radio { display: inline-flex; align-items: center; gap: 10px; min-height: 28px; padding: 4px 0; font: 400 14px/20px var(--f); color: var(--text); cursor: pointer; }
html[data-skin="sg26"] body #resellers .rs-adm .rs-adm-radio input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand-primary); position: static; opacity: 1; pointer-events: auto; }
html[data-skin="sg26"] body #resellers .rs-adm .rs-adm-radio input:focus-visible { outline: 2px solid var(--brand-focus-ring); outline-offset: 2px; }
html[data-skin="sg26"] body #resellers .rs-adm .alert ul { margin: 6px 0 0; padding-left: 18px; }
@media (max-width: 767.98px) { html[data-skin="sg26"] body #resellers .rs-adm .rs-adm-radio { min-height: 44px; } }
/* /subscribe catalogue on a tenant (board ResellerSubscribe): the brand sits centred above the title, unlike the platform
   RenewPlan (logo top-left, group core). Only this difference lives here; the shared #renew .npr-* catalogue is group core. */
html[data-skin="sg26"] body.np-reseller #renew .npr-logo { position: static; margin: 0 0 28px !important; text-align: center; }
html[data-skin="sg26"] body.np-reseller #renew .npr-logo .npr-logo-name { font: 700 17px/24px var(--f); letter-spacing: -.02em; color: var(--text); }


/* ==========================================================================================================================
   15. /reseller/tickets/{id} (fixed dark; board ResellerTicket): the shared support «view» fragment (.stav-*), dressed with the
       board's screen rules (tv-msg / tv-body / tv-side). Scoped to #reseller-portal, so the platform admin view is untouched.
   ========================================================================================================================== */
html[data-skin="sg26"] body #reseller-portal .rsp-main:has(.stav-wrap) { max-width: 1200px; }
html[data-skin="sg26"] body #reseller-portal .stav-wrap { padding: 0; margin: 0; max-width: none; }
html[data-skin="sg26"] body #reseller-portal .stav-back {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 0 var(--gap-block); padding: 0; height: auto; border: 0; background: transparent; border-radius: 0;
  color: var(--sg-soft); font: 500 14px/21px var(--f); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, var(--sg-soft) 50%, transparent);
}
html[data-skin="sg26"] body #reseller-portal .stav-back:hover { color: var(--text-max); background: transparent; }
html[data-skin="sg26"] body #reseller-portal .stav-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--gap-block); align-items: start; }
html[data-skin="sg26"] body #reseller-portal .stav-thread { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
/* message: 36px avatar outside, bubble beside it */
html[data-skin="sg26"] body #reseller-portal .stav-msg { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 0; margin: 0; border: 0; background: transparent; box-shadow: none; }
html[data-skin="sg26"] body #reseller-portal .stav-msg__avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--tonal-bg); color: var(--text-2); font-size: 18px; }
html[data-skin="sg26"] body #reseller-portal .stav-msg.is-agent .stav-msg__avatar { background: var(--brand-primary-subtle); color: var(--sg-soft); }
html[data-skin="sg26"] body #reseller-portal .stav-msg__body {
  display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 14px 16px; border-radius: var(--r-inset); background: var(--surface-alt); border: 1px solid var(--border);
}
html[data-skin="sg26"] body #reseller-portal .stav-msg.is-agent .stav-msg__body {
  background: color-mix(in srgb, var(--brand-primary) 8%, var(--surface-alt)); border-color: color-mix(in srgb, var(--brand-primary-text) 30%, transparent);
}
html[data-skin="sg26"] body #reseller-portal .stav-msg__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0; }
html[data-skin="sg26"] body #reseller-portal .stav-msg__from { font: 500 13px/18px var(--f); color: var(--text); }
html[data-skin="sg26"] body #reseller-portal .stav-msg__when { font: 400 12px/16px var(--f); color: var(--text-3); font-variant-numeric: tabular-nums; }
html[data-skin="sg26"] body #reseller-portal .stav-msg__text { font: 400 14px/22px var(--f); color: var(--text); white-space: pre-line; overflow-wrap: anywhere; }
/* reply composer = kit card */
html[data-skin="sg26"] body #reseller-portal .stav-reply {
  display: flex; flex-direction: column; gap: 14px; padding: var(--pad-card); margin: 0; border-radius: var(--r-lg); border: 1px solid transparent;
  background: var(--card-bg) padding-box, var(--card-edge) border-box; box-shadow: var(--card-shadow);
}
html[data-skin="sg26"] body #reseller-portal .stav-reply form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
html[data-skin="sg26"] body #reseller-portal .stav-reply textarea {
  width: 100%; min-height: 130px; box-sizing: border-box; padding: 9px 12px; margin: 0; resize: vertical; background: var(--input-bg) !important;
  border: 1px solid var(--border-strong) !important; border-radius: var(--r-md) !important; color: var(--text) !important; font: 400 14px/22px var(--f) !important; box-shadow: none !important;
}
html[data-skin="sg26"] body #reseller-portal .stav-reply textarea::placeholder { color: var(--text-3); }
html[data-skin="sg26"] body #reseller-portal .stav-reply textarea:focus { border-color: var(--brand-primary-border) !important; }
html[data-skin="sg26"] body #reseller-portal .stav-polish-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
html[data-skin="sg26"] body #reseller-portal .stav-attach {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 0; border-radius: var(--r-full); background: transparent; color: var(--text-2);
  font: 500 14px/20px var(--f); cursor: pointer;
}
html[data-skin="sg26"] body #reseller-portal .stav-attach:hover { background: var(--hover-fill); color: var(--text-max); }
html[data-skin="sg26"] body #reseller-portal .stav-attach:focus-within { outline: 2px solid var(--brand-focus-ring); outline-offset: 2px; }
html[data-skin="sg26"] body #reseller-portal .stav-attach .mdi { color: inherit; }
html[data-skin="sg26"] body #reseller-portal .stav-polish {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: var(--r-full); border: 1px solid var(--border-2);
  background: var(--tonal-bg); color: var(--text); font: 500 13px/18px var(--f); box-shadow: inset 0 1px 0 var(--hi); cursor: pointer;
}
html[data-skin="sg26"] body #reseller-portal .stav-polish:hover { color: var(--text-max); border-color: var(--border-hover); }
html[data-skin="sg26"] body #reseller-portal .stav-polish .mdi { color: inherit; }
html[data-skin="sg26"] body #reseller-portal .stav-reply .actions { display: flex; justify-content: flex-end; gap: 10px; margin: 0; }
/* buttons: primary pill with glow, ghost = tonal pill, danger = tinted */
html[data-skin="sg26"] body #reseller-portal .stav-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: var(--r-full); border: 1px solid transparent;
  font: 500 14px/20px var(--f); cursor: pointer; white-space: nowrap; transition: var(--tr);
}
html[data-skin="sg26"] body #reseller-portal .stav-btn--primary { background: var(--brand-primary); color: var(--brand-on-primary); box-shadow: var(--sg-glow-rest); }
html[data-skin="sg26"] body #reseller-portal .stav-btn--primary:hover { background: var(--brand-primary); color: var(--brand-on-primary); transform: translateY(-1px); box-shadow: var(--sg-glow-hover); }
html[data-skin="sg26"] body #reseller-portal .stav-btn--ghost { background: var(--tonal-bg); border-color: var(--border-2); color: var(--text); box-shadow: inset 0 1px 0 var(--hi); }
html[data-skin="sg26"] body #reseller-portal .stav-btn--ghost:hover { color: var(--text-max); border-color: var(--border-hover); }
html[data-skin="sg26"] body #reseller-portal .stav-btn--danger { --t: var(--t-danger); background: rgba(var(--t), .1); border-color: rgba(var(--t), .3); color: var(--status-danger); }
html[data-skin="sg26"] body #reseller-portal .stav-btn--danger:hover { background: rgba(var(--t), .22); color: var(--danger-hover-fg); }
html[data-skin="sg26"] body #reseller-portal .stav-btn .mdi { color: inherit; font-size: 16px; }
html[data-skin="sg26"] body #reseller-portal :is(.stav-btn, .stav-polish, .stav-back):focus-visible { outline: 2px solid var(--brand-focus-ring); outline-offset: 2px; }
/* side cards = kit .card .tv-side */
html[data-skin="sg26"] body #reseller-portal .stav-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
html[data-skin="sg26"] body #reseller-portal .stav-card {
  display: flex; flex-direction: column; gap: 10px; padding: 18px; margin: 0; border-radius: var(--r-lg); border: 1px solid transparent;
  background: var(--card-bg) padding-box, var(--card-edge) border-box; box-shadow: var(--card-shadow);
}
html[data-skin="sg26"] body #reseller-portal .stav-card > h4 { margin: 0; font: 500 12px/16px var(--f) !important; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2) !important; }
html[data-skin="sg26"] body #reseller-portal .stav-card > h4[style*="color"] { color: var(--status-danger) !important; }
html[data-skin="sg26"] body #reseller-portal .stav-card > div[style*="margin-bottom"] { margin: 0 !important; }
html[data-skin="sg26"] body #reseller-portal .stav-card form { display: flex; gap: 8px; margin: 0; }
html[data-skin="sg26"] body #reseller-portal .stav-card select {
  flex: 1 1 auto; min-width: 0; height: 40px; box-sizing: border-box; padding: 0 36px 0 12px; margin: 0; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-color: var(--input-bg) !important; border: 1px solid var(--border-strong) !important; border-radius: var(--r-md) !important; color: var(--text) !important; font: 400 14px/22px var(--f) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aeaeb2' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 12px center !important; background-size: 16px 16px !important;
}
html[data-skin="sg26"] body #reseller-portal .stav-status-pill {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: var(--r-full); font: 500 12px/16px var(--f) !important;
  letter-spacing: 0; text-transform: none; --t: var(--t-neutral); --tc: var(--text-2); background: rgba(var(--t), .1) !important; border: 1px solid rgba(var(--t), .3) !important; color: var(--tc) !important;
}
html[data-skin="sg26"] body #reseller-portal .stav-status-pill.st-status--warning { --t: var(--t-warning); --tc: var(--status-warning); }
html[data-skin="sg26"] body #reseller-portal .stav-status-pill.st-status--success { --t: var(--t-success); --tc: var(--status-success); }
html[data-skin="sg26"] body #reseller-portal .stav-status-pill.st-status--danger { --t: var(--t-danger); --tc: var(--status-danger); }
html[data-skin="sg26"] body #reseller-portal .stav-status-pill.st-status--info { --t: var(--t-info); --tc: var(--status-info); }
html[data-skin="sg26"] body #reseller-portal .stav-status-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
html[data-skin="sg26"] body #reseller-portal .stav-meta-row {
  display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); align-items: center;
}
html[data-skin="sg26"] body #reseller-portal .stav-meta-row:last-child { border-bottom: 0; }
html[data-skin="sg26"] body #reseller-portal .stav-meta-row .k { font: 400 13px/20px var(--f); color: var(--text-2); }
html[data-skin="sg26"] body #reseller-portal .stav-meta-row .v { font: 500 13px/20px var(--f); color: var(--text); text-align: left; overflow-wrap: anywhere; }
html[data-skin="sg26"] body #reseller-portal .stav-customer-link { color: var(--brand-primary-text) !important; }
@media (max-width: 1023.98px) {
  html[data-skin="sg26"] body #reseller-portal .stav-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767.98px) {
  html[data-skin="sg26"] body #reseller-portal .stav-reply { padding: 16px; }
  html[data-skin="sg26"] body #reseller-portal .stav-reply .actions > .stav-btn { flex: 1 1 auto; height: 44px; }
}

/* ==========================================================================================================================
   16. /legal/terms|privacy on a tenant (board ResellerLegal: a bare LIGHT page, as in the code; LegalController prints it).
       The page is <body><h1/><p class="brand"/>…</body> with no class, so the selector is its own shape. NOTE: the controller
       CSP (style-src unsafe-inline only) still blocks this stylesheet; it applies as soon as the header allows self.
   ========================================================================================================================== */
html[data-skin="sg26"]:has(> body > h1 + p.brand) { background: var(--bg); color-scheme: light; }
html[data-skin="sg26"] body:has(> h1 + p.brand) { max-width: 860px; margin: 0 auto; padding: 56px 20px 80px; box-sizing: border-box; background: transparent; color: var(--text); font: 400 14px/22px var(--f); }
html[data-skin="sg26"] body:has(> h1 + p.brand) > h1 { margin: 0 0 6px; font: 500 28px/34px var(--f); letter-spacing: -.027em; color: var(--text); }
html[data-skin="sg26"] body:has(> h1 + p.brand) > p.brand { margin: 0 0 16px; font: 400 14px/21px var(--f); color: var(--text-2); }
html[data-skin="sg26"] body:has(> h1 + p.brand) :is(h2, h3) { margin: 24px 0 8px; font: 500 20px/26px var(--f); color: var(--text); }
html[data-skin="sg26"] body:has(> h1 + p.brand) a { color: var(--brand-primary-text); }

/* /reseller-setup kv tables span the card */
html[data-skin="sg26"] body #reseller-signup table.rsp-dl { width: 100% !important; max-width: none !important; display: table; }


/* ==========================================================================================================================
   17. /reseller/domain, pending state (board ResellerDomainPending; verified on a CLI stub render, no Cloudflare call).
   ========================================================================================================================== */
/* DNS records: values wrap inside their cells so the four columns fit the card (kit .r-scroll.inset keeps 720 as the floor) */
html[data-skin="sg26"] body #reseller-portal .rsp-card .rsp-tablewrap .rsp-table { min-width: 720px; }
html[data-skin="sg26"] body #reseller-portal .rsp-card .rsp-tablewrap .rsp-table tbody td { white-space: normal; }
html[data-skin="sg26"] body #reseller-portal .rsp-card .rsp-tablewrap .rsp-table .rsp-code { word-break: break-all; overflow-wrap: anywhere; }
/* with a pending domain, «Replace the pending domain» is the secondary action (tonal), as on the board */
html[data-skin="sg26"] body #reseller-portal .rsp-card:has(#rsp-domain-input):has(+ .rsp-card .rsp-tablewrap) .rsp-btn {
  background: var(--tonal-bg); border-color: var(--border-2); color: var(--text); box-shadow: inset 0 1px 0 var(--hi);
}
html[data-skin="sg26"] body #reseller-portal .rsp-card:has(#rsp-domain-input):has(+ .rsp-card .rsp-tablewrap) .rsp-btn:hover {
  background: var(--tonal-bg); color: var(--text-max); border-color: var(--border-hover); box-shadow: inset 0 1px 0 var(--hi); transform: none;
}
/* «Verify ownership» carries the board's shield icon */
html[data-skin="sg26"] body #reseller-portal form:has(> input[name="action"][value="verify"]) .rsp-btn::before {
  content: ""; width: 16px; height: 16px; flex-shrink: 0; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z'/%3E%3C/svg%3E") center/100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}
/* the cancel toggle beside it is a ghost action; it opens the confirm body with the danger button */
html[data-skin="sg26"] body #reseller-portal .rsp-actions > .rsp-confirm { border: 0; background: transparent; padding: 0; margin: 0; }
html[data-skin="sg26"] body #reseller-portal .rsp-actions > .rsp-confirm > summary {
  display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: var(--r-full); color: var(--text); font: 500 14px/20px var(--f);
}
html[data-skin="sg26"] body #reseller-portal .rsp-actions > .rsp-confirm > summary:hover { background: var(--hover-fill); color: var(--text-max); }
html[data-skin="sg26"] body #reseller-portal .rsp-actions > .rsp-confirm[open] {
  flex: 1 1 100%; padding: 12px 16px; border: 1px solid rgba(var(--t-danger), .35); border-radius: var(--r-inset); background: var(--fill-1);
}
html[data-skin="sg26"] body #reseller-portal .rsp-actions > .rsp-confirm[open] > summary { height: auto; padding: 0; color: var(--status-danger); }
html[data-skin="sg26"] body #reseller-portal .rsp-actions > .rsp-confirm[open] > summary:hover { background: transparent; }
html[data-skin="sg26"] body #reseller-portal .rsp-confirm-body form { margin: 10px 0 0; }
@media (max-width: 767.98px) {
  html[data-skin="sg26"] body #reseller-portal .rsp-actions > form:has(> input[name="action"][value="verify"]) { flex: 1 1 100%; }
  html[data-skin="sg26"] body #reseller-portal .rsp-actions > form:has(> input[name="action"][value="verify"]) .rsp-btn { width: 100%; }
}
html[data-skin="sg26"] body #reseller-portal .rsp-card input[name="markup_percent"] { max-width: 240px; }
/* tenant /subscribe frame: the brand is in the flow (centred), so the platform top padding for the absolute logo goes */
html[data-skin="sg26"] body.np-reseller #renew .npr-wrap { padding-top: 32px !important; }
@media (max-width: 767.98px) { html[data-skin="sg26"] body.np-reseller #renew .npr-wrap { padding-top: 24px !important; } }
/* subscriber mode (board ResellerBilling): «Piano attuale» is a success badge in the title row, not a pin above the card */
html[data-skin="sg26"] body.np-reseller #renew .npr-card .npb-current-badge--pin {
  --t: var(--t-success); position: absolute; top: 56px; right: 20px; left: auto; transform: none; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: var(--r-full);
  background: rgba(var(--t), .1); border: 1px solid rgba(var(--t), .3); color: var(--status-success);
  font: 500 12px/16px var(--f); letter-spacing: 0; text-transform: none; box-shadow: none;
}
html[data-skin="sg26"] body.np-reseller #renew .npr-card .npb-current-badge--pin::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
html[data-skin="sg26"] body.np-reseller #renew .npr-card:has(.npr-popular-badge) .npb-current-badge--pin { right: 124px; }
/* duration pills that carry a «when» line (subscriber mode only, .has-when): two lines, so the pill grows to the kit 44 */
html[data-skin="sg26"] body.np-reseller #renew .npr-duration.has-when {
  display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  height: auto !important; min-height: 44px !important; padding: 6px 4px !important; line-height: 18px !important;
}
html[data-skin="sg26"] body.np-reseller #renew .npr-duration.has-when .npb-when-line { display: block; font: 400 11px/14px var(--f); color: var(--text-3); white-space: nowrap; }
html[data-skin="sg26"] body.np-reseller #renew .npr-duration.has-when.is-active .npb-when-line { color: var(--text-2); }


/* ==========================================================================================================================
   18. Vera gate fixes (2026-10-10, «sg2026 reseller group»)
   ========================================================================================================================== */
/* M2: the tickets tabs carry the board's icons. admin.css hides `.sta-wrap .sta-tab .mdi` for the platform admin view; on the
   reseller panel the page id brings them back, drawn with the board's own SVGs (decision C). */
html[data-skin="sg26"] body #reseller-portal .sta-wrap .sta-tab .mdi { display: inline-block; width: 16px; height: 16px; font-size: 0; line-height: 0; flex-shrink: 0; }
html[data-skin="sg26"] body #reseller-portal .sta-wrap .sta-tab .mdi::before {
  content: ""; display: block; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: var(--rs-tab-i) center/100% 100% no-repeat; mask: var(--rs-tab-i) center/100% 100% no-repeat;
}
html[data-skin="sg26"] body #reseller-portal .sta-tab .mdi-inbox-outline { --rs-tab-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12h-6l-2 3h-4l-2-3H2'/%3E%3Cpath d='M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z'/%3E%3C/svg%3E"); }
html[data-skin="sg26"] body #reseller-portal .sta-tab .mdi-account-question-outline { --rs-tab-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M3 21v-2a4 4 0 0 1 4-4h4M17 14a2.5 2.5 0 1 1 3 2.45c-.6.2-1 .7-1 1.3V18M19 21h.01'/%3E%3C/svg%3E"); }
html[data-skin="sg26"] body #reseller-portal .sta-tab .mdi-check-circle-outline { --rs-tab-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpath d='m9 11 3 3L22 4'/%3E%3C/svg%3E"); }
html[data-skin="sg26"] body #reseller-portal .sta-tab .mdi-archive-outline { --rs-tab-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='5' x='2' y='3' rx='1'/%3E%3Cpath d='M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8M10 12h4'/%3E%3C/svg%3E"); }
/* M2: the search field keeps its magnifier (the topbar inline `body.darkside input[type=text]{background:…!important}` wiped it) */
html[data-skin="sg26"] body #reseller-portal .sta-toolbar .sta-search {
  background: var(--input-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aeaeb2' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat 12px center / 16px 16px !important;
  padding-left: 38px !important;
}
/* M3: admin resellers at 390, «Filtra» sits beside the Stato select as on the board (search full width above) */
@media (max-width: 767.98px) {
  html[data-skin="sg26"] body #resellers .rs-adm .rs-adm-filters { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; }
  html[data-skin="sg26"] body #resellers .rs-adm .rs-adm-filters > .rs-adm-q { grid-column: 1 / -1; }
  html[data-skin="sg26"] body #resellers .rs-adm .rs-adm-filters > .rs-adm-st { grid-column: 1; }
  html[data-skin="sg26"] body #resellers .rs-adm .rs-adm-filters > .btn { flex: none; }
  html[data-skin="sg26"] body #resellers .rs-adm .rs-adm-filters > .rs-adm-count { grid-column: 1 / -1; }
}
/* M4: checkout outcome glow = the kit .ambient exactly: a 1200×820 box at top −440, centred, radial closest-side
   (so radii 600×410 centred at y −30), brand at --glow-a1 fading to the accent at --glow-a2 */
html[data-skin="sg26"] body.np-reseller #npo .npr-fullscreen {
  background: radial-gradient(600px 410px at 50% -30px, color-mix(in srgb, var(--brand-primary) var(--glow-a1), transparent), color-mix(in srgb, var(--sg-accent-2) var(--glow-a2), transparent) 58%, transparent 100%) var(--bg);
}
/* ticket tabs: the board draws underline tabs; admin.css restyles .sta-wrap .sta-tabs as kit pill tabs for the platform admin */
html[data-skin="sg26"] body #reseller-portal .sta-wrap .sta-tabs { padding: 0; gap: 4px; background: transparent; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; box-shadow: none; }
html[data-skin="sg26"] body #reseller-portal .sta-wrap .sta-tab { height: auto; min-height: 44px; padding: 0 14px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; box-shadow: none; color: var(--text-2); }
html[data-skin="sg26"] body #reseller-portal .sta-wrap .sta-tab:hover { color: var(--text-max); background: transparent; }
html[data-skin="sg26"] body #reseller-portal .sta-wrap .sta-tab.is-active { color: var(--text-max); border-bottom-color: var(--brand-primary-border); background: transparent; box-shadow: none; }
/* checkout card: the board minipage is 520 wide, 24px lower */
html[data-skin="sg26"] body.np-reseller #npo .npo-wrap { max-width: 560px; }
html[data-skin="sg26"] body.np-reseller #npo .npr-logo { margin-bottom: 134px; }
@media (max-width: 767.98px) { html[data-skin="sg26"] body.np-reseller #npo .npr-logo { margin-bottom: 48px; } }
