/* Speechy Musings members UI (sm-membership). Tokens from handoff/design-tokens.css, scoped to .sm-ui. The font tokens
   are renamed --sm-font-display / --sm-font-body: Elementor containers set their own --display (flex).
   Hub layout and copy styles from the prototype (handoff/prototype/index.html, hub CSS 208-235, shared 24-49, 187-257).
   Cards, chips and badges (Task 3.6) from prototype lines 141-157, 228-235 and 507. The balance strip contents land in
   Task 3.7 (lines 219-226). Never put this in the Customizer (post 90158). */

.sm-ui{
  --pink:#e15c7c; --pink-dark:#c84a69; --pink-soft:#fdeff2;
  --teal:#5bc6cc; --teal-dark:#3fa9af; --teal-soft:#eaf8f9;
  --teal-ink:#1f7a80; --pink-ink:#b83a5a; /* AA text on --teal-soft / --pink-soft (P4 #13) */
  --orange:#f47f45; --purple:#c3a3e8; --purple-soft:#f3ecfb; --green:#9ecf7c; --green-soft:#eef7e6; --yellow:#fcb53c; --yellow-soft:#fff4df; --sky-soft:#e3f1fb; --orange-soft:#fde9e2; --orange-ink:#9a4210;
  --ink:#292626; --ink-2:#5c5556; --ink-3:#6f676a; /* ink-3 darkened 2026-11-05: #8a8285 was 3.6:1 on white */ --line:#ece6e8; --line-2:#d9d1d4;
  --bg:#ffffff; --bg-2:#faf7f8; --bg-3:#f3eff0;
  --ok:#3f9d5a; --warn:#d98a1c; --bad:#cf3b3b;
  --sm-font-display:'Poppins',Helvetica,Arial,sans-serif; --sm-font-body:'Figtree',Helvetica,Arial,sans-serif;
  --r:14px; --r-sm:10px; --pill:999px; --shadow:0 6px 24px rgba(41,38,38,.08); --shadow-sm:0 2px 8px rgba(41,38,38,.06);
  --max:1180px;
  font-family:var(--sm-font-body);color:var(--ink);box-sizing:border-box;
}
.sm-ui *,.sm-ui *::before,.sm-ui *::after{box-sizing:border-box}

/* Copy */
.sm-ui .sm-h .elementor-heading-title,.sm-ui h2.elementor-heading-title{font-family:var(--sm-font-display);font-size:clamp(24px,3vw,34px);font-weight:700;color:var(--ink);margin:0}
.sm-ui .eyebrow,.sm-ui .eyebrow .elementor-heading-title{font-family:var(--sm-font-display);font-size:12px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--pink-ink);margin:0}
.sm-ui .muted{color:var(--ink-2)}
.sm-ui .small{font-size:14px}
.sm-ui p{margin:0}

/* Buttons: every CTA is a pill */
.sm-ui .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:999px;padding:12px 22px;font-family:var(--sm-font-display);font-weight:600;font-size:15px;line-height:1.2;border:2px solid transparent;text-decoration:none;white-space:nowrap;cursor:pointer;transition:transform .12s,box-shadow .12s,background .12s}
.sm-ui .btn:hover{transform:translateY(-1px);box-shadow:var(--shadow-sm)}
.sm-ui .btn-pink{background:var(--pink-dark);color:#fff} /* white on --pink was 3.5:1; Lauren approved darker pink (#18) */
.sm-ui .btn-pink:hover{background:var(--pink-ink);color:#fff}
.sm-ui .btn-teal{background:var(--teal-ink);color:#fff} /* white on --teal was 2:1; on --teal-ink it is 5.3:1 */
.sm-ui .btn-teal:hover{background:#186a70;color:#fff}
.sm-ui .btn-outline{background:#fff;color:var(--ink);border-color:var(--line-2)}
.sm-ui .btn-outline:hover{border-color:var(--ink)}
.sm-ui .btn-sm{padding:8px 16px;font-size:14px}
.sm-ui .btn-xs{padding:6px 12px;font-size:13px}
.sm-ui .btn[disabled]{opacity:.55;cursor:not-allowed;transform:none;box-shadow:none}

/* Hub grid: rail 230px, content 1fr. The root is an Elementor container (.e-con); display:grid overrides its flex. */
.sm-ui.sm-hub{display:grid;grid-template-columns:230px minmax(0,1fr);gap:28px;align-items:start;max-width:var(--max);margin-inline:auto;padding:28px 16px 60px;width:100%}
.sm-ui.sm-hub>.sm-rail-col{position:sticky;top:90px;align-self:start;min-width:0;width:100%;max-width:100%}
.sm-ui .sm-hub-main{display:flex;flex-direction:column;gap:22px;min-width:0;width:100%;padding:0}

/* Rail */
.sm-ui .sm-rail{display:flex;flex-direction:column;gap:4px}
.sm-ui .sm-rail a{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:var(--r-sm);text-decoration:none;color:var(--ink);font-family:var(--sm-font-display);font-weight:600;font-size:14.5px;line-height:1.3}
.sm-ui .sm-rail a svg{width:18px;height:18px;flex:none;color:var(--ink-3)}
.sm-ui .sm-rail a:hover{background:var(--bg-3);color:var(--ink)}
.sm-ui .sm-rail a[aria-current="page"]{background:var(--pink-soft);color:var(--pink-ink)}
.sm-ui .sm-rail a[aria-current="page"] svg{color:var(--pink-ink)}
.sm-ui .sm-rail .sep{display:block;height:1px;background:var(--line);margin:8px 6px}
.sm-ui .sm-rail .cnt{margin-left:auto;font-size:12px;background:var(--bg-3);padding:1px 8px;border-radius:999px;color:var(--ink-2)}
.sm-ui .sm-rail .cnt[hidden]{display:none}

/* Panes: without JS every pane stacks; with JS (body.sm-hub-js) only the routed one shows. */
.sm-ui .sm-pane{display:flex;flex-direction:column;gap:22px;min-width:0;width:100%;padding:0}
body.sm-hub-js .sm-ui .sm-pane:not(.is-on){display:none}
.sm-hub--no-freebies #sm-pane-freebies{display:none}

/* Strip shell (contents: Task 3.7) */
.sm-ui .sm-strip:empty{display:none}
.sm-ui .sm-strip{display:grid;grid-template-columns:1.3fr 1fr 1fr auto;gap:18px;align-items:start;background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px 22px;box-shadow:var(--shadow-sm)}
.sm-ui .sm-strip>*{min-width:0}
.sm-ui .sm-strip .k{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3);font-weight:600}
.sm-ui .sm-strip .v{font-family:var(--sm-font-display);font-weight:700;font-size:20px;margin-top:2px;overflow-wrap:anywhere}
.sm-ui .sm-strip .v small{font-size:13px;font-weight:500;color:var(--ink-2)}
.sm-ui .sm-strip .bar{height:8px;background:var(--bg-3);border-radius:var(--pill);overflow:hidden;margin-top:8px;max-width:260px}
.sm-ui .sm-strip .bar i{display:block;height:100%;background:var(--teal);border-radius:var(--pill);transition:width .3s}
.sm-ui .sm-strip .bar i.warn{background:var(--yellow)}
.sm-ui .sm-strip .bar i.bad{background:var(--pink)}
.sm-ui .sm-strip .btn{white-space:normal;text-align:center}

/* Library tools (prototype 228-242). FacetWP's per-choice counters are hidden (no product counts in copy). */
.sm-ui .sm-lib{display:flex;flex-direction:column;gap:12px}
.sm-ui .sm-lib .facetwp-counter{display:none}
.sm-ui .sm-lib .facetwp-facet{margin:0}
.sm-ui .sm-lib .srch{position:relative}
.sm-ui .sm-lib .srch>svg{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:18px;height:18px;color:var(--ink-3);z-index:1;pointer-events:none}
.sm-ui .sm-lib .srch .facetwp-input-wrap{display:block;width:100%}
.sm-ui .sm-lib .srch .facetwp-icon{display:none}
.sm-ui .sm-lib .srch input.facetwp-search{font:inherit;width:100%;min-width:0;padding:11px 14px 11px 42px;border:1.5px solid var(--line-2);border-radius:var(--r-sm);background:#fff;color:var(--ink)}
.sm-ui .sm-lib .srch input.facetwp-search:focus{border-color:var(--teal);outline:none;box-shadow:0 0 0 3px rgba(91,198,204,.25)}
.sm-ui .chips{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.sm-ui .chips .lb,.sm-ui .toolrow .lb{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3);margin-right:4px}
.sm-ui .chips .facetwp-facet{display:contents}
/* Round 5 (Braden 2026-11-23): the library and shop filter rows read like a table. The four labels (Area, Type, Season,
   Show) share one left column, and every row's chips, wrapped lines too, start at the same x: the row is indented by the
   column width (label 68px + the 8px gap) and the label is pulled back into the indent. */
@media (min-width:761px){
  .sm-ui .sm-lib .chips{padding-left:76px}
  .sm-ui .sm-lib .chips>.lb{flex:0 0 68px;margin:0 0 0 -76px}
}
.sm-ui .chip,.sm-ui .chips .facetwp-radio{display:inline-flex;align-items:center;border:1.5px solid var(--line-2);background:#fff;border-radius:999px;padding:6px 13px;font-family:var(--sm-font-body);font-size:13.5px;font-weight:600;line-height:1.3;color:var(--ink-2);cursor:pointer;margin:0;background-image:none;text-transform:none;letter-spacing:normal;box-shadow:none;min-height:0}
.sm-ui .chip[aria-pressed="true"],.sm-ui .chips .facetwp-radio.checked{background:var(--ink);border-color:var(--ink);color:#fff;background-image:none}
.sm-ui .chips .facetwp-radio.disabled{opacity:.45;cursor:default}
.sm-ui .chip.teal[aria-pressed="true"]{background:var(--teal);border-color:var(--teal);color:#083a3d}
/* Task 4.11: chips are at least a 36px tap target on phones. */
@media (max-width:760px){.sm-ui .chip,.sm-ui .chips .facetwp-radio{min-height:36px}}
.sm-ui .toolrow{display:flex;justify-content:flex-end;align-items:center;gap:12px;flex-wrap:wrap;color:var(--ink-2);font-size:14px}
.sm-ui .toolrow .sm-lib-count{margin-right:auto}
.sm-ui .toolrow select{font:inherit;width:auto;padding:7px 34px 7px 14px;border:1.5px solid var(--line-2);border-radius:999px;background-color:#fff;color:var(--ink)}
.sm-ui .pager .facetwp-pager{display:flex;gap:8px;justify-content:center;align-items:center;flex-wrap:wrap;margin-top:8px}
.sm-ui .pager .facetwp-page{border:1.5px solid var(--line-2);background:#fff;border-radius:999px;padding:7px 14px;font-weight:600;color:var(--ink-2);cursor:pointer;margin:0;text-decoration:none}
.sm-ui .pager .facetwp-page.active{background:var(--ink);border-color:var(--ink);color:#fff}
.sm-ui .pager .facetwp-page.dots{border-color:transparent;cursor:default}

/* Product grid: 4 columns, 2 below 960px */
.sm-ui .sm-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
@media (max-width:960px){.sm-ui .sm-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}

/* Product cards (prototype 141-157) */
.sm-ui .sm-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:var(--r);overflow:hidden;transition:transform .12s,box-shadow .12s;position:relative;min-width:0}
.sm-ui .sm-card:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
.sm-ui .sm-card__thumb{display:block;aspect-ratio:1;background:var(--bg-3);width:100%;overflow:hidden}
.sm-ui .sm-card__thumb img{display:block;width:100%;height:100%;object-fit:cover;margin:0;border-radius:0}
.sm-ui .sm-card__bd{display:flex;flex-direction:column;gap:8px;padding:12px 14px 14px;flex:1;min-width:0}
.sm-ui .sm-card__name{font-family:var(--sm-font-display);font-weight:600;font-size:14px;line-height:1.3;color:var(--ink);text-decoration:none;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.6em}
.sm-ui .sm-card__name:hover{color:var(--pink-dark)}
.sm-ui .sm-card__meta{display:flex;gap:6px;flex-wrap:wrap;font-size:12px;color:var(--ink-3)}
.sm-ui .sm-card__meta:empty{display:none}
.sm-ui .sm-card__meta span{background:var(--bg-3);padding:2px 8px;border-radius:999px}
.sm-ui .sm-card__row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;flex-wrap:wrap}
.sm-ui .sm-card__price{font-family:var(--sm-font-display);font-weight:600;font-size:15px}
.sm-ui .sm-card__price.is-note{font-family:var(--sm-font-body);font-weight:400;font-size:14px;color:var(--ink-2)}
.sm-ui .sm-card__btn[aria-busy="true"]{opacity:.6;cursor:progress}
@media (max-width:760px){.sm-ui .sm-card__btn{min-height:40px}}
/* My Account Downloads tab (Task 3.9): the theme sizes the Woo nav as content-box + 20px padding, 40px wider than its column. */
@media (max-width:760px){.woocommerce-MyAccount-navigation{box-sizing:border-box;max-width:100%}}
.sm-ui .sm-card__note{font-size:13px;line-height:1.4;color:var(--ink-2);display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.sm-ui .sm-card__note[hidden]{display:none}
.sm-ui .sm-card__up{white-space:normal;text-align:center}
.sm-ui .sm-cal__note{margin-top:10px}
/* The cover is a square as wide as the card, and a percent margin resolves against that width: this pins the badge to
   the cover's bottom left, clear of the title art at the top of the cover. */
.sm-ui .sm-card__badge{position:absolute;left:10px;top:0;margin-top:calc(100% - 32px);z-index:1;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:4px 9px;border-radius:999px;background:#fff;box-shadow:var(--shadow-sm);line-height:1.2}
.sm-ui .sm-card__badge:empty{display:none}
.sm-ui .sm-card__badge.sm-st-done{background:var(--green);color:#1f3d12}
.sm-ui .sm-card__badge.sm-st-buy{background:var(--yellow);color:#4a2f00}
.sm-ui .sm-card__badge.sm-st-free{background:var(--teal);color:#083a3d}
.sm-ui .sm-card__badge.sm-st-new{background:var(--purple);color:#2b1250}
.sm-ui .sm-card__badge.sm-st-tpt{background:#fff;color:var(--teal-dark);border:1.5px solid var(--teal)}
.sm-ui .sm-card.is-done .sm-card__thumb{opacity:.92}
/* Lauren 6 and 7 (2026-11-14): the sale price, the quick-add button and the sale note. The button matches her snippet
   113700 section 12 (46px, teal, white border) under our own class, so her .sm-qa rules and toast never touch it. */
.sm-ui .sm-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.sm-ui .sm-card__price del{color:var(--ink-3);font-weight:500;text-decoration:line-through;margin-right:2px}
.sm-ui .sm-card__price ins{color:var(--pink-ink);background:none;text-decoration:none;font-weight:700}
.sm-ui .sm-card .sm-card__qa{position:absolute;top:10px;right:10px;z-index:2;width:46px;height:46px;min-width:0;min-height:0;border-radius:999px;background:var(--teal-ink);color:#fff;display:flex;align-items:center;justify-content:center;padding:0;margin:0;border:2px solid #fff;box-shadow:0 6px 16px -6px rgba(41,38,38,.5);font-size:0;line-height:0;text-decoration:none;opacity:1;transition:transform .15s ease,background .2s ease}
.sm-ui .sm-card .sm-card__qa:hover,.sm-ui .sm-card .sm-card__qa:focus-visible{transform:scale(1.08);background:var(--ink);color:#fff}
.sm-ui .sm-card .sm-card__qa:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.sm-ui .sm-card .sm-card__qa::before,.sm-ui .sm-card .sm-card__qa::after{content:none;display:none}
.sm-ui .sm-card .sm-card__qa[hidden]{display:none}
.sm-ui .sm-card .sm-card__qa svg{display:block;flex:none}
.sm-ui .sm-card .sm-card__qa .sm-card__qa-ok{display:none}
.sm-ui .sm-card .sm-card__qa.added{background:var(--green)}
.sm-ui .sm-card .sm-card__qa.added .sm-card__qa-i{display:none}
.sm-ui .sm-card .sm-card__qa.added .sm-card__qa-ok{display:block;color:var(--ink)}
.sm-ui .sm-card .sm-card__qa.loading{pointer-events:none}
.sm-ui .sm-card .sm-card__qa.loading .sm-card__qa-i{animation:sm-qa-bob 1s ease-in-out infinite}
@keyframes sm-qa-bob{50%{transform:translateY(-3px)}}
.sm-ui .sm-card .added_to_cart{display:none!important} /* WooCommerce's "View cart" link after an add: the toast says it. */
/* A member: the button waits for the card's member state (an All Access member never sees it flash on a digital card). */
body.logged-in .sm-ui .sm-card:has(.sm-card__btn:not([data-sm-user="1"])) .sm-card__qa{visibility:hidden;animation:sm-unmask 0s linear 20s forwards}
.sm-ui .sm-card__sale{position:absolute;left:10px;top:10px;z-index:1;max-width:calc(100% - 76px);font-size:11px;font-weight:700;line-height:1.25;padding:4px 9px;border-radius:999px;background:var(--pink-dark);color:#fff;box-shadow:var(--shadow-sm)}
.sm-card-toast{position:fixed;left:50%;bottom:24px;z-index:99999;transform:translate(-50%,140%);visibility:hidden;display:flex;align-items:center;gap:14px;max-width:calc(100vw - 32px);padding:10px 10px 10px 20px;border-radius:999px;background:#292626;color:#fff;font-family:'Figtree',Helvetica,Arial,sans-serif;font-size:15px;font-weight:600;line-height:1.3;box-shadow:0 12px 30px -12px rgba(41,38,38,.6);transition:transform .3s ease,visibility 0s linear .3s}
.sm-card-toast.on{transform:translate(-50%,0);visibility:visible;transition:transform .3s ease}
.sm-card-toast a{display:inline-flex;align-items:center;min-height:36px;padding:8px 16px;border-radius:999px;background:#c84a69;color:#fff!important;text-decoration:none!important;white-space:nowrap}
.sm-card-toast a:hover,.sm-card-toast a:focus-visible{background:#b83a5a}
@media (prefers-reduced-motion:reduce){
  .sm-ui .sm-card .sm-card__qa,.sm-card-toast,.sm-card-toast.on{transition:none}
  .sm-ui .sm-card .sm-card__qa.loading .sm-card__qa-i{animation:none}
}

/* Empty state */
.sm-ui .sm-reminder{margin:0 0 18px;padding:12px 16px;font-size:14px;line-height:1.5;color:var(--ink-2);background:var(--bg-2);border-radius:var(--r)}
.sm-ui .sm-more{margin:12px 0 0;font-size:13px;color:var(--ink-2)}
.sm-ui .sm-empty{padding:40px;text-align:center;color:var(--ink-2);background:var(--bg-2);border-radius:var(--r)}
.sm-ui .sm-empty .btn{display:flex;width:max-content;max-width:100%;margin:14px auto 0}
.sm-ui .sm-acct a[hidden]{display:none}

/* Notices */
.sm-ui .notice{display:flex;gap:12px;align-items:flex-start;flex-wrap:wrap;border-radius:var(--r-sm);padding:14px 16px;font-size:14.5px}
.sm-ui .notice svg{width:20px;height:20px;flex:none;margin-top:1px}
.sm-ui .notice>span{flex:1 1 220px;min-width:0}
.sm-ui .notice .btn{align-self:center}
.sm-ui .notice.info{background:var(--teal-soft);color:#0f4d50}
.sm-ui .notice.warn{background:var(--yellow-soft);color:#6b4300}
.sm-ui .notice.bad{background:#fde9e9;color:#7a1f1f}
.sm-ui .notice.good{background:var(--green-soft);color:#2a5a1a}

/* FAQ */
.sm-ui .sm-faq-list{display:grid;gap:10px}
.sm-ui details.sm-faq{background:#fff;border:1px solid var(--line);border-radius:var(--r-sm);padding:0 18px}
.sm-ui details.sm-faq summary{cursor:pointer;font-family:var(--sm-font-display);font-weight:600;padding:14px 0;list-style:none;display:flex;justify-content:space-between;gap:12px;align-items:center}
.sm-ui details.sm-faq summary::-webkit-details-marker{display:none}
.sm-ui details.sm-faq summary svg{width:18px;height:18px;transition:transform .15s;flex:none}
.sm-ui details.sm-faq[open] summary svg{transform:rotate(180deg)}
.sm-ui details.sm-faq .a{padding:0 0 16px;color:var(--ink-2);max-width:70ch}

/* Account cards */
.sm-ui .sm-acct{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.sm-ui .sm-acct a{display:flex;flex-direction:column;gap:6px;background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:18px;text-decoration:none;color:var(--ink)}
.sm-ui .sm-acct a b{font-family:var(--sm-font-display);font-weight:600}
.sm-ui .sm-acct a .small{font-weight:400}
.sm-ui .sm-acct a:hover{box-shadow:var(--shadow)}
@media (max-width:760px){.sm-ui .sm-acct{grid-template-columns:1fr}}

/* Prototype line 227: one column, the rail becomes a horizontal scroll row, the strip 2 columns. */
@media (max-width:960px){
  .sm-ui.sm-hub{grid-template-columns:minmax(0,1fr);gap:18px;padding-top:18px}
  .sm-ui.sm-hub>.sm-rail-col{position:static}
  .sm-ui .sm-rail{flex-direction:row;overflow-x:auto;gap:6px;padding-bottom:6px;-webkit-overflow-scrolling:touch}
  .sm-ui .sm-rail a{white-space:nowrap}
  .sm-ui .sm-rail .sep{display:none}
  .sm-ui .sm-strip{grid-template-columns:1fr 1fr}
  .sm-ui .sm-strip>:last-child{grid-column:1/-1}
  .sm-ui .sm-strip>:last-child .btn{width:100%;justify-content:center}
}

/* Hub sub-headings and counts (prototype 249-250) */
.sm-ui .h-sub{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
.sm-ui .h-sub h3{margin:0;font-family:var(--sm-font-display);font-size:20px;font-weight:700;line-height:1.3;color:var(--ink)}
.sm-ui .h-sub .cnt{color:var(--ink-3);font-size:14px}
.sm-ui [data-sm-mine] .sm-sec{display:flex;flex-direction:column;gap:12px;margin-bottom:26px}
.sm-ui [data-sm-mine] .sm-sec:last-child{margin-bottom:0}

/* TPT requests (prototype 508-511, mapped to the shortcode's sm-reqs / sm-req / sm-pill) */
.sm-ui .sm-reqs{display:flex;flex-direction:column;gap:10px}
.sm-ui .sm-req{display:flex;gap:14px;align-items:center;justify-content:space-between;flex-wrap:wrap;background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:14px 16px}
.sm-ui .sm-req .small{color:var(--ink-2)}
.sm-ui .sm-pill{font-size:12px;font-weight:700;padding:4px 10px;border-radius:999px;background:var(--bg-3);color:var(--ink-2)}
.sm-ui .sm-pill.sm-on-hold{background:var(--yellow-soft);color:#8a5200}
.sm-ui .sm-pill.sm-completed{background:var(--green-soft);color:#2f7a44}
.sm-ui .sm-pill.sm-cancelled{background:var(--teal-soft);color:#0f4d50}
.sm-ui .sm-pill.sm-refunded{background:var(--bg-3);color:var(--ink-3)}

/* Prepped For You (prototype 260-262) */
.sm-ui [data-sm-prepped]{display:flex;flex-direction:column;gap:18px}
.sm-ui [data-sm-prepped-note][hidden]{display:none}
.sm-ui .pp-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:22px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px;align-items:center}
.sm-ui .pp-card .pic{display:block}
.sm-ui .pp-card .pic img{display:block;width:100%;height:auto;border-radius:14px;aspect-ratio:1;object-fit:cover;margin:0}
.sm-ui .pp-card h2,.sm-ui .pp-card h3{font-family:var(--sm-font-display);font-size:20px;font-weight:600;margin:6px 0 0;color:var(--ink)}
.sm-ui .pp-card .pp-desc{margin-top:6px}
.sm-ui .pp-card .buy{margin-top:10px}
.sm-ui .pp-card .buy .price{font-family:var(--sm-font-display);font-weight:600;font-size:18px}
.sm-ui .pp-card .opts{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px 12px;margin-block:10px}
/* Round 3: "View resource" sits beside the add-to-cart form and wraps under it when there is no room. */
.sm-ui .pp-card .opts form.cart{flex:0 1 auto;min-width:0;margin:0}
.sm-ui .pp-card .pp-view{flex:0 0 auto}
/* A variable product's form is as wide as its option menu, which pushed "View resource" far from Add to cart. Its inner
   boxes are flattened so the menu takes its own row and quantity, Add to cart and View resource share the next one. */
.sm-ui .pp-card .opts form.variations_form,.sm-ui .pp-card .opts .single_variation_wrap,.sm-ui .pp-card .opts .variations_button{display:contents}
.sm-ui .pp-card .opts table.variations,.sm-ui .pp-card .opts table.variations tbody,.sm-ui .pp-card .opts table.variations tr{display:block}
.sm-ui .pp-card .opts table.variations{flex:0 0 100%;width:auto;max-width:100%;min-width:0}
.sm-ui .pp-card .opts table.variations select{max-width:420px}
.sm-ui .pp-card .opts .single_variation{flex:0 0 100%}
.sm-ui .pp-card .opts .single_variation:empty{display:none}
.sm-ui .pp-card .opts .variations_button .quantity{margin-right:0}
.sm-ui .pp-card table.variations{width:100%;border:0;margin:0}
.sm-ui .pp-card table.variations td,.sm-ui .pp-card table.variations th{display:block;padding:0 0 6px;border:0;text-align:left;background:none}
.sm-ui .pp-card table.variations label{font-weight:600;font-size:14px}
.sm-ui .pp-card select{width:100%;max-width:100%;border:1.5px solid var(--line-2);border-radius:10px;padding:10px 12px;font-family:var(--sm-font-body);font-size:15px;background:#fff;color:var(--ink)}
.sm-ui .pp-card .reset_variations{font-size:13px}
/* The page intro already states the multi-deck discount: once is enough. */
.sm-ui .pp-card .wdm-discount{display:none}
.sm-ui .pp-card .single_add_to_cart_button.disabled,.sm-ui .pp-card .single_add_to_cart_button:disabled{opacity:1;background:var(--bg-3);color:var(--ink-2);cursor:not-allowed}
.sm-ui .pp-card .quantity{display:inline-block;margin-right:10px}
.sm-ui .pp-card .quantity input.qty{width:70px;border:1.5px solid var(--line-2);border-radius:10px;padding:9px 8px;font-size:15px}
.sm-ui .pp-card .single_add_to_cart_button{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;text-transform:none;letter-spacing:0;background:var(--pink-dark);color:#fff;border:2px solid transparent;padding:12px 22px;font-family:var(--sm-font-display);font-weight:600;font-size:15px;line-height:1.2;cursor:pointer}
.sm-ui .pp-card .single_add_to_cart_button:hover{background:var(--pink-ink);color:#fff}
.sm-ui .pp-card .single_add_to_cart_button.disabled,.sm-ui .pp-card .single_add_to_cart_button:disabled{opacity:.55;cursor:not-allowed}
.sm-ui .pp-card .woocommerce-variation-price,.sm-ui .pp-card .woocommerce-variation-description{margin-bottom:8px}
@media (max-width:760px){.sm-ui .pp-card{grid-template-columns:1fr}.sm-ui .pp-card .pic img{aspect-ratio:4/3;max-height:220px}}
.sm-ui .sm-moved{margin:14px 0 22px;font-family:var(--sm-font-body);color:var(--ink)}
.sm-ui .sm-moved a{color:var(--pink-dark);font-weight:600}
.sm-ui .sm-strip{margin-bottom:6px}

/* Add to plan (Task 5.4; prototype 280-330, translated to sm- classes). The legend is Task 5.5's. */
/* Round 3 (Lauren): soft purple so the button stands out; #7a5bb0 icon is 4.6:1 on --purple-soft, hover #5a3f8c on #e6d9f6 is 6.2:1. */
.sm-ui .sm-plan-btn{border:1.5px solid #7a5bb0;background:var(--purple-soft);border-radius:999px;width:30px;height:30px;min-width:30px;display:inline-grid;place-items:center;color:#7a5bb0;padding:0;cursor:pointer;margin-left:auto;transition:border-color .12s,color .12s,background-color .12s}
.sm-ui .sm-plan-btn + .sm-card__btn{margin-left:0}
/* Plan row: price, plan button and Download share the row when they fit. On narrow cards (2 columns, <=760px) the price takes its
   own line and the two buttons share the next one, right-aligned; Download may wrap its label inside the button instead of
   being clipped by the card's overflow:hidden. */
.sm-ui .sm-card__row:has(.sm-plan-btn) .sm-card__price{min-width:0}
.sm-ui .sm-card__row:has(.sm-plan-btn) .sm-plan-btn{flex:none}
.sm-ui .sm-card__row:has(.sm-plan-btn) .sm-card__btn{flex:0 1 auto;min-width:0;white-space:normal;text-align:center}
@media (max-width:760px){
  .sm-ui .sm-card__row:has(.sm-plan-btn) .sm-card__price{flex:1 0 100%}
  /* Round 5: a blank price spot (Starter, Semester: no "in your pass") takes no line of its own. */
  .sm-ui .sm-card__row:has(.sm-plan-btn) .sm-card__price:empty{flex:0 0 0}
  .sm-ui .sm-card__row:has(.sm-plan-btn) .sm-plan-btn{margin-left:0}
  /* A zero basis lets the line wrap only before the buttons, never between them; Download then fills what is left. */
  .sm-ui .sm-card__row:has(.sm-plan-btn) .sm-card__btn{flex:1 1 0}
}
.sm-ui .sm-plan-btn:hover,.sm-ui .sm-plan-btn:focus-visible{border-color:#5a3f8c;color:#5a3f8c;background:#e6d9f6}
.sm-ui .sm-plan-btn svg{width:15px;height:15px;display:block}
@media (max-width:600px){.sm-ui .sm-plan-btn{width:36px;height:36px;min-width:36px;min-height:36px}}
/* The popup and the status line sit on <body>, outside any .sm-ui wrapper, so they carry .sm-ui themselves. */
.sm-ui.sm-pop{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(31,27,28,.45)}
.sm-ui.sm-pop[hidden]{display:none}
.sm-ui .sm-pop__box{background:#fff;border-radius:18px;padding:22px;width:min(380px,100%);display:flex;flex-direction:column;gap:12px;box-shadow:var(--shadow)}
.sm-ui .sm-pop__name{font-family:var(--sm-font-display);font-size:18px;font-weight:600;margin:0;color:var(--ink);overflow-wrap:anywhere}
.sm-ui .sm-pop__label{display:flex;flex-direction:column;gap:6px}
.sm-ui .sm-pop__date{font:inherit;font-size:16px;padding:10px 12px;border:1.5px solid var(--line-2);border-radius:var(--r-sm);width:100%;color:var(--ink);background:#fff}
.sm-ui .sm-pop__date[aria-invalid="true"]{border-color:var(--bad)}
/* The popup's time field: only in the planner's popup (sm-plan.js adds the field and .sm-pop--time only when the Plan pane
   asks for it), so the card popup on /shop/ is unchanged. The date field's look. */
.sm-ui.sm-pop--time .sm-pop__time{font:inherit;font-size:16px;padding:10px 12px;border:1.5px solid var(--line-2);border-radius:var(--r-sm);width:100%;color:var(--ink);background:#fff;min-height:44px}
.sm-ui .sm-pop__btns{display:flex;gap:10px;justify-content:flex-end}
.sm-ui .sm-pop__btns .btn{border-radius:999px;cursor:pointer}
.sm-ui .sm-pop__err{color:var(--bad)}
.sm-ui .sm-pop__err[hidden]{display:none}
@media (max-width:600px){.sm-ui .sm-pop__btns .btn{min-height:36px}}
.sm-ui.sm-pop-status{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:100001;max-width:min(92vw,420px);background:var(--ink);color:#fff;border-radius:999px;padding:10px 18px;font-size:14px;line-height:1.35;text-align:center;box-shadow:var(--shadow)}
.sm-ui.sm-pop-status:empty{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0;box-shadow:none;background:none;pointer-events:none}

/* Plan pane (Task 5.5; prototype 280-319 and 328-330, translated to sm- classes; never a bare .plan class, see sm-site.css). */
/* [sm_plan_pane] sits in an Elementor shortcode widget, which prints its wrapper even when the shortcode is empty. */
.sm-ui .sm-plan-slot:not(:has(#sm-pane-plan)){display:none}
body.sm-hub-js .sm-ui .sm-plan-slot:has(#sm-pane-plan:not(.is-on)){display:none}
.sm-ui .sm-plan{display:flex;flex-direction:column;gap:16px;min-width:0}
.sm-ui.sm-pop button{border-radius:999px}
.sm-ui #sm-pane-plan button{border-radius:999px;appearance:none;-webkit-appearance:none;font-family:var(--sm-font-body);text-transform:none;letter-spacing:normal;box-shadow:none;margin:0;cursor:pointer}
.sm-ui .sm-plan-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.sm-ui .sm-plan-nav{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.sm-ui .sm-plan-nav button{border:1.5px solid var(--line-2);background:#fff;color:var(--ink);padding:7px 12px;font-weight:600;font-size:14px;line-height:1.2}
.sm-ui .sm-plan-nav button:hover:not([disabled]){border-color:var(--ink);background:#fff;color:var(--ink)}
.sm-ui .sm-plan-nav button[disabled]{opacity:.45;cursor:not-allowed}
.sm-ui .sm-plan-top .mo{font-family:var(--sm-font-display);font-weight:700;font-size:20px;min-width:170px;text-align:center;color:var(--ink)}
.sm-ui .sm-seg{display:inline-flex;gap:2px;background:var(--bg-3);border-radius:999px;padding:3px}
.sm-ui .sm-seg button{border:0;background:transparent;color:var(--ink);padding:6px 16px;font-weight:600;font-size:14px;line-height:1.2}
.sm-ui .sm-seg button:hover{background:transparent;color:var(--ink)}
.sm-ui .sm-seg button[aria-pressed="true"]{background:#fff;box-shadow:var(--shadow-sm)}
.sm-ui .sm-plan-wrap{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:18px;align-items:start}
.sm-ui .sm-plan-wrap>div{min-width:0}
@media (max-width:1280px){.sm-ui .sm-plan-wrap{grid-template-columns:minmax(0,1fr)}.sm-ui .sm-tray{position:static;max-height:none}.sm-ui .sm-tray .tl{max-height:320px}}
.sm-ui .sm-cal{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px}
.sm-ui .sm-cal:focus{outline:none}
.sm-ui .sm-cal .dh{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3);text-align:center;padding:4px 0 8px}
.sm-ui .sm-day{min-height:104px;min-width:0;border:1px solid var(--line);border-radius:10px;padding:6px;display:flex;flex-direction:column;gap:4px;background:#fff;transition:background .12s,border-color .12s}
.sm-ui .sm-cal.week .sm-day{min-height:260px}
.sm-ui .sm-day.out{background:var(--bg-2);color:var(--ink-3)}
.sm-ui .sm-day.wk{background:var(--bg-2)}
.sm-ui .sm-day.locked{opacity:.55}
.sm-ui .sm-day.today{border-color:var(--teal);box-shadow:inset 0 0 0 1px var(--teal)}
.sm-ui .sm-day.over{background:var(--teal-soft);border-color:var(--teal)}
.sm-ui .sm-day .dn{font-size:12px;font-weight:700;color:var(--ink-2);display:flex;justify-content:space-between;align-items:center}
.sm-ui .sm-day .dn .today-tag{font-size:10px;background:var(--teal);color:#083a3d;padding:1px 6px;border-radius:999px}
/* Planned items (2026-11-05 readability pass): a bigger picture and two full lines of the name. The status is the fill
   (pink = planned, green = downloaded) plus a check, never a side stripe. In the grid a click on the item opens the day
   panel, which has every action with a text label; agenda rows (phones) keep their icon buttons inline. */
.sm-ui .sm-pi{display:flex;align-items:flex-start;gap:7px;background:var(--pink-soft);border-radius:9px;padding:5px;font-size:12px;line-height:1.3;cursor:grab;position:relative;min-width:0;transition:box-shadow .15s,background .15s}
.sm-ui .sm-pi:hover{box-shadow:0 2px 10px rgba(41,38,38,.12)}
.sm-ui .sm-pi:active{cursor:grabbing}
.sm-ui .sm-cal:not(.agenda) .sm-pi:hover .pn{text-decoration:underline;text-underline-offset:2px}
.sm-ui .sm-pi.dl{background:var(--green-soft)}
.sm-ui .sm-pi .pt{width:34px;height:34px;border-radius:6px;flex:none;object-fit:cover;background-color:var(--bg-3);margin:0;box-shadow:0 0 0 1px rgba(41,38,38,.06)}
.sm-ui .sm-pi .pn{flex:1 1 auto;min-width:0;overflow:hidden;overflow-wrap:break-word;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;font-weight:600;color:var(--ink);text-decoration:none;text-align:left}
.sm-ui .sm-pi[role="button"]:focus-visible{outline:2px solid var(--teal-ink);outline-offset:2px}
.sm-ui .sm-cal:not(.agenda) .sm-pi{cursor:pointer}
.sm-ui .sm-pi a.pn:hover{text-decoration:underline}
.sm-ui .sm-pi__ok{position:absolute;left:28px;top:1px;width:15px;height:15px;border-radius:50%;background:var(--ok);color:#fff;display:grid;place-items:center;box-shadow:0 0 0 2px #fff;z-index:1}
.sm-ui .sm-pi__ok svg{width:10px;height:10px;display:block}
.sm-ui .sm-pi.gone{opacity:.7}
.sm-ui .sm-cal.month:not(.agenda) .sm-pi.extra{display:none}
/* Month grid: no room for a picture and a readable name, so the name gets the whole width (the hover preview and the
   day panel show the picture). A dot carries the status colour. */
.sm-ui .sm-cal.month:not(.agenda) .sm-pi{padding:5px 7px 5px 18px}
.sm-ui .sm-cal.month:not(.agenda) .sm-pi .pt{display:none}
.sm-ui .sm-cal.month:not(.agenda) .sm-pi::before{content:"";position:absolute;left:7px;top:10px;width:6px;height:6px;border-radius:50%;background:var(--pink)}
.sm-ui .sm-cal.month:not(.agenda) .sm-pi.dl::before{background:var(--ok)}
.sm-ui .sm-cal.month:not(.agenda) .sm-pi .sm-pi__ok{display:none}
/* Week grid: tall cells, so the picture goes on top at full width and the name gets up to four lines under it. */
.sm-ui .sm-cal.week:not(.agenda) .sm-pi{flex-direction:column;align-items:stretch;gap:6px}
.sm-ui .sm-cal.week:not(.agenda) .sm-pi .pt{width:100%;height:auto;aspect-ratio:4/3}
.sm-ui .sm-cal.week:not(.agenda) .sm-pi .pn{-webkit-line-clamp:4;flex:none;overflow-wrap:normal;hyphens:auto;-webkit-hyphens:auto}
.sm-ui .sm-cal.week:not(.agenda) .sm-pi__ok{left:auto;right:9px;top:9px}
.sm-ui .sm-day__more{align-self:flex-start;border:0;background:none;padding:3px 6px;margin:0;border-radius:6px;font:inherit;font-size:12px;font-weight:700;color:var(--teal-ink);cursor:pointer;min-height:0;box-shadow:none;text-transform:none;letter-spacing:0}
.sm-ui .sm-day__more:hover{background:var(--teal-soft);color:var(--teal-ink)}
.sm-ui .sm-day__more:focus-visible{outline:2px solid var(--teal-ink);outline-offset:1px}
.sm-ui .sm-day.is-open{border-color:var(--teal-ink);box-shadow:inset 0 0 0 1px var(--teal-ink)}
.sm-ui .sm-cal.week .sm-pi{font-size:12.5px;padding:6px}
/* An entry's time (round 3, R8): a small prefix in Month and Week; in the Day view only on a half hour. */
.sm-ui .sm-pi__time{flex:none;font-size:11px;font-weight:700;color:var(--ink-2);white-space:nowrap;line-height:1.5}
.sm-ui .sm-cal.week:not(.agenda) .sm-pi__time{order:1;margin-bottom:-4px}
.sm-ui .sm-cal.week:not(.agenda) .sm-pi .pt{order:0}
.sm-ui .sm-cal.week:not(.agenda) .sm-pi .pn{order:2}
.sm-ui .sm-sheet__time{font-size:12.5px;font-weight:700;color:var(--ink-2)}
/* Day view: one day as hour rows. The "Any time" row on top holds entries with no time. Each row is a drop target. */
.sm-ui .sm-cal.day{display:block;padding:12px 14px}
.sm-ui .sm-cal.day .sm-dayv{min-height:0;border:0;padding:0;gap:0;box-shadow:none;background:#fff}
.sm-ui .sm-cal.day .sm-dayv .dn{justify-content:flex-start;gap:8px;font-size:13px;padding:0 0 8px}
.sm-ui .sm-hour{display:grid;grid-template-columns:72px minmax(0,1fr);gap:10px;align-items:start;border-top:1px solid var(--line);padding:6px 0;min-height:52px;transition:background .12s}
.sm-ui .sm-hour.any{border:1px dashed var(--line-2);border-radius:10px;padding:6px 8px;margin-bottom:6px;background:var(--bg-2)}
.sm-ui .sm-hour.any + .sm-hour{border-top:0}
.sm-ui .sm-hour__t{font-size:12px;font-weight:700;color:var(--ink-2);padding-top:9px;white-space:nowrap}
.sm-ui .sm-hour__list{display:flex;flex-wrap:wrap;gap:6px;min-height:40px;min-width:0;border-radius:8px}
.sm-ui .sm-hour.over{background:var(--teal-soft)}
.sm-ui .sm-hour.over .sm-hour__list{box-shadow:inset 0 0 0 1.5px var(--teal)}
.sm-ui .sm-cal.day .sm-pi{flex:0 1 250px;align-items:center;font-size:13px;padding:6px 8px 6px 6px}
.sm-ui .sm-cal.day .sm-pi .pn{-webkit-line-clamp:2}
.sm-ui .sm-cal.day .sm-pi__ok{left:30px}
.sm-ui .sm-tray{display:flex;flex-direction:column;gap:10px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px;position:sticky;top:90px;max-height:calc(100vh - 110px);min-width:0}
.sm-ui .sm-tray h3{display:flex;justify-content:space-between;align-items:baseline;margin:0;font-family:var(--sm-font-display);font-size:16px;color:var(--ink)}
.sm-ui .sm-tray .srch{position:relative}
.sm-ui .sm-tray .srch svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:16px;height:16px;color:var(--ink-3);pointer-events:none}
.sm-ui .sm-tray .srch input{width:100%;padding:9px 12px 9px 36px;font-size:16px;border:1.5px solid var(--line-2);border-radius:var(--r-sm);background:#fff;color:var(--ink);font-family:var(--sm-font-body)}
.sm-ui .sm-tray .tl{overflow:auto;display:flex;flex-direction:column;gap:6px;min-height:120px}
.sm-ui .sm-ti{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:10px;padding:6px;cursor:grab;background:#fff;font-size:12.5px}
.sm-ui .sm-ti:active{cursor:grabbing}
.sm-ui .sm-ti .pt{width:36px;height:36px;border-radius:6px;flex:none;object-fit:cover;background-color:var(--bg-3);margin:0}
.sm-ui .sm-ti .pn{flex:1;min-width:0;font-weight:600;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.sm-ui .sm-ti .add{border:1.5px solid var(--line-2);background:#fff;color:var(--ink);padding:4px 9px;font-size:12px;font-weight:600;white-space:nowrap;line-height:1.2}
.sm-ui .sm-ti .add:hover{border-color:var(--ink);background:#fff;color:var(--ink)}
.sm-ui .sm-tray .tabs{display:flex;gap:6px}
.sm-ui .sm-tray .tabs button{flex:1;border:1.5px solid var(--line-2);background:#fff;color:var(--ink);padding:5px 8px;font-size:12px;font-weight:600;line-height:1.2}
.sm-ui .sm-tray .tabs button:hover{border-color:var(--ink);background:#fff;color:var(--ink)}
.sm-ui .sm-tray .tabs button[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:#fff}
.sm-ui .sm-tray .sm-empty{padding:18px;font-size:13px}
.sm-ui .sm-legend{display:flex;gap:16px;font-size:12.5px;color:var(--ink-2);flex-wrap:wrap;margin-top:10px}
.sm-ui .sm-legend span{display:inline-flex;align-items:center;gap:6px}
.sm-ui .sm-legend i{width:12px;height:12px;border-radius:3px;display:inline-block}
.sm-ui .sm-legend__plan{background:var(--pink)}
.sm-ui .sm-legend__dl{background:var(--green)}
@media (max-width:600px){
  .sm-ui #sm-pane-plan button,.sm-ui.sm-pop button{min-height:36px}
  .sm-ui .sm-plan-top .mo{min-width:0;flex:1;font-size:17px}
  .sm-ui .sm-plan-nav{width:100%}
  /* Agenda: one row per day, no weekday header row. */
  .sm-ui .sm-cal.agenda{display:flex;flex-direction:column;gap:8px;padding:10px}
  .sm-ui .sm-cal.agenda .sm-day{min-height:0}
  .sm-ui .sm-cal.agenda .sm-day.wk{background:#fff}
  .sm-ui .sm-cal.agenda .sm-pi{font-size:14px;padding:8px;gap:10px;cursor:pointer}
  .sm-ui .sm-cal.agenda .sm-pi .pt{width:44px;height:44px}
  .sm-ui .sm-cal.agenda .sm-pi{align-items:center}
  .sm-ui .sm-cal.agenda .sm-pi__ok{left:38px;top:2px}
  .sm-ui .sm-cal.agenda .sm-pi .pn{-webkit-line-clamp:3}
  .sm-ui .sm-cal__empty{padding:14px}
  .sm-ui .sm-ti .add{padding:4px 14px;font-size:13px}
  /* Day view on a phone: the same hour rows, a narrower time column, one entry per line. Readable at 360px. */
  .sm-ui .sm-cal.day{padding:10px}
  .sm-ui .sm-hour{grid-template-columns:64px minmax(0,1fr);gap:8px;min-height:44px}
  .sm-ui .sm-hour.empty{min-height:36px;padding:4px 0}
  .sm-ui .sm-hour.empty .sm-hour__list{min-height:28px}
  .sm-ui .sm-hour__t{font-size:12px;padding-top:8px}
  .sm-ui .sm-cal.day .sm-pi{flex:1 1 100%;font-size:14px}
  .sm-ui .sm-cal.day .sm-pi .pt{width:40px;height:40px}
  .sm-ui .sm-cal.day .sm-pi__ok{left:34px}
}
.sm-ui .sm-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}


/* Day panel (sm-plan-cal.js openSheet): beside the day on wide screens, a bottom sheet under 700px. On <body>. */
.sm-ui.sm-sheet-wrap{position:fixed;inset:0;z-index:99990;pointer-events:none}
.sm-ui.sm-sheet-wrap[hidden]{display:none}
.sm-ui .sm-sheet{position:fixed;width:400px;max-height:min(560px,calc(100vh - 24px));overflow:auto;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 16px 48px rgba(41,38,38,.18),0 2px 8px rgba(41,38,38,.08);pointer-events:auto;padding:16px 16px 10px;animation:sm-sheet-in .18s cubic-bezier(.2,.8,.2,1)}
.sm-ui .sm-sheet:focus{outline:none}
.sm-ui.sm-sheet-wrap.is-bottom{background:rgba(31,27,28,.35);pointer-events:auto}
.sm-ui.sm-sheet-wrap.is-bottom .sm-sheet{left:0;right:0;bottom:0;top:auto;width:auto;max-height:80vh;border-radius:18px 18px 0 0;border-bottom:0;padding-bottom:calc(14px + env(safe-area-inset-bottom));animation-name:sm-sheet-up}
@keyframes sm-sheet-in{from{opacity:0;transform:translateY(4px) scale(.98)}to{opacity:1;transform:none}}
@keyframes sm-sheet-up{from{transform:translateY(24px);opacity:0}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.sm-ui .sm-sheet{animation:none}}
.sm-ui .sm-sheet__head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:10px;border-bottom:1px solid var(--line);margin-bottom:4px}
.sm-ui .sm-sheet__title{font-family:var(--sm-font-display);font-size:17px;font-weight:700;line-height:1.25;margin:0;color:var(--ink)}
.sm-ui .sm-sheet__count{margin:2px 0 0;font-size:13px;color:var(--ink-2)}
.sm-ui .sm-sheet__close{flex:none;width:36px;height:36px;min-height:0;border:0;border-radius:999px;background:var(--bg-3);color:var(--ink-2);display:grid;place-items:center;padding:0;cursor:pointer;box-shadow:none}
.sm-ui .sm-sheet__close svg{width:16px;height:16px;display:block}
.sm-ui .sm-sheet__close:hover{background:var(--line);color:var(--ink)}
.sm-ui .sm-sheet__close:focus-visible{outline:2px solid var(--teal-ink);outline-offset:2px}
.sm-ui .sm-sheet__list{display:flex;flex-direction:column}
.sm-ui .sm-sheet__row{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.sm-ui .sm-sheet__row:last-child{border-bottom:0}
.sm-ui .sm-sheet__row .pt{width:64px;height:64px;border-radius:10px;object-fit:cover;flex:none;background:var(--bg-3);box-shadow:0 0 0 1px rgba(41,38,38,.06)}
.sm-ui .sm-sheet__body{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
.sm-ui .sm-sheet__body .pn{font-weight:700;font-size:14.5px;line-height:1.3;color:var(--ink);text-decoration:none;overflow-wrap:anywhere}
.sm-ui .sm-sheet__body a.pn:hover{text-decoration:underline;text-underline-offset:2px}
.sm-ui .sm-sheet__body a.pn:focus-visible{outline:2px solid var(--teal-ink);outline-offset:2px;border-radius:3px}
.sm-ui .sm-sheet__st{display:inline-flex;align-items:center;gap:5px;font-size:12.5px;color:var(--ink-2);font-weight:600}
.sm-ui .sm-sheet__row.dl .sm-sheet__st{color:#2f7a44}
.sm-ui .sm-sheet__st svg{width:13px;height:13px}
.sm-ui .sm-sheet__btns{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.sm-ui .sm-sheet__btns button{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 12px;border-radius:999px;border:1.5px solid var(--line-2);background:#fff;color:var(--ink);font:inherit;font-size:13px;font-weight:600;cursor:pointer;box-shadow:none;text-transform:none;letter-spacing:0}
.sm-ui .sm-sheet__btns button svg{width:14px;height:14px;display:block}
.sm-ui .sm-sheet__btns button:hover{border-color:var(--ink);background:#fff;color:var(--ink)}
.sm-ui .sm-sheet__btns .dlb{background:var(--teal-ink);border-color:var(--teal-ink);color:#fff}
.sm-ui .sm-sheet__btns .dlb:hover{background:#186a70;border-color:#186a70;color:#fff}
/* "View resource" (can_download false): the cards' pink, a link to the product page, never a download. */
.sm-ui .sm-sheet__btns a.viewb{display:inline-flex;align-items:center;min-height:36px;padding:0 14px;border-radius:999px;border:1.5px solid var(--pink-dark);background:var(--pink-dark);color:#fff;font-size:13px;font-weight:600;text-decoration:none;line-height:1.2}
.sm-ui .sm-sheet__btns a.viewb:hover{background:var(--pink-ink);border-color:var(--pink-ink);color:#fff}
.sm-ui .sm-sheet__btns a.viewb:focus-visible{outline:2px solid var(--teal-ink);outline-offset:2px}
.sm-ui .sm-sheet__btns .rm:hover{border-color:var(--bad);color:var(--bad)}
.sm-ui .sm-sheet__btns button:focus-visible{outline:2px solid var(--teal-ink);outline-offset:2px}
.sm-ui .sm-sheet__btns button[aria-busy="true"]{opacity:.55;cursor:progress}

/* Hover preview of a planned item (mouse only, aria-hidden). */
.sm-ui.sm-peek{position:fixed;z-index:99980;width:200px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px;box-shadow:0 12px 32px rgba(41,38,38,.16);pointer-events:none;display:flex;flex-direction:column;gap:6px;animation:sm-sheet-in .14s ease-out}
.sm-ui.sm-peek[hidden]{display:none}
.sm-ui.sm-peek img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:9px;background:var(--bg-3);display:block}
.sm-ui .sm-peek__name{font-weight:700;font-size:13px;line-height:1.3;color:var(--ink)}
.sm-ui .sm-peek__st{font-size:12px;color:var(--ink-2)}
@media (prefers-reduced-motion:reduce){.sm-ui.sm-peek{animation:none}}
/* A member never sees the logged-out price and Buy button while their account loads. A placeholder holds the row so
   the card is never blank. If loading fails, the neutral row comes back after 20 s. */
@keyframes sm-unmask{to{visibility:visible}}
@keyframes sm-gone{to{opacity:0;visibility:hidden}}
@keyframes sm-shimmer{from{background-position:100% 0}to{background-position:-100% 0}}
body.logged-in .sm-ui .sm-card__row:has(.sm-card__btn:not([data-sm-user="1"])){position:relative}
body.logged-in .sm-ui .sm-card__row:has(.sm-card__btn:not([data-sm-user="1"]))>*{visibility:hidden;animation:sm-unmask 0s linear 20s forwards}
body.logged-in .sm-ui .sm-card__row:has(.sm-card__btn:not([data-sm-user="1"]))::before,
body.logged-in .sm-ui .sm-card__row:has(.sm-card__btn:not([data-sm-user="1"]))::after{content:"";position:absolute;top:50%;transform:translateY(-50%);border-radius:999px;background:linear-gradient(90deg,var(--bg-3) 25%,var(--bg-2) 50%,var(--bg-3) 75%);background-size:200% 100%;animation:sm-shimmer 1.4s linear infinite,sm-gone 0s linear 20s forwards}
body.logged-in .sm-ui .sm-card__row:has(.sm-card__btn:not([data-sm-user="1"]))::before{left:0;width:56px;height:12px}
body.logged-in .sm-ui .sm-card__row:has(.sm-card__btn:not([data-sm-user="1"]))::after{right:0;width:92px;height:32px}
/* The status strip while /me loads: same box, no text yet, so the page does not jump when it fills. */
body.logged-in .sm-ui .sm-strip:empty{display:block;min-height:112px;background:linear-gradient(90deg,var(--bg-2) 25%,#fff 50%,var(--bg-2) 75%);background-size:200% 100%;animation:sm-shimmer 1.4s linear infinite,sm-strip-gone 0s linear 20s forwards}
@keyframes sm-strip-gone{to{min-height:0;padding:0;border-width:0;margin:0;box-shadow:none;visibility:hidden}}
@media (max-width:760px){body.logged-in .sm-ui .sm-strip:empty{min-height:196px}}
@media (prefers-reduced-motion:reduce){
  body.logged-in .sm-ui .sm-card__row:has(.sm-card__btn:not([data-sm-user="1"]))::before,
  body.logged-in .sm-ui .sm-card__row:has(.sm-card__btn:not([data-sm-user="1"]))::after{animation:sm-gone 0s linear 20s forwards}
  body.logged-in .sm-ui .sm-strip:empty{animation:sm-strip-gone 0s linear 20s forwards}
}
.sm-ui .sm-strip>:last-child{align-self:center}

/* Start here: a new pass holder's first download (sm-hub.js paintStart) */
.sm-ui .sm-start{background:var(--teal-soft);border-radius:var(--r);padding:24px;margin:0 0 28px;display:flex;flex-direction:column;gap:16px}
.sm-ui .sm-start[hidden]{display:none}
.sm-ui .sm-start__head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.sm-ui .sm-start h2{font-family:var(--sm-font-display);font-size:22px;font-weight:700;line-height:1.25;color:var(--ink);margin:0 0 4px}
.sm-ui .sm-start .chip{background:#fff}
.sm-ui .sm-start .chip[aria-pressed="true"]{background:var(--ink);color:#fff}
.sm-ui .sm-start__skip{border:0;background:transparent;box-shadow:none;color:var(--ink-2);font-family:var(--sm-font-body);font-size:14px;font-weight:600;text-decoration:underline;text-underline-offset:3px;padding:10px 4px;min-height:44px;cursor:pointer;white-space:nowrap;text-transform:none;letter-spacing:normal}
.sm-ui .sm-start__skip:hover{background:transparent;color:var(--ink)}
.sm-ui .sm-start__acts{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.sm-ui .sm-start [data-sm-start-grid][aria-busy="true"]{opacity:.55;transition:opacity .15s}
/* First load: the picks are on their way. Hold their space with a quiet placeholder, never an empty panel. */
.sm-ui .sm-start [data-sm-start-grid][aria-busy="true"]:empty{display:block;opacity:1;min-height:300px;border-radius:var(--r);background:linear-gradient(90deg,rgba(255,255,255,.55) 25%,rgba(255,255,255,.95) 50%,rgba(255,255,255,.55) 75%);background-size:200% 100%;animation:sm-shimmer 1.4s linear infinite}
.sm-ui .sm-start [data-sm-start-chips]:empty{min-height:38px}
@media (prefers-reduced-motion:reduce){.sm-ui .sm-start [data-sm-start-grid][aria-busy="true"]:empty{animation:none}}
.sm-ui .sm-start .sm-empty{grid-column:1/-1;padding:20px;background:#fff}
/* One job here: the first download. Planning waits, and the extra button would squeeze Download on phones. */
.sm-ui .sm-start .sm-plan-btn{display:none}
.sm-ui .sm-start.is-done .sm-start__head{align-items:center}
@media (max-width:760px){
  .sm-ui .sm-start{padding:18px 16px;margin-bottom:20px}
  .sm-ui .sm-start.is-done .sm-start__head{flex-direction:column;align-items:flex-start}
}

/* Plan: the calendar and the resource list hold their space while they load. */
.sm-ui [data-sm-cal]:empty,.sm-ui [data-sm-tray]:empty{border-radius:var(--r);background:linear-gradient(90deg,var(--bg-2) 25%,#fff 50%,var(--bg-2) 75%);background-size:200% 100%;animation:sm-shimmer 1.4s linear infinite}
.sm-ui [data-sm-cal]:empty{min-height:320px}
.sm-ui [data-sm-tray]:empty{min-height:132px}
@media (prefers-reduced-motion:reduce){.sm-ui [data-sm-cal]:empty,.sm-ui [data-sm-tray]:empty{animation:none}}
/* Wording that depends on the pointer: dragging needs a mouse. */
.sm-ui .sm-coarse,.sm-ui .sm-legend .sm-coarse{display:none}
.sm-ui .sm-legend .sm-legend__tip{display:inline}
.sm-ui .sm-legend .sm-legend__tip .sm-fine{display:inline}
@media (hover:none),(pointer:coarse){.sm-ui .sm-fine,.sm-ui .sm-legend .sm-legend__tip .sm-fine{display:none}.sm-ui .sm-coarse{display:inline}}
/* Phones (2026-11-09): each filter group is one row that scrolls sideways, so the resources start within one screen. */
@media (max-width:760px){
  .sm-ui .sm-lib .chips{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding:3px 28px 3px 3px;margin-inline:-3px;-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent)}
  .sm-ui .sm-lib .chips::-webkit-scrollbar{display:none}
  .sm-ui .sm-lib .chips>.lb,.sm-ui .sm-lib .chips .facetwp-radio,.sm-ui .sm-lib .chips .chip,.sm-ui .sm-lib .chips .sm-toggle{flex:0 0 auto;white-space:nowrap}
  /* Round 5: one label width, so the first chip of every sideways-scrolling row starts at the same x. */
  .sm-ui .sm-lib .chips>.lb{flex-basis:60px;margin-right:0}
  .sm-ui .sm-lib .toolrow{flex-wrap:nowrap}
  .sm-ui .sm-lib .toolrow .lb{display:none}
  .sm-ui .sm-lib .toolrow .facetwp-facet{min-width:0;margin:0}
  .sm-ui .sm-lib .toolrow select{max-width:100%}
}
