/* The theme's WordPress glue, after the kit (tokens, ats-ui, base), the v2 site layer and the Academy layer:
   what WordPress and LearnPress print that carries no kit class. Tokens only. */

/* ---------- the page ---------- */
.ats-skip{ position:absolute; inset-inline-start:12px; inset-block-start:-48px; z-index:100; padding:10px 14px; border-radius:var(--ats-radius-md);
  background:var(--ats-accent); color:var(--ats-accent-ink); font-weight:600; text-decoration:none; transition:inset-block-start .15s; }
.ats-skip:focus{ inset-block-start:12px; }
.admin-bar .ats-site-header.ats-is-sticky{ inset-block-start:32px; }
@media (max-width: 782px){ .admin-bar .ats-site-header.ats-is-sticky{ inset-block-start:46px; } }
.ats-drawer-host[hidden]{ display:none; }
.screen-reader-text{ position:absolute!important; inline-size:1px; block-size:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.ma [hidden]{ display:none!important; }

/* ---------- content WordPress prints (pages, posts, LearnPress's profile and checkout) ---------- */
.ats-content{ color:var(--ats-fg); font-size:var(--ats-text-body); line-height:1.6; }
.ats-prose{ max-inline-size:72ch; }
.ats-content > * + *{ margin-block-start:1em; }
.ats-content h2, .ats-content h3, .ats-content h4{ font-family:var(--ats-font-display); line-height:1.2; margin-block:1.6em .5em; color:var(--ats-fg); }
.ats-content a:not([class]){ color:var(--ats-accent-text); text-underline-offset:3px; }
.ats-content img{ max-inline-size:100%; block-size:auto; border-radius:var(--ats-radius-md); }
.ats-content table{ inline-size:100%; border-collapse:collapse; font-size:var(--ats-text-ui); }
.ats-content th, .ats-content td{ padding:10px 12px; border-block-end:1px solid var(--ats-border); text-align:start; }
.ats-content :where(input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], input[type=tel], input[type=url], select, textarea){
  min-block-size:44px; padding:0 12px; border-radius:var(--ats-radius-md); border:1px solid var(--ats-border-field);
  background:var(--ats-surface); color:var(--ats-fg); font:inherit; font-size:16px; box-sizing:border-box; }
.ats-content textarea{ padding-block:10px; }
.ats-content :where(input, select, textarea):focus-visible{ border-color:var(--ats-accent); outline:2px solid var(--ats-accent-text); outline-offset:1px; }
.ats-list{ list-style:none; padding:0; margin:0; display:grid; gap:20px; }
.ats-list-t{ font-family:var(--ats-font-display); font-size:var(--ats-text-title-sm); margin:0 0 4px; }
.ats-list-t a{ color:var(--ats-fg); text-decoration:none; }

/* ---------- LearnPress: its colours from the kit ---------- */
:root:root{
  --lp-primary-color: var(--ats-accent);
  --lp-secondary-color: var(--ats-accent-text);
  --lp-cotainer-max-with: 1280px;
  --lp-border-color: var(--ats-border);
}
.ma :where(.lp-button, button.lp-button, .learn-press-form .lp-button, .lp-btn-wishlist){
  display:inline-flex; align-items:center; justify-content:center; gap:8px; min-block-size:44px; padding:0 18px;
  border-radius:var(--ats-radius-md); border:0; background:var(--ats-accent); color:var(--ats-accent-ink);
  font:600 15px/1 var(--ats-font-body); text-decoration:none; cursor:pointer; transition:background-color .15s, scale .15s; }
.ma :where(.lp-button):hover{ background:color-mix(in oklab, var(--ats-accent) 88%, white); color:var(--ats-accent-ink); }
.ma :where(.lp-button):active{ scale:.96; }
.ma-lp-enrol{ display:grid; gap:8px; }
.ma-lp-enrol :where(form, .lp-button){ inline-size:100%; margin:0; }
.ma-lp-enrol .lp-button{ min-block-size:48px; font-size:16px; }
.ma-lp-enrol .learn-press-message{ margin:0; }
.ma .learn-press-message{ border-radius:var(--ats-radius-md); border:1px solid var(--ats-border); background:var(--ats-surface); color:var(--ats-fg); padding:12px 14px; }
.ma .learn-press-message::before{ display:none; }

/* LearnPress's pages inside the frame (profile, checkout, instructors list) */
.ats-page .learnpress, .ats-page #learn-press-profile, .ats-page .lp-content-area{ color:var(--ats-fg); max-inline-size:none; padding-inline:0; }
.ats-page #learn-press-profile :where(.lp-profile-left, .wrapper-profile-header, .lp-profile-content-area){ background:var(--ats-surface); border-color:var(--ats-border); color:var(--ats-fg); border-radius:var(--ats-radius-lg); }
.ats-page :where(#profile-nav, .lp-profile-nav-tabs) a{ color:var(--ats-muted-strong); }
.ats-page :where(#profile-nav .active > a, .lp-profile-nav-tabs .active > a){ color:var(--ats-accent-text); }
.ats-page :where(.learn-press-tabs, .lp-list-table) { background:transparent; }
.ats-page .lp-list-table{ color:var(--ats-fg); }
.ats-page .lp-list-table :where(th, thead){ background:var(--ats-surface); color:var(--ats-muted-strong); }

/* ---------- the lesson player (LearnPress's own, restyled) ---------- */
.ats-view-lesson .ats-site-footer, .ats-view-lesson .m2-cta{ display:none; }
.ats-view-lesson :where(#popup-course, #popup-content, #popup-sidebar, #popup-header, #popup-footer, .content-item-wrap, .lp-course-curriculum){ background:var(--ats-bg); color:var(--ats-fg); }
.ats-view-lesson #popup-course{ --lp-bg-color-lesson: var(--ats-bg); }
.ats-view-lesson #popup-header{ background:var(--ats-surface); border-block-end:1px solid var(--ats-border); }
.ats-view-lesson #popup-header :where(.popup-header__inner, .course-title, .course-title a){ color:var(--ats-fg); font-family:var(--ats-font-display); }
.ats-view-lesson #popup-sidebar{ border-inline-end:1px solid var(--ats-border); background:var(--ats-surface); }
.ats-view-lesson #popup-sidebar :where(.course-item, .section-header, .section-title, .item-name, .course-item-meta){ color:var(--ats-fg); background:transparent; border-color:var(--ats-border); }
.ats-view-lesson #popup-sidebar .course-item.current{ background:color-mix(in oklab, var(--ats-accent) 14%, transparent); }
.ats-view-lesson #popup-sidebar .course-item.current .item-name{ color:var(--ats-accent-text); }
.ats-view-lesson #popup-content :where(.course-item-title, h1, h2, h3){ color:var(--ats-fg); font-family:var(--ats-font-display); }
.ats-view-lesson #popup-content .content-item-description{ color:var(--ats-fg); line-height:1.6; }
.ats-view-lesson #popup-content a:not([class]){ color:var(--ats-accent-text); }
.ats-view-lesson #popup-footer{ background:var(--ats-surface); border-block-start:1px solid var(--ats-border); }
.ats-view-lesson #popup-footer :where(a, .prev, .next){ color:var(--ats-fg); }
.ats-view-lesson .lp-course-progress-wrapper .learn-press-progress, .ats-view-lesson .learn-press-progress .learn-press-progress__active{ border-radius:999px; }
.ats-view-lesson .learn-press-progress .learn-press-progress__active{ background:var(--ats-accent); }
.ats-view-lesson :where(.quiz-intro-item, .quiz-status, .question, .answer-option){ background:var(--ats-surface); color:var(--ats-fg); border-color:var(--ats-border); }
#popup-course :where(.search-course, .course-section-header, .course-section, .section-header){ background:var(--ats-surface); color:var(--ats-fg); border-color:var(--ats-border); }
#popup-course .search-course{ border-block-end:1px solid var(--ats-border); }
#popup-course .search-course input[name="s"]{ background:transparent; color:var(--ats-fg); border:0; font-size:16px; }
#popup-course .search-course input::placeholder{ color:var(--ats-muted); }
#popup-course .search-course button{ color:var(--ats-muted-strong); background:transparent; }
#popup-course :where(.course-section-header .section-title, .section-header .section-title){ color:var(--ats-fg); font-family:var(--ats-font-display); }
#popup-course :where(.section-desc, .section-count-items, .course-section-header .section-count-items){ color:var(--ats-muted); }
#popup-course .course-section-header .section-toggle{ color:var(--ats-muted-strong); }
#popup-course .course-item-nav__name{ background:var(--ats-surface); color:var(--ats-fg); border:1px solid var(--ats-border); }
#popup-course .course-item .item-meta, #popup-course .course-item .course-item-meta{ color:var(--ats-muted); }
#popup-course :where(#sidebar-toggle, .back-course, .lp-button-back){ background:var(--ats-surface); color:var(--ats-fg); border-color:var(--ats-border); }
#popup-course #popup-header{ background:var(--ats-surface); border-block-end:1px solid var(--ats-border); }
#popup-course #popup-header :where(.course-title, .course-title a, .lp-button, a, button){ color:var(--ats-fg); }
#popup-course #popup-sidebar .search-course, #popup-course #popup-sidebar .search-course input[name="s"]{ background:var(--ats-surface); color:var(--ats-fg); }
#popup-course #popup-content{ background:var(--ats-bg); }
#popup-course #popup-footer{ background:var(--ats-surface); border-color:var(--ats-border); }

/* ---------- the page ground behind short pages ---------- */
html{ background:var(--ats-bg); }

/* ---------- LearnPress's instructors list, in the kit's card look ---------- */
#ats-main .lp-list-instructors .item-instructor{ background:var(--ats-surface); border:1px solid var(--ats-border); border-radius:var(--ats-radius-lg); color:var(--ats-fg); }
#ats-main .lp-list-instructors .item-instructor img{ border-radius:var(--ats-radius-md); }
#ats-main .lp-list-instructors .instructor-name{ color:var(--ats-fg); font-family:var(--ats-font-display); font-weight:600; text-decoration:none; }
#ats-main .lp-list-instructors .instructor-name:hover{ color:var(--ats-accent-text); }
#ats-main .lp-list-instructors :where(.instructor-count-courses, .instructor-count-students, .instructor-info){ color:var(--ats-muted-strong); }
#ats-main .lp-list-instructors .instructor-btn-view{ display:flex; align-items:center; justify-content:center; min-block-size:40px; border-radius:var(--ats-radius-md);
  border:1px solid var(--ats-border-strong); background:transparent; color:var(--ats-fg); font-weight:600; text-decoration:none; transition:background-color .15s, border-color .15s; }
#ats-main .lp-list-instructors .instructor-btn-view:hover{ border-color:var(--ats-accent); background:color-mix(in oklab, var(--ats-accent) 10%, transparent); color:var(--ats-fg); }

/* ---------- a sign-in prompt in place of LearnPress's "Please login" ---------- */
.ats-signin-band{ display:grid; justify-items:center; gap:16px; text-align:center; padding:48px 24px; border:1px solid var(--ats-border); border-radius:var(--ats-radius-lg); background:var(--ats-surface); }
.ats-signin-band p{ margin:0; color:var(--ats-muted-strong); max-inline-size:52ch; }
.ats-signin-band .m2-actions{ justify-content:center; }

/* ---------- the language menu (header and drawer) ---------- */
.ats-lang{ position:relative; }
.ats-lang > summary{ list-style:none; display:inline-flex; align-items:center; gap:6px; min-block-size:32px; padding:0 10px; border-radius:var(--ats-radius-md);
  color:var(--ats-muted-strong); font:600 12px/1 var(--ats-font-mono); letter-spacing:.04em; cursor:pointer; transition:color .15s, background-color .15s; }
.ats-lang > summary::-webkit-details-marker{ display:none; }
.ats-lang > summary:hover, .ats-lang[open] > summary{ color:var(--ats-fg); background:var(--ats-overlay-1); }
.ats-lang .ats-caret{ transition:rotate .15s; }
.ats-lang[open] .ats-caret{ rotate:180deg; }
.ats-lang-menu{ list-style:none; margin:0; padding:6px; min-inline-size:180px; }
.ats-lang--bar .ats-lang-menu{ position:absolute; inset-inline-end:0; inset-block-start:calc(100% + 8px); z-index:40;
  background:var(--ats-surface); border:1px solid var(--ats-border); border-radius:var(--ats-radius-lg); box-shadow:var(--ats-shadow-strong); }
.ats-lang-menu a{ display:flex; align-items:center; gap:10px; min-block-size:40px; padding:0 10px; border-radius:var(--ats-radius-md); color:var(--ats-fg); text-decoration:none; font-size:var(--ats-text-ui); }
.ats-lang-menu a:hover{ background:var(--ats-overlay-1); }
.ats-lang-menu a[aria-current]{ color:var(--ats-accent-text); }
.ats-lang-code{ font:600 11px/1 var(--ats-font-mono); color:var(--ats-muted); inline-size:22px; }
.ats-lang-menu a[aria-current] .ats-lang-code{ color:inherit; }
@media (max-width: 639px){ .m2-lang{ display:none; } }

/* ---------- the drawer's extras: language, theme, account ---------- */
.m2-drawer-extra{ display:grid; gap:12px; padding-block-start:16px; margin-block-start:8px; border-block-start:1px solid var(--ats-border); }
.m2-drawer-extra .ats-lang--drawer > summary{ inline-size:100%; justify-content:flex-start; min-block-size:44px; box-sizing:border-box; }
.m2-drawer-extra .ats-lang--drawer .ats-caret{ margin-inline-start:auto; }
.m2-drawer-extra .ats-theme-switch{ justify-self:start; }
.m2-drawer-extra .ats-btn{ justify-self:stretch; }

/* ======================================================================
   LearnPress's learner profile, in the v2 look: the profile banner (as the instructor page's), the side nav as the
   kit's app nav, the figures as stat cards, the filters as underline tabs, the lists as the kit's table.
   Scoped under body #learn-press-profile so it outranks LearnPress's own rules without !important.
   ====================================================================== */
body #learn-press-profile{ --lp-border-color: var(--ats-border); color:var(--ats-fg); font-family:var(--ats-font-body); }
body #learn-press-profile > .lp-content-area{ display:grid; grid-template-columns:240px minmax(0, 1fr); gap:24px 32px; align-items:start; max-inline-size:none; padding:0; }
body #learn-press-profile > .lp-content-area > *{ grid-column:1 / -1; min-inline-size:0; }
body #learn-press-profile > .lp-content-area > #profile-sidebar{ grid-column:1; }
body #learn-press-profile > .lp-content-area > #profile-content{ grid-column:2; }
body #learn-press-profile .lp-user-cover-image_background.lp-hidden{ display:none; }
@media (max-width: 900px){
  body #learn-press-profile > .lp-content-area{ grid-template-columns:minmax(0, 1fr); }
  body #learn-press-profile > .lp-content-area > #profile-sidebar, body #learn-press-profile > .lp-content-area > #profile-content{ grid-column:1; }
}

/* the banner */
body #learn-press-profile .wrapper-profile-header{ position:relative; overflow:hidden; isolation:isolate; padding:32px; border:1px solid var(--ats-border); border-radius:var(--ats-radius-lg);
  background:radial-gradient(60% 120% at 85% 0%, color-mix(in oklab, var(--ats-accent) 16%, transparent), transparent 70%), var(--ats-surface); }
body #learn-press-profile .wrapper-profile-header .lp-profile-content-area{ display:flex; align-items:center; gap:24px; max-inline-size:none; padding:0; }
body #learn-press-profile .lp-profile-left{ min-inline-size:96px; max-inline-size:96px; }
body #learn-press-profile .lp-profile-left .user-avatar img{ inline-size:96px; block-size:96px; object-fit:cover; border-radius:50%; box-shadow:0 0 0 3px var(--ats-bg), 0 0 0 5px color-mix(in oklab, var(--ats-accent) 55%, transparent); }
body #learn-press-profile .lp-btn-to-edit-avatar, body #learn-press-profile .lp-btn-to-edit-cover-image{ display:none; }
body #learn-press-profile .lp-profile-right{ display:grid; gap:6px; flex:1; min-inline-size:0; }
body #learn-press-profile .lp-profile-username{ margin:0; font-family:var(--ats-font-display); font-size:clamp(26px, 3vw, 36px); line-height:1.1; letter-spacing:-0.02em; font-weight:600; color:var(--ats-fg); }
body #learn-press-profile .lp-profile-user-bio, body #learn-press-profile .lp-profile-user-bio p{ margin:0; padding:0; color:var(--ats-muted-strong); font-size:var(--ats-text-lead, 16px); }
body #learn-press-profile .lp-user-profile-socials{ position:static; display:flex; gap:8px; order:3; margin-block-start:6px; }
body #learn-press-profile .lp-user-profile-socials a{ display:inline-grid; place-items:center; inline-size:36px; block-size:36px; border-radius:var(--ats-radius-md); border:1px solid var(--ats-border); color:var(--ats-muted-strong); background:transparent; text-decoration:none; transition:color .15s, border-color .15s; }
body #learn-press-profile .lp-user-profile-socials a:hover{ color:var(--ats-fg); border-color:var(--ats-border-strong); }

/* the side nav */
body #learn-press-profile #profile-sidebar{ float:none; inline-size:auto; margin:0; border:0; position:sticky; inset-block-start:88px; }
body #learn-press-profile .lp-profile-nav-tabs{ display:grid; gap:2px; margin:0; padding:6px; list-style:none; border:1px solid var(--ats-border); border-radius:var(--ats-radius-lg); background:var(--ats-surface); }
body #learn-press-profile .lp-profile-nav-tabs > li{ border:0; margin:0; padding:0; background:transparent; }
body #learn-press-profile .lp-profile-nav-tabs li a{ display:flex; align-items:center; gap:10px; min-block-size:40px; padding:0 12px; border-radius:var(--ats-radius-md); color:var(--ats-muted-strong); font-size:var(--ats-text-ui); font-weight:500; text-decoration:none; background:transparent; transition:color .15s, background-color .15s; }
body #learn-press-profile .lp-profile-nav-tabs li a i{ inline-size:18px; color:var(--ats-muted); font-size:15px; text-align:center; }
body #learn-press-profile .lp-profile-nav-tabs li a:hover{ color:var(--ats-fg); background:var(--ats-overlay-2, var(--ats-overlay-1)); }
body #learn-press-profile .lp-profile-nav-tabs > li.active > a, body #learn-press-profile .lp-profile-nav-tabs li.active > a{ color:var(--ats-fg); background:color-mix(in oklab, var(--ats-accent) 12%, transparent); box-shadow:inset 3px 0 0 var(--ats-accent); }
body #learn-press-profile .lp-profile-nav-tabs li.active > a i{ color:var(--ats-accent-text); }
body #learn-press-profile .lp-profile-nav-tabs > li.has-child > a::after{ display:none; }
body #learn-press-profile .lp-profile-nav-tabs .profile-tab-sections{ position:static; display:none; margin:2px 0 4px; padding:0 0 0 18px; list-style:none; background:transparent; border:0; box-shadow:none; inline-size:auto; }
body #learn-press-profile .lp-profile-nav-tabs > li.active.has-child .profile-tab-sections{ display:grid; gap:2px; }
body #learn-press-profile .lp-profile-nav-tabs > li.logout{ margin-block-start:4px; padding-block-start:4px; border-block-start:1px solid var(--ats-border); }
@media (max-width: 900px){
  body #learn-press-profile #profile-sidebar{ position:static; }
  body #learn-press-profile .lp-profile-nav-tabs{ display:flex; overflow-x:auto; scrollbar-width:none; }
  body #learn-press-profile .lp-profile-nav-tabs > li{ flex:none; }
  body #learn-press-profile .lp-profile-nav-tabs > li.logout{ margin:0; padding:0; border:0; }
  body #learn-press-profile .lp-profile-nav-tabs > li.active > a{ box-shadow:inset 0 -2px 0 var(--ats-accent); }
  body #learn-press-profile .lp-profile-nav-tabs .profile-tab-sections{ display:none!important; }
}

/* the content */
body #learn-press-profile #profile-content{ float:none; inline-size:auto; margin:0; padding:0; }
body #learn-press-profile #profile-content :where(h2, h3, .profile-heading){ font-family:var(--ats-font-display); color:var(--ats-fg); letter-spacing:-0.01em; }
body #learn-press-profile .dashboard-statistic__row{ display:grid; grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)); gap:12px; margin-block-end:28px; }
body #learn-press-profile .dashboard-statistic__row .statistic-box{ inline-size:auto; display:grid; grid-template-columns:auto 1fr; align-items:center; gap:12px; padding:16px; text-align:start;
  background:var(--ats-surface); border:1px solid var(--ats-border); border-radius:var(--ats-radius-lg); }
body #learn-press-profile .statistic-box__icon{ display:grid; place-items:center; inline-size:36px; block-size:36px; border-radius:var(--ats-radius-md); background:color-mix(in oklab, var(--ats-accent) 12%, transparent); color:var(--ats-accent-text); font-size:18px; }
body #learn-press-profile .statistic-box__icon span::before{ color:var(--ats-accent-text); }
body #learn-press-profile .statistic-box__text{ display:grid; gap:2px; text-align:start; }
body #learn-press-profile .statistic-box__text label{ margin:0; color:var(--ats-muted); font-size:var(--ats-text-label, 12px); font-weight:500; }
body #learn-press-profile .statistic-box__text__number{ font-family:var(--ats-font-mono); font-size:24px; line-height:1.1; color:var(--ats-fg); font-variant-numeric:tabular-nums; }

/* underline tabs (LearnPress's course filters and sub-tabs) */
body #learn-press-profile :where(.learn-press-filters, .learn-press-tabs__nav){ display:flex; gap:4px; margin:0 0 16px; padding:0; list-style:none; border-block-end:1px solid var(--ats-border); overflow-x:auto; scrollbar-width:none; background:transparent; }
body #learn-press-profile :where(.learn-press-filters, .learn-press-tabs__nav) > li{ margin:0; padding:0; border:0; background:transparent; flex:none; }
body #learn-press-profile :where(.learn-press-filters, .learn-press-tabs__nav) > li > a{ display:inline-flex; align-items:center; min-block-size:40px; padding:0 12px; margin-block-end:-1px; border-block-end:2px solid transparent;
  color:var(--ats-muted-strong); font-size:var(--ats-text-ui); font-weight:500; text-decoration:none; cursor:pointer; background:transparent; }
body #learn-press-profile :where(.learn-press-filters, .learn-press-tabs__nav) > li > a:hover{ color:var(--ats-fg); }
body #learn-press-profile .learn-press-filters > li > a.active, body #learn-press-profile .learn-press-tabs__nav > li.active > a{ color:var(--ats-fg); border-block-end-color:var(--ats-accent); }
body #learn-press-profile .learn-press-filters > li > a::after, body #learn-press-profile .learn-press-filters > li::after{ display:none; }

/* the lists, as the kit's table */
body #learn-press-profile .lp-list-table{ inline-size:100%; border-collapse:separate; border-spacing:0; margin:0; background:var(--ats-surface); border:1px solid var(--ats-border); border-radius:var(--ats-radius-lg); overflow:hidden; color:var(--ats-fg); font-size:var(--ats-text-ui); }
body #learn-press-profile .lp-list-table :where(th, td){ padding:12px 14px; border:0; border-block-end:1px solid var(--ats-border); text-align:start; vertical-align:middle; background:transparent; color:inherit; }
body #learn-press-profile .lp-list-table thead th, body #learn-press-profile .lp-list-table thead tr{ background:transparent; color:var(--ats-muted); font-size:var(--ats-text-label, 12px); font-weight:600; letter-spacing:.04em; text-transform:uppercase; }
body #learn-press-profile .lp-list-table tbody tr:last-child td{ border-block-end:0; }
body #learn-press-profile .lp-list-table tbody tr{ background:transparent; transition:background-color .15s; }
body #learn-press-profile .lp-list-table tbody tr:hover{ background:var(--ats-overlay-1); }
body #learn-press-profile .lp-list-table a{ color:var(--ats-fg); text-decoration:none; font-weight:600; }
body #learn-press-profile .lp-list-table a:hover{ color:var(--ats-accent-text); }
body #learn-press-profile .lp_profile_course_progress .course-img{ inline-size:96px; }
body #learn-press-profile .lp_profile_course_progress .course-img img{ display:block; inline-size:96px; block-size:60px; object-fit:cover; border-radius:var(--ats-radius-md); }
body #learn-press-profile .lp_profile_course_progress tr > :first-child{ inline-size:96px; padding-inline-end:0; }
body #learn-press-profile .lp_profile_course_progress .course-title{ display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
body #learn-press-profile .lp_profile_course_progress tr > :nth-child(3){ font-family:var(--ats-font-mono); white-space:nowrap; }
body #learn-press-profile .lp_profile_course_progress :where(.expire-date-time, .end-date-time){ color:var(--ats-muted-strong); }
@media (max-width: 640px){
  body #learn-press-profile .lp_profile_course_progress :where(th, td):nth-child(n+4){ display:none; }
}

/* forms (settings), notices, buttons */
body #learn-press-profile :where(.learn-press-form, .lp-profile-content form){ display:grid; gap:16px; max-inline-size:640px; padding:24px; background:var(--ats-surface); border:1px solid var(--ats-border); border-radius:var(--ats-radius-lg); }
body #learn-press-profile :where(.form-fields){ display:grid; gap:16px; margin:0; padding:0; list-style:none; }
body #learn-press-profile .form-field{ margin:0; padding:0; }
body #learn-press-profile .form-field label{ display:block; margin-block-end:6px; color:var(--ats-muted-strong); font-size:var(--ats-text-ui); font-weight:500; }
body #learn-press-profile :where(input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], select, textarea){
  inline-size:100%; min-block-size:44px; padding:0 12px; box-sizing:border-box; border-radius:var(--ats-radius-md); border:1px solid var(--ats-border-field); background:var(--ats-bg); color:var(--ats-fg); font:inherit; font-size:16px; }
body #learn-press-profile textarea{ min-block-size:120px; padding-block:10px; }
body #learn-press-profile :where(input, select, textarea):focus-visible{ outline:2px solid var(--ats-accent-text); outline-offset:1px; border-color:var(--ats-accent); }
body #learn-press-profile .description{ color:var(--ats-muted); font-size:var(--ats-text-label, 12px); }
body #learn-press-profile :where(button, .lp-button, input[type=submit]){ min-block-size:44px; padding:0 18px; border-radius:var(--ats-radius-md); border:0; background:var(--ats-accent); color:var(--ats-accent-ink); font:600 15px/1 var(--ats-font-body); cursor:pointer; }
body #learn-press-profile :where(.learn-press-message, .lp-message){ margin:0 0 16px; padding:14px 16px; border-radius:var(--ats-radius-md); border:1px solid var(--ats-border); background:var(--ats-surface); color:var(--ats-fg); }
body #learn-press-profile :where(.learn-press-message, .lp-message)::before{ display:none; }
body #learn-press-profile .lp-archive-courses ul.learn-press-courses{ display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:16px; margin:0; padding:0; }
.ats-profile-page{ padding-block-start:32px; }
/* the figures read as the site's stat strip: label over a mono number, no pictograms */
body #learn-press-profile .dashboard-statistic__row .statistic-box{ display:flex; flex-direction:column; align-items:flex-start; gap:6px; }
body #learn-press-profile .dashboard-statistic__row .statistic-box__icon{ display:none; }
body #learn-press-profile .dashboard-statistic__row .statistic-box__text{ display:flex; flex-direction:column; gap:6px; inline-size:100%; }
body #learn-press-profile .dashboard-statistic__row .statistic-box__text label{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
body #learn-press-profile .dashboard-statistic__row .statistic-box__text__number{ font-size:28px; }
body #learn-press-profile .wrapper-profile-header :where(.lp-profile-content-area, .lp-profile-right, .lp-profile-left){ background:transparent; border:0; box-shadow:none; }
@media (max-width: 640px){
  body #learn-press-profile .wrapper-profile-header{ padding:20px; }
  body #learn-press-profile .wrapper-profile-header .lp-profile-content-area{ gap:16px; flex-direction:row; text-align:start; }
  body #learn-press-profile .lp-profile-left{ min-inline-size:64px; max-inline-size:64px; }
  body #learn-press-profile .lp-profile-left .user-avatar img{ inline-size:64px; block-size:64px; }
  body #learn-press-profile .lp-profile-nav-tabs li a{ flex-direction:row; white-space:nowrap; }
  body #learn-press-profile .dashboard-statistic__row{ grid-template-columns:1fr 1fr; }
  body #learn-press-profile .dashboard-statistic__row .statistic-box, body #learn-press-profile .statistic-box__text{ align-items:flex-start; text-align:start; }
  body #learn-press-profile .lp_profile_course_progress{ table-layout:fixed; }
  body #learn-press-profile .lp_profile_course_progress :where(th, td){ display:table-cell; white-space:normal; padding:10px; }
  body #learn-press-profile .lp_profile_course_progress :where(th, td):nth-child(n+4){ display:none; }
  body #learn-press-profile .lp_profile_course_progress tr > :first-child{ inline-size:72px; }
  body #learn-press-profile .lp_profile_course_progress tr > :nth-child(3){ inline-size:56px; }
  body #learn-press-profile .lp_profile_course_progress .course-img, body #learn-press-profile .lp_profile_course_progress .course-img img{ inline-size:72px; block-size:45px; }
  body #learn-press-profile .lp_profile_course_progress .course-title{ font-size:14px; }
}
@media (max-width: 640px){
  body #learn-press-profile .lp-profile-content .lp_profile_course_progress{ width:100%; min-width:0; max-width:100%; }
  body #learn-press-profile .lp-profile-content .lp_profile_course_progress tr > :first-child{ width:72px; }
  body #learn-press-profile .lp-profile-content .lp_profile_course_progress tr > :nth-child(2){ width:auto; }
  body #learn-press-profile .lp-profile-content .lp_profile_course_progress tr > :nth-child(3){ width:56px; }
}
body #learn-press-profile{ inline-size:100%; }
body #learn-press-profile .learn-press-form .form-field label{ font-style:normal; }
body #learn-press-profile .learn-press-form .form-field :where(input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], select, textarea){ inline-size:100%; max-inline-size:none; }
body #learn-press-profile .learn-press-form .form-fields{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
body #learn-press-profile .learn-press-form .form-fields > .form-field:not(.form-field__50){ grid-column:1 / -1; }
@media (max-width: 640px){ body #learn-press-profile .learn-press-form .form-fields{ grid-template-columns:1fr; } }
/* the player's buttons as the kit's */
#popup-course :where(.lp-button, .lp-btn-complete-item, button.lp-button){ min-block-size:44px; padding:0 18px; border-radius:var(--ats-radius-md); border:0; background:var(--ats-accent); color:var(--ats-accent-ink); font:600 15px/1 var(--ats-font-body); opacity:1; }
#popup-course :where(.lp-button, .lp-btn-complete-item):disabled{ opacity:.5; }
.ats-page > .m2-wrap{ inline-size:100%; box-sizing:border-box; }
.ats-page .learnpress{ padding:0; }
body #learn-press-profile .learn-press-form .form-fields > .form-field{ inline-size:auto; float:none; margin:0; list-style:none; }
body #learn-press-profile .learn-press-form{ max-inline-size:760px; }
.ats-site-header.ats-is-tight .ma-badge-academy{ display:none; }
.ats-lang--bar > summary{ padding:0 8px; gap:5px; }
.admin-bar .ats-site-header.ats-is-sticky{ inset-block-start:32px; }
body #learn-press-profile .lp-profile-nav-tabs .profile-tab-sections li{ border:0; }
/* LearnPress's course cards in the profile (an instructor's Courses tab, the wishlist) */
body #learn-press-profile .lp-archive-courses ul.learn-press-courses > li{ inline-size:auto; max-inline-size:none; margin:0; padding:0; float:none; }
body #learn-press-profile .lp-archive-courses .course-item{ display:flex; flex-direction:column; block-size:100%; overflow:hidden; border:1px solid var(--ats-border); border-radius:var(--ats-radius-lg); background:var(--ats-surface); transition:border-color .15s; }
body #learn-press-profile .lp-archive-courses .course-item:hover{ border-color:var(--ats-border-strong); }
body #learn-press-profile .lp-archive-courses .course-thumbnail{ position:relative; inline-size:100%; margin:0; }
body #learn-press-profile .lp-archive-courses .course-thumbnail img{ display:block; inline-size:100%; aspect-ratio:16/10; object-fit:cover; border-radius:0; }
body #learn-press-profile .lp-archive-courses .course-content{ display:grid; gap:8px; padding:14px 16px 16px; inline-size:auto; }
body #learn-press-profile .lp-archive-courses .course-content :where(.course-title, h3, h3 a){ margin:0; color:var(--ats-fg); font-family:var(--ats-font-display); font-size:16px; line-height:1.3; text-decoration:none; }
body #learn-press-profile .lp-archive-courses .course-content :where(.course-instructor, .course-wrap-meta, .meta-item, .course-count-lesson, .course-count-student){ color:var(--ats-muted-strong); font-size:var(--ats-text-label, 12px); }
body #learn-press-profile .lp-archive-courses .course-content a{ color:inherit; }
body #learn-press-profile .lp-archive-courses .lp-button-wishlist-action{ position:absolute; inset-block-start:8px; inset-inline-end:8px; min-block-size:32px; inline-size:32px; padding:0; border-radius:50%; background:color-mix(in oklab, var(--ats-bg) 70%, transparent); color:var(--ats-fg); }
body #learn-press-profile .lp-archive-courses .review-stars-rated{ color:#f5b301; }
body #learn-press-profile .lp-course-builder-link, body #learn-press-profile .learn-press-course-builder-link{ color:var(--ats-accent-text); }

/* ---------- WooCommerce (the Platform): the shop, the account, the cart and the checkout in the v2 look ---------- */
/* The account shell (mp-shell) and the shop hero are the kit's; this is the WooCommerce markup WO prints inside. */
.mp .woocommerce{ display:contents; }
.mp-main > .woocommerce-notices-wrapper:empty{ display:none; }
.mp-main :where(.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notice){ display:flex; align-items:flex-start; gap:10px; margin:0 0 18px; padding:14px 16px; border:1px solid var(--ats-border); border-radius:var(--ats-radius-lg); background:var(--ats-surface); color:var(--ats-fg); font-size:var(--ats-text-ui); list-style:none; }
.mp-main .woocommerce-message{ border-color:color-mix(in oklab, var(--ats-value-positive) 45%, var(--ats-border)); }
.mp-main .woocommerce-info{ border-color:var(--ats-border-strong); }
.mp-main .woocommerce-error{ border-color:color-mix(in oklab, var(--ats-danger) 45%, var(--ats-border)); }
.mp-main :where(.woocommerce-message, .woocommerce-info, .woocommerce-error) .button{ margin-inline-start:auto; }

/* buttons WO prints */
body.ats-theme .woocommerce a.button,
body.ats-theme .woocommerce button.button,
body.ats-theme .woocommerce input.button,
body.ats-theme .woocommerce #respond input#submit{ display:inline-flex; align-items:center; justify-content:center; inline-size:auto; min-block-size:40px; padding:0 16px; border:1px solid transparent; border-radius:var(--ats-radius-md); background:var(--ats-accent); color:var(--ats-accent-ink); font:600 var(--ats-text-ui, 14px)/1 var(--ats-font-body); text-decoration:none; cursor:pointer; }
body.ats-theme .woocommerce a.button.alt, body.ats-theme .woocommerce button.button.alt, body.ats-theme .woocommerce input.button.alt{ background:var(--ats-accent); color:var(--ats-accent-ink); }
body.ats-theme .woocommerce a.button:hover, body.ats-theme .woocommerce button.button:hover, body.ats-theme .woocommerce input.button:hover{ filter:brightness(1.06); }
body.ats-theme .woocommerce .woocommerce-orders-table__cell-order-actions .button,
body.ats-theme .woocommerce .woocommerce-button.button.view{ background:transparent; border-color:var(--ats-border-strong); color:var(--ats-fg); }
body.ats-theme .woocommerce a.added_to_cart{ margin-inline-start:8px; background:transparent; border-color:var(--ats-border); color:var(--ats-fg); }

/* forms WO prints */
body.ats-theme .woocommerce input[type=text], body.ats-theme .woocommerce input[type=email], body.ats-theme .woocommerce input[type=tel], body.ats-theme .woocommerce input[type=password], body.ats-theme .woocommerce input[type=url], body.ats-theme .woocommerce input[type=number], body.ats-theme .woocommerce input[type=search], body.ats-theme .woocommerce select, body.ats-theme .woocommerce textarea{ inline-size:100%; box-sizing:border-box; min-block-size:44px; padding:10px 12px; border:1px solid var(--ats-border-field, var(--ats-border)); border-radius:var(--ats-radius-md); background:var(--ats-surface); color:var(--ats-fg); font:400 15px/1.3 var(--ats-font-body); }
body.ats-theme .woocommerce input:focus, body.ats-theme .woocommerce select:focus, body.ats-theme .woocommerce textarea:focus{ outline:2px solid var(--ats-accent); outline-offset:1px; border-color:var(--ats-accent); }
body.ats-theme .woocommerce .form-row{ margin:0 0 16px; }
body.ats-theme .woocommerce form .form-row label{ display:block; margin:0 0 6px; color:var(--ats-muted-strong); font-size:var(--ats-text-label, 12px); letter-spacing:.02em; }
body.ats-theme .woocommerce form .form-row.woocommerce-invalid label{ color:var(--ats-danger); }
body.ats-theme .woocommerce form .form-row.woocommerce-invalid input, body.ats-theme .woocommerce form .form-row.woocommerce-invalid select, body.ats-theme .woocommerce form .form-row.woocommerce-invalid textarea{ border-color:var(--ats-danger); }
body.ats-theme .woocommerce form .form-row.woocommerce-validated:before{ content:none; }

/* tables WO prints (orders, cart, checkout) */
body.ats-theme .woocommerce table.shop_table{ inline-size:100%; border:1px solid var(--ats-border); border-radius:var(--ats-radius-lg); border-collapse:separate; border-spacing:0; overflow:hidden; background:var(--ats-surface); }
body.ats-theme .woocommerce table.shop_table th{ padding:12px 16px; border-block-end:1px solid var(--ats-border); background:var(--m2-card, var(--ats-surface)); color:var(--ats-muted-strong); font:600 var(--ats-text-label, 12px)/1.2 var(--ats-font-body); text-transform:uppercase; letter-spacing:.06em; text-align:start; }
body.ats-theme .woocommerce table.shop_table td{ padding:14px 16px; border-block-start:1px solid var(--ats-border); color:var(--ats-fg); font-size:var(--ats-text-ui, 14px); vertical-align:middle; }
body.ats-theme .woocommerce table.shop_table tfoot td, body.ats-theme .woocommerce table.shop_table tfoot th{ background:color-mix(in oklab, var(--ats-fg) 4%, transparent); font-weight:600; }
body.ats-theme .woocommerce table.shop_table_responsive tr td:before{ color:var(--ats-muted-strong); }
body.ats-theme .woocommerce .shop_table .product-thumbnail img{ inline-size:52px; block-size:auto; border-radius:var(--ats-radius-md); }
body.ats-theme .woocommerce .shop_table .product-remove a{ color:var(--ats-danger); text-decoration:none; font-size:20px; line-height:1; }

/* the account content (inside .mp-main) */
.mp-main .woocommerce-MyAccount-content{ display:grid; gap:22px; }
.mp-main .woocommerce-MyAccount-content > p:first-child{ margin:0; color:var(--ats-muted-strong); font-size:var(--ats-text-ui, 14px); }
.mp-main h2, .mp-main h3{ margin:0 0 4px; font-family:var(--ats-font-display); color:var(--ats-fg); }
.mp-main .woocommerce-Addresses{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.mp-main .woocommerce-Address{ padding:20px; border:1px solid var(--ats-border); border-radius:var(--ats-radius-lg); background:var(--m2-card, var(--ats-surface)); }
.mp-main .woocommerce-Address address{ margin:10px 0 0; font-style:normal; color:var(--ats-muted-strong); line-height:1.6; }
.mp-main .woocommerce-Address-title h3{ font-size:16px; }
.mp-main fieldset{ border:1px solid var(--ats-border); border-radius:var(--ats-radius-lg); padding:18px; margin:0 0 18px; }
.mp-main legend{ padding:0 8px; color:var(--ats-muted-strong); font-size:var(--ats-text-label, 12px); text-transform:uppercase; letter-spacing:.06em; }

/* the shop grid */
body.ats-theme .woocommerce ul.products{ display:grid; grid-template-columns:repeat(auto-fill, minmax(280px, 1fr)); gap:22px; margin:20px 0 0; padding:0; list-style:none; }
body.ats-theme .woocommerce ul.products:before, body.ats-theme .woocommerce ul.products:after{ content:none; }
body.ats-theme .woocommerce ul.products li.product,
body.ats-theme .woocommerce ul.products li.mp-pcard-li{ inline-size:auto; width:auto; max-inline-size:none; max-width:none; margin:0; padding:0; float:none; clear:none; }
body.ats-theme .mp-panel > ul.products{ display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:20px; margin:18px 0 0; padding:0; list-style:none; }
body.ats-theme .woocommerce ul.products li.product .ma-card{ block-size:100%; }
.mp-shop-bar{ display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin:0 0 4px; }
.mp-shop-search{ flex:1 1 320px; max-inline-size:460px; }
.mp-shop-search .ats-input{ inline-size:100%; }
.mp-shop-tools{ display:flex; align-items:center; gap:16px; }
body.ats-theme .mp-shop-tools .woocommerce-ordering select{ min-block-size:42px; padding:8px 36px 8px 12px; border:1px solid var(--ats-border-field, var(--ats-border)); border-radius:var(--ats-radius-md); background:var(--ats-surface); color:var(--ats-fg); }
.mp-shop-bar .woocommerce-result-count{ margin:0; color:var(--ats-muted-strong); font-size:var(--ats-text-ui, 14px); }
.mp-shop-bar .woocommerce-ordering{ margin:0; }
.mp-departments{ margin:0 0 8px; }
.mp-empty{ display:grid; gap:12px; justify-items:start; padding:40px 0; }

/* the cart and the checkout */
body.ats-theme .woocommerce-cart .woocommerce{ display:grid; grid-template-columns:minmax(0,1fr) 360px; gap:32px; align-items:start; }
body.ats-theme .woocommerce-cart .cart-collaterals{ grid-column:2; }
body.ats-theme .woocommerce .cart_totals{ padding:20px; border:1px solid var(--ats-border); border-radius:var(--ats-radius-lg); background:var(--m2-card, var(--ats-surface)); }
body.ats-theme .woocommerce .cart_totals h2{ font-size:18px; margin:0 0 12px; }
body.ats-theme .woocommerce .cart_totals table{ border:0; }
body.ats-theme .woocommerce-cart .wc-proceed-to-checkout a.checkout-button{ inline-size:100%; min-block-size:48px; }
@media (max-width: 900px){ body.ats-theme .woocommerce-cart .woocommerce{ grid-template-columns:1fr; } body.ats-theme .woocommerce-cart .cart-collaterals{ grid-column:auto; } }

/* a single product */
body.ats-theme .mp-product-page{ padding-block:24px 64px; }
body.ats-theme .mp-crumbs{ margin:0 0 20px; }
body.ats-theme .mp-product-top{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:clamp(24px,4vw,48px); align-items:start; }
body.ats-theme .mp-product .woocommerce-product-gallery{ inline-size:auto; float:none; margin:0; }
body.ats-theme .mp-product .woocommerce-product-gallery img{ border:1px solid var(--ats-border); border-radius:var(--ats-radius-lg); }
body.ats-theme .mp-product .summary{ margin:0; float:none; }
body.ats-theme .mp-product .product_title{ margin:0 0 12px; font-family:var(--ats-font-display); font-size:clamp(28px,3vw,40px); }
body.ats-theme .mp-product p.price{ color:var(--ats-fg); font-family:var(--ats-font-mono); font-size:26px; margin:0 0 16px; }
body.ats-theme .mp-product .woocommerce-product-details__short-description{ color:var(--ats-muted-strong); }
body.ats-theme .mp-product form.cart{ display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin:0 0 18px; }
body.ats-theme .mp-product .single_add_to_cart_button, body.ats-theme .mp-product button.button.alt{ min-block-size:46px; padding-inline:24px; background:var(--ats-accent); color:var(--ats-accent-ink); border-color:transparent; }
body.ats-theme .mp-product .product_meta{ display:grid; gap:4px; color:var(--ats-muted-strong); font-size:var(--ats-text-ui, 14px); }
body.ats-theme .mp-product .product_meta a{ color:var(--ats-accent-text); }
body.ats-theme .mp-product .woocommerce-tabs{ margin-block-start:44px; }
body.ats-theme .mp-product .woocommerce-tabs ul.tabs{ display:flex; gap:4px; margin:0; padding:0; border-bottom:1px solid var(--ats-border); list-style:none; }
body.ats-theme .mp-product .woocommerce-tabs ul.tabs li{ margin:0; }
body.ats-theme .mp-product .woocommerce-tabs ul.tabs li a{ display:block; padding:12px 16px; border-bottom:2px solid transparent; color:var(--ats-muted-strong); font-weight:600; text-decoration:none; }
body.ats-theme .mp-product .woocommerce-tabs ul.tabs li.active a{ color:var(--ats-fg); border-bottom-color:var(--ats-accent); }
body.ats-theme .mp-product .woocommerce-tabs .panel{ padding-block:20px 0; color:var(--ats-fg); }
body.ats-theme .mp-product .related.products, body.ats-theme .mp-product .upsells.products{ margin-block-start:44px; }
body.ats-theme .mp-product .related.products > h2, body.ats-theme .mp-product .upsells.products > h2{ font-family:var(--ats-font-display); font-size:24px; margin:0 0 16px; }
@media (max-width:900px){ body.ats-theme .mp-product-top{ grid-template-columns:1fr; gap:24px; } }

/* log in / register */
body.ats-theme .woocommerce-account:not(.logged-in) .woocommerce{ display:grid; grid-template-columns:minmax(0,440px) minmax(0,1fr); gap:48px; align-items:start; max-inline-size:var(--ats-container, 1200px); margin-inline:auto; padding:clamp(24px,5vw,64px) 20px; }
@media (max-width: 900px){ body.ats-theme .woocommerce-account:not(.logged-in) .woocommerce{ grid-template-columns:1fr; } }

/* ---------- the accounts table (wp-account-tracker) on any of our pages ---------- */
/* The v2 rule (algotradingspace-ui tailwind.css): the table goes full-bleed so every column is on screen, one value
   per cell, no vertical inner scroll; the page itself scrolls and the horizontal bar appears only when the screen
   is physically narrower than the columns. The kit's tokens replace the plugin's hard-coded light theme. */
body.ats-theme .space-tracker-stats{
  --color-brand:var(--ats-accent);
  --color-brand-dark:var(--ats-accent);
  --color-brand-accent:var(--ats-accent);
  --color-body:var(--ats-surface);
  --color-bg:var(--ats-bg);
  --color-surface:var(--ats-surface);
  --color-surface-2:var(--m2-card, var(--ats-surface));
  --color-surface-alt:var(--m2-card, var(--ats-surface));
  --color-surface-muted:color-mix(in oklab, var(--ats-fg) 5%, transparent);
  --color-title:var(--ats-fg);
  --color-text:var(--ats-fg);
  --color-text-muted:var(--ats-muted-strong);
  --color-border:var(--ats-border);
  font-family:var(--ats-font-body);
  color:var(--ats-fg);
  overflow:visible;
}
body.ats-theme .space-tracker-stats .accounts-table-container{
  inline-size:100vw;
  max-inline-size:100vw;
  margin-inline:calc(-50vw + 50%);
  padding-inline:1rem;
  box-sizing:border-box;
  overflow-x:auto;
  border-top:1px solid var(--ats-border);
  border-bottom:1px solid var(--ats-border);
  -webkit-overflow-scrolling:touch;
}
@media (min-width:768px){ body.ats-theme .space-tracker-stats .accounts-table-container{ padding-inline:2rem; } }
@media (min-width:1200px){ body.ats-theme .space-tracker-stats .accounts-table-container{ padding-inline:3rem; } }
body.ats-theme .space-tracker-stats .accounts-table{ inline-size:100%; border-collapse:collapse; font-size:.875rem; white-space:nowrap; }
body.ats-theme .space-tracker-stats .accounts-table > thead > tr > th{ padding:.75rem 1rem; border-bottom:2px solid var(--ats-border); background:var(--m2-card, var(--ats-surface)); color:var(--ats-fg); font-size:.8125rem; font-weight:600; letter-spacing:.5px; text-transform:uppercase; }
/* The plugin pins the head to the viewport top, where our own sticky header hides it; v2 keeps it in the flow. */
body.ats-theme .space-tracker-stats .accounts-table > thead{ position:static; }
body.ats-theme .space-tracker-stats .accounts-table > tbody > tr:not(.detail-expand-row) > td{ padding:.75rem 1rem; border-bottom:1px solid var(--ats-border); color:var(--ats-fg); vertical-align:middle; }
body.ats-theme .space-tracker-stats .accounts-table > tbody > tr:not(.detail-expand-row):hover{ background:color-mix(in oklab, var(--ats-fg) 4%, transparent); }
body.ats-theme .space-tracker-stats .totals-row{ background:color-mix(in oklab, var(--ats-fg) 7%, transparent) !important; font-weight:700; }
body.ats-theme .space-tracker-stats .totals-row td{ border-top:2px solid var(--ats-border); color:var(--ats-fg); }
body.ats-theme .space-tracker-stats :where(.controls-section, .accounts-grid, .stats-overview){ inline-size:100%; }
body.ats-theme .space-tracker-stats .stats-overview .stat-card,
body.ats-theme .space-tracker-stats :where(.filter-select, .sort-select, .search-container input){ border:1px solid var(--ats-border); border-radius:var(--ats-radius-md); background:var(--ats-surface); color:var(--ats-fg); }

/* ---------- Apps & licences (ats-license-server, .atsl-*) ---------- */
body.ats-theme .atsl-account{ display:grid; gap:20px; }
body.ats-theme .atsl-notice{ display:grid; gap:10px; padding:16px 18px; border:1px solid var(--ats-border); border-left:3px solid var(--ats-accent); border-radius:var(--ats-radius-lg); background:var(--m2-card, var(--ats-surface)); color:var(--ats-fg); }
body.ats-theme .atsl-notice p{ margin:0; color:var(--ats-muted-strong); font-size:var(--ats-text-ui, 14px); line-height:1.6; }
body.ats-theme .atsl-card{ display:grid; gap:18px; padding:22px; border:1px solid var(--ats-border); border-radius:var(--ats-radius-lg); background:var(--m2-card, var(--ats-surface)); }
body.ats-theme .atsl-card__head{ display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
body.ats-theme .atsl-card__title{ margin:0; font-family:var(--ats-font-display); font-size:20px; color:var(--ats-fg); }
body.ats-theme .atsl-card__meta{ margin:4px 0 0; color:var(--ats-muted-strong); font-size:var(--ats-text-ui, 14px); }
body.ats-theme .atsl-status{ padding:4px 10px; border-radius:var(--ats-radius-pill); font:600 var(--ats-text-label, 12px)/1.4 var(--ats-font-body); }
body.ats-theme .atsl-status--ok{ background:color-mix(in oklab, var(--ats-value-positive) 16%, transparent); color:var(--ats-value-positive); }
body.ats-theme .atsl-status--off{ background:color-mix(in oklab, var(--ats-fg) 8%, transparent); color:var(--ats-muted-strong); }
body.ats-theme .atsl-key__label, body.ats-theme .atsl-slots__title{ display:block; margin:0 0 8px; color:var(--ats-muted-strong); font-size:var(--ats-text-label, 12px); font-weight:600; letter-spacing:.06em; text-transform:uppercase; }
body.ats-theme .atsl-key__row{ display:flex; gap:10px; align-items:center; }
body.ats-theme .atsl-key__input{ flex:1; min-block-size:44px; padding:10px 14px; border:1px solid var(--ats-border-field, var(--ats-border)); border-radius:var(--ats-radius-md); background:var(--ats-bg); color:var(--ats-fg); font-family:var(--ats-font-mono); font-size:14px; }
body.ats-theme .atsl-btn{ display:inline-flex; align-items:center; justify-content:center; min-block-size:44px; padding:0 16px; border:1px solid var(--ats-border-strong); border-radius:var(--ats-radius-md); background:transparent; color:var(--ats-fg); font:600 var(--ats-text-ui, 14px)/1 var(--ats-font-body); cursor:pointer; }
body.ats-theme .atsl-btn:hover{ border-color:var(--ats-accent); }
body.ats-theme .atsl-slots__hint{ margin:0 0 10px; color:var(--ats-muted-strong); font-size:var(--ats-text-label, 12px); }
body.ats-theme .atsl-slots__list{ display:flex; flex-wrap:wrap; gap:8px; margin:0; padding:0; list-style:none; }
body.ats-theme .atsl-slot, body.ats-theme .atsl-slots__list li{ padding:6px 12px; border:1px solid var(--ats-border); border-radius:var(--ats-radius-pill); background:var(--ats-bg); color:var(--ats-fg); font-family:var(--ats-font-mono); font-size:12px; }

/* ---------- My track records (academy-track-records, FX Blue) ---------- */
body.ats-theme .fxblue-track-records-wrapper{ display:grid; gap:18px; }
body.ats-theme .fxblue-track-records-wrapper .nav-tab-wrapper{ display:flex; gap:6px; border-bottom:1px solid var(--ats-border); }
body.ats-theme .fxblue-track-records-wrapper .nav-tab{ padding:10px 14px; border:0; border-bottom:2px solid transparent; color:var(--ats-muted-strong); font:600 var(--ats-text-ui, 14px)/1 var(--ats-font-body); text-decoration:none; }
body.ats-theme .fxblue-track-records-wrapper .nav-tab-active{ color:var(--ats-fg); border-bottom-color:var(--ats-accent); }
body.ats-theme .track-records-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(420px, 1fr)); gap:20px; }
body.ats-theme .track-record-item{ padding:16px; border:1px solid var(--ats-border); border-radius:var(--ats-radius-lg); background:var(--m2-card, var(--ats-surface)); }
body.ats-theme .track-record-item h3{ margin:0 0 12px; font-family:var(--ats-font-display); font-size:18px; color:var(--ats-fg); }
body.ats-theme .fxblue-track-record-responsive{ position:relative; inline-size:100%; aspect-ratio:4 / 3; overflow:hidden; border:1px solid var(--ats-border); border-radius:var(--ats-radius-md); background:var(--ats-bg); }
body.ats-theme .fxblue-track-record{ position:absolute; inset:0; inline-size:100%; block-size:100%; border:0; }
@media (max-width:640px){ body.ats-theme .track-records-grid{ grid-template-columns:1fr; } }

/* ---------- Affiliate area (AffiliateWP, .affwp-*) ---------- */
body.ats-theme #affwp-affiliate-dashboard{ display:grid; gap:22px; }
body.ats-theme #affwp-affiliate-dashboard-tabs{ display:flex; flex-wrap:wrap; gap:4px; margin:0; padding:0; list-style:none; border-bottom:1px solid var(--ats-border); }
body.ats-theme #affwp-affiliate-dashboard-tabs .affwp-affiliate-dashboard-tab{ margin:0; }
body.ats-theme #affwp-affiliate-dashboard-tabs .affwp-affiliate-dashboard-tab a{ display:block; padding:10px 14px; border-bottom:2px solid transparent; color:var(--ats-muted-strong); font:600 var(--ats-text-ui, 14px)/1 var(--ats-font-body); text-decoration:none; }
body.ats-theme #affwp-affiliate-dashboard-tabs .affwp-affiliate-dashboard-tab a:hover{ color:var(--ats-fg); }
body.ats-theme #affwp-affiliate-dashboard-tabs .affwp-affiliate-dashboard-tab.active a{ color:var(--ats-fg); border-bottom-color:var(--ats-accent); }
body.ats-theme .affwp-card{ border:1px solid var(--ats-border); border-radius:var(--ats-radius-lg); background:var(--m2-card, var(--ats-surface)); overflow:hidden; }
body.ats-theme .affwp-card__header{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 20px; border-bottom:1px solid var(--ats-border); }
body.ats-theme .affwp-card__header :where(h2, h3, p){ margin:0; font-family:var(--ats-font-display); font-weight:600; color:var(--ats-fg); }
body.ats-theme .affwp-card__content{ padding:20px; color:var(--ats-fg); }
body.ats-theme .affwp-card__footer{ padding:16px 20px; border-top:1px solid var(--ats-border); }
body.ats-theme #affwp-affiliate-dashboard .affwp-table, body.ats-theme .affwp-table{ inline-size:100%; border:1px solid var(--ats-border); border-radius:var(--ats-radius-lg); border-collapse:separate; border-spacing:0; overflow:hidden; background:var(--ats-surface); }
body.ats-theme .affwp-table th{ padding:12px 16px; border-bottom:1px solid var(--ats-border); background:var(--m2-card, var(--ats-surface)); color:var(--ats-muted-strong); font:600 var(--ats-text-label, 12px)/1.2 var(--ats-font-body); text-transform:uppercase; letter-spacing:.06em; text-align:start; }
body.ats-theme .affwp-table td{ padding:14px 16px; border-top:1px solid var(--ats-border); color:var(--ats-fg); font-size:var(--ats-text-ui, 14px); }
body.ats-theme #affwp-affiliate-dashboard input[type=text], body.ats-theme #affwp-affiliate-dashboard input[type=email], body.ats-theme #affwp-affiliate-dashboard input[type=url], body.ats-theme #affwp-affiliate-dashboard input[type=number], body.ats-theme #affwp-affiliate-dashboard select, body.ats-theme #affwp-affiliate-dashboard textarea{ inline-size:100%; box-sizing:border-box; min-block-size:44px; padding:10px 12px; border:1px solid var(--ats-border-field, var(--ats-border)); border-radius:var(--ats-radius-md); background:var(--ats-surface); color:var(--ats-fg); }
body.ats-theme #affwp-affiliate-dashboard .button, body.ats-theme #affwp-affiliate-dashboard button.button, body.ats-theme .affwp-affiliate-link-copy-link{ display:inline-flex; align-items:center; justify-content:center; min-block-size:44px; padding:0 18px; border:1px solid var(--ats-border-strong); border-radius:var(--ats-radius-md); background:transparent; color:var(--ats-fg); font:600 var(--ats-text-ui, 14px)/1 var(--ats-font-body); text-decoration:none; cursor:pointer; }
body.ats-theme #affwp-affiliate-dashboard .button:hover, body.ats-theme .affwp-affiliate-link-copy-link:hover{ border-color:var(--ats-accent); }
body.ats-theme #affwp-affiliate-dashboard input[type=submit], body.ats-theme .affwp-custom-link-submit{ border-color:transparent; background:var(--ats-accent); color:var(--ats-accent-ink); }
body.ats-theme .affwp-affiliate-link__input{ inline-size:100%; font-family:var(--ats-font-mono); }
body.ats-theme .affwp-affiliate-link-copy-link{ margin-inline-start:10px; }
body.ats-theme #affwp-affiliate-dashboard .affwp-card__content a, body.ats-theme #affwp-affiliate-dashboard .affwp-form a:not(.button){ color:var(--ats-accent-text); text-underline-offset:3px; }
body.ats-theme #affwp-affiliate-dashboard .affwp-table th{ white-space:nowrap; }

/* ---------- shop/product links, crumbs and the variation form ---------- */
body.ats-theme .woocommerce ul.products .ma-card-title a,
body.ats-theme .woocommerce ul.products .ma-card-cat a{ color:inherit; text-decoration:none; }
body.ats-theme .woocommerce ul.products .ma-card-title a:hover{ color:var(--ats-accent-text); }
body.ats-theme .woocommerce ul.products .ma-card-cat{ color:var(--ats-muted-strong); }
body.ats-theme .mp-crumbs{ display:flex; flex-wrap:wrap; align-items:center; gap:6px; color:var(--ats-muted-strong); font-size:var(--ats-text-ui, 14px); }
body.ats-theme .mp-crumbs a{ color:var(--ats-muted-strong); text-decoration:none; }
body.ats-theme .mp-crumbs a:hover{ color:var(--ats-fg); }
body.ats-theme .mp-crumbs .ats-crumbs-sep{ opacity:.5; }
body.ats-theme .mp-product .variations{ margin:0 0 16px; border-collapse:collapse; }
body.ats-theme .mp-product .variations th, body.ats-theme .mp-product .variations td{ padding:6px 0; text-align:start; }
body.ats-theme .mp-product .variations label{ color:var(--ats-muted-strong); font-size:var(--ats-text-ui, 14px); }
body.ats-theme .mp-product .variations select{ min-inline-size:220px; }
body.ats-theme .mp-product .quantity input.qty{ min-block-size:46px; inline-size:90px; padding:10px 12px; border:1px solid var(--ats-border-field, var(--ats-border)); border-radius:var(--ats-radius-md); background:var(--ats-surface); color:var(--ats-fg); }
body.ats-theme .mp-product .woocommerce-variation-price{ margin:0 0 12px; }
body.ats-theme .mp-product .woocommerce-tabs .panel a{ color:var(--ats-accent-text); text-underline-offset:3px; }
body.ats-theme .mp-product .woocommerce-tabs .panel a.button{ color:var(--ats-accent-ink); }
body.ats-theme .mp-free-title{ margin:32px 0 0; font-size:clamp(22px,2.4vw,30px); }
body.ats-theme .mp-panel .m2-actions .ats-btn{ flex:0 0 auto; }

/* ---------- the sign-in screen (the account page, signed out) ---------- */
body.ats-theme .ats-auth .ats-auth-form .u-columns{ display:block; }
body.ats-theme .ats-auth .ats-auth-form .u-column2{ display:none; }
body.ats-theme .ats-auth .ats-auth-form .u-columns.is-register .u-column1{ display:none; }
body.ats-theme .ats-auth .ats-auth-form .u-columns.is-register .u-column2{ display:block; }
body.ats-theme .ats-auth .ats-auth-form{ gap:20px; }
body.ats-theme .ats-auth .u-columns h2.screen-reader-text{ position:absolute; inline-size:1px; block-size:1px; overflow:hidden; clip:rect(0 0 0 0); }
body.ats-theme .ats-auth .woocommerce-form{ display:grid; gap:14px; margin:0; padding:0; border:0; }
body.ats-theme .ats-auth .woocommerce-form .form-row{ margin:0; }
body.ats-theme .ats-auth .woocommerce-form label{ color:var(--ats-muted-strong); font-size:var(--ats-text-ui); }
body.ats-theme .ats-auth .woocommerce-form input[type=text], body.ats-theme .ats-auth .woocommerce-form input[type=email], body.ats-theme .ats-auth .woocommerce-form input[type=password]{ inline-size:100%; box-sizing:border-box; min-block-size:48px; padding:12px 14px; border:1px solid var(--ats-border-field, var(--ats-border)); border-radius:var(--ats-radius-md); background:var(--ats-surface); color:var(--ats-fg); font:400 15px/1.2 var(--ats-font-body); }
body.ats-theme .ats-auth .woocommerce-form input:focus{ outline:2px solid var(--ats-accent); outline-offset:1px; border-color:var(--ats-accent); }
body.ats-theme .ats-auth .mp-login-row{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
body.ats-theme .ats-auth .woocommerce-form__label-for-checkbox{ display:inline-flex; align-items:center; gap:8px; font-size:var(--ats-text-ui); }
body.ats-theme .ats-auth .mp-login-lost{ color:var(--ats-accent-text); font-size:var(--ats-text-ui); }
body.ats-theme .ats-auth .woocommerce-form-login__submit, body.ats-theme .ats-auth .woocommerce-form-register__submit{ inline-size:100%; }
body.ats-theme .ats-auth .mp-login-note{ margin:0; color:var(--ats-muted-strong); font-size:var(--ats-text-ui); }
body.ats-theme .ats-auth .woocommerce-privacy-policy-text{ color:var(--ats-muted-strong); font-size:var(--ats-text-label, 12px); }
body.ats-theme .ats-auth .woocommerce-privacy-policy-text a{ color:var(--ats-accent-text); }
body.ats-theme .ats-auth .ats-segmented{ inline-size:100%; }
body.ats-theme .ats-auth-foot{ padding-block-start:16px; }
body.ats-theme .ats-auth-foot p{ margin:0; color:var(--ats-muted); font-size:var(--ats-text-label, 12px); }
body.ats-theme .mp-login .woocommerce-message, body.ats-theme .mp-login .woocommerce-error, body.ats-theme .mp-login .woocommerce-info{ margin:0 0 8px; }
@media (max-width: 900px){ body.ats-theme .ats-auth .ats-auth-aside{ display:none; } body.ats-theme .ats-auth{ grid-template-columns:1fr; } }
body.ats-theme .ats-auth .u-columns .col-1, body.ats-theme .ats-auth .u-columns .col-2, body.ats-theme .ats-auth .u-columns .u-column1, body.ats-theme .ats-auth .u-columns .u-column2{ inline-size:auto; width:auto; float:none; clear:none; margin:0; padding:0; }
body.ats-theme .ats-auth .woocommerce-form__label-for-checkbox span{ white-space:nowrap; }
body.ats-theme .ats-auth .mp-login-row{ flex-wrap:wrap; row-gap:6px; }
body.ats-theme .ats-auth .woocommerce-form-login__rememberme{ cursor:pointer; }
