/**
 * InsideFlow component library (iy-*) — the single source of truth for UI building blocks.
 * Documentation + rules: docs/design-system.md · Live catalog: /styleguide/ (admins)
 *
 * Canonical tokens are --iy-*; the --iy-po-* aliases keep the M11 profile module
 * working unchanged. New code uses the --iy-* names and the .iy-* classes.
 *
 * Loaded globally (inc/setup.php) BEFORE module stylesheets.
 */

/* ================================================================ Tokens */
:root {
  /* brand */
  --iy-teal: var(--e-global-color-primary, #3B6063);
  --iy-teal-deep: #22403E;
  --iy-teal-deeper: #182F2E;
  --iy-teal-soft: #EAF0EF;
  --iy-gold: var(--e-global-color-secondary, #A77637);
  --iy-gold-bright: #C9995C;
  --iy-gold-soft: #F3E9DB;

  /* neutrals */
  --iy-ink: #1D2B2A;
  --iy-ink-soft: #5A6C6A;
  --iy-line: #E2E7E5;
  --iy-paper: #F4F5F3;
  --iy-panel: #F5F5F7; /* set-off action/footer bands, e.g. dialog footers (Alessio, 2026-07-28) */
  --iy-card: #FFFFFF;
  --iy-card-muted: #FBFBF9;
  --iy-on-dark: #F4F7F6;
  --iy-on-dark-soft: #B8CBC9;

  /* elevation */
  --iy-shadow: 0 1px 2px rgba(24, 47, 46, .06), 0 8px 28px rgba(24, 47, 46, .08);
  --iy-shadow-lift: 0 2px 4px rgba(24, 47, 46, .08), 0 16px 44px rgba(24, 47, 46, .14);

  /* radius language: 100px = interactive buttons ONLY · 20px = cards ·
     12-14px = tags/chips/status · 7px = micro tags */
  --iy-radius-card: 20px;
  --iy-radius-tag: 12px;
  --iy-radius-chip: 14px;
  --iy-radius-micro: 7px;
  --iy-radius-button: 100px;

  /* legacy aliases (M11 profile module) */
  --iy-po-teal: var(--iy-teal);
  --iy-po-gold: var(--iy-gold);
  --iy-po-gold-bright: var(--iy-gold-bright);
  --iy-po-ink: var(--iy-ink);
  --iy-po-ink-soft: var(--iy-ink-soft);
  --iy-po-line: var(--iy-line);
  --iy-po-paper: var(--iy-paper);
  --iy-po-card: var(--iy-card);
  --iy-po-card-muted: var(--iy-card-muted);
  --iy-po-teal-soft: var(--iy-teal-soft);
  --iy-po-gold-soft: var(--iy-gold-soft);
  --iy-po-shadow: var(--iy-shadow);
}

/* ================================================================ Card */
.iy-card,
.iy-po-card {
  background: var(--iy-card);
  border-radius: var(--iy-radius-card);
  box-shadow: var(--iy-shadow);
  padding: 32px 36px;
}
.iy-card h2,
.iy-po-card h2 {
  margin: 4px 0 4px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--iy-ink);
}
@media (max-width: 840px) {
  .iy-card,
  .iy-po-card { padding: 26px 22px; }
}

/* muted variant: empty states / teasers (dashed, washed background) */
.iy-card--muted,
.iy-po-teaser {
  background: var(--iy-card-muted);
  border: 1.5px dashed var(--iy-line);
  box-shadow: none;
}

/* ================================================================ Type helpers */
.iy-eyebrow,
.iy-po-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--iy-gold);
}
.iy-sub,
.iy-po-sub {
  margin: 0;
  color: var(--iy-ink-soft);
  font-size: 15px;
}
.iy-sub b,
.iy-po-sub b { font-variant-numeric: tabular-nums; }
.iy-hint,
.iy-po-hint { font-style: italic; }

/* ================================================================ Buttons (interactive → 100px pill) */
/* Icon-capable by default: a bb-icon <i> before the label gets its 8px gap
   from the flex base — no per-module spacing rules (Alessio, 2026-07-28). */
.iy-btn,
.iy-po-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid transparent; /* bordered variants stay the same height */
  cursor: pointer;
  border-radius: var(--iy-radius-button);
  padding: 11px 26px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3; /* fixed in the base — <a> buttons must not inherit the page's line-height */
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.iy-btn i {
  font-size: 1.1em;
  line-height: 1;
}
/* <label class="iy-btn"> (file pickers): the theme gives every label a bottom
   margin, which made a row of buttons 4px taller than the label (2026-09-21). */
label.iy-btn { margin: 0; }
/* primary = teal (site-wide default since M1); accent = gold (conversion CTAs
   like Follow/Upgrade). .iy-po-btn-primary predates the split and stays gold. */
.iy-btn--primary { background: var(--iy-teal); color: #fff !important; }
.iy-btn--primary:hover { background: var(--iy-teal-deep); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(24, 47, 46, .2); }
.iy-btn--accent,
.iy-po-btn-primary { background: var(--iy-gold); color: #fff !important; }
.iy-btn--accent:hover,
.iy-po-btn-primary:hover { background: var(--iy-gold-bright); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(24, 47, 46, .2); }
.iy-btn--outline,
.iy-po-btn-outline { background: transparent; color: var(--iy-teal) !important; border: 1.5px solid var(--iy-teal); }
.iy-btn--outline:hover,
.iy-po-btn-outline:hover { background: var(--iy-teal-soft); transform: translateY(-1px); }

/* ---- BP hardening (central) ----
   The theme paints EVERY button on BP screens with its primary style
   (.buddypress .buddypress-wrap button: teal bg, 10/20 padding, own radius,
   weight 500). Same selector base + our class outranks that rule, so the
   library wins on every BP surface without per-module !important
   (component audit, 2026-07-27). */
.buddypress .buddypress-wrap .iy-btn,
#buddypress .iy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid transparent;
  border-radius: var(--iy-radius-button);
  padding: 11px 26px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
}
.buddypress .buddypress-wrap .iy-btn--primary,
#buddypress .iy-btn--primary { background: var(--iy-teal); }
.buddypress .buddypress-wrap .iy-btn--primary:hover,
#buddypress .iy-btn--primary:hover { background: var(--iy-teal-deep); }
.buddypress .buddypress-wrap .iy-btn--accent,
#buddypress .iy-btn--accent { background: var(--iy-gold); }
.buddypress .buddypress-wrap .iy-btn--accent:hover,
#buddypress .iy-btn--accent:hover { background: var(--iy-gold-bright); }
.buddypress .buddypress-wrap .iy-btn--outline,
#buddypress .iy-btn--outline { background: transparent; border: 1.5px solid var(--iy-teal); }
.buddypress .buddypress-wrap .iy-btn--outline:hover,
#buddypress .iy-btn--outline:hover { background: var(--iy-teal-soft); }
.buddypress .buddypress-wrap .iy-btn--quiet,
#buddypress .iy-btn--quiet { background: transparent; border: 1.5px solid var(--iy-line); }
.buddypress .buddypress-wrap .iy-btn--danger,
#buddypress .iy-btn--danger { background: transparent; border: 1.5px solid #A63D2F; }
.buddypress .buddypress-wrap .iy-btn--danger:hover,
#buddypress .iy-btn--danger:hover { background: #FBEFED; }
.buddypress .buddypress-wrap .iy-btn--sm,
#buddypress .iy-btn--sm { padding: 8px 18px; font-size: 13.5px; }

/* BP heading margins: the theme gives EVERY h1–h6 inside .buddypress-wrap a
   1.6875rem bottom margin. Inside our components spacing comes from the
   component, never from the heading — neutralize centrally instead of
   per surface (Alessio, 2026-07-28: "doofe Abstände"). :is() lifts the
   specificity above the theme rule. */
body.buddypress .buddypress-wrap :is(.iy-card, .iy-flows, .iy-approval-dialog) :is(h1, h2, h3, h4, h5, h6),
#buddypress :is(.iy-card, .iy-flows, .iy-approval-dialog) :is(h1, h2, h3, h4, h5, h6) {
  margin: 0;
}
/* restore the library's own card heading rhythm on BP screens */
body.buddypress .buddypress-wrap .iy-card h2,
#buddypress .iy-card h2 {
  margin: 4px 0 4px;
}

/* ================================================================ Empty-state icon (muted cards) */
/* Optional circle above the empty-state heading:
   <div class="iy-empty-ic"><i class="bb-icon-l bb-icon-inbox"></i></div> */
.iy-empty-ic {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--iy-teal-soft);
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
}
.iy-empty-ic i {
  font-size: 20px;
  color: var(--iy-teal);
  line-height: 1;
}

/* ================================================================ Status tabs (pill switcher) */
/* Shared by Flow Approvals and the profile Flows tab. Interactive -> 100px.
   JS (iy-tabs.js) switches panels without a reload; the links keep working
   without JS (SSR fallback via ?flow_status=). */
.iy-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.buddypress .buddypress-wrap .iy-tab,
#buddypress .iy-tab,
.iy-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border: 1.5px solid var(--iy-line);
  border-radius: var(--iy-radius-button);
  background: var(--iy-card);
  color: var(--iy-ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.3;
}
.buddypress .buddypress-wrap .iy-tab:hover,
#buddypress .iy-tab:hover,
.iy-tab:hover { border-color: var(--iy-teal); color: var(--iy-teal); }
.buddypress .buddypress-wrap .iy-tab.is-active,
#buddypress .iy-tab.is-active,
.iy-tab.is-active { background: var(--iy-teal); border-color: var(--iy-teal); color: #fff; }
.iy-tab__count { font-variant-numeric: tabular-nums; opacity: .75; }

/* Status-colored pills (Alessio, 2026-07-28): the pills REPLACE the status
   badges on the flow tabs — every pill carries its status dot, the active
   one takes its status color (gold / soft red / teal, badge palette). */
.iy-tab--status-pending::before,
.iy-tab--status-rejected::before,
.iy-tab--status-approved::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.iy-tab--status-pending::before { background: var(--iy-gold); }
.iy-tab--status-rejected::before { background: #A63D2F; }
.iy-tab--status-approved::before { background: var(--iy-teal); }
.buddypress .buddypress-wrap .iy-tab--status-pending.is-active,
#buddypress .iy-tab--status-pending.is-active,
.iy-tab--status-pending.is-active { background: var(--iy-gold-soft); border-color: var(--iy-gold-soft); color: var(--iy-gold); }
.buddypress .buddypress-wrap .iy-tab--status-rejected.is-active,
#buddypress .iy-tab--status-rejected.is-active,
.iy-tab--status-rejected.is-active { background: #F6E4DE; border-color: #F6E4DE; color: #8A4B2E; }
.buddypress .buddypress-wrap .iy-tab--status-approved.is-active,
#buddypress .iy-tab--status-approved.is-active,
.iy-tab--status-approved.is-active { background: var(--iy-teal-soft); border-color: var(--iy-teal-soft); color: var(--iy-teal); }

/* ================================================================ Confirm dialog (destructive actions) */
/* Built by assets/js/iy-confirm.js — window.iyConfirm({title, text, confirmLabel})
   returns a Promise<boolean>. Actions sit on a muted footer band
   (Alessio, 2026-07-28). */
.iy-confirm {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(24, 47, 46, .55);
}
.iy-confirm__card {
  width: min(410px, 100%);
  background: var(--iy-card);
  border-radius: var(--iy-radius-card);
  box-shadow: 0 24px 60px rgba(10, 25, 23, .3);
  overflow: hidden;
}
.iy-confirm__body { padding: 24px 26px 20px; }
.iy-confirm__title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  color: var(--iy-ink);
}
.iy-confirm__text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--iy-ink-soft);
}
.iy-confirm__text b { color: var(--iy-ink); }
/* Longer content (consequence lists): size: 'wide' + html with a list */
.iy-confirm__card--wide { width: min(560px, 100%); }
.iy-confirm__text p { margin: 0 0 10px; }
.iy-confirm__text p:last-child { margin-bottom: 0; }
.iy-confirm__list { margin: 0 0 12px; padding: 0 0 0 18px; }
.iy-confirm__list li { margin: 0 0 6px; }
.iy-confirm__foot {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* actions right (Alessio, 2026-07-28) */
  gap: 10px;
  padding: 14px 26px;
  background: var(--iy-panel);
  border-top: 1px solid var(--iy-line);
}
/* X top right — second explicit "no" (Alessio, 2026-07-28). Hardened like
   the buttons below: the dialog lives outside .buddypress-wrap. */
body .iy-confirm .iy-confirm__card { position: relative; }
body .iy-confirm .iy-confirm__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--iy-ink-soft);
  font-size: 15px;
  line-height: 0;
  cursor: pointer;
  box-shadow: none;
}
body .iy-confirm .iy-confirm__close:hover,
body .iy-confirm .iy-confirm__close:focus {
  background: rgba(29, 43, 42, .07);
  color: var(--iy-ink);
  box-shadow: none;
}

/* The dialog is appended to <body> — OUTSIDE .buddypress-wrap, so the central
   BP hardening above does not reach it, while the theme's global `button`
   rule does (it repainted Cancel teal). The dialog hardens its own buttons,
   context-free. */
body .iy-confirm .iy-btn {
  border: 1.5px solid transparent;
  border-radius: var(--iy-radius-button);
  padding: 11px 26px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
  box-shadow: none; /* the theme's global button rule ships one */
}
/* the ONLY two sizes in the system — this hardening context repeats them
   verbatim so --sm survives the specificity bump (Alessio, 2026-07-28) */
body .iy-confirm .iy-btn--sm {
  padding: 8px 18px;
  font-size: 13.5px;
}
body .iy-confirm .iy-btn:hover,
body .iy-confirm .iy-btn:focus {
  box-shadow: none;
}
body .iy-confirm .iy-btn--outline {
  background: transparent;
  color: var(--iy-teal);
  border: 1.5px solid var(--iy-teal);
}
body .iy-confirm .iy-btn--outline:hover {
  background: var(--iy-teal-soft);
}
body .iy-confirm .iy-btn--quiet {
  background: transparent;
  color: var(--iy-ink-soft);
}
body .iy-confirm .iy-btn--quiet:hover {
  background: rgba(29, 43, 42, .07);
  color: var(--iy-ink);
}
body .iy-confirm .iy-btn--danger {
  background: transparent;
  color: #A63D2F;
  border: 1.5px solid #A63D2F;
}
body .iy-confirm .iy-btn--danger:hover {
  background: #FBEFED;
}
body .iy-confirm .iy-btn--primary {
  background: var(--iy-teal);
  color: #fff;
  border: 1.5px solid var(--iy-teal);
}
body .iy-confirm .iy-btn--primary:hover {
  background: var(--iy-teal-deep);
  border-color: var(--iy-teal-deep);
}

/* ================================================================ Chip (track/identity tag, NOT a button) */
.iy-chip,
.iy-po-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--iy-paper);
  border: 1px solid var(--iy-line);
  border-radius: var(--iy-radius-chip);
  padding: 6px 16px 6px 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--iy-ink);
  line-height: 1.25;
}
.iy-chip img,
.iy-chip .iy-chip-icon,
.iy-po-chip img,
.iy-po-chip .iy-po-chip-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: block;
  flex: 0 0 auto;
}
.iy-chip .iy-chip-icon,
.iy-po-chip .iy-po-chip-icon {
  background: linear-gradient(140deg, var(--iy-teal), #2C4A4D);
  display: grid;
  place-items: center;
  color: #EDF3F2;
  font-size: 14px;
  font-weight: 800;
}
.iy-chip small,
.iy-po-chip small {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--iy-ink-soft);
  line-height: 1.3;
}
/* dark-band variant (e.g. inside .iy-hero) */
.iy-chip--on-dark {
  background: rgba(244, 247, 246, .10);
  border-color: rgba(244, 247, 246, .22);
  color: var(--iy-on-dark);
  backdrop-filter: blur(4px);
}
.iy-chip--on-dark small { color: var(--iy-on-dark-soft); }

/* ================================================================ Status badge (soft, non-interactive) */
.iy-status,
.iy-po-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--iy-gold-soft);
  color: var(--iy-gold);
  border-radius: var(--iy-radius-tag);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
}
.iy-status i,
.iy-po-status i { font-size: 15px; }
/* compact badge for row cards + state variants (flows, 2026-07-27) */
.iy-status--sm { padding: 5px 11px; font-size: 11.5px; }
.iy-status--approved { background: var(--iy-teal-soft); color: var(--iy-teal); }
.iy-status--rejected { background: #F6E4DE; color: #8A4B2E; }

/* ================================================================ State toggle (Go-Live page, 2026-11-02)
   A status the viewer switches by clicking (Offen → In Arbeit → Wartet →
   Erledigt). Interactive, so the 100px button shape; the read-only
   counterpart is .iy-status. Markup: <button class="iy-state iy-state--doing">
   (template-golive.php). Hardened: the parent theme styles every <button>. */
button.iy-state,
.iy-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 96px;
  min-height: 32px;
  margin: 0;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: var(--iy-radius-button) !important;
  box-shadow: none !important;
  font-family: inherit;
  font-size: 12.5px !important;
  font-weight: 600;
  line-height: 1 !important;
  white-space: nowrap;
  cursor: pointer;
  transition: filter .15s ease;
}
.iy-state:hover { filter: brightness(.96); }
.iy-state:focus-visible { outline: 2px solid var(--iy-teal); outline-offset: 2px; }
.iy-state[disabled] { cursor: progress; opacity: .7; }
/* the parent theme paints every button: colors need the same weight */
button.iy-state--todo { background: var(--iy-line) !important; color: var(--iy-ink) !important; }
button.iy-state--doing { background: var(--iy-teal-soft) !important; color: var(--iy-teal) !important; }
button.iy-state--waiting { background: var(--iy-gold-soft) !important; color: var(--iy-gold) !important; }
button.iy-state--done { background: #E3F1E8 !important; color: #2F7A4F !important; }
@media (max-width: 767px) { button.iy-state, .iy-state { min-height: 40px; } }

/* ================================================================ Card action row + owner note */
.iy-card-actions,
.iy-po-card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 26px;
}
.iy-owner-note,
.iy-po-owner-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
  font-size: 12.5px;
  color: var(--iy-ink-soft);
}
.iy-owner-note i,
.iy-po-owner-note i { font-size: 14px; opacity: .7; }

/* ================================================================ Detail grid (label/value pairs) */
.iy-detail-grid,
.iy-po-detail-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 64px;
  margin-top: 24px;
}
.iy-detail-k,
.iy-po-detail-k {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--iy-ink-soft);
}
.iy-detail-v,
.iy-po-detail-v {
  font-size: 15.5px;
  font-weight: 600;
  margin-top: 3px;
  color: var(--iy-ink);
}

/* ================================================================ Reveal (scroll-in animation) */
.iy-reveal,
.iy-po-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22, .8, .3, 1);
}
.iy-reveal.is-in,
.iy-po-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .iy-reveal,
  .iy-po-reveal { opacity: 1; transform: none; transition: none; }
}

/* ================================================================ Forms */
.iy-field { display: block; margin-bottom: 18px; }
.iy-field > label,
.iy-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--iy-ink-soft);
  margin-bottom: 6px;
}
.iy-input,
.iy-select,
.iy-textarea {
  width: 100%;
  max-width: 420px;
  padding: 11px 16px;
  border: 1px solid var(--iy-line);
  border-radius: var(--iy-radius-tag);
  background: var(--iy-card);
  font-family: inherit;
  font-size: 15px;
  color: var(--iy-ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.iy-textarea { min-height: 110px; resize: vertical; }
.iy-input:focus,
.iy-select:focus,
.iy-textarea:focus {
  outline: none;
  border-color: var(--iy-teal);
  box-shadow: 0 0 0 3px var(--iy-teal-soft);
}
.iy-input::placeholder,
.iy-textarea::placeholder { color: var(--iy-ink-soft); opacity: .7; }

/* radio / checkbox rows (native inputs, brand accent) */
.iy-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--iy-ink);
  margin: 8px 0;
  cursor: pointer;
}
.iy-choice input[type="radio"],
.iy-choice input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--iy-teal);
  margin: 0;
  flex: 0 0 auto;
}
.iy-choice small { color: var(--iy-ink-soft); }

/* ================================================================ Table */
.iy-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--iy-line);
  border-radius: 16px;
  background: var(--iy-card);
}
.iy-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14.5px;
  /* Das Theme gibt JEDER table margin-bottom: 1.6875rem — im Wrap sieht das wie
     eine leere Zeile unter der letzten Zeile aus (gleiche Ursache wie beim
     Heading-Reset weiter oben). */
  margin-bottom: 0;
}
.iy-table th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--iy-ink-soft);
  background: var(--iy-paper);
  padding: 13px 20px;
  border-bottom: 1px solid var(--iy-line);
  white-space: nowrap;
}
.iy-table td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--iy-line);
  color: var(--iy-ink);
  vertical-align: middle;
}
.iy-table td:first-child { font-weight: 600; }
.iy-table tbody tr:last-child td { border-bottom: 0; }
.iy-table tbody tr:hover td { background: var(--iy-card-muted); }
.iy-table td b { font-variant-numeric: tabular-nums; }

/* ---- additional button types ---- */
/* ghost on dark bands (hero): translucent border, on-dark text */
.iy-btn--ghost-dark {
  background: transparent;
  color: var(--iy-on-dark) !important;
  border: 1.5px solid rgba(244, 247, 246, .4);
}
.iy-btn--ghost-dark:hover { border-color: rgba(244, 247, 246, .8); transform: translateY(-1px); }
/* quiet: neutral ghost for tertiary actions — a visible hairline border
   instead of naked text (Alessio, 2026-07-28: quiet was too invisible;
   Cancel next to destructive/primary actions is .iy-btn--outline now). */
.iy-btn--quiet {
  background: transparent;
  color: var(--iy-ink-soft) !important;
  border: 1.5px solid var(--iy-line);
}
/* hover works on ANY surface (white card, --iy-panel footer): translucent
   ink instead of near-white — a white patch on the gray confirm footer was
   the giveaway (Alessio, 2026-07-28). */
.iy-btn--quiet:hover { color: var(--iy-ink) !important; border-color: var(--iy-ink-soft); background: rgba(29, 43, 42, .04); }
/* danger: destructive confirmation only (BP contexts covered by the central
   hardening block above). */
.iy-btn--danger {
  background: transparent;
  color: #A63D2F !important;
  border: 1.5px solid #A63D2F;
}
.iy-btn--danger:hover { background: #FBEFED; transform: translateY(-1px); }
/* text: an underlined text action next to a primary button, for the calm
   "not now" choice of a one-time step ("Later" on the welcome step, ticket 93).
   Underline + full ink-soft keep it explicit (quiet without a border was too
   invisible, 2026-07-28); never for Cancel next to destructive actions. */
.iy-btn--text,
button.iy-btn--text {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: var(--iy-ink-soft) !important;
  padding-left: 10px;
  padding-right: 10px;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.iy-btn--text:hover,
button.iy-btn--text:hover,
.iy-btn--text:focus,
button.iy-btn--text:focus {
  background: rgba(29, 43, 42, .04);
  border-color: transparent;
  color: var(--iy-ink) !important;
  transform: none;
}
/* size modifier */
.iy-btn--sm { padding: 8px 18px; font-size: 13.5px; }

/* ---- video lock (M10 gates) ----
   Overlay over IF video blocks for members without the Full Teacher License.
   Applied by assets/iy-media-gates.js inside .bb-activity-video-wrap; the
   body class .iy-no-full-license scopes everything (set in inc/media-gates.php).
   BP feed context -> hardened values (#buddypress overrides fonts/buttons). */
body.iy-no-full-license .bb-activity-video-wrap { position: relative; }
body.iy-no-full-license .bb-activity-video-wrap > :not(.iy-video-lock) { pointer-events: none; }
.iy-video-lock {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px;
  text-align: center;
  background: rgba(24, 47, 46, .78); /* --iy-teal-deeper, translucent */
  border-radius: inherit;
}
.iy-video-lock i {
  font-size: 30px !important;
  color: var(--iy-gold-bright) !important;
  line-height: 1;
}
.iy-video-lock__text {
  color: var(--iy-on-dark) !important;
  font-size: 14px !important;
  font-weight: 600;
  max-width: 300px;
  line-height: 1.4;
}
.iy-video-lock__cta {
  display: inline-block;
  background: var(--iy-gold) !important;
  color: #fff !important;
  border-radius: 100px !important;
  padding: 8px 18px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: background .18s ease, transform .18s ease;
}
.iy-video-lock__cta:hover {
  background: var(--iy-gold-bright) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

/* ---- asset download card (M13 brand assets) ----
   Grid of downloadable files; preview (or file-type icon), title, optional
   description, explicit format + size line, primary download button. */
.iy-asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.iy-asset-card {
  display: flex;
  flex-direction: column;
  background: var(--iy-card);
  border: 1px solid var(--iy-line);
  border-radius: var(--iy-radius-card);
  overflow: hidden;
  transition: transform .2s cubic-bezier(.22,.8,.3,1), box-shadow .2s ease;
}
.iy-asset-card:hover { transform: translateY(-2px); box-shadow: var(--iy-shadow-lift); }
.iy-asset-card__preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--iy-card-muted);
  border-bottom: 1px solid var(--iy-line);
  padding: 16px;
}
/* Absolutely positioned so a tall image cannot stretch the box — otherwise a
   square logo renders a taller preview than a wide one and the row of cards
   looks ragged. inset + margin:auto centers it inside the padding area. */
.iy-asset-card__preview img {
  position: absolute;
  inset: 16px;
  width: auto;
  height: auto;
  max-width: calc(100% - 32px);
  max-height: calc(100% - 32px);
  margin: auto;
  object-fit: contain;
}
.iy-asset-card__preview.is-empty i { font-size: 34px; color: var(--iy-ink-soft); }
.iy-asset-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px 18px;
  flex: 1;
}
.iy-asset-card__title { font-size: 16px; font-weight: 700; color: var(--iy-ink); margin: 0; }
.iy-asset-card__text { font-size: 14px; color: var(--iy-ink-soft); margin: 0; }
.iy-asset-card__meta {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--iy-ink-soft);
  font-variant-numeric: tabular-nums;
  margin: 0;
}
.iy-asset-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: auto;
}

/* ---- notice (important, page-level) ----
   Highlighted box for information members must not miss (e.g. "stop using
   the old logos"). Gold-soft, not an error state. */
.iy-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--iy-gold-soft);
  border: 1px solid rgba(167, 118, 55, .28);
  border-radius: var(--iy-radius-card);
  padding: 16px 18px;
  margin-bottom: 18px;
}
.iy-notice i { font-size: 20px; color: var(--iy-gold); line-height: 1.3; flex-shrink: 0; }
.iy-notice p { margin: 0; color: var(--iy-ink); font-size: 15px; line-height: 1.55; }
/* a number inside the notice text ("22 of your flows ..."): gold count pill,
   part of the sentence so every language can place it (ticket 94) */
.iy-notice__count {
  display: inline-block;
  min-width: 28px;
  margin-right: 2px;
  padding: 1px 9px;
  border-radius: var(--iy-radius-tag);
  background: var(--iy-gold);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
/* notice with one action (ticket 94, "Add moods" under the My Flows pills):
   icon, sentence, button right on the same row; at <=560px the button wraps
   under the text, left-aligned past the icon. The button is an <a>, the BP
   hardening of .iy-btn covers it inside #buddypress. */
.iy-notice--action {
  align-items: center;
  gap: 14px;
  padding: 14px 16px 14px 18px;
  margin-top: 20px;
}
.iy-notice--action i { line-height: 1; }
.iy-notice--action p { flex: 1; min-width: 0; }
.iy-notice--action .iy-btn { flex: none; white-space: nowrap; }
@media (max-width: 560px) {
  .iy-notice--action { flex-wrap: wrap; align-items: flex-start; gap: 10px 14px; }
  .iy-notice--action i { line-height: 1.3; }
  .iy-notice--action p { flex: 1 1 calc(100% - 34px); }
  .iy-notice--action .iy-btn { margin-left: 34px; } /* 20px icon + 14px gap */
}

/* ---- prose (editor-managed rich text inside a card) ----
   For team-maintained content (brand guidelines etc.) where the markup comes
   from the WYSIWYG editor and cannot carry iy-* classes. */
.iy-prose { color: var(--iy-ink-soft); font-size: 15px; line-height: 1.65; }
.iy-prose > *:first-child { margin-top: 0; }
.iy-prose > *:last-child { margin-bottom: 0; }
.iy-prose h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--iy-ink);
  margin: 26px 0 8px;
}
.iy-prose p { margin: 0 0 12px; }
.iy-prose ul { margin: 0 0 14px; padding-left: 20px; list-style: disc; }
.iy-prose ol { margin: 0 0 14px; padding-left: 22px; list-style: decimal; }
.iy-prose ol li::marker { color: var(--iy-teal); font-weight: 600; font-variant-numeric: tabular-nums; }
.iy-prose li { margin-bottom: 6px; }
.iy-prose a { color: var(--iy-teal); text-decoration: underline; }
.iy-prose strong { color: var(--iy-ink); }


/* ---------------------------------------------------------------------------
 * Quick-Add (Header) — "+" next to the notification bell.
 * Markup: inc/header-quick-add.php (child override template-parts/header-aside.php).
 * Reuses the theme's .notification-wrap/.notification-dropdown shell for
 * open/close; everything inside is ours. Hardened (!important) against the
 * theme's dropdown typography (display:block, 24px icons, 16px/300 text).
 * ------------------------------------------------------------------------- */
.iy-quickadd .notification-dropdown {
  min-width: 264px;
}

.iy-quickadd .notification-dropdown .iy-quickadd__list {
  list-style: none;
  margin: 0;
  padding: 6px;
}

.iy-quickadd .notification-dropdown .iy-quickadd__list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: var(--iy-radius-tag, 12px);
  text-decoration: none;
}

.iy-quickadd .notification-dropdown .iy-quickadd__list a:hover {
  background: var(--iy-teal-soft, #eaf0ef);
}

.iy-quickadd .notification-dropdown .iy-quickadd__list a i {
  display: grid !important;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: var(--iy-radius-tag, 12px);
  background: var(--iy-teal-soft, #eaf0ef);
  color: var(--iy-teal, #3b6063);
  font-size: 16px !important;
  line-height: 1 !important;
  transition: background-color 0.15s ease, color 0.15s ease;
}

/* row hover shares the soft tone — invert the icon box so it stays visible */
.iy-quickadd .notification-dropdown .iy-quickadd__list a:hover i {
  background: var(--iy-teal, #3b6063);
  color: #fff;
}

.iy-quickadd .notification-dropdown .iy-quickadd__list a span {
  font-size: 13.5px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  color: var(--iy-ink, #1d2b2a);
  white-space: nowrap;
}


/* ---------------------------------------------------------------------------
 * Timefield — free-text time input with a 5-minute suggestion menu.
 * Markup: .iy-timefield > input[data-iy-timefield]; JS: assets/js/iy-timefield.js
 * (window.iyTimefield.init for dynamic content). Options are <button>s —
 * hardened against the theme's global button pill styles.
 * ------------------------------------------------------------------------- */
.iy-timefield {
  position: relative;
}

.iy-timefield__menu {
  position: absolute;
  z-index: 60;
  top: calc(100% + 6px);
  left: 0;
  min-width: 128px;
  max-height: 236px;
  overflow-y: auto;
  background: var(--iy-card, #fff);
  border: 1px solid var(--iy-line, #e2e7e5);
  border-radius: var(--iy-radius-chip, 14px);
  box-shadow: var(--iy-shadow-lift, 0 10px 30px rgba(24, 47, 46, 0.12));
  padding: 4px;
}

.iy-timefield__option {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  padding: 8px 14px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: none !important;
  box-shadow: none !important;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  text-align: left;
  color: var(--iy-ink, #1d2b2a) !important; /* theme button:hover flips text to #fff */
  cursor: pointer;
}

.iy-timefield__option:hover {
  background: var(--iy-line, #e2e7e5) !important;
  color: var(--iy-ink, #1d2b2a) !important;
}

.iy-timefield__option.is-active {
  background: var(--iy-teal-soft, #eaf0ef) !important;
  color: var(--iy-teal, #3b6063) !important;
  font-weight: 600;
}

/* Profile hero: @nickname (mention handle) under the full name (ticket 24) */
.iy-hero-handle {
  margin: -4px 0 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--iy-on-dark-soft, #B8CBC9);
  letter-spacing: .01em;
}

/* ================================================================ Photo field (round avatar + inline crop) */
/* Markup: iy_profile_edit_render_photo() in inc/profile-edit/render.php;
   JS: assets/js/iy-photo-crop.js. The preview is ALWAYS a circle. Picking a
   file (or "Adjust crop" on the stored source) opens the editor inline:
   drag to move, slider / wheel / +- to zoom, arrow keys to nudge
   (Alessio, 2026-09-21). */
.iy-photo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
}
.iy-photo__preview {
  flex: 0 0 112px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--iy-teal-soft);
  color: var(--iy-teal);
  box-shadow: 0 0 0 1px var(--iy-line), 0 6px 18px rgba(24, 47, 46, .12);
}
.iy-photo__preview img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.iy-photo__preview i { font-size: 40px; line-height: 1; }
.iy-photo__controls {
  flex: 1 1 160px; /* stays beside the photo down to phone width */
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.iy-photo__buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.iy-photo__hint { margin: 0; font-size: 13px; line-height: 1.5; color: var(--iy-ink-soft); }
.iy-photo [hidden] { display: none !important; }
.iy-photo button.iy-btn--danger { background: transparent !important; border: 1.5px solid #A63D2F !important; color: #A63D2F !important; }
.iy-photo button.iy-btn--danger:hover { background: #FBEFED !important; }
.iy-photo__error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #A63D2F;
}
.iy-photo__error[hidden] { display: none; }

/* editor: nested panel under the preview row */
.iy-photo__editor {
  flex: 1 0 100%;
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--iy-line);
  border-radius: var(--iy-radius-chip);
  background: var(--iy-card-muted);
}
.iy-photo__editor[hidden] { display: none; }
.iy-photo__stage {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--iy-radius-chip);
  background: var(--iy-teal-deeper);
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.iy-photo__stage.is-dragging { cursor: grabbing; }
.iy-photo__stage:focus-visible { outline: 2px solid var(--iy-teal); outline-offset: 3px; }
.iy-photo__source {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none !important;
  max-height: none !important;
  transform-origin: 0 0;
  pointer-events: none;
}
/* the crop circle: everything outside is dimmed */
.iy-photo__mask {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .92);
  box-shadow: 0 0 0 999px rgba(24, 47, 46, .62);
  pointer-events: none;
}
.iy-photo__zoom {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100%, 320px);
  margin: 0 auto;
}
.iy-photo__zoom input[type="range"] { flex: 1; min-width: 0; margin: 0; accent-color: var(--iy-teal); }
.iy-photo__zoom-btn,
.iy-photo .iy-photo__zoom-btn {
  flex: 0 0 34px;
  width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center;
  border-radius: 50% !important;
  border: 1.5px solid var(--iy-line) !important;
  background: #fff !important;
  color: var(--iy-teal) !important;
  cursor: pointer;
}
.iy-photo__zoom-btn:hover { border-color: var(--iy-teal) !important; }
.iy-photo__zoom-btn i { font-size: 15px; line-height: 1; }
.iy-photo__help { margin: 0; text-align: center; font-size: 13px; color: var(--iy-ink-soft); }
.iy-photo__actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
/* the parent theme paints every <button>: keep the library variants */
.iy-photo button.iy-btn--outline { background: transparent !important; border: 1.5px solid var(--iy-teal) !important; color: var(--iy-teal) !important; }
.iy-photo button.iy-btn--outline:hover { background: var(--iy-teal-soft) !important; }
.iy-photo button.iy-btn--quiet { background: transparent !important; border: 1.5px solid var(--iy-line) !important; color: var(--iy-ink-soft) !important; }
.iy-photo button.iy-btn--primary { background: var(--iy-teal) !important; border-color: var(--iy-teal) !important; color: #fff !important; }
@media (max-width: 480px) {
  .iy-photo__preview { flex-basis: 96px; width: 96px; height: 96px; }
  .iy-photo__editor { padding: 14px; }
  .iy-photo__actions { justify-content: stretch; }
  .iy-photo__actions .iy-btn { flex: 1 1 auto; }
}

/* ================================================================ Side nav (tabs left of a card) */
/* Vertical page switcher next to a card, e.g. "Edit profile | Account
   settings" (iy_account_switcher(), inc/profile-edit/account.php). The
   active item takes the card colour, so it reads as a tab attached to the
   card (Alessio, 2026-09-21). Below 860px it turns into a row above it. */
.iy-sidenav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 96px;
}
.iy-sidenav__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px 12px 16px; /* right: room for the unsaved dot, so labels never wrap because of it */
  border-radius: var(--iy-radius-tag);
  color: var(--iy-ink-soft) !important;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none !important;
  transition: background .2s ease, color .2s ease;
}
.iy-sidenav__item i { font-size: 17px; line-height: 1; width: 18px; text-align: center; }
.iy-sidenav__item:hover { background: rgba(29, 43, 42, .05); color: var(--iy-ink) !important; }
.iy-sidenav__item.is-active {
  background: var(--iy-card);
  color: var(--iy-teal) !important;
  box-shadow: 0 0 0 1px var(--iy-line), 0 6px 16px rgba(28, 43, 44, .06);
}
/* unsaved changes in this tab: a gold dot at the right edge (absolute, it
   must not take width from the label) */
.iy-sidenav__item.is-dirty::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--iy-gold);
}
/* leaving the area: an explicit link under the tabs */
.iy-sidenav__back {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 16px 16px 6px;
  border-top: 1px solid var(--iy-line);
  color: var(--iy-ink-soft) !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
}
.iy-sidenav__back i { font-size: 16px; line-height: 1; width: 18px; text-align: center; }
.iy-sidenav__back:hover { color: var(--iy-teal) !important; }
@media (max-width: 860px) {
  .iy-sidenav { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .iy-sidenav__item { padding: 10px 24px 10px 14px; font-size: 14px; }
  .iy-sidenav__item.is-dirty::after { right: 10px; }
  .iy-sidenav__back { order: -1; flex: 0 0 100%; margin: 0 0 4px; padding: 2px 4px 8px; border-top: 0; }
}

/* ================================================================ Tag picker (fixed list, several values) */
/* Several values from a fixed list, never free text: chosen values as chips
   with a remove button, a select to add more. Markup:
   iy_profile_edit_render_tagpick() (inc/profile-edit/render.php); JS:
   assets/js/iy-tagpick.js. Without JS the select still adds one value per
   save. First use: Languages on /edit-profile/ (Alessio, 2026-09-21). */
.iy-tagpick { display: grid; gap: 10px; }
.iy-tagpick__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.iy-tagpick__chips:empty { display: none; }
.iy-tagpick__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px 6px 14px;
  border-radius: var(--iy-radius-chip);
  background: var(--iy-teal-soft);
  color: var(--iy-teal);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.iy-tagpick__remove,
.iy-tagpick button.iy-tagpick__remove {
  width: 24px !important;
  height: 24px !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: var(--iy-teal) !important;
  cursor: pointer;
  min-height: 0;
}
.iy-tagpick__remove:hover { background: rgba(59, 96, 99, .14) !important; }
.iy-tagpick__remove i { font-size: 13px; line-height: 1; }
.iy-tagpick__add { max-width: 320px; }

/* ================================================================ Toast (success, closes itself) */
/* Markup: iy_toast() (inc/helpers.php) or window.iyToast( html ) from
   assets/js/iy-toast.js. Floats top centre, never pushes content down; the
   teal bar runs back for 5s, then it fades out. Hover/focus pauses, X closes.
   Only confirmations: errors and lasting states stay inline (2026-09-21). */
.iy-toasts {
  position: fixed;
  top: 84px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100001;
  display: grid;
  gap: 10px;
  width: min(460px, calc(100vw - 32px));
  pointer-events: none;
}
.iy-toast {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 44px 18px 18px;
  overflow: hidden;
  border-radius: var(--iy-radius-chip);
  background: var(--iy-card);
  border: 1px solid var(--iy-line);
  box-shadow: 0 16px 40px rgba(24, 47, 46, .16);
  color: var(--iy-ink);
  pointer-events: auto;
  animation: iy-toast-in .35s cubic-bezier(.22, .8, .3, 1);
}
.iy-toast.is-hiding { opacity: 0; transform: translateY(-8px); transition: opacity .3s ease, transform .3s ease; }
.iy-toast__icon {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  display: grid !important;
  place-items: center;
  border-radius: 50%;
  background: var(--iy-teal-soft);
  color: var(--iy-teal);
  font-size: 15px;
}
.iy-toast__text { margin: 2px 0 0; font-size: 14.5px; line-height: 1.5; }
.iy-toast__text a { font-weight: 600; color: var(--iy-teal); margin-left: 4px; }
.iy-toast__close,
.iy-toast button.iy-toast__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px !important;
  height: 30px !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: var(--iy-ink-soft) !important;
  cursor: pointer;
}
.iy-toast__close:hover { background: rgba(29, 43, 42, .06) !important; color: var(--iy-ink) !important; }
.iy-toast__timer {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--iy-teal);
  transform-origin: left center;
  animation: iy-toast-timer var(--iy-toast-duration, 5s) linear forwards;
}
.iy-toast.is-paused .iy-toast__timer { animation-play-state: paused; }
@keyframes iy-toast-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes iy-toast-timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) {
  .iy-toast { animation: none; }
}
@media (max-width: 640px) {
  .iy-toasts { top: 76px; }
  .iy-toast { padding-right: 52px; }
  .iy-toast__close,
  .iy-toast button.iy-toast__close { top: 6px; right: 6px; width: 40px !important; height: 40px !important; }
}

/* ================================================================ Member row (avatar + name + one action) */
/* A list of members with one action each, e.g. "Blocked members" on
   /account-settings/ (views/account-card.php, 2026-10-19). Hairlines between
   and above the rows (the section rule below closes the list); the action
   (a small button, often in its own <form>) is right. */
.iy-member-list { list-style: none; margin: 0; padding: 0; }
.iy-member-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--iy-line);
}
.iy-member-row__avatar {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--iy-teal-soft);
}
.iy-member-row__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 600;
  color: var(--iy-ink);
}
.iy-member-row__action { margin: 0; flex: 0 0 auto; }
/* large single row: "this is you" with a 56px photo, name + sub line and
   one link on the right (welcome step, ticket 93). No hairline: it stands
   alone in its section. Below 520px the action drops under the name. */
.iy-member-row--lg { gap: 14px; padding: 2px 0; border-top: 0; flex-wrap: wrap; }
.iy-member-row--lg .iy-member-row__avatar { flex-basis: 56px; width: 56px; height: 56px; max-width: 56px; }
.iy-member-row__body { flex: 1 1 200px; min-width: 0; }
.iy-member-row__body .iy-member-row__name { display: block; font-size: 16px; }
.iy-member-row__sub {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  color: var(--iy-ink-soft);
  overflow-wrap: anywhere;
}
.iy-member-row__link {
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 600;
  color: var(--iy-teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.iy-member-row__link:hover { color: var(--iy-teal-deep); }
@media (max-width: 520px) {
  .iy-member-row--lg .iy-member-row__link { flex-basis: 100%; padding-left: 70px; }
}

/* ================================================================ Nudge (dismissable hint card, feed top) */
/* One small card with one task, e.g. "Add your city" at the top of the
   activity feed after the welcome step was postponed (ticket 93). Icon tile
   (12px), title + one line, one button, X to hide it for good. Lives in the
   BuddyBoss feed, so the X is a hardened <a role="button">, not a <button>. */
.iy-nudge {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  margin: 0 0 20px;
  padding: 16px 14px 16px 18px;
  background: var(--iy-card);
  border: 1px solid var(--iy-line);
  border-radius: var(--iy-radius-card);
  box-shadow: var(--iy-shadow);
}
.iy-nudge__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--iy-radius-tag);
  background: var(--iy-teal-soft);
  color: var(--iy-teal);
}
.iy-nudge__icon i { font-size: 22px; line-height: 1; }
.iy-nudge__body { min-width: 0; }
.iy-nudge__title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--iy-ink);
}
.iy-nudge__text {
  margin: 2px 0 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--iy-ink-soft);
}
.iy-nudge .iy-nudge__action { white-space: nowrap; }
.iy-nudge .iy-nudge__close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--iy-ink-soft);
  text-decoration: none;
}
.iy-nudge .iy-nudge__close:hover,
.iy-nudge .iy-nudge__close:focus-visible { background: var(--iy-paper); color: var(--iy-ink); }
.iy-nudge .iy-nudge__close i { font-size: 18px; line-height: 1; }
@media (max-width: 560px) {
  .iy-nudge { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px 12px; padding: 14px 8px 16px 14px; }
  .iy-nudge__body { grid-column: 2; grid-row: 1; }
  .iy-nudge .iy-nudge__close { grid-column: 3; grid-row: 1; align-self: start; }
  .iy-nudge .iy-nudge__action { grid-column: 2 / 4; grid-row: 2; justify-self: start; }
}

/* Bell task icon (ticket 94): an icon tile instead of a person's avatar in
   the BuddyBoss notification list, so tasks read differently from people.
   Printed by inc/welcome-step/notifications.php into .notification-avatar
   (36px like the theme's avatars). Teal = city, --gold = moods. */
.iy-notif-tile {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--iy-radius-tag);
  background: var(--iy-teal-soft);
  color: var(--iy-teal);
}
.iy-notif-tile i { font-size: 18px; line-height: 1; }
.iy-notif-tile--gold { background: var(--iy-gold-soft); color: var(--iy-gold); }

/* ================================================================ Auth page (logo + one card) */
/* Calm full-page shell for account steps outside the site frame: "Forgot
   password" and "Set a new password" (inc/auth-pages.php, ticket 68). Logo
   mark + wordmark on top, one card below, legal links at the foot. Same
   paper tone as the app's launch screen. */
.iy-auth {
  min-height: 100vh;
  margin: 0;
  padding: 56px 16px 32px;
  background: #F5F4F0;
  font-family: Poppins, sans-serif;
  color: var(--iy-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* Own document without the theme's reset: padding must not add to widths. */
.iy-auth,
.iy-auth *,
.iy-auth *::before,
.iy-auth *::after { box-sizing: border-box; }
.iy-auth__brand {
  display: block;
  text-align: center;
  margin-bottom: 24px;
  text-decoration: none;
}
.iy-auth__brand img { display: block; width: 96px; height: auto; margin: 0 auto 12px; }
.iy-auth__brand span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--iy-gold);
}
.iy-auth__card {
  width: 100%;
  max-width: 440px;
  background: var(--iy-card);
  border: 1px solid var(--iy-line);
  border-radius: var(--iy-radius-card);
  padding: 30px 32px;
}
.iy-auth__card--center { text-align: center; }
/* Quieter than a card h2 (Alessio, 2026-10-26). */
.iy-auth__title { font-size: 20px; font-weight: 600; line-height: 1.35; margin: 0 0 6px; color: var(--iy-ink); }
.iy-auth__sub { font-size: 15px; line-height: 1.5; color: var(--iy-ink-soft); margin: 0 0 22px; }
/* Account address on its own line; very long ones may still wrap. */
.iy-auth__sub b { display: block; color: var(--iy-ink); font-weight: 600; overflow-wrap: anywhere; }
.iy-auth__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  background: var(--iy-teal-soft);
  color: var(--iy-teal);
  font-size: 26px;
}
.iy-auth__icon--warn { background: var(--iy-gold-soft); color: var(--iy-gold); }
.iy-auth__card .iy-input { max-width: none; font-size: 16px; padding: 13px 16px; } /* 16px: no iOS zoom */
.iy-auth__card .iy-btn { display: flex; width: 100%; min-height: 50px; font-size: 15px; }
.iy-auth__card .iy-btn + .iy-btn,
.iy-auth__card form + .iy-btn { margin-top: 12px; }
.iy-auth__error {
  margin: 8px 0 0;
  font-size: 14px;
  color: #8A4B2E;
}
.iy-auth__rule {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--iy-ink-soft);
}
.iy-auth__rule::before {
  content: "";
  flex: 0 0 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #b9c4c2;
  box-sizing: border-box;
}
.iy-auth__rule.is-met { color: var(--iy-teal); font-weight: 500; }
.iy-auth__rule.is-met::before {
  border: 0;
  background: var(--iy-teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.iy-auth__tip { font-size: 13px; line-height: 1.45; color: var(--iy-ink-soft); margin: 8px 0 22px; }
.iy-auth__more { font-size: 13px; color: var(--iy-ink-soft); text-align: center; margin: 18px 0 0; }
.iy-auth__more a { color: var(--iy-ink); font-weight: 600; }
.iy-auth__legal { margin-top: 22px; font-size: 12px; color: var(--iy-ink-soft); }
.iy-auth__legal a { color: inherit; }
@media (max-width: 480px) {
  .iy-auth { padding-top: 40px; }
  .iy-auth__brand img { width: 80px; }
  .iy-auth__card { padding: 26px 22px; }
}

/* ================================================================ App bar (phones: "there is an app") */
/* Slim bar fixed at the bottom on phones (inc/app-banner.php): close, app
   icon, name + one line, a short "Open" / "Get" button. Both text lines stay
   on one line (ellipsis), the button never wraps. Bottom, not top: the
   logged-in mobile header is fixed at the top. */
.iy-appbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9990;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom)) 4px;
  background: var(--iy-card);
  border-top: 1px solid var(--iy-line);
  box-shadow: 0 -6px 20px rgba(24, 47, 46, .08);
  font-family: Poppins, sans-serif;
}
.iy-appbar[hidden] { display: none; }
.iy-appbar__close {
  flex: 0 0 36px;
  width: 36px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--iy-ink-soft);
  font-size: 18px;
  padding: 0;
  cursor: pointer;
}
.iy-appbar__icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  border: 1px solid var(--iy-line);
}
.iy-appbar__text { flex: 1; min-width: 0; line-height: 1.3; }
/* Name on one line; the subline may take a second line instead of being cut. */
.iy-appbar__text b {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  font-weight: 600;
  color: var(--iy-ink);
}
.iy-appbar__text span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 12.5px;
  color: var(--iy-ink-soft);
}
.iy-appbar .iy-appbar__cta { flex: 0 0 auto; min-height: 40px; padding: 8px 16px; white-space: nowrap; }
body.iy-has-appbar { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
@media (min-width: 800px) {
  .iy-appbar { display: none !important; }
  body.iy-has-appbar { padding-bottom: 0; }
}

/* ================================================================ Password field (show / hide) */
/* .iy-input with an eye button inside on the right (same idea as the app's
   Input "revealable"). JS: assets/js/iy-pwfield.js toggles type and label. */
.iy-pwfield { position: relative; }
.iy-pwfield .iy-input { padding-right: 52px; }
.iy-pwfield__toggle {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--iy-ink-soft);
  cursor: pointer;
  font-size: 20px;
  padding: 0;
}
.iy-pwfield__toggle:hover { color: var(--iy-teal); background: var(--iy-teal-soft); }
.iy-pwfield__toggle:focus-visible { outline: 2px solid var(--iy-teal); outline-offset: 1px; }

/* ================================================================ Phones (mobile audit, ticket 3, 2026-10-12) */
/* Audience 40+: small buttons and tab pills get a 40px tap height and 14px
   text on phones; desktop sizes stay untouched. Every hardening context of
   --sm repeats here, otherwise its higher specificity keeps the 36px. */
@media (max-width: 767px) {
  .iy-btn--sm,
  .buddypress .buddypress-wrap .iy-btn--sm,
  #buddypress .iy-btn--sm,
  body .iy-confirm .iy-btn--sm {
    min-height: 40px;
    padding: 10px 18px;
    font-size: 14px;
  }
  .buddypress .buddypress-wrap .iy-tab,
  #buddypress .iy-tab,
  .iy-tab {
    min-height: 40px;
    padding: 10px 16px;
    font-size: 14px;
  }
  /* tag-picker x: 32px tap circle, negative margins keep the chip height */
  .iy-tagpick__remove,
  .iy-tagpick button.iy-tagpick__remove {
    width: 32px !important;
    height: 32px !important;
    margin: -4px -4px -4px 0;
  }
}
/* Confirm dialog on narrow screens: three actions (Cancel / alt / confirm)
   no longer fit one row (Cancel was cut off at 360px). Stack full-width,
   main action on top, Cancel last; bigger X and text. */
@media (max-width: 480px) {
  .iy-confirm { padding: 16px; }
  .iy-confirm__body { padding: 22px 20px 18px; }
  .iy-confirm__title { padding-right: 36px; }
  .iy-confirm__text { font-size: 14.5px; }
  .iy-confirm__foot {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 8px;
    padding: 14px 20px 18px;
  }
  body .iy-confirm .iy-confirm__foot .iy-btn { width: 100%; min-height: 44px; }
  body .iy-confirm .iy-confirm__close { top: 8px; right: 8px; width: 40px; height: 40px; }
}
