/*
 * Stride Dropdown List.
 * Source: Figma "TKC Calendar 2026" node 1855:76124.
 * Tokens only. Scoped under [data-stride-theme].
 *
 * Shell (border, radius, shadow) wraps three stacked regions:
 *   1. optional header — pinned, does not scroll
 *   2. option list — the only scroller
 *   3. optional footer — pinned, does not scroll
 * Flex, not position:sticky: the header/footer are siblings of the scroller
 * so they stay visible even when the list is shorter than the panel cap.
 */

[data-stride-theme] .stride-dropdown-list,
[data-stride-theme] .stride-dropdown-list * {
  box-sizing: border-box;
}

[data-stride-theme] .stride-dropdown-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  /* Standalone lists (docs, etc.) keep a pixel cap. Portaled menus inherit
   * the panel's 8-row / viewport-aware max-height instead — see
   * `.stride-dropdown-panel > .stride-dropdown-list`. */
  max-height: 240px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: var(--stride-border-width-thic-1) solid var(--stride-bdr-dark);
  border-radius: var(--stride-radius-rad-2_5x);
  background: var(--stride-bg-surface-primary);
  box-shadow: var(--stride-shadow-md);
}

[data-stride-theme] .stride-dropdown-list:focus,
[data-stride-theme] .stride-dropdown-list-items:focus {
  outline: none;
}

[data-stride-theme] .stride-dropdown-list-header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  z-index: 1;
  width: 100%;
  padding: var(--stride-spacing-spc-1x) var(--stride-spacing-spc-1x)
    var(--stride-spacing-spc-0_5x);
  overflow: hidden;
  background: var(--stride-bg-surface-primary);
}

[data-stride-theme] .stride-dropdown-list-items {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: var(--stride-spacing-spc-0_5x);
  min-height: 0;
  width: 100%;
  margin: 0;
  padding: var(--stride-spacing-spc-1x) var(--stride-spacing-spc-1x)
    var(--stride-spacing-spc-1_5x);
  overflow: auto;
}

[data-stride-theme] .stride-dropdown-list-footer {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  z-index: 1;
  width: 100%;
  padding: var(--stride-spacing-spc-1x);
  overflow: hidden;
  border-top: var(--stride-border-width-thic-1) solid var(--stride-bdr-divider);
  background: var(--stride-bg-surface-primary);
}

/*
 * Stride Dropdown List Item.
 * Source: Figma "TKC Calendar 2026" node 1855:76037.
 * Tokens only. Scoped under [data-stride-theme].
 *
 * Interaction model:
 * - Unselected hover / keyboard-arrow highlight uses the hover fill.
 * - Unselected tab focus uses hover fill + focus ring together.
 * - Selected rest / tab focus uses brand-surface; selected hover / arrow
 *   highlight uses brand-overlay.
 * - Action enabled reveals a trailing inline button on hover (and on tab
 *   focus) and hides the selected check while it is showing.
 */

[data-stride-theme] .stride-dropdown-list-item,
[data-stride-theme] .stride-dropdown-list-item * {
  box-sizing: border-box;
}

[data-stride-theme] .stride-dropdown-list-item {
  display: flex;
  align-items: center;
  gap: var(--stride-spacing-spc-1x);
  width: 100%;
  min-height: 28px;
  margin: 0;
  padding: 0 var(--stride-spacing-spc-1x) 0 var(--stride-spacing-spc-1_5x);
  border: 0;
  border-radius: var(--stride-radius-rad-1_5x);
  background: var(--stride-bg-neutral-primary);
  color: var(--stride-ctn-primary);
  text-align: left;
  cursor: pointer;
}

[data-stride-theme] .stride-dropdown-list-item--with-secondary {
  align-items: flex-start;
  min-height: 40px;
  padding-block: var(--stride-spacing-spc-1_5x);
}

/* The trailing check / action stays centred on the whole two-line row. */
[data-stride-theme]
  .stride-dropdown-list-item--with-secondary
  .stride-dropdown-list-item-slot {
  align-self: center;
}

[data-stride-theme]
  .stride-dropdown-list-item:hover:not([aria-disabled="true"]),
[data-stride-theme]
  .stride-dropdown-list-item[data-preview="hover"]:not([aria-disabled="true"]) {
  background: var(--stride-bg-neutral-hover);
}

[data-stride-theme] .stride-dropdown-list-item:focus {
  outline: none;
}

/* Tab / focus-visible: focus ring combined with hover fill */
[data-stride-theme]
  .stride-dropdown-list-item:focus-visible:not([aria-disabled="true"]),
[data-stride-theme]
  .stride-dropdown-list-item[data-preview="focus"]:not([aria-disabled="true"]),
[data-stride-theme]
  .stride-dropdown-list-item--focus:not([aria-disabled="true"]) {
  background: var(--stride-bg-neutral-hover);
  box-shadow: var(--stride-shadow-focus);
}

/* Arrow-key roving focus: hover fill only, no focus ring */
[data-stride-theme]
  .stride-dropdown-list[data-nav="arrow"]
  .stride-dropdown-list-item:focus-visible:not([aria-disabled="true"]) {
  background: var(--stride-bg-neutral-hover);
  box-shadow: none;
}

/*
 * Selected — Figma Show Righ_Icon=True. Rest and tab-focus use
 * bg-brand-surface (10% brand). Hover, hover-with-action, and arrow-key
 * highlight use bg-brand-overlay (20% brand). Disabled selected keeps the
 * rest fill; hover is gated off by aria-disabled.
 */
[data-stride-theme] .stride-dropdown-list-item--selected {
  background: var(--stride-bg-brand-surface);
}

[data-stride-theme]
  .stride-dropdown-list-item--selected:hover:not([aria-disabled="true"]),
[data-stride-theme]
  .stride-dropdown-list-item--selected[data-preview="hover"]:not(
    [aria-disabled="true"]
  ) {
  background: var(--stride-bg-brand-overlay);
}

[data-stride-theme]
  .stride-dropdown-list-item--selected:focus-visible:not(
    [aria-disabled="true"]
  ),
[data-stride-theme]
  .stride-dropdown-list-item--selected[data-preview="focus"]:not(
    [aria-disabled="true"]
  ),
[data-stride-theme]
  .stride-dropdown-list-item--selected.stride-dropdown-list-item--focus:not(
    [aria-disabled="true"]
  ) {
  background: var(--stride-bg-brand-surface);
  box-shadow: var(--stride-shadow-focus);
}

[data-stride-theme]
  .stride-dropdown-list[data-nav="arrow"]
  .stride-dropdown-list-item--selected:focus-visible:not(
    [aria-disabled="true"]
  ) {
  background: var(--stride-bg-brand-overlay);
  box-shadow: none;
}

/* Hover wins the fill when it combines with tab focus; keep the ring. */
[data-stride-theme]
  .stride-dropdown-list-item--selected:hover:focus-visible:not(
    [aria-disabled="true"]
  ) {
  background: var(--stride-bg-brand-overlay);
}

[data-stride-theme] .stride-dropdown-list-item[aria-disabled="true"],
[data-stride-theme] .stride-dropdown-list-item--disabled {
  color: var(--stride-ctn-disabled);
  cursor: not-allowed;
}

/*
 * StrideTooltip wraps its trigger in `.stride-tooltip-origin` (`inline-flex`).
 * Inside a flex row that would collapse the icon/label/slot layout, so the
 * origin AND the inner span both fill the option and replay its flex.
 * The option itself stays a direct `role="listbox"` child.
 */
[data-stride-theme] .stride-dropdown-list-item > .stride-tooltip-origin,
[data-stride-theme] .stride-dropdown-list-item-tooltip-origin {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  align-self: stretch;
  width: 100%;
  min-width: 0;
  gap: inherit;
}

[data-stride-theme] .stride-dropdown-list-item-labels {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  gap: var(--stride-spacing-spc-0_5x);
}

/* Name over description: top-aligned, with a 4px gap (the board's .mi row
 * is one line, so it sets none). */
[data-stride-theme]
  .stride-dropdown-list-item--with-secondary
  .stride-dropdown-list-item-labels {
  justify-content: flex-start;
  gap: var(--stride-spacing-spc-1x);
}

/* Name + same-line trailing meta (Figma template picker). 6px gap is
 * reserved (`gap`, not margin) so the picker's 240–300px clamp ellipsizes
 * the texts instead of collapsing the space between them. Name takes
 * leftover width and ellipsizes first; trailing caps at 40%. */
[data-stride-theme] .stride-dropdown-list-item-primary {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  min-width: 0;
  width: 100%;
  gap: var(--stride-spacing-spc-1_5x);
}

[data-stride-theme] .stride-dropdown-list-item-label {
  overflow: hidden;
  color: var(--stride-ctn-primary);
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-stride-theme]
  .stride-dropdown-list-item--with-trailing
  .stride-dropdown-list-item-label {
  flex: 1 1 auto;
  min-width: 0;
}

[data-stride-theme] .stride-dropdown-list-item-trailing {
  flex: 0 1 auto;
  max-width: 40%;
  min-width: 0;
  overflow: hidden;
  color: var(--stride-ctn-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-stride-theme]
  .stride-dropdown-list-item[aria-disabled="true"]
  .stride-dropdown-list-item-trailing {
  color: var(--stride-ctn-disabled);
}

[data-stride-theme]
  .stride-dropdown-list-item-trailing
  > .stride-tooltip-origin {
  display: block;
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-stride-theme]
  .stride-dropdown-list-item--muted:not([aria-disabled="true"])
  .stride-dropdown-list-item-label {
  /* Secondary, not tertiary: tertiary reads 4.42:1 on the dark list. */
  color: var(--stride-ctn-secondary);
}

[data-stride-theme]
  .stride-dropdown-list-item--link:not([aria-disabled="true"])
  .stride-dropdown-list-item-label {
  color: var(--stride-ctn-link-primary);
}

[data-stride-theme]
  .stride-dropdown-list-item[aria-disabled="true"]
  .stride-dropdown-list-item-label {
  color: var(--stride-ctn-disabled);
}

[data-stride-theme] .stride-dropdown-list-item-secondary {
  overflow: hidden;
  color: var(--stride-ctn-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-stride-theme]
  .stride-dropdown-list-item[aria-disabled="true"]
  .stride-dropdown-list-item-secondary {
  color: var(--stride-ctn-disabled);
}

[data-stride-theme] .stride-dropdown-list-item-slot {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

[data-stride-theme]
  .stride-dropdown-list-item--selected
  .stride-dropdown-list-item-slot {
  display: flex;
}

[data-stride-theme] .stride-dropdown-list-item-check {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--stride-ctn-primary);
}

[data-stride-theme] .stride-dropdown-list-item-check svg {
  display: block;
  width: var(--stride-spacing-spc-4x);
  height: var(--stride-spacing-spc-4x);
}

[data-stride-theme] .stride-dropdown-list-item-action {
  display: none;
}

[data-stride-theme]
  .stride-dropdown-list-item--action-enabled:hover:not([aria-disabled="true"])
  .stride-dropdown-list-item-slot,
[data-stride-theme]
  .stride-dropdown-list-item--action-enabled[data-preview="hover"]:not(
    [aria-disabled="true"]
  )
  .stride-dropdown-list-item-slot,
[data-stride-theme]
  .stride-dropdown-list-item--action-enabled:focus-visible:not(
    [aria-disabled="true"]
  )
  .stride-dropdown-list-item-slot,
[data-stride-theme]
  .stride-dropdown-list-item--action-enabled[data-preview="focus"]:not(
    [aria-disabled="true"]
  )
  .stride-dropdown-list-item-slot,
[data-stride-theme]
  .stride-dropdown-list-item--action-enabled.stride-dropdown-list-item--focus:not(
    [aria-disabled="true"]
  )
  .stride-dropdown-list-item-slot {
  display: flex;
}

/*
 * Figma "Hover with action" + Show Righ_Icon (selected): the trailing action
 * replaces the check. The check stays in the DOM (aria-selected still
 * reflects selection); CSS hides it while the action is showing.
 */
[data-stride-theme]
  .stride-dropdown-list-item--action-enabled:hover:not([aria-disabled="true"])
  .stride-dropdown-list-item-check,
[data-stride-theme]
  .stride-dropdown-list-item--action-enabled[data-preview="hover"]:not(
    [aria-disabled="true"]
  )
  .stride-dropdown-list-item-check,
[data-stride-theme]
  .stride-dropdown-list-item--action-enabled:focus-visible:not(
    [aria-disabled="true"]
  )
  .stride-dropdown-list-item-check,
[data-stride-theme]
  .stride-dropdown-list-item--action-enabled[data-preview="focus"]:not(
    [aria-disabled="true"]
  )
  .stride-dropdown-list-item-check,
[data-stride-theme]
  .stride-dropdown-list-item--action-enabled.stride-dropdown-list-item--focus:not(
    [aria-disabled="true"]
  )
  .stride-dropdown-list-item-check {
  display: none;
}

[data-stride-theme]
  .stride-dropdown-list-item--action-enabled:hover:not([aria-disabled="true"])
  .stride-dropdown-list-item-action,
[data-stride-theme]
  .stride-dropdown-list-item--action-enabled[data-preview="hover"]:not(
    [aria-disabled="true"]
  )
  .stride-dropdown-list-item-action,
[data-stride-theme]
  .stride-dropdown-list-item--action-enabled:focus-visible:not(
    [aria-disabled="true"]
  )
  .stride-dropdown-list-item-action,
[data-stride-theme]
  .stride-dropdown-list-item--action-enabled[data-preview="focus"]:not(
    [aria-disabled="true"]
  )
  .stride-dropdown-list-item-action,
[data-stride-theme]
  .stride-dropdown-list-item--action-enabled.stride-dropdown-list-item--focus:not(
    [aria-disabled="true"]
  )
  .stride-dropdown-list-item-action {
  display: flex;
}

/*
 * Left_Icon slot — Figma "Dropdown/ List item" > Left_Icon: an 18px-wide
 * full-height column centering a 14px glyph. Deliberately sets no `color`:
 * inheriting through currentColor is what lets the disabled tone above
 * (`--stride-ctn-disabled`) tint the glyph along with the label, which a
 * re-declared color would break. A row with secondary text keeps the row
 * top-aligned and gives the glyph box the name line's height, so the glyph
 * centres on the name, not on the two-line row (Divyam 11-27).
 */
[data-stride-theme] .stride-dropdown-list-item-left-icon {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  width: 18px;
}

/* On a secondary-text row the glyph goes on the primary label's line. The
 * labels are a centred block (the label's line, the gap, the secondary line),
 * so the column takes that block's height and centre, and the glyph its first
 * line. Stretched to the row instead, the glyph sat at the row's top, 6.5px
 * above the label. Both lines are one line high (nowrap), from these tokens:
 * label-md and label-sm set line-height to their font size. */
[data-stride-theme]
  .stride-dropdown-list-item--with-secondary
  .stride-dropdown-list-item-left-icon {
  align-self: flex-start;
  height: var(--stride-font-size-13);
}

/* Only a bare glyph (the slot's 14px svg) is lined up this way: a caller's
 * own taller mark — a 28px tile, a letter chip, a swatch — keeps the
 * top-aligned column it was designed against. */
[data-stride-theme]
  .stride-dropdown-list-item--with-secondary
  .stride-dropdown-list-item-left-icon:has(> svg) {
  align-self: center;
  height: calc(
    var(--stride-font-size-13) + var(--stride-spacing-spc-0_5x) +
      var(--stride-font-size-12)
  );
}

/* The glyph keeps its own 14px; centred on the label's 13px line, it rides
 * half the difference above the line's top. */
[data-stride-theme]
  .stride-dropdown-list-item--with-secondary
  .stride-dropdown-list-item-left-icon
  > svg {
  flex-shrink: 0;
  margin-top: calc((var(--stride-font-size-13) - 14px) / 2);
}

/*
 * Danger tone — Figma "Workout more menu" (node 2033:108962) Delete row.
 * Tints the label and the left glyph, never the row's background: a
 * destructive option should read as dangerous without outshouting the list.
 * Disabled still wins, because the rule above is `[aria-disabled]`-scoped and
 * comes later in the cascade for the label.
 */
[data-stride-theme]
  .stride-dropdown-list-item--danger:not([aria-disabled="true"])
  .stride-dropdown-list-item-label,
[data-stride-theme]
  .stride-dropdown-list-item--danger:not([aria-disabled="true"])
  .stride-dropdown-list-item-left-icon {
  color: var(--stride-ctn-danger-primary);
}

/*
 * Trailing affordance (the submenu chevron). Reuses the 24px slot the check
 * and the action button already share, so it needs no geometry of its own —
 * only the rule that makes the slot visible when a right icon is the reason
 * for it.
 */
[data-stride-theme]
  .stride-dropdown-list-item--with-right-icon
  .stride-dropdown-list-item-slot {
  display: flex;
}

[data-stride-theme] .stride-dropdown-list-item-right-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  color: var(--stride-ctn-tertiary);
}

/*
 * Stride Dropdown Divider.
 * Source: Figma "TKC Calendar 2026" node 2037:109635.
 * Tokens only. Scoped under [data-stride-theme].
 *
 * The padding is the whole component: a 1px line inset by `spc-1_5x` and
 * breathing by `spc-1x`, giving the 9px total the design specifies. The line
 * is a child rather than a border on the wrapper so the inset comes from
 * padding and the rule still spans the full inner width.
 */

[data-stride-theme] .stride-dropdown-divider,
[data-stride-theme] .stride-dropdown-divider * {
  box-sizing: border-box;
}

[data-stride-theme] .stride-dropdown-divider {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  margin: 0;
  padding: var(--stride-spacing-spc-1x) var(--stride-spacing-spc-1_5x);
}

[data-stride-theme] .stride-dropdown-divider-line {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--stride-bdr-divider);
}

/*
 * Stride Dropdown Panel — the portaled wrapper around a StrideDropdownList.
 * Pair with `useStrideDropdownPanel`, which supplies the inline coordinates.
 *
 * Promoted out of stride_combo_box.css when the panel mechanics were extracted
 * into the hook: none of these rules were ever combo-box-specific, and a second
 * copy in every menu that portals a list is how the z-index below goes stale.
 */

[data-stride-theme] .stride-dropdown-panel {
  /* Portaled out of its trigger (into the tray's dialog root beside the
   * sheet, or <body> outside a tray — StridePortalContainerContext) and
   * positioned in viewport coordinates so it can never be clipped OR
   * repositioned by an ancestor's `overflow: hidden` or `transform` (e.g. a
   * week-grid day column, or StrideTray's sheet — which animates in with
   * `transform: translateY()`, making it the containing block for any
   * `position: fixed` descendant) — see use_stride_dropdown_panel.ts's
   * updatePanelPosition. */
  position: fixed;
  /* One rung of the overlay ladder (portal_container.ts): above the tray
   * (20000) and its sheet, below the toolbars (20015). Inside a modal or
   * dialog it portals into that surface and ranks within it. */
  z-index: 20010;
  /* Fallback for the one pre-measure frame; updatePanelPosition overrides
   * this inline with the 8-row (or content) cap, then the room actually left
   * below the origin (rule 5 in stride_dropdown_panel_position.ts). Kept in
   * sync with STRIDE_DROPDOWN_PANEL_MAX_HEIGHT_PX. */
  max-height: 240px;
}

/* The list shell, not the panel, inherits the viewport-aware clamp — without
 * this it keeps its own unconditional 240px cap and the panel's clamp does
 * nothing but crop it. `inherit` (not a percentage) because the panel has a
 * max-height but no definite height to resolve a percentage against. The
 * option list inside the shell is the actual scroller; header/footer stay
 * pinned as flex siblings. */
[data-stride-theme] .stride-dropdown-panel > .stride-dropdown-list {
  max-height: inherit;
}

/* An ACTION MENU sizes to its longest row instead of to its origin (see rule 1
 * in stride_dropdown_panel_position.ts). The hook supplies the `min-width` floor
 * and the viewport `max-width` cap inline; this is the part that cannot be an
 * inline value, because the whole point is that nobody has measured the content
 * yet. Rows only ellipsize now if a label is genuinely wider than the viewport.
 *
 * `width` is NOT set inline in this mode — if a future edit adds one back, it
 * wins over this and the clipping returns. */
[data-stride-theme] .stride-dropdown-panel--fit-content {
  width: max-content;
}

/* Opening: fades in (opacity only, see stride_motion.css); closing is
 * useStrideDropdownPanel's exit copy. */
@media (prefers-reduced-motion: no-preference) {
  [data-stride-theme] .stride-dropdown-panel {
    animation: stride-motion-fade-in 120ms cubic-bezier(0.2, 0, 0, 1);
  }
}

/*
 * Stride Modal.
 * Source: Figma "TKC Calendar 2026" node 2651:194554.
 * Tokens only. Scoped under [data-stride-theme].
 */

[data-stride-theme] .stride-modal-root,
[data-stride-theme] .stride-modal-root * {
  box-sizing: border-box;
}

/* 20019: above menus (20010), toolbars (20015) and floating panels (20018),
 * below the snackbar (20020). See STRIDE_MODAL_Z_INDEX for why it moved. */
[data-stride-theme] .stride-modal-root {
  position: fixed;
  inset: 0;
  z-index: 20019;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
}

[data-stride-theme] .stride-modal-overlay {
  position: absolute;
  inset: 0;
  background: var(--stride-bg-overlay);
  backdrop-filter: var(--stride-overlay-backdrop-filter);
  -webkit-backdrop-filter: var(--stride-overlay-backdrop-filter);
}

[data-stride-theme] .stride-modal-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 600px;
  max-width: calc(100vw - 32px);
  max-height: 100%;
  overflow: hidden;
  background: var(--stride-bg-surface-primary);
  color: var(--stride-ctn-primary);
  font-family: var(--stride-font-family);
  border-radius: var(--stride-radius-rad-3_5x);
  box-shadow: var(--stride-shadow-lg);
}

/* The dialog takes focus itself when nothing inside asks for it (so Tab
 * starts inside); that is not a control, so no ring round the whole frame.
 * Its controls keep their own focus rings. */
[data-stride-theme] .stride-modal-dialog:focus {
  outline: none;
}

[data-stride-theme] .stride-modal-dialog[data-size="small"] {
  width: 460px;
}

/* A page-sized preview beside a form; the base rule's max-width keeps it
 * inside the viewport. */
[data-stride-theme] .stride-modal-dialog[data-size="wide"] {
  width: 1320px;
}

/* Phone width: the dialog is the whole screen. The root's 60px inset goes
 * (only for this dialog: :has() looks at its own child), the body scrolls
 * and the footer stays at the bottom. */
@media (max-width: 599px) {
  [data-stride-theme]
    .stride-modal-root:has(
      > .stride-modal-dialog[data-full-screen-on-phone="true"]
    ) {
    padding: 0;
    align-items: stretch;
  }

  /* Nothing of the page shows behind it: no blur to draw. */
  [data-stride-theme]
    .stride-modal-root:has(
      > .stride-modal-dialog[data-full-screen-on-phone="true"]
    )
    > .stride-modal-overlay {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  [data-stride-theme] .stride-modal-dialog[data-full-screen-on-phone="true"] {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    border-radius: 0;
  }
}

[data-stride-theme] .stride-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
}

[data-stride-theme] .stride-modal-header {
  flex-shrink: 0;
  padding: 24px 52px 24px 24px;
}

/* Header actions sit flush left of Close (Figma 2797:94581: two 28px
 * buttons, no gap), so the title keeps clear of both. A child selector: a
 * modal opened inside this one renders inside its dialog, and must keep its
 * own header's padding. */
[data-stride-theme] .stride-modal-header-actions {
  position: absolute;
  top: 12px;
  right: 40px;
  z-index: 1;
  display: flex;
  align-items: center;
}

[data-stride-theme]
  .stride-modal-dialog[data-header-actions="true"]
  > .stride-modal-header {
  padding-right: 80px;
}

/* A control before the title (a Back arrow), centred on the whole wrapped title. */
[data-stride-theme] .stride-modal-header-start {
  display: flex;
  align-items: center;
  gap: 8px;
}

[data-stride-theme] .stride-modal-title {
  margin: 0;
  color: var(--stride-ctn-primary);
}

[data-stride-theme] .stride-modal-description {
  margin: var(--stride-spacing-spc-1_5x) 0 0;
  color: var(--stride-ctn-tertiary);
}

[data-stride-theme] .stride-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 0 24px 24px;
}

[data-stride-theme] .stride-modal-footer {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: var(--stride-spacing-spc-2x);
  padding: 16px;
  background: var(--stride-bg-surface-primary);
  border-top: var(--stride-border-width-thic-1) solid var(--stride-bdr-divider);
}

[data-stride-theme] .stride-modal-footer-tertiary,
[data-stride-theme] .stride-modal-footer-main {
  display: flex;
  align-items: center;
  gap: var(--stride-spacing-spc-2x);
}

[data-stride-theme] .stride-modal-footer-main {
  margin-left: auto;
}

[data-stride-theme] .stride-modal-docs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--stride-spacing-spc-2x);
}

[data-stride-theme] .stride-modal-docs-filler {
  display: flex;
  flex-direction: column;
  gap: var(--stride-spacing-spc-2x);
  color: var(--stride-ctn-tertiary);
}

/* Opening: the scrim and the box fade in (stride_motion.css says why the box
 * doesn't scale); StrideSheet's box rises instead (stride_sheet.css). Closing
 * is StrideModalFrame's exit copy. */
@media (prefers-reduced-motion: no-preference) {
  [data-stride-theme] .stride-modal-overlay,
  [data-stride-theme] .stride-modal-root > [role="dialog"]:not(.stride-sheet) {
    animation: stride-motion-fade-in 160ms cubic-bezier(0.2, 0, 0, 1);
  }
}

/*
 * Stride Sheet: a phone's bottom sheet.
 * Source: the list-page canvases (each page's phone filter, action and
 * confirm sheets); no Figma frame yet. The overlay, z-index and behaviour are
 * StrideModalFrame's (stride_modal.css). Tokens only. Scoped under
 * [data-stride-theme].
 */

[data-stride-theme] .stride-sheet,
[data-stride-theme] .stride-sheet * {
  box-sizing: border-box;
}

/* The modal root centres its dialog; a sheet sits on the bottom edge. */
[data-stride-theme] .stride-modal-root.stride-sheet-root {
  align-items: flex-end;
  padding: 0;
}

/* Up to 88% of the screen, so the dimmed page above it stays a target. A
 * tablet keeps it a readable width. */
[data-stride-theme] .stride-sheet {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 560px;
  /* dvh tracks a phone's toolbar; vh where it isn't supported. */
  max-height: 88vh;
  max-height: 88dvh;
  border-radius: var(--stride-radius-rad-3_5x) var(--stride-radius-rad-3_5x) 0 0;
  background: var(--stride-bg-surface-primary);
  box-shadow: var(--stride-shadow-lg);
  color: var(--stride-ctn-primary);
  font-family: var(--stride-font-family);
  animation: stride-sheet-in 180ms ease-out;
}

/* A form or a settings panel on a phone: near the full screen, so the page
 * above stays a sliver to tap, and its body scrolls. */
[data-stride-theme] .stride-sheet[data-tall="true"] {
  height: 94vh;
  height: 94dvh;
  max-height: 94vh;
  max-height: 94dvh;
}

[data-stride-theme] .stride-sheet:focus {
  outline: none;
}

@keyframes stride-sheet-in {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-stride-theme] .stride-sheet {
    animation: none;
  }
}

/* A 44px target around the canvas's 36×4 bar: the button itself, not a
 * pseudo-element hanging over the header (it lost those taps to the header,
 * and the box measured 20px). The header gives back its top padding. */
[data-stride-theme] .stride-sheet-grab {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 64px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--stride-radius-rad-2x);
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

[data-stride-theme] .stride-sheet-grab:focus {
  outline: none;
}

[data-stride-theme] .stride-sheet-grab:focus-visible {
  box-shadow: var(--stride-shadow-focus);
}

[data-stride-theme] .stride-sheet-grab-bar {
  width: 36px;
  height: 4px;
  border-radius: var(--stride-radius-rad-full);
  background: var(--stride-bdr-dark);
}

[data-stride-theme] .stride-sheet-header {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--stride-spacing-spc-2x);
  min-height: 52px;
  padding: 0 var(--stride-spacing-spc-2x) var(--stride-spacing-spc-1x)
    var(--stride-spacing-spc-4x);
}

[data-stride-theme] .stride-sheet-lead {
  display: flex;
  flex: none;
}

[data-stride-theme] .stride-sheet-heading {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: var(--stride-spacing-spc-0_5x);
  min-width: 0;
}

[data-stride-theme] .stride-sheet-title,
[data-stride-theme] .stride-sheet-description {
  margin: 0;
  overflow-wrap: anywhere;
}

/* Secondary: tertiary is 4.42:1 on the dark sheet at this size. */
[data-stride-theme] .stride-sheet-description {
  color: var(--stride-ctn-secondary);
}

/* The only part that scrolls: the title and the footer's button stay. */
[data-stride-theme] .stride-sheet-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: var(--stride-spacing-spc-1x) var(--stride-spacing-spc-4x)
    var(--stride-spacing-spc-3x);
}

/* Without a footer the body is last: it keeps clear of the home bar. */
[data-stride-theme] .stride-sheet-body:last-child {
  padding-bottom: max(
    var(--stride-spacing-spc-3x),
    env(safe-area-inset-bottom)
  );
}

[data-stride-theme] .stride-sheet-footer {
  display: flex;
  flex: none;
  gap: var(--stride-spacing-spc-2x);
  padding: var(--stride-spacing-spc-3x) var(--stride-spacing-spc-4x)
    max(var(--stride-spacing-spc-3x), env(safe-area-inset-bottom));
  border-top: var(--stride-border-width-thic-1) solid var(--stride-bdr-divider);
}

/* A footer's buttons share the width at a phone's full tap size. */
[data-stride-theme] .stride-sheet-footer > .stride-button {
  flex: 1 1 0;
  height: 44px;
}

/* A bottom sheet, not a modal over the page: its scrim dims the page above
 * but does not blur it (--stride-overlay-backdrop-filter), as a drawer's. */
[data-stride-theme] .stride-sheet-root > .stride-modal-overlay {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/*
 * Stride Dropdown Section Header.
 * Source: Figma "TKC Calendar 2026" node 2639:189907.
 * Tokens only. Scoped under [data-stride-theme].
 *
 * Muted label + 14px chevron. Hover uses the same fill as a list item so
 * the row reads as clickable inside a menu. The chevron is decorative —
 * aria-expanded on the option names the expanded state.
 */

[data-stride-theme] .stride-dropdown-section-header,
[data-stride-theme] .stride-dropdown-section-header * {
  box-sizing: border-box;
}

[data-stride-theme] .stride-dropdown-section-header {
  display: flex;
  align-items: center;
  gap: var(--stride-spacing-spc-0_5x);
  width: 100%;
  margin: 0;
  padding: var(--stride-spacing-spc-2x) var(--stride-spacing-spc-1x)
    var(--stride-spacing-spc-1x) var(--stride-spacing-spc-1_5x);
  border: 0;
  border-radius: var(--stride-radius-rad-1_5x);
  background: var(--stride-bg-neutral-primary);
  color: var(--stride-ctn-muted);
  text-align: left;
  cursor: pointer;
}

[data-stride-theme] .stride-dropdown-section-header:hover,
[data-stride-theme] .stride-dropdown-section-header[data-preview="hover"] {
  background: var(--stride-bg-neutral-hover);
}

[data-stride-theme] .stride-dropdown-section-header:focus {
  outline: none;
}

[data-stride-theme] .stride-dropdown-section-header:focus-visible {
  background: var(--stride-bg-neutral-hover);
  box-shadow: var(--stride-shadow-focus);
}

[data-stride-theme]
  .stride-dropdown-list[data-nav="arrow"]
  .stride-dropdown-section-header:focus-visible {
  box-shadow: none;
}

[data-stride-theme] .stride-dropdown-section-header-label {
  overflow: hidden;
  color: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-stride-theme] .stride-dropdown-section-header-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  color: inherit;
}

[data-stride-theme] .stride-dropdown-section-header-icon svg {
  display: block;
}

/*
 * Stride chart palette.
 * Pending design review — no Figma frame defines chart colours yet.
 *
 * Series colours for charts and sparklines, in a fixed order: a chart
 * assigns series 1, 2, 3 (then 4, 5, 6, below) to its entities in order and
 * never cycles. Every slot but series 4–6 aliases an existing primitive;
 * those three are the only chart-only values. The semantic token layer
 * (which the un-flagged Gym View also reads) is untouched.
 *
 * Why not the accent order the PR chart uses (brick, amber, yellow)? It
 * fails a colour-vision check: brick/amber and amber/yellow sit too close
 * for protan and deutan readers. Blue, amber, purple passes every pair at
 * three series in both modes (worst pair ΔE 7.5, so line charts that use
 * all three must also label lines directly, not by colour alone).
 *
 * Every series, muted included, keeps 3:1 against the card surface it sits
 * on (bg-surface-primary), which in dark mode is lighter than the canvas.
 * That is why dark keeps brand-blue 600 and purple 500 rather than the
 * darker steps: those drop under 3:1 on the dark card.
 *
 * Series 4–6 are for a chart that draws more than three series (the
 * dashboard's chart builder: up to six exercises; Divyam, 2026-10-26). They
 * follow 1–3, which stay as they are, and come from the brick, cyan and
 * pink families, tweaked for charts: no existing step of those families
 * clears the checks next to blue, amber and purple. They are the only raw
 * values here, chart-only until design adds them to the Figma primitives.
 * Checked with the dataviz validator across ALL pairs (any two lines can
 * cross in one panel): light passes every gate (worst full-colour-vision
 * ΔE 17.1; colour-vision 7.5, the shipped blue/purple pair). Dark cannot:
 * its lightness band is too narrow for six (even with 1–3 free, the best
 * is ΔE ~11). The dark steps are the best found (ΔE 12.5, colour-vision
 * 6.8), so a chart using 4–6 names every line (StridePanelChart
 * `nameEveryLine`), never colour alone (Divyam, 2026-10-26).
 *
 * Muted is "Other" in a stacked bar, where it sits on series 3. Gray 550 was
 * a hair too close to purple there for readers with full colour vision
 * (ΔE 14.9, under the 15 floor), so it is one step further from the card
 * surface in each mode: gray 600 in light (ΔE 17.8), gray 400 in dark
 * (19.8). Both pass next to every series.
 *
 * Sequential 1–4 is an ordered scale (one hue, light to dark), for bands
 * of one measure, such as reps by % of max: low to high is light to dark on
 * a light card, and dark to light on a dark one, so the high end always
 * stands out most. Adjacent steps differ in lightness by 0.06 or more, and
 * the faintest step keeps 2:1 against the card.
 *
 * Bands shade a stretch of time behind a line (a training block), in the
 * colour the coach gave it: the six block colours, each the mid (500) step
 * of its hue. Charts draw them at STRIDE_CHART_BAND_OPACITY (14%), which
 * keeps every band at least ΔE 6.8 from the card in both modes. A tint
 * lowers a line's contrast (brand blue drops under 3:1 on any dark band), so
 * a chart with bands draws each line over a card-coloured casing, which is
 * what the line is then seen against.
 *
 * Scoped under [data-stride-theme].
 */

[data-stride-theme="light"] {
  --stride-chart-series-1: var(--stride-color-brand-blue-600);
  --stride-chart-series-2: var(--stride-color-accent-amber-500);
  --stride-chart-series-3: var(--stride-color-accent-purple-500);
  /* Chart-only tweaks of brick, cyan and pink (see above). */
  --stride-chart-series-4: #973023;
  --stride-chart-series-5: #008d88;
  --stride-chart-series-6: #a21f8f;
  --stride-chart-series-muted: var(--stride-color-gray-600);
  /* A series that is none of the ones compared (a client's own measure under
     their lifts): opaque ink, so dots and rings never darken the line. */
  --stride-chart-series-ink: var(--stride-color-gray-800);
  --stride-chart-sequential-1: var(--stride-color-brand-blue-400);
  --stride-chart-sequential-2: var(--stride-color-brand-blue-600);
  --stride-chart-sequential-3: var(--stride-color-brand-blue-800);
  --stride-chart-sequential-4: var(--stride-color-brand-blue-950);
  --stride-chart-grid: var(--stride-color-transparent-gray-100);
  --stride-chart-band-blue: var(--stride-color-brand-blue-500);
  --stride-chart-band-purple: var(--stride-color-accent-indigo-500);
  --stride-chart-band-teal: var(--stride-color-accent-cyan-500);
  --stride-chart-band-orange: var(--stride-color-accent-amber-500);
  --stride-chart-band-red: var(--stride-color-accent-brick-500);
  --stride-chart-band-green: var(--stride-color-accent-olive-500);
  --stride-chart-band-pink: var(--stride-color-accent-pink-500);
}

[data-stride-theme="dark"] {
  --stride-chart-series-1: var(--stride-color-brand-blue-600);
  --stride-chart-series-2: var(--stride-color-accent-amber-600);
  --stride-chart-series-3: var(--stride-color-accent-purple-500);
  /* Chart-only tweaks of brick, cyan and pink (see above). */
  --stride-chart-series-4: #eb5970;
  --stride-chart-series-5: #35a69c;
  --stride-chart-series-6: #be4496;
  --stride-chart-series-muted: var(--stride-color-gray-400);
  --stride-chart-series-ink: var(--stride-color-gray-200);
  --stride-chart-sequential-1: var(--stride-color-brand-blue-700);
  --stride-chart-sequential-2: var(--stride-color-brand-blue-500);
  --stride-chart-sequential-3: var(--stride-color-brand-blue-400);
  --stride-chart-sequential-4: var(--stride-color-brand-blue-200);
  --stride-chart-grid: var(--stride-color-transparent-white-50);
  --stride-chart-band-blue: var(--stride-color-brand-blue-500);
  --stride-chart-band-purple: var(--stride-color-accent-indigo-500);
  --stride-chart-band-teal: var(--stride-color-accent-cyan-500);
  --stride-chart-band-orange: var(--stride-color-accent-amber-500);
  --stride-chart-band-red: var(--stride-color-accent-brick-500);
  --stride-chart-band-green: var(--stride-color-accent-olive-500);
  --stride-chart-band-pink: var(--stride-color-accent-pink-500);
}

/*
 * Stride Popover: a small panel of information anchored to the control that
 * opened it. Source: the list-page canvases (Templates "Assigned to"); no
 * Figma frame yet. Surface as the filter popover's. Tokens only. Scoped under
 * [data-stride-theme].
 */

[data-stride-theme] .stride-popover,
[data-stride-theme] .stride-popover * {
  box-sizing: border-box;
}

[data-stride-theme] .stride-popover {
  display: flex;
  flex-direction: column;
  gap: var(--stride-spacing-spc-1x);
  max-width: calc(100vw - 2 * var(--stride-spacing-spc-4x));
  max-height: min(420px, calc(100vh - 2 * var(--stride-spacing-spc-4x)));
  padding: var(--stride-spacing-spc-3x);
  overflow-y: auto;
  border: var(--stride-border-width-thic-1) solid var(--stride-bdr-dark);
  border-radius: var(--stride-radius-rad-2_5x);
  background: var(--stride-bg-surface-primary);
  box-shadow: var(--stride-shadow-md);
  color: var(--stride-ctn-primary);
  outline: none;
}

[data-stride-theme] .stride-popover-title {
  margin: 0;
}

[data-stride-theme] .stride-popover-description {
  margin: 0;
  color: var(--stride-ctn-secondary);
}

[data-stride-theme] .stride-popover-body {
  display: flex;
  flex-direction: column;
  gap: var(--stride-spacing-spc-1x);
  margin-top: var(--stride-spacing-spc-1x);
}

/* `icon`: a 32px tile beside the title and description. */
[data-stride-theme] .stride-popover-header {
  display: flex;
  gap: var(--stride-spacing-spc-2_5x);
  align-items: flex-start;
}

[data-stride-theme] .stride-popover-icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--stride-radius-rad-2x);
  background: var(--stride-bg-surface-secondary);
  color: var(--stride-ctn-secondary);
}

[data-stride-theme] .stride-popover-heading {
  display: flex;
  flex-direction: column;
  gap: var(--stride-spacing-spc-1x);
  min-width: 0;
}

/*
 * Stride Block colour picker.
 * Source: Figma "TKC Calendar 2026" node 3479:186694 ("Long range / Color
 * select / Color list").
 * Tokens only. Scoped under [data-stride-theme].
 *
 * A grid of 30×30 swatches (an 18px dot in a 6px padding) in a surface with
 * 8px padding and a 4px gap: 3 wide for six colours (114px, Figma's 3×2), 4
 * wide for seven (148px, 4 + 3). --stride-block-color-columns sets the width. The chosen swatch has a dark
 * border and a check; hover paints the neutral-hover fill and the same
 * border; disabled uses the neutral-disabled fill and border. The dot colour
 * comes from --stride-block-color, set per swatch from the chart band palette.
 */

[data-stride-theme] .stride-block-color-picker,
[data-stride-theme] .stride-block-color-picker * {
  box-sizing: border-box;
}

[data-stride-theme] .stride-block-color-picker {
  display: grid;
  grid-template-columns: repeat(var(--stride-block-color-columns, 3), 30px);
  gap: var(--stride-spacing-spc-1x);
  width: max-content;
  padding: var(--stride-spacing-spc-2x);
  border: var(--stride-border-width-thic-1) solid var(--stride-bdr-dark);
  border-radius: var(--stride-radius-rad-3_5x);
  background: var(--stride-bg-surface-primary);
  box-shadow: var(--stride-shadow-md);
}

[data-stride-theme] .stride-block-color-swatch {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: var(--stride-spacing-spc-1_5x);
  border: var(--stride-border-width-thic-1) solid transparent;
  border-radius: var(--stride-radius-rad-2x);
  background: var(--stride-bg-neutral-primary);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

[data-stride-theme] .stride-block-color-swatch:hover:not(:disabled),
[data-stride-theme] .stride-block-color-swatch[data-preview="hover"] {
  border-color: var(--stride-bdr-dark);
  background: var(--stride-bg-neutral-hover);
  box-shadow: var(--stride-shadow-sm);
}

[data-stride-theme] .stride-block-color-swatch[data-selected="true"] {
  border-color: var(--stride-bdr-dark);
  background: var(--stride-bg-neutral-primary);
  box-shadow: var(--stride-shadow-sm);
}

[data-stride-theme] .stride-block-color-swatch:focus {
  outline: none;
}

[data-stride-theme] .stride-block-color-swatch:focus-visible {
  box-shadow: var(--stride-shadow-focus);
}

[data-stride-theme] .stride-block-color-swatch:disabled {
  border-color: var(--stride-bdr-disabled);
  background: var(--stride-bg-neutral-disabled);
  box-shadow: none;
  cursor: not-allowed;
}

[data-stride-theme]
  .stride-block-color-swatch:disabled
  .stride-block-color-check {
  color: var(--stride-ctn-inversed-disabled);
}

[data-stride-theme] .stride-block-color-dot {
  position: relative;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: var(--stride-radius-rad-full);
  background: var(--stride-block-color);
}

[data-stride-theme] .stride-block-color-check {
  color: var(--stride-ctn-inversed);
}

/*
 * Stride Combo Box.
 * Source: Figma "TKC Calendar 2026" node 1855:76210.
 * Tokens only. Scoped under [data-stride-theme].
 *
 * Positions the list 2px below the input control box (not the label or
 * helper text) so the panel overlaps helper copy on purpose.
 */

[data-stride-theme] .stride-combo-box,
[data-stride-theme] .stride-combo-box * {
  box-sizing: border-box;
}

[data-stride-theme] .stride-combo-box {
  position: relative;
  width: 100%;
}

/* Trailing-action variant: chevron, divider, then an interactive control.
   Cluster is 24px tall; gap matches Figma spc-1x. */
[data-stride-theme] .stride-combo-box-end {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: var(--stride-spacing-spc-1x);
  height: var(--stride-font-size-24);
}

[data-stride-theme] .stride-combo-box-end-divider {
  flex-shrink: 0;
  align-self: stretch;
  width: var(--stride-border-width-thic-1);
  background: var(--stride-bdr-divider);
}

[data-stride-theme] .stride-combo-box-trailing {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}

[data-stride-theme] .stride-combo-box-trailing .stride-custom-icon {
  color: inherit;
}

/* A static group heading ("heading" kind): the section header's look,
   without its hover or pointer. */
[data-stride-theme] .stride-combo-box-heading,
[data-stride-theme] .stride-combo-box-heading:hover {
  background: var(--stride-bg-neutral-primary);
  cursor: default;
}

/*
 * Stride Modal form: a list page's create or edit form in a Stride modal
 * (concept A): label above field, two columns, Cancel and the primary in the
 * footer. Source: the list-page canvases' create modals (Exercise List, My
 * Clients, Courses, Resources, Templates, Chats, Store); no Figma frame yet.
 * Tokens only. Scoped under [data-stride-theme].
 */

[data-stride-theme] .stride-modal-form-body {
  display: flex;
  flex-direction: column;
  gap: var(--stride-form-gap-field);
}

/* A phone sheet's extraAction ("Archive"), under the form. */
[data-stride-theme] .stride-modal-form-extra {
  display: flex;
  justify-content: flex-start;
  margin-top: var(--stride-spacing-spc-4x);
}

/* What went wrong with the last submit, over the fields. */
[data-stride-theme] .stride-modal-form-error {
  display: flex;
  align-items: flex-start;
  gap: var(--stride-spacing-spc-2x);
  padding: var(--stride-spacing-spc-2_5x) var(--stride-spacing-spc-3x);
  border-radius: var(--stride-radius-rad-2x);
  background: var(--stride-bg-danger-surface);
  /* The words in primary text: danger on the danger surface is 4.2:1. */
  color: var(--stride-ctn-primary);
}

[data-stride-theme] .stride-modal-form-error > svg {
  flex: none;
  color: var(--stride-ctn-danger-primary);
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

/* A submit that can't act yet stays focusable (its reason is read) but looks
 * as a disabled one does, as the save bar's Save; hovered, focused or
 * pressed too (StrideButton's live states would otherwise win). */
[data-stride-theme]
  .stride-modal-form-submit.stride-button--primary[aria-disabled="true"],
[data-stride-theme]
  .stride-modal-form-submit.stride-button--primary[aria-disabled="true"]:is(
    :hover,
    :focus-visible,
    :active
  ):not(:disabled) {
  border-color: var(--stride-bdr-disabled);
  background: var(--stride-bg-brand-disabled);
  color: var(--stride-ctn-on-brand-disabled);
  cursor: not-allowed;
}

[data-stride-theme]
  .stride-modal-form-submit.stride-button--danger[aria-disabled="true"],
[data-stride-theme]
  .stride-modal-form-submit.stride-button--danger[aria-disabled="true"]:is(
    :hover,
    :focus-visible,
    :active
  ):not(:disabled) {
  border-color: var(--stride-bdr-disabled);
  background: var(--stride-bg-danger-disabled);
  color: var(--stride-ctn-inversed-disabled);
  cursor: not-allowed;
}

[data-stride-theme] .stride-modal-form-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* The grid switches on its form's width, not the screen's. In a modal form
 * the container is the form body: it is mounted with the modal, and its
 * width is the grids' width when each grid fills it. A grid React mounts
 * into an open form (Store's Kind switch) measured 0 tall in Chrome when it
 * was its own container. A grid outside a modal form (a page, a panel) is
 * still its own. One exception: the Client Forms email form's grid sits
 * beside a band, so it is narrower than the body and is its own container
 * (client_forms_2026_email_form.css). */
[data-stride-theme] .stride-modal-form-body,
[data-stride-theme]
  .stride-form-grid:not(.stride-modal-form-body .stride-form-grid) {
  container-type: inline-size;
}

[data-stride-theme] .stride-form-grid-cells {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--stride-form-gap-field) var(--stride-spacing-spc-3x);
}

[data-stride-theme] .stride-form-field[hidden] {
  display: none;
}

[data-stride-theme] .stride-form-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

[data-stride-theme] .stride-form-field[data-span="2"],
[data-stride-theme] .stride-form-section {
  grid-column: 1 / -1;
}

/* A section heading (and its description): 28px under the last field, 12px
 * over its first; the grid's own row gap is the rest of each. */
[data-stride-theme] .stride-form-section {
  display: flex;
  flex-direction: column;
  gap: var(--stride-form-gap-heading-desc);
  margin-top: calc(
    var(--stride-form-gap-section) - var(--stride-form-gap-field)
  );
  margin-bottom: calc(
    var(--stride-form-gap-desc-content) - var(--stride-form-gap-field)
  );
  color: var(--stride-ctn-primary);
}

[data-stride-theme] .stride-form-section[data-divider="true"] {
  padding-top: var(--stride-form-gap-divider);
  border-top: var(--stride-border-width-thic-1) solid var(--stride-bdr-divider);
}

/* 14/20: a step over the 13px field labels, on a line that wraps cleanly. */
[data-stride-theme] .stride-form-section .stride-form-section-title {
  margin: 0;
  line-height: 20px;
}

[data-stride-theme] .stride-form-section-description {
  margin: 0;
  color: var(--stride-ctn-tertiary);
}

@container (width < 480px) {
  [data-stride-theme] .stride-form-grid-cells {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* A phone sheet's × is a 44px target (the canvases' Close), over the small
 * button's own 28px: two classes deep. */
[data-stride-theme]
  .stride-sheet-header
  .stride-button.stride-modal-form-close {
  width: 44px;
  min-width: 44px;
  height: 44px;
}

/* A phone sheet's text fields are a thumb's height (the canvases' 44px
 * inputs), and all of the box is the input, so a tap anywhere in it lands in
 * the field and not only on its 19px of text. */
[data-stride-theme] .stride-modal-form-sheet .stride-input-field-control {
  height: 44px;
  padding-block: 0;
}

[data-stride-theme] .stride-modal-form-sheet .stride-input-field-text-container,
[data-stride-theme] .stride-modal-form-sheet .stride-input-field-input {
  align-self: stretch;
  height: 100%;
}

[data-stride-theme] .stride-modal-form-sheet .stride-text-area-input {
  min-height: 44px;
}

/* ...and so is a search field in the sheet (a recipient search) and its
 * clear: the bar's own 44px, the clear taking the bar's right padding. */
[data-stride-theme] .stride-modal-form-sheet .stride-search-bar {
  height: 44px;
}

[data-stride-theme]
  .stride-modal-form-sheet
  .stride-search-bar
  .stride-inline-button {
  width: 44px;
  height: 44px;
  margin-right: calc(-1 * var(--stride-spacing-spc-1_5x));
}

/*
 * Stride Toggle switch.
 * Source: Figma "TKC Calendar 2026" node 2629:188936.
 * Tokens only. Scoped under [data-stride-theme].
 *
 * Hit target is 32×20. The visible track stays 28×16 with a 12×12 thumb.
 * Off uses an inset 1.5px stroke so on/off share the same inner geometry.
 */

[data-stride-theme] .stride-toggle-switch,
[data-stride-theme] .stride-toggle-switch * {
  box-sizing: border-box;
}

[data-stride-theme] .stride-toggle-switch {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 20px;
  vertical-align: middle;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

[data-stride-theme] .stride-toggle-switch:has(:disabled) {
  cursor: not-allowed;
}

/* Covers the whole hit target, including the padding around the track. */
[data-stride-theme] .stride-toggle-switch-input {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  appearance: none;
  border: 0;
  opacity: 0;
  cursor: inherit;
}

[data-stride-theme] .stride-toggle-switch-input:focus {
  outline: none;
}

[data-stride-theme] .stride-toggle-switch-track {
  position: relative;
  z-index: 0;
  flex-shrink: 0;
  width: 28px;
  height: 16px;
  overflow: hidden;
  border-radius: var(--stride-radius-rad-full);
  background: var(--stride-bg-neutral-primary);
  box-shadow: inset 0 0 0 var(--stride-border-width-thic-1_5)
    var(--stride-bdr-darker);
  pointer-events: none;
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease;
}

[data-stride-theme] .stride-toggle-switch-thumb {
  position: absolute;
  inset-block-start: var(--stride-spacing-spc-0_5x);
  inset-inline-start: var(--stride-spacing-spc-0_5x);
  width: 12px;
  height: 12px;
  border-radius: var(--stride-radius-rad-full);
  background: var(--stride-ctn-tertiary);
  transition:
    inset-inline-start 180ms ease,
    background-color 180ms ease;
}

[data-stride-theme]
  .stride-toggle-switch:has(:checked)
  .stride-toggle-switch-track {
  background: var(--stride-bg-brand-primary);
  box-shadow: inset 0 0 0 var(--stride-border-width-thic-1_5)
    var(--stride-bdr-brand-edge);
}

[data-stride-theme]
  .stride-toggle-switch:has(:checked)
  .stride-toggle-switch-thumb {
  inset-inline-start: calc(100% - 12px - var(--stride-spacing-spc-0_5x));
  background: var(--stride-ctn-on-brand);
}

/* Hover. data-hover mirrors a paired label or selection target. */
[data-stride-theme]
  .stride-toggle-switch:hover:not(:has(:disabled)):not(:has(:checked))
  .stride-toggle-switch-track,
[data-stride-theme]
  .stride-toggle-switch[data-hover]:not(:has(:disabled)):not(:has(:checked))
  .stride-toggle-switch-track,
[data-stride-theme]
  .stride-toggle-switch[data-preview="hover"]:not(:has(:disabled)):not(
    :has(:checked)
  )
  .stride-toggle-switch-track {
  background: var(--stride-bg-neutral-hover);
  box-shadow: inset 0 0 0 var(--stride-border-width-thic-1_5)
    var(--stride-bdr-hover);
}

[data-stride-theme]
  .stride-toggle-switch:hover:not(:has(:disabled)):has(:checked)
  .stride-toggle-switch-track,
[data-stride-theme]
  .stride-toggle-switch[data-hover]:not(:has(:disabled)):has(:checked)
  .stride-toggle-switch-track,
[data-stride-theme]
  .stride-toggle-switch[data-preview="hover"]:not(:has(:disabled)):has(:checked)
  .stride-toggle-switch-track {
  background: var(--stride-bg-brand-hover);
}

/* Pressed. data-active mirrors a paired label or selection target. */
[data-stride-theme]
  .stride-toggle-switch:active:not(:has(:disabled)):not(:has(:checked))
  .stride-toggle-switch-track,
[data-stride-theme]
  .stride-toggle-switch[data-active]:not(:has(:disabled)):not(:has(:checked))
  .stride-toggle-switch-track {
  background: var(--stride-bg-neutral-active);
  box-shadow: inset 0 0 0 var(--stride-border-width-thic-1_5)
    var(--stride-bdr-hover);
}

[data-stride-theme]
  .stride-toggle-switch:active:not(:has(:disabled)):has(:checked)
  .stride-toggle-switch-track,
[data-stride-theme]
  .stride-toggle-switch[data-active]:not(:has(:disabled)):has(:checked)
  .stride-toggle-switch-track {
  background: var(--stride-bg-brand-active);
}

/* Keyboard focus. Ring stays while hovering or pressing. */
[data-stride-theme]
  .stride-toggle-switch:has(.stride-toggle-switch-input:focus-visible):not(
    :has(:disabled)
  )
  .stride-toggle-switch-track,
[data-stride-theme]
  .stride-toggle-switch[data-focus]:not(:has(:disabled))
  .stride-toggle-switch-track {
  box-shadow:
    inset 0 0 0 var(--stride-border-width-thic-1_5) var(--stride-bdr-hover),
    var(--stride-shadow-focus);
}

[data-stride-theme]
  .stride-toggle-switch:has(.stride-toggle-switch-input:focus-visible):not(
    :has(:disabled)
  ):has(:checked)
  .stride-toggle-switch-track,
[data-stride-theme]
  .stride-toggle-switch[data-focus]:not(:has(:disabled)):has(:checked)
  .stride-toggle-switch-track {
  box-shadow:
    inset 0 0 0 var(--stride-border-width-thic-1_5) var(--stride-bdr-brand-edge),
    var(--stride-shadow-focus-gap);
}

[data-stride-theme]
  .stride-toggle-switch:has(.stride-toggle-switch-input:focus-visible):not(
    :hover
  ):not(:active):not([data-hover]):not([data-active]):not(:has(:disabled)):not(
    :has(:checked)
  )
  .stride-toggle-switch-track,
[data-stride-theme]
  .stride-toggle-switch[data-focus]:not(:hover):not(:active):not(
    [data-hover]
  ):not([data-active]):not(:has(:disabled)):not(:has(:checked))
  .stride-toggle-switch-track {
  background: var(--stride-bg-neutral-active);
}

[data-stride-theme]
  .stride-toggle-switch:has(.stride-toggle-switch-input:focus-visible):not(
    :hover
  ):not(:active):not([data-hover]):not([data-active]):not(:has(:disabled)):has(
    :checked
  )
  .stride-toggle-switch-track,
[data-stride-theme]
  .stride-toggle-switch[data-focus]:not(:hover):not(:active):not(
    [data-hover]
  ):not([data-active]):not(:has(:disabled)):has(:checked)
  .stride-toggle-switch-track {
  background: var(--stride-bg-brand-hover);
}

/* Disabled */
[data-stride-theme]
  .stride-toggle-switch:has(:disabled)
  .stride-toggle-switch-track {
  background: var(--stride-bg-neutral-disabled);
  box-shadow: inset 0 0 0 var(--stride-border-width-thic-1_5)
    var(--stride-bdr-disabled);
}

[data-stride-theme]
  .stride-toggle-switch:has(:disabled)
  .stride-toggle-switch-thumb {
  background: var(--stride-ctn-disabled);
}

[data-stride-theme]
  .stride-toggle-switch:has(:disabled):has(:checked)
  .stride-toggle-switch-track {
  background: var(--stride-bg-brand-disabled);
  box-shadow: none;
}

[data-stride-theme]
  .stride-toggle-switch:has(:disabled):has(:checked)
  .stride-toggle-switch-thumb {
  background: var(--stride-ctn-on-brand-disabled);
}

/* Busy (a save in flight): neutral track, the thumb a spinning ring. */
[data-stride-theme]
  .stride-toggle-switch[data-busy]:has(:disabled)
  .stride-toggle-switch-track {
  background: var(--stride-bg-neutral-primary);
  box-shadow: inset 0 0 0 var(--stride-border-width-thic-1_5)
    var(--stride-bdr-darker);
}

[data-stride-theme]
  .stride-toggle-switch[data-busy]:has(:disabled)
  .stride-toggle-switch-thumb {
  box-sizing: border-box;
  border: 2px solid var(--stride-bdr-light);
  border-top-color: var(--stride-bdr-brand);
  background: transparent;
  animation: stride-toggle-switch-spin 0.8s linear infinite;
}

@keyframes stride-toggle-switch-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-stride-theme]
    .stride-toggle-switch[data-busy]
    .stride-toggle-switch-thumb {
    animation: none;
  }

  [data-stride-theme] .stride-toggle-switch-track,
  [data-stride-theme] .stride-toggle-switch-thumb {
    transition: none;
  }
}

@media (forced-colors: active) {
  [data-stride-theme] .stride-toggle-switch-track {
    background: Field;
    box-shadow: inset 0 0 0 var(--stride-border-width-thic-1_5) ButtonText;
  }

  [data-stride-theme] .stride-toggle-switch-thumb {
    background: ButtonText;
  }

  [data-stride-theme]
    .stride-toggle-switch:has(:checked)
    .stride-toggle-switch-track {
    background: Highlight;
    box-shadow: none;
  }

  [data-stride-theme]
    .stride-toggle-switch:has(:checked)
    .stride-toggle-switch-thumb {
    background: HighlightText;
  }

  [data-stride-theme]
    .stride-toggle-switch:has(:disabled)
    .stride-toggle-switch-track {
    box-shadow: inset 0 0 0 var(--stride-border-width-thic-1_5) GrayText;
  }

  [data-stride-theme]
    .stride-toggle-switch:has(:disabled)
    .stride-toggle-switch-thumb,
  [data-stride-theme]
    .stride-toggle-switch:has(:disabled):has(:checked)
    .stride-toggle-switch-thumb {
    background: GrayText;
  }
}

/* Catalog only: marks the hit target without changing the track. */
[data-stride-theme] .stride-toggle-switch-docs-hit {
  box-shadow: inset 0 0 0 var(--stride-border-width-thic-1)
    var(--stride-bdr-light);
}

[data-stride-theme] .stride-toggle-switch-docs-pairs {
  display: flex;
  flex-direction: column;
  gap: var(--stride-spacing-spc-3x);
}

[data-stride-theme] .stride-toggle-switch-docs-option {
  display: flex;
  align-items: center;
  gap: var(--stride-spacing-spc-2x);
  width: fit-content;
  color: var(--stride-ctn-primary);
  cursor: pointer;
}

[data-stride-theme] .stride-toggle-switch-docs-cards {
  display: flex;
  flex-wrap: wrap;
  gap: var(--stride-spacing-spc-3x);
}

[data-stride-theme] .stride-toggle-switch-docs-card {
  display: flex;
  align-items: center;
  gap: var(--stride-spacing-spc-3x);
  min-width: 180px;
  margin: 0;
  padding: var(--stride-spacing-spc-3x);
  border: var(--stride-border-width-thic-1) solid var(--stride-bdr-dark);
  border-radius: var(--stride-radius-rad-2x);
  background: var(--stride-bg-surface-primary);
  color: var(--stride-ctn-primary);
  cursor: pointer;
}

[data-stride-theme] .stride-toggle-switch-docs-card[data-selected="true"] {
  border-color: var(--stride-bdr-brand);
  background: var(--stride-bg-brand-overlay);
}


/*# sourceMappingURL=3466-291aedab.css.map*/