@font-face {
  font-family: Satoshi;
  src: url("/fonts/Satoshi-Variable.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Satoshi;
  src: url("/fonts/Satoshi-VariableItalic.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}

.app-column,
#ws-session-detail-portal {
  --background: #f2f0e6;
  --foreground: #0c0c0e;
  --page: #f2f0e6;
  --fg: #0c0c0e;
  --muted: rgba(12, 12, 14, 0.06);
  --muted-foreground: #6a5f58;
  --primary: #4d5d6e;
  --destructive: #a14a4a;
  --success: #4d6246;
  --warning: #7a6227;
  --info: #3f5a6c;
  --route-next: #a39890;
  --route-next-ink: #0c0c0e;
  --hairline: rgba(12, 12, 14, 0.08);
  --hairline-strong: rgba(12, 12, 14, 0.18);
  --fg-overlay-low: rgba(12, 12, 14, 0.04);
  --fg-overlay-mid: rgba(12, 12, 14, 0.08);
  font-family: Satoshi, ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: -0.011em;
  color: var(--foreground);
  background: var(--background);
}

.app-shell.is-ink-dark {
  --page: #000000;
  --fg: #f2f0e6;
  --field-fg: #f2f0e6;
  --field-border: rgba(242, 240, 230, 0.18);
  --tabs-text-muted: rgba(242, 240, 230, 0.55);
  --tabs-text-active: #f2f0e6;
  --tabs-bar-bg: rgba(255, 255, 255, 0.06);
  --tabs-pill-bg: rgba(255, 255, 255, 0.12);
  background: #000000;
  color: var(--fg);
  color-scheme: dark;
}

.app-shell.is-ink-dark .app-column,
html[data-theme="dark"] #ws-session-detail-portal,
#ws-session-detail-portal.is-ink-dark {
  --background: #000000;
  --foreground: #f2f0e6;
  --page: #000000;
  --fg: #f2f0e6;
  --muted: rgba(200, 185, 175, 0.15);
  --muted-foreground: #c8b9af;
  --primary: #b4c3d2;
  --destructive: #d28c8c;
  --success: #aab9a0;
  --warning: #d7cdaa;
  --info: #a0b4c8;
  --route-next: #5a534f;
  --route-next-ink: #f2f0e6;
  --hairline: rgba(242, 240, 230, 0.08);
  --hairline-strong: rgba(242, 240, 230, 0.18);
  --fg-overlay-low: rgba(242, 240, 230, 0.04);
  --fg-overlay-mid: rgba(242, 240, 230, 0.08);
  --tabs-text-muted: rgba(242, 240, 230, 0.55);
  --tabs-text-active: #f2f0e6;
  --tabs-bar-bg: rgba(255, 255, 255, 0.06);
  --tabs-pill-bg: rgba(255, 255, 255, 0.12);
  color: var(--foreground);
  background: var(--background);
}

html.is-signed-in .app-main {
  position: relative;
  padding: 0;
  overflow: hidden;
  --guide-edge: max(0.85rem, env(safe-area-inset-right));
  --guide-foot: max(0.85rem, env(safe-area-inset-bottom));
}

.ws-hud {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 12px;
  height: 100%;
}

.ws-crumbs {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 8px;
}

.ws-crumb,
.ws-crumb-btn {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 0;
  background: none;
  padding: 0;
  color: var(--muted-foreground);
  font: inherit;
  font-size: 15px;
}

.ws-crumb.is-current,
.ws-crumb-btn.is-brand {
  color: var(--foreground);
}

.ws-crumb-btn {
  cursor: pointer;
}

.ws-crumb-btn.is-brand {
  font-weight: 600;
  letter-spacing: -0.025em;
}

.ws-slash {
  flex-shrink: 0;
  color: color-mix(in srgb, var(--muted-foreground) 40%, transparent);
}

.ws-hud__tools {
  display: flex;
  flex-shrink: 0;
  margin-left: auto;
  height: 100%;
  align-items: center;
  gap: 10px;
}

.ws-account-btn {
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--foreground, var(--fg));
  color: var(--background, var(--page));
  cursor: pointer;
}

.ws-account-btn[aria-pressed="true"] {
  box-shadow: 0 0 0 2px var(--background, var(--page)), 0 0 0 3.5px var(--foreground, var(--fg));
}

.ws-account-mark {
  display: inline-flex;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.ws-account-btn .ws-account-mark {
  width: 100%;
  height: 100%;
  font-size: 12px;
}

.ws-account-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ws-account-photo-btn {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--foreground, var(--fg));
  cursor: pointer;
}

.ws-account-photo-btn:focus-visible {
  outline: 2px solid var(--foreground, var(--fg));
  outline-offset: 3px;
}

.ws-account-photo-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
  background: color-mix(in srgb, var(--background, var(--page)) 46%, transparent);
  color: var(--foreground, var(--fg));
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
  transition:
    opacity var(--motion-duration-fast, 180ms) var(--motion-ease, ease),
    transform var(--motion-duration-fast, 180ms) var(--motion-ease, ease);
}

.ws-account-photo-btn:hover .ws-account-photo-hint,
.ws-account-photo-btn:focus-visible .ws-account-photo-hint {
  opacity: 1;
  transform: scale(1);
}

.ws-photo-glass {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: color-mix(in srgb, var(--background, var(--page)) 62%, transparent);
  backdrop-filter: blur(20px) saturate(1.4);
}

.ws-pane:has(.ws-photo-glass) {
  overflow: hidden;
}

.ws-photo-card {
  display: flex;
  width: min(100%, 280px);
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--foreground, var(--fg)) 12%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--background, var(--page)) 78%, transparent);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--foreground, var(--fg)) 8%, transparent);
}

.ws-photo-stage {
  position: relative;
  width: min(220px, 100%);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--foreground, var(--fg)) 8%, transparent);
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.ws-photo-stage:active {
  cursor: grabbing;
}

.ws-photo-stage img {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: none;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
}

.ws-photo-stage.ws-photo-drop {
  border-width: 1px;
  border-style: dashed;
  border-color: color-mix(in srgb, var(--foreground, var(--fg)) 28%, transparent);
}

.ws-photo-edit {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--foreground, var(--fg));
  transform: translate(-50%, -50%);
  cursor: pointer;
  pointer-events: none;
}

.ws-photo-stage:hover .ws-photo-edit,
.ws-photo-edit:focus-visible {
  pointer-events: auto;
}

.ws-photo-edit:focus-visible {
  outline: 2px solid var(--foreground, var(--fg));
  outline-offset: 3px;
}

.ws-photo-stage:hover .ws-account-photo-hint,
.ws-photo-edit:focus-visible .ws-account-photo-hint {
  opacity: 1;
  transform: scale(1);
}

.ws-photo-drop .ws-photo-edit {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: none;
  pointer-events: auto;
}

.ws-photo-zoom {
  display: flex;
  width: 100%;
}

.ws-photo-zoom input {
  width: 100%;
  margin: 0;
  accent-color: var(--foreground, var(--fg));
}

.ws-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.ws-photo-actions .ws-sign-out {
  position: relative;
}

.ws-photo-confirm {
  background: var(--foreground, var(--fg));
  color: var(--background, var(--page));
  border-color: transparent;
}

.ws-photo-file {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .ws-account-photo-hint { transition: none; }
}

.ws-account-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-left: calc(var(--ws-account-mark) + var(--ws-account-gap));
}

.ws-account-head {
  display: flex;
  align-items: center;
  gap: var(--ws-account-gap);
  view-transition-name: custo-account-id;
}

.ws-account-mark--lg {
  width: var(--ws-account-mark, 48px);
  height: var(--ws-account-mark, 48px);
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--foreground, var(--fg));
  color: var(--background, var(--page));
  font-size: 16px;
}

.ws-sign-out {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--hairline-strong);
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

.ws-sign-out[data-sign-out] {
  view-transition-name: custo-account-out;
}

.app-shell .app-topbar {
  z-index: 4;
}

.ws-hud__menu {
  position: relative;
  display: flex;
  height: 100%;
  align-items: center;
}

.ws-menu-btn {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--foreground, var(--fg));
  cursor: pointer;
}

.ws-menu-btn:hover,
.ws-menu-btn[aria-expanded="true"] {
  background: var(--fg-overlay-mid, rgba(12, 12, 14, 0.08));
}

.ws-menu-btn:focus-visible {
  outline: 2px solid var(--foreground, #0c0c0e);
  outline-offset: 2px;
}

.ws-menu {
  position: absolute;
  z-index: 2;
  top: calc(100% + 6px);
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: min(15rem, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  padding: 12px;
  border: 1px solid var(--hairline-strong, rgba(12, 12, 14, 0.18));
  border-radius: 10px;
  background: var(--background, var(--page));
  color: var(--foreground, var(--fg));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.ws-view {
  position: relative;
  display: flex;
  height: 100%;
  align-items: center;
}

.ws-view__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}

.ws-view__btn:hover,
.ws-view__btn[aria-expanded="true"] {
  background: color-mix(in srgb, var(--fg) 8%, transparent);
}

.ws-view__btn:focus-visible,
.ws-view__option:focus-visible {
  outline: 2px solid var(--focus, currentColor);
  outline-offset: 2px;
}

.ws-view__chevron {
  display: block;
  flex-shrink: 0;
}

.ws-view__btn[aria-expanded="true"] .ws-view__chevron {
  transform: rotate(180deg);
}

.ws-view .ws-menu {
  left: 0;
  right: auto;
  gap: 2px;
  min-width: 11rem;
  padding: 6px;
}

.ws-view__option {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}

.ws-view__option.is-current {
  background: color-mix(in srgb, var(--fg) 8%, transparent);
}

.ws-view__option:hover {
  background: color-mix(in srgb, var(--fg) 6%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .ws-view__chevron {
    transition: none;
  }
}

.ws-menu .ws-period {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.ws-menu .ws-now,
.ws-menu .ws-hud__grain {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
}

.ws-menu .ws-period__label {
  position: static;
  transform: none;
  color: var(--muted-foreground);
  font-size: 12px;
  text-align: center;
}

.ws-menu .ws-icon-btn,
.ws-menu .ws-chip-btn {
  color: inherit;
  background: var(--background, var(--page));
}

.ws-menu .t-toggle {
  background: color-mix(in srgb, var(--foreground) 22%, transparent);
}

.ws-menu .t-toggle[data-on="true"] {
  background: var(--primary);
}

.ws-menu .t-toggle-thumb {
  background: var(--background, var(--page));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--foreground) 28%, transparent);
}

.ws-directions {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.ws-directions legend {
  padding: 0 0 4px;
  color: var(--muted-foreground);
  font-size: 12px;
}

.ws-directions__row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 0;
  color: var(--foreground, #0c0c0e);
  cursor: pointer;
}

.ws-directions__row input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--foreground, #0c0c0e);
}

.ws-directions__row:focus-within {
  outline: 2px solid var(--foreground, #0c0c0e);
  outline-offset: 2px;
}

.app-shell.is-ink-dark .ws-menu-btn:hover,
.app-shell.is-ink-dark .ws-menu-btn[aria-expanded="true"] {
  background: var(--fg-overlay-mid);
}

.ws-dot {
  display: block;
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--muted-foreground);
}

.ws-dot--ok { background: var(--success); }
.ws-dot--warning { background: var(--warning); }
.ws-dot--destructive { background: var(--destructive); }
.ws-dot--info { background: var(--info); }
.ws-dot--off { background: var(--destructive); }

.ws {
  position: absolute;
  inset: 0;
}

.ws-pane {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior: none;
}

.ws-center {
  display: flex;
  min-height: 100%;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
}

.ws-sheet {
  display: flex;
  width: 100%;
  max-width: 32rem;
  flex-direction: column;
  gap: 24px;
}

.ws-today-pane {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%;
  padding: 32px 24px 48px;
}

.ws-route {
  width: 100%;
  max-width: 32rem;
}

.ws-route__frame {
  position: relative;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 8px;
}

.ws-route__map {
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--muted);
  aspect-ratio: 512 / 280;
}

.ws-route__missing {
  margin: 8px 0 0;
}

.ws-route__map .ws-quiet {
  margin: 0;
  padding: 24px 16px;
}

.ws-route__svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 512 / 280;
}

.ws-route__credit {
  position: absolute;
  z-index: 1;
  inset-inline-end: 0;
  inset-block-end: 0;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  box-sizing: border-box;
  height: 18px;
  max-width: 100%;
  margin: 0;
  border-radius: 0 0 8px 0;
  background: none;
  color: #fff;
  pointer-events: none;
}

.ws-route__credit.is-open {
  pointer-events: auto;
}

.ws-route__credit-plate {
  position: absolute;
  inset: 0;
  border-radius: 0 0 8px 0;
  background: #000;
  pointer-events: none;
  clip-path: inset(0 0 0 calc(100% - 18px));
}

.ws-route__credit-text {
  display: flex;
  align-items: center;
  height: 18px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.ws-route__credit.is-open .ws-route__credit-text {
  pointer-events: auto;
}

.ws-route__credit-text a {
  min-width: max-content;
  padding: 2px 4px;
  color: #fff;
  font-size: 11px;
  line-height: 14px;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 1px;
}

.ws-route__info {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 0 0 8px 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  pointer-events: auto;
}

.ws-route__info::before {
  content: "";
  position: absolute;
  inset-inline-end: 0;
  inset-block-end: 0;
  width: 24px;
  height: 24px;
}

.ws-route__info-mark {
  position: relative;
  z-index: 1;
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 0;
  background: transparent;
  color: inherit;
}

.ws-route__info:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -2px;
}

@media (forced-colors: active) {
  .ws-route__credit {
    forced-color-adjust: none;
    color: CanvasText;
  }

  .ws-route__credit-plate {
    background: Canvas;
    box-shadow: none;
  }

  .ws-route__credit-text a {
    color: CanvasText;
  }

  .ws-route__info {
    border: none;
    background: transparent;
    box-shadow: inset 0 1px 0 CanvasText, inset -1px 0 0 CanvasText, inset 0 -1px 0 CanvasText;
  }

  .ws-route__credit.is-open .ws-route__credit-text {
    box-shadow: inset 1px 0 0 CanvasText, inset 0 1px 0 CanvasText, inset 0 -1px 0 CanvasText;
  }

  .ws-route__info:focus-visible {
    outline-color: CanvasText;
  }
}

.ws-route__preview {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.3;
  color: var(--muted-foreground);
}

.ws-route__stops {
  display: flex;
  flex-direction: column;
  gap: 8px;
  /* The credit sits inside the map frame, so the list keeps the 12px gap. */
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.ws-card.ws-route__row {
  gap: 0;
  padding: 0 6px 0 0;
  cursor: default;
}

.ws-route__open {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 12px;
  min-height: 3rem;
  padding: 12px 0 12px 16px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.ws-route__open b {
  min-width: 0;
  overflow-wrap: anywhere;
}

.ws-route__open .ws-meta {
  flex-shrink: 0;
  white-space: nowrap;
}

.ws-nav-slot {
  display: flex;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
}

.ws-nav {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--foreground, #0c0c0e);
  text-decoration: none;
}

.ws-nav svg {
  display: block;
  width: 24px;
  height: 24px;
}

.ws-nav:focus-visible {
  outline: 2px solid var(--foreground, #0c0c0e);
  outline-offset: 2px;
}

.ws-route {
  --route-line: color-mix(in srgb, var(--muted-foreground) 42%, var(--background));
}

.ws-route__mark {
  position: relative;
  display: inline-flex;
  width: 1.5rem;
  align-self: stretch;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

.ws-route__line {
  position: absolute;
  inset-inline-start: 0;
  inset-block: 0;
  inline-size: 1.5rem;
  pointer-events: none;
}

.ws-route__line::before,
.ws-route__line::after {
  content: "";
  position: absolute;
  inset-inline-start: calc(50% - 0.75px);
  inline-size: 1.5px;
  pointer-events: none;
  background: var(--route-line);
}

.ws-route__line::before {
  inset-block-start: calc(-1 * (12px + 1px + 4px));
  inset-block-end: calc(50% + 0.75rem);
}

.ws-route__line::after {
  inset-block-start: calc(50% + 0.75rem);
  inset-block-end: calc(-1 * (12px + 1px + 4px));
}

.ws-route__stop:first-child .ws-route__line::before,
.ws-route__stop:last-child .ws-route__line::after,
.ws-route__stop:only-child .ws-route__line::before,
.ws-route__stop:only-child .ws-route__line::after {
  content: none;
}

.ws-route__who {
  display: flex;
  min-width: 0;
  flex: 1 1 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.ws-route__who b {
  flex: 0 1 auto;
  max-width: 100%;
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
  overflow-wrap: anywhere;
}

.ws-route__label {
  max-width: 100%;
  margin: 0;
  padding: 0;
  color: var(--muted-foreground);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.8125rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: break-word;
}

.ws-route__label[data-phase="ended"] {
  color: var(--muted-foreground);
}

.ws-route__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ws-route__n {
  position: relative;
  z-index: 1;
  display: inline-flex;
  box-sizing: border-box;
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--foreground);
  color: var(--background);
  font-size: 12px;
  font-weight: 600;
}

.ws-route__stop[data-state="current"] .ws-route__n {
  background: var(--success);
  color: var(--background);
}

.ws-route__stop[data-state="next"] .ws-route__n {
  background: var(--route-next);
  color: var(--route-next-ink);
}

.ws-route__stop[data-state="done"] .ws-route__n {
  border: 1px solid var(--muted-foreground);
  background: var(--background);
  color: var(--muted-foreground);
}

.ws-route__stop[data-state="done"] .ws-route__open {
  color: var(--muted-foreground);
}

.ws-route__n,
.ws-route__open,
.ws-route__line::before,
.ws-route__line::after {
  transition: background-color 200ms, color 200ms;
}

@media (prefers-reduced-motion: reduce) {
  .ws-route__n,
  .ws-route__open,
  .ws-route__line::before,
  .ws-route__line::after {
    transition: none;
  }
}

@media (forced-colors: active) {
  .ws-route__n {
    forced-color-adjust: none;
    outline: none;
    background: CanvasText;
    color: Canvas;
  }

  .ws-route__stop[data-state="current"] .ws-route__n {
    forced-color-adjust: none;
    background: var(--success);
    color: var(--background);
  }

  .ws-route__stop[data-state="next"] .ws-route__n {
    forced-color-adjust: none;
    background: Highlight;
    color: HighlightText;
  }

  .ws-route__stop[data-state="done"] .ws-route__n {
    forced-color-adjust: none;
    border: 1px solid GrayText;
    background: Canvas;
    color: GrayText;
  }

  .ws-route__label {
    forced-color-adjust: none;
    color: GrayText;
  }

  .ws-route__label[data-phase="now"] {
    color: CanvasText;
  }

  .ws-route__label[data-phase="ended"] {
    color: GrayText;
  }

  .ws-route__stop[data-state="done"] .ws-route__open {
    color: GrayText;
  }

  .ws-route__line::before,
  .ws-route__line::after {
    forced-color-adjust: none;
    background: CanvasText;
  }
}

.ws-sheet--wide {
  max-width: 64rem;
}

.ws-sheet.ws-account {
  --ws-account-mark: 48px;
  --ws-account-gap: 16px;
  width: max-content;
  max-width: 100%;
  align-items: flex-start;
  gap: 32px;
}

.ws-account-main {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 100%;
}

.ws-account-id {
  min-width: 0;
}

.ws-account-id .ws-title,
.ws-account-id .ws-quiet {
  overflow-wrap: anywhere;
}

.ws-account-theme {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  view-transition-name: custo-account-theme;
}

.ws-account.is-stacked .ws-account-main {
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.ws-account.is-stacked .ws-account-theme {
  margin-left: calc(var(--ws-account-mark) + var(--ws-account-gap));
}

.ws-label {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.ws-title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.ws-meta {
  color: var(--muted-foreground);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
}

.ws-quiet {
  margin: 6px 0 0;
  color: var(--muted-foreground);
  font-size: 13px;
}

.ws-quiet a {
  color: inherit;
}

.ws-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ws-head__actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 4px;
}

.ws-head .t-like {
  width: 32px;
  height: 32px;
  justify-content: center;
}

.ws-queue {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ws-card,
.ws-block,
.ws-layer,
.ws-text-btn,
.ws-icon-btn {
  font: inherit;
  color: inherit;
}

.ws-card {
  display: flex;
  width: 100%;
  min-height: 3rem;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: color-mix(in srgb, var(--background) 40%, transparent);
  text-align: left;
  cursor: pointer;
}

.ws-card:hover,
.ws-block:hover,
.ws-layer:hover {
  border-color: var(--hairline-strong);
  background: var(--fg-overlay-low);
}

.ws-today-mark {
  width: 100%;
  max-width: 32rem;
}

.ws-today-mark__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ws-today-mark__day {
  display: flex;
  flex-direction: column;
}

.ws-today-mark__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.ws-card.ws-today-mark__row {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-height: 0;
  padding: 8px 16px;
  cursor: default;
}

.ws-card.ws-today-mark__row:hover {
  border-color: var(--hairline);
  background: color-mix(in srgb, var(--background) 40%, transparent);
}

.ws-today-mark__top {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
}

.ws-today-mark__top .ws-route__n {
  align-self: center;
}

.ws-card.ws-today-mark__row .ws-today-mark__title {
  display: flex;
  align-items: baseline;
  width: 100%;
  flex-wrap: nowrap;
  max-height: none;
  overflow: hidden;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}

.ws-today-mark__child {
  flex: 0 0 auto;
  max-width: calc(100% - 3.5em);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-wrap: normal;
}

.ws-today-mark__sep {
  flex: none;
  white-space: pre;
}

.ws-today-mark__family {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ws-route__label.ws-today-mark__time {
  white-space: nowrap;
  overflow-wrap: normal;
}

.ws-today-mark .ws-more {
  align-self: flex-start;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 4px;
}

.ws-today-mark .ws-more:focus-visible,
.ws-today-mark .ws-mark__retry:focus-visible {
  outline: 2px solid var(--foreground, #0c0c0e);
  outline-offset: 2px;
}

#ws-today-mark-heading:focus,
.ws-today-mark__day h3:focus {
  outline: none;
}

#ws-today-mark-heading:focus-visible,
.ws-today-mark__day h3:focus-visible {
  outline: 2px solid var(--foreground, #0c0c0e);
  outline-offset: 2px;
  border-radius: 2px;
}

.ws-today-mark__skeleton {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ws-today-mark__skeleton span {
  display: block;
  height: 7.5rem;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: color-mix(in srgb, var(--background) 40%, transparent);
}

@media (forced-colors: active) {
  .ws-card.ws-today-mark__row,
  .ws-card.ws-today-mark__row:hover {
    border-color: CanvasText;
    background: Canvas;
  }

  .ws-today-mark__skeleton span {
    forced-color-adjust: none;
    border-color: CanvasText;
    background: Canvas;
  }
}

.ws-card b {
  display: block;
  min-width: 0;
  flex: 1;
  overflow: hidden;
  font-size: 15px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ws-route__who b {
  flex: 0 1 auto;
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
  overflow-wrap: anywhere;
}

.ws-card .ws-kicker {
  display: block;
  color: var(--muted-foreground);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ws-more,
.ws-text-btn {
  border: 0;
  background: none;
  padding: 0 4px;
  color: var(--muted-foreground);
  cursor: pointer;
}

.ws-more:hover,
.ws-text-btn:hover {
  color: var(--foreground);
}

.ws-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ws-empty__mark {
  display: flex;
  width: 5rem;
  height: 5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  color: var(--success);
}

.ws-empty__mark .t-success-check {
  width: 48px;
  height: 48px;
}

.ws-empty__mark svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#ws-today,
#ws-family,
#ws-board {
  background: var(--background, var(--page));
}

.t-avatar-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.t-avatar {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--muted);
  font-size: 13px;
}

.ws-block {
  padding: 12px 16px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: color-mix(in srgb, var(--background) 40%, transparent);
}

.ws-block__top,
.ws-rowline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.ws-block p {
  margin: 4px 0 0;
  color: var(--muted-foreground);
  font-size: 15px;
}

.ws-due {
  color: var(--destructive);
  font-size: 13px;
}

.ws-block__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.ws-layers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ws-layer {
  display: flex;
  height: 4rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1px solid var(--hairline-strong);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.ws-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  font-size: 15px;
}

.ws-strip .is-warning { color: var(--warning); }

.ws-period {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ws-period__grain {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1;
}

.ws-period__word {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 12px;
  line-height: 1;
}

.ws-period__word.is-on {
  color: var(--fg);
}

.app-topbar .app-rail__crumbs {
  align-items: center;
}

.app-rail__crumbs .ws-now {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
}

.ws-icon-btn {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hairline-strong);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.ws-chip-btn {
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--hairline-strong);
  border-radius: 6px;
  background: transparent;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.ws-flow {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--background);
}

.ws-flow__bar {
  display: flex;
  height: 3.5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px;
  border-bottom: 1px solid var(--hairline);
}

.ws-flow__title {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 12px;
}

.ws-flow__title h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.ws-flow__body {
  position: relative;
  min-height: 0;
  flex: 1;
}

.ws-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ws-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
}

.app-subhead[hidden],
.app-timeline[hidden],
.app-axis[hidden] {
  display: none !important;
}

.app-subhead {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  height: 3.5rem;
  padding: 0 16px;
}

.app-subhead .ws-period {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
}

.app-subhead .ws-period__track {
  display: grid;
  grid-template-columns: repeat(1000, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
  position: absolute;
  inset: 0;
}

.app-subhead .ws-period__label {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 1;
  margin: 0;
  color: inherit;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  opacity: 0.72;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.app-timeline {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  overflow: auto;
  overscroll-behavior: none;
  scrollbar-width: none;
}

.app-timeline::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.ws-timeline__rows {
  display: flex;
  flex: 1 0 auto;
  min-height: 100%;
  flex-direction: column;
}

.ws-timeline__list {
  display: flex;
  flex: 1 0 auto;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
}

.ws-timeline__empty {
  margin: 0;
  padding: 24px;
}

.ws-bar-row {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  flex: 1 0 auto;
  align-items: stretch;
  min-height: 2.5rem;
}

.ws-bar-row + .ws-bar-row {
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--fg) 8%, transparent);
}

.ws-bar-name {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 0;
  background: color-mix(in srgb, var(--page) 72%, transparent);
  padding: 2px 12px;
  color: var(--fg);
  font: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}

.ws-bar-name__label {
  min-width: 0;
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ws-bar-name__meta {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
}

.ws-bar-name__count {
  color: var(--warning);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.ws-bar-name__block {
  display: none;
  flex-shrink: 0;
  color: color-mix(in srgb, var(--fg) 62%, transparent);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.ws-track {
  display: grid;
  grid-template-columns: repeat(1000, minmax(0, 1fr));
  grid-template-rows: 1fr auto 1fr;
  position: relative;
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 2.5rem;
}

.ws-band,
.ws-guide,
.ws-today {
  grid-row: 1 / -1;
}

.ws-band {
  width: 100%;
  min-width: 0;
  align-self: stretch;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  pointer-events: none;
}

.ws-guide,
.app-axis__line {
  justify-self: start;
  align-self: stretch;
  width: 1px;
  padding: 0;
  border: 0;
  background: var(--hairline);
  pointer-events: none;
}

.ws-lanes {
  grid-row: 1 / -1;
  grid-column: 1 / -1;
  display: grid;
  position: relative;
  z-index: 1;
  grid-template-columns: subgrid;
  grid-template-rows: 3px minmax(0, 1fr);
  row-gap: 2px;
  align-self: stretch;
  padding: 8px 0;
  box-sizing: border-box;
}

.ws-renew {
  grid-row: 1;
  width: 100%;
  min-width: 0;
  height: 3px;
  align-self: center;
  border-radius: 6px;
  background: color-mix(in srgb, var(--primary) 18%, transparent);
  pointer-events: none;
}

.ws-renew--upcoming {
  background: color-mix(in srgb, var(--primary) 30%, transparent);
}

.ws-renew--open {
  background: color-mix(in srgb, var(--primary) 50%, transparent);
}

.ws-bar {
  grid-row: 2;
  position: relative;
  display: flex;
  justify-self: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  align-self: stretch;
  align-items: center;
  overflow: hidden;
  padding: 2px 8px;
  border: 1px solid color-mix(in srgb, var(--fg) 14%, transparent);
  border-radius: 6px;
  background: color-mix(in srgb, var(--fg) 7%, var(--page));
  color: var(--fg);
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.15;
  text-align: left;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.ws-bar:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.ws-bar span {
  position: relative;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ws-bar--current-paid {
  background: color-mix(in srgb, var(--success) 16%, var(--page));
  border-color: color-mix(in srgb, var(--success) 40%, transparent);
}

.ws-bar--current-due {
  background: color-mix(in srgb, var(--warning) 16%, var(--page));
  border-color: color-mix(in srgb, var(--destructive) 55%, transparent);
}

.ws-bar--next-paid {
  background: color-mix(in srgb, var(--success) 10%, var(--page));
  border-color: color-mix(in srgb, var(--success) 40%, transparent);
}

.ws-bar--next-due {
  background: color-mix(in srgb, var(--warning) 14%, var(--page));
  border-color: color-mix(in srgb, var(--warning) 45%, transparent);
}

.ws-bar--next-paid,
.ws-bar--next-due {
  border-style: dashed;
}

.ws-bar--past {
  background: color-mix(in srgb, var(--fg) 7%, var(--page));
  border-color: color-mix(in srgb, var(--fg) 14%, transparent);
  color: color-mix(in srgb, var(--fg) 62%, transparent);
  font-weight: 500;
}

.ws-bar--due {
  background: color-mix(in srgb, var(--destructive) 14%, var(--page));
  border-color: color-mix(in srgb, var(--destructive) 45%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .ws-bar {
    transition: none;
  }

  .ws-bar:hover {
    transform: none;
  }
}

.ws-today {
  position: relative;
  justify-self: start;
  align-self: stretch;
  z-index: 5;
  width: 2px;
  background: #ef4444;
  pointer-events: none;
}

.ws-bar-row:first-child .ws-today::after,
.ws-timeline__list > .ws-bar-row:first-of-type .ws-today::after {
  content: '';
  position: absolute;
  top: 0;
  left: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
}

.app-axis {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  position: relative;
  flex-shrink: 0;
  height: 3.5rem;
  margin-left: 7.5rem;
  overflow: hidden;
  color: var(--fg);
  border-top: 1px solid var(--hairline);
}

.app-axis__scale {
  display: grid;
  grid-template-columns: repeat(1000, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
  position: relative;
  width: 100%;
  min-width: 0;
  height: 100%;
}

.app-axis__band,
.ws-period__band {
  grid-row: 1;
  width: 100%;
  min-width: 0;
  align-self: stretch;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  pointer-events: none;
}

.app-axis__line {
  grid-row: 1;
}

.app-axis__tick {
  grid-row: 1;
  position: relative;
  justify-self: start;
  align-self: stretch;
  width: 0;
  height: 100%;
  border: 0;
  background: none;
}

.app-axis__tick--6 {
  display: none;
}

.app-axis__tick span {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 6px;
  display: flex;
  align-items: center;
  color: inherit;
  font-size: 12px;
  line-height: 1;
  opacity: 0.72;
  white-space: nowrap;
}

@media (max-width: 767px), (orientation: landscape) and (max-height: 500px) {
  .app-axis__tick span {
    display: none;
  }
}

.app-axis__today {
  grid-row: 1;
  justify-self: start;
  align-self: stretch;
  z-index: 5;
  width: 2px;
  background: #ef4444;
}

.app-shell.is-timeline {
  background: var(--page);
}

.app-shell.is-timeline .ws-bar-name {
  display: none;
}

.app-shell.is-timeline .ws-bar-row {
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
}

.app-shell.is-timeline .app-main {
  display: none;
}

.ws-ink .t-tab {
  display: inline-flex;
  width: 28px;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.ws-ink svg {
  display: block;
}

@media (min-width: 768px) {
  .ws-bar-name__block {
    display: inline;
  }

  .app-shell.is-timeline {
    display: grid;
    grid-template-columns: 18rem minmax(0, 1fr);
    grid-template-rows:
      3.5rem
      3.5rem
      minmax(0, 1fr)
      3.5rem;
    transition: grid-template-columns var(--duration-fast, 250ms) var(--ease-smooth-out, cubic-bezier(0.22, 1, 0.36, 1));
  }

  .app-shell.is-timeline:has(.app-rail[data-state="collapsed"]) {
    grid-template-columns: 0px minmax(0, 1fr);
  }

  .app-shell.is-timeline .app-rail {
    grid-column: 1;
    grid-row: 1 / -1;
    min-width: 0;
  }

  .app-shell.is-timeline .app-column {
    display: contents;
  }

  .app-shell.is-timeline .app-topbar {
    grid-column: 2;
    grid-row: 1;
  }

  .app-shell.is-timeline .app-subhead {
    grid-column: 2;
    grid-row: 2;
    z-index: 3;
    padding-left: 0;
    padding-right: 0;
    border-bottom: 1px solid var(--hairline);
  }

  .app-shell.is-timeline .app-timeline {
    display: flex;
    grid-column: 2;
    grid-row: 2 / 5;
    z-index: 1;
    min-height: 0;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
    box-sizing: border-box;
  }

  .app-shell.is-timeline .app-axis {
    grid-column: 2;
    grid-row: 4;
    z-index: 3;
    display: block;
    width: auto;
    min-width: 0;
    align-self: stretch;
    justify-self: stretch;
    margin: 0;
  }

  .app-shell.is-timeline .app-axis__scale {
    grid-column: auto;
    min-width: 0;
  }

  .app-shell.is-timeline .ws-bar-name {
    display: none;
  }

  .app-shell.is-timeline .ws-bar-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-shell.is-timeline .ws-timeline__empty {
    margin-left: 0;
  }
}

.app-shell.is-ink-dark .app-topbar {
  background: transparent;
}

.app-shell.is-ink-dark .app-topbar__menu,
.app-shell.is-ink-dark .app-topbar__collapse {
  color: var(--foreground);
}

@media (max-width: 767px) {
  .app-shell.is-timeline {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows:
      3.5rem
      3.5rem
      minmax(0, 1fr)
      3.5rem;
  }

  .app-shell.is-timeline .app-column {
    display: contents;
  }

  .app-shell.is-timeline .app-topbar,
  .app-shell.is-timeline .app-subhead {
    grid-column: 1 / -1;
  }

  .app-shell.is-timeline .app-topbar {
    grid-row: 1;
  }

  .app-shell.is-timeline .app-subhead {
    grid-row: 2;
    z-index: 3;
    padding-left: 0;
    padding-right: 0;
  }

  .app-shell.is-timeline .app-subhead .ws-period__track {
    left: 0;
  }

  .app-shell.is-timeline .app-timeline {
    display: flex;
    grid-column: 1;
    grid-row: 2 / 5;
    z-index: 1;
    min-width: 0;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: auto;
    touch-action: none;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
    box-sizing: border-box;
  }

  .app-shell.is-timeline .app-axis {
    grid-column: 1;
    grid-row: 4;
    z-index: 2;
    margin: 0;
  }

  .app-shell.is-timeline .ws-bar-name {
    display: none;
  }

  .app-shell.is-timeline .ws-bar-row {
    grid-template-columns: minmax(0, 1fr);
  }

}

@media (orientation: landscape) and (max-height: 500px) {
  .app-rail,
  .app-rail[data-state="expanded"] {
    position: fixed;
    z-index: 4;
    top: 0;
    bottom: auto;
    left: 0;
    display: flex;
    width: 18rem;
    height: 100svh;
    max-height: 100svh;
    transform: translate3d(calc(-100% - 24px), 0, 0);
    transition: transform var(--duration-fast, 250ms) var(--ease-smooth-out, cubic-bezier(0.22, 1, 0.36, 1));
  }

  .app-shell.is-drawer .app-rail,
  .app-shell.is-drawer .app-rail[data-state="expanded"] {
    transform: none;
  }

  .app-topbar__menu {
    display: inline-flex;
  }

  .app-topbar__collapse {
    display: none;
  }

  .app-shell.is-timeline,
  .app-shell.is-timeline:has(.app-rail[data-state="collapsed"]) {
    display: grid;
    top: 0;
    bottom: auto;
    height: 100svh;
    max-height: 100svh;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows:
      3.5rem
      3.5rem
      minmax(0, 1fr)
      3.5rem;
    transition: none;
  }

  .app-shell.is-timeline .app-topbar,
  .app-shell.is-timeline .app-subhead,
  .app-shell.is-timeline .app-timeline,
  .app-shell.is-timeline .app-axis {
    grid-column: 1;
    width: auto;
    min-width: 0;
  }

  .app-shell.is-timeline .app-timeline {
    display: flex;
    grid-row: 2 / 5;
    min-width: 0;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: auto;
    touch-action: none;
  }

  .app-shell.is-timeline .app-subhead .ws-period__track,
  .app-shell.is-timeline:has(.app-rail[data-state="collapsed"]) .app-subhead .ws-period__track {
    left: 0;
  }

  .app-shell.is-timeline .ws-bar-name,
  .app-shell.is-timeline:has(.app-rail[data-state="collapsed"]) .ws-bar-name {
    display: none;
  }

  .app-shell.is-timeline .ws-bar-row,
  .app-shell.is-timeline:has(.app-rail[data-state="collapsed"]) .ws-bar-row {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
  }

  .app-shell.is-timeline .app-axis,
  .app-shell.is-timeline:has(.app-rail[data-state="collapsed"]) .app-axis {
    display: block;
    margin: 0;
  }

  .app-axis,
  .app-rail__finder {
    height: 3.5rem;
    padding-bottom: 0;
  }

  .app-rail__inner {
    height: 100%;
    min-height: 0;
  }

  .app-rail__families {
    position: relative;
    min-height: 0;
  }

  .app-rail__families-scroll {
    position: absolute;
    inset: 0;
    flex: none;
    height: auto;
    overflow-x: hidden;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }

  .app-rail__family {
    touch-action: pan-y;
  }
}

.app-shell.is-timeline .app-subhead,
.app-shell.is-timeline .app-axis {
  background: var(--background, var(--page));
  backdrop-filter: blur(40px) saturate(1.8);
  -webkit-backdrop-filter: blur(40px) saturate(1.8);
  pointer-events: none;
}

.app-shell.is-timeline .app-timeline {
  touch-action: none;
  overflow-y: auto;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: auto;
}

/* -------------------------------------------------------------------------
   Sessions Weekly Calendar View Styles
   ------------------------------------------------------------------------- */

.app-shell.is-sessions .app-subhead {
  border-bottom: 1px solid var(--hairline);
  padding-left: 0;
  padding-right: 0;
}

.ws-sessions {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior: contain;
  --sessions-zoom: 1;
}

.ws-sessions[data-zoom="1"] { --sessions-zoom: 1; }
.ws-sessions[data-zoom="1.25"] { --sessions-zoom: 1.25; }
.ws-sessions[data-zoom="1.5"] { --sessions-zoom: 1.5; }
.ws-sessions[data-zoom="2"] { --sessions-zoom: 2; }
.ws-sessions[data-zoom="2.5"] { --sessions-zoom: 2.5; }

.ws-sessions__scroll {
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.ws-sessions__list {
  display: grid;
  grid-template-rows: repeat(7, minmax(3.5rem, 1fr));
  flex: 1 0 auto;
  height: 100%;
  min-height: 100%;
  width: calc(7.5rem + (100% - 7.5rem) * var(--sessions-zoom, 1));
  min-width: 100%;
  box-sizing: border-box;
}

.ws-day-row,
.ws-sessions-row {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  align-items: stretch;
  height: 100%;
  min-height: 0;
  max-height: none;
  flex: 1 1 0;
  border-bottom: 1px solid var(--hairline);
  box-sizing: border-box;
  overflow: visible;
  transition: background 120ms;
}

.ws-day-row:last-child,
.ws-sessions-row:last-child {
  border-bottom: none;
}

.ws-day-row.is-today {
  background: color-mix(in srgb, var(--primary) 4%, transparent);
}

.ws-day-row.is-today .ws-day-name {
  border-left: 3px solid var(--primary);
  padding-left: 9px;
  background: color-mix(in srgb, var(--primary) 6%, var(--page));
}

.ws-day-name {
  position: sticky;
  left: 0;
  z-index: 10;
  background: var(--page);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6px 12px;
  border-right: 1px solid var(--hairline);
  box-sizing: border-box;
  gap: 2px;
  overflow: hidden;
}

.ws-day-name__main {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.ws-day-name__day {
  font-weight: 600;
  font-size: 14px;
  color: var(--fg);
}

.ws-day-name__date {
  font-size: 12px;
  color: color-mix(in srgb, var(--fg) 65%, transparent);
}

.ws-day-name__meta {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  color: var(--muted-foreground);
  gap: 1px;
  font-variant-numeric: tabular-nums;
}

.ws-day-track,
.ws-sessions-track {
  position: relative;
  height: 100%;
  width: 100%;
  min-width: 0;
  align-self: stretch;
  overflow: hidden;
  box-sizing: border-box;
}

.ws-sessions-hairline {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ef4444;
  z-index: 5;
  pointer-events: none;
}

.ws-sessions-hairline::after {
  content: '';
  position: absolute;
  top: 0;
  left: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
}

.ws-session-card {
  position: absolute;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4px 6px;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--fg) 14%, transparent);
  background: color-mix(in srgb, var(--fg) 7%, var(--page));
  color: var(--fg);
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  z-index: 3;
  line-height: 1.15;
  gap: 2px;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.ws-session-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.ws-session-card.is-compact {
  padding: 2px 5px;
  gap: 1px;
}

.ws-session-card.is-compact .ws-session-card__name {
  font-size: 11px;
  line-height: 1.15;
}

.ws-session-card.is-compact .ws-session-card__time {
  font-size: 10px;
  line-height: 1.15;
}

.ws-session-card--attended {
  background: color-mix(in srgb, var(--primary) 16%, var(--page));
  border-color: color-mix(in srgb, var(--primary) 35%, transparent);
}

.ws-session-card--rescheduled {
  background: color-mix(in srgb, #8b5cf6 14%, var(--page));
  border-color: rgba(139, 92, 246, 0.4);
}

.ws-session-card__line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  gap: 6px;
}

.ws-session-card__name {
  font-weight: 600;
  font-size: 11.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ws-session-card__time {
  font-size: 10.5px;
  color: color-mix(in srgb, var(--fg) 70%, transparent);
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ws-session-card__time--bold {
  font-weight: 600;
}

.ws-cadence-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 4px;
  font-size: 9.5px;
  font-weight: 700;
  border-radius: 3px;
  border: 1px solid currentColor;
  cursor: pointer;
  line-height: 1.15;
  flex-shrink: 0;
  transition: opacity 120ms;
}

.ws-cadence-badge:hover {
  opacity: 0.8;
}

.ws-cadence-badge--weekly {
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
}

.ws-cadence-badge--fortnightly {
  color: #d97706;
  background: color-mix(in srgb, #d97706 12%, transparent);
}

.ws-cadence-badge--moved {
  color: #7c3aed;
  border-color: rgba(124, 58, 237, 0.4);
  background: color-mix(in srgb, #7c3aed 14%, transparent);
}

.ws-cadence-badge--break {
  color: #b45309;
  border-color: rgba(180, 83, 9, 0.4);
  background: color-mix(in srgb, #b45309 14%, transparent);
}

.ws-cadence-badge--ghost {
  color: var(--muted-foreground);
  border-color: color-mix(in srgb, var(--fg) 20%, transparent);
  background: color-mix(in srgb, var(--fg) 8%, transparent);
}

.ws-cadence-badge--travel,
.ws-session-card__badge,
.ws-session-card__badge--travel {
  color: #0284c7;
  border: 1px solid rgba(56, 189, 248, 0.32);
  background: rgba(56, 189, 248, 0.16);
  font-size: 9px;
  padding: 1px 3px;
}

:root[data-theme="dark"] .ws-cadence-badge--travel,
:root[data-theme="dark"] .ws-session-card__badge,
:root[data-theme="dark"] .ws-session-card__badge--travel {
  color: #7dd3fc;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ws-cadence-badge--travel,
  :root:not([data-theme="light"]) .ws-session-card__badge,
  :root:not([data-theme="light"]) .ws-session-card__badge--travel {
    color: #7dd3fc;
  }
}

.ws-session-ghost {
  position: absolute;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4px 6px;
  border-radius: 6px;
  border: 1.5px dashed color-mix(in srgb, #f59e0b 60%, transparent);
  background: color-mix(in srgb, #f59e0b 8%, transparent);
  color: var(--fg);
  overflow: hidden;
  z-index: 2;
  white-space: nowrap;
  line-height: 1.15;
  gap: 2px;
}

.ws-session-ghost.is-compact {
  padding: 2px 5px;
  gap: 1px;
}

.ws-session-ghost.is-compact .ws-session-card__name {
  font-size: 11px;
  line-height: 1.15;
}

.ws-session-ghost.is-compact .ws-session-card__time {
  font-size: 10px;
  line-height: 1.15;
}

.ws-session-ghost--break {
  border-color: rgba(245, 158, 11, 0.55);
  background: rgba(245, 158, 11, 0.08);
}

.ws-session-ghost--rescheduled {
  border-color: rgba(139, 92, 246, 0.55);
  background: rgba(139, 92, 246, 0.08);
}

.ws-session-ghost--fortnightly_off {
  border-color: rgba(100, 116, 139, 0.55);
  background: rgba(100, 116, 139, 0.06);
}

.ws-session-card--travel,
.ws-session-ghost--travel {
  border: 1px dashed rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.06);
  padding: 3px 4px;
  cursor: default;
  z-index: 2;
}

.ws-session-card--travel:hover {
  transform: none;
  box-shadow: none;
}

.ws-cadence-badge--avail {
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.16);
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
}

:root[data-theme="dark"] .ws-cadence-badge--avail {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.4);
  background: rgba(74, 222, 128, 0.16);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ws-cadence-badge--avail {
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.4);
    background: rgba(74, 222, 128, 0.16);
  }
}

.ws-session-avail {
  position: absolute;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4px 6px;
  border-radius: 6px;
  border: 1px dashed rgba(34, 197, 94, 0.48);
  background: rgba(34, 197, 94, 0.07);
  color: var(--fg);
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  z-index: 2;
  line-height: 1.15;
  gap: 2px;
  transition: border-color 120ms ease, background 120ms ease, transform 120ms ease, box-shadow 120ms ease;
  top: 8px;
  bottom: 8px;
  pointer-events: auto;
}

.ws-session-avail:hover {
  border-color: rgba(34, 197, 94, 0.78);
  background: rgba(34, 197, 94, 0.12);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ws-session-avail__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ws-sessions-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 0 56px 0 4px;
  gap: 16px;
  box-sizing: border-box;
}

.ws-sessions-subhead__left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ws-sessions-subhead__nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: color-mix(in srgb, var(--fg) 6%, transparent);
  border-radius: 6px;
  padding: 2px 4px;
}

.ws-sessions-subhead__btn {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  border: 0;
  background: none;
  color: var(--fg);
  font-size: 16px;
  cursor: pointer;
}

.ws-sessions-subhead__btn:hover {
  background: color-mix(in srgb, var(--fg) 10%, transparent);
}

.ws-sessions-subhead__today {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  padding: 2px 8px;
  border: 0;
  background: none;
  color: var(--fg);
  cursor: pointer;
}

.ws-sessions-subhead__today:hover {
  background: color-mix(in srgb, var(--fg) 10%, transparent);
  border-radius: 4px;
}

.ws-sessions-subhead__range {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.ws-sessions-subhead__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ws-sessions-subhead__capacity {
  font-size: 13px;
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
}

.ws-sessions__renew-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 12px;
  border: 1px solid var(--warning);
  background: color-mix(in srgb, var(--warning) 12%, transparent);
  color: var(--warning);
  cursor: pointer;
}

.ws-dash__pattern-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.ws-cadence-toggle {
  min-height: 44px;
  min-width: 44px;
  padding-inline: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--primary) 40%, transparent);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
  cursor: pointer;
  transition: background 120ms;
}

.ws-cadence-toggle:hover {
  background: color-mix(in srgb, var(--primary) 20%, transparent);
}

.ws-sessions-axis__scale {
  width: calc(100% * var(--sessions-zoom, 1));
  height: 100%;
  position: relative;
}

.app-shell.is-sessions .app-axis {
  overflow-x: scroll;
  scrollbar-width: none;
}

.app-shell.is-sessions .app-axis::-webkit-scrollbar {
  display: none;
}

.ws-sessions-axis__line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--hairline);
}

.ws-sessions-axis__tick {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
}

.ws-sessions-axis__tick span {
  font-size: 11px;
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
  transform: translateX(-50%);
}

.ws-sessions-axis__now {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ef4444;
  z-index: 5;
}

.ws-sessions-guide {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--hairline);
  pointer-events: none;
}

/* Sessions timescale zoom controls */
.ws-sessions-zoom-pill {
  position: absolute;
  bottom: calc(12px + env(safe-area-inset-bottom));
  right: calc(16px + env(safe-area-inset-right));
  z-index: 25;
  display: inline-flex;
  align-items: center;
  background: color-mix(in srgb, var(--page) 88%, var(--fg));
  border: 1px solid var(--hairline-strong, rgba(0, 0, 0, 0.16));
  border-radius: 9999px;
  padding: 2px 4px;
  gap: 2px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
  user-select: none;
}

.ws-zoom-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--fg);
  font-size: 15px;
  font-weight: 600;
  border-radius: 9999px;
  cursor: pointer;
  line-height: 1;
  transition: background 120ms ease, opacity 120ms ease;
  padding: 0 8px;
}

.ws-zoom-btn:hover:not(:disabled) {
  background: var(--fg-overlay-low, rgba(0, 0, 0, 0.08));
}

.ws-zoom-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.ws-zoom-btn--level {
  min-width: 44px;
  min-height: 44px;
  height: 44px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--muted-foreground);
}

.ws-zoom-btn--level:hover {
  color: var(--fg);
}

/* Event Summary Detail Dialog */
.ws-session-detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  padding-top: max(16px, env(safe-area-inset-top));
  padding-right: max(16px, env(safe-area-inset-right));
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  padding-left: max(16px, env(safe-area-inset-left));
  box-sizing: border-box;
}

.ws-session-detail {
  position: relative;
  width: 100%;
  max-width: 490px;
  background: var(--page);
  border: 1px solid var(--hairline-strong, rgba(0, 0, 0, 0.16));
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
  color: var(--fg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: wsDetailIn 140ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .ws-session-detail {
    animation: none;
  }
}

@keyframes wsDetailIn {
  from { opacity: 0; transform: scale(0.96) translateY(6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.ws-session-detail__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--fg) 3%, var(--page));
  gap: 12px;
}

.ws-session-detail__title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ws-session-detail__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ws-session-detail__close {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  box-sizing: border-box;
  border-radius: 6px;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--muted-foreground);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  transition: all 120ms;
}

.ws-session-detail__close:hover {
  background: var(--fg-overlay-low);
  color: var(--fg);
}

.ws-session-detail__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ws-session-detail__grid {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px 14px;
  font-size: 13px;
  align-items: baseline;
}

.ws-session-detail__label {
  color: var(--muted-foreground);
  font-weight: 500;
  text-align: right;
}

.ws-session-detail__val {
  color: var(--fg);
  font-weight: 500;
}

.ws-session-detail__val--time {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.ws-session-detail__val--note {
  color: var(--muted-foreground);
  font-size: 12.5px;
  line-height: 1.4;
}

.ws-session-detail__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--fg) 2%, var(--page));
}

.ws-dialog-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 11px 20px;
  box-sizing: border-box;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid var(--hairline);
  background: var(--page);
  color: var(--fg);
  cursor: pointer;
  transition: all 120ms ease;
  line-height: 1.2;
  text-decoration: none;
}

.ws-dialog-btn:hover {
  background: var(--fg-overlay-low);
  border-color: var(--hairline-strong);
}

/* Forced Colors (High Contrast) Mode for Now Indicators */
@media (forced-colors: active) {
  .ws-sessions-hairline,
  .ws-sessions-axis__now,
  .ws-today,
  .app-axis__today {
    background: Highlight;
  }
  .ws-sessions-hairline::after,
  .ws-today::after,
  .ws-bar-row:first-child .ws-today::after,
  .ws-timeline__list > .ws-bar-row:first-of-type .ws-today::after {
    background: Highlight;
  }
}

.ws-sessions-range--short {
  display: none;
}

@media (max-height: 500px) {
  .app-shell.is-sessions .app-subhead {
    height: auto;
    min-height: 2rem;
  }
  .app-shell.is-sessions .app-axis {
    display: none;
  }
  .ws-sessions-subhead {
    flex-wrap: wrap;
    height: auto;
    min-height: 2rem;
    padding: 4px 52px 4px 12px;
    gap: 6px 12px;
  }
  .ws-sessions {
    overflow-y: auto;
  }
  .ws-sessions__scroll {
    overflow-y: visible;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
    flex: none;
    height: auto;
    min-height: 0;
    padding-bottom: 8px;
  }
  .ws-sessions-zoom-pill {
    position: static;
    transform: none;
    align-self: flex-end;
    margin: 4px 8px calc(4px + env(safe-area-inset-bottom)) auto;
    z-index: 1;
  }
}

@media (max-width: 640px) {
  .app-shell.is-sessions .app-subhead {
    height: auto;
    min-height: 2.75rem;
  }
  .app-shell.is-sessions .app-axis {
    display: none;
  }
  .ws-sessions-subhead {
    flex-wrap: wrap;
    height: auto;
    padding: 4px 52px 4px 12px;
    gap: 6px 12px;
  }
  .ws-sessions-range--full {
    display: none;
  }
  .ws-sessions-range--short {
    display: inline;
  }
  .ws-sessions-subhead__range {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100vw - 110px);
  }
  .ws-sessions-subhead__capacity {
    font-size: 12px;
  }
}

.ws-dialog-btn--primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.app-shell.is-ink-dark .ws-dialog-btn--primary,
html[data-theme="dark"] .ws-dialog-btn--primary,
#ws-session-detail-portal.is-ink-dark .ws-dialog-btn--primary {
  color: #0c0c0e;
}

@media (forced-colors: active) {
  .ws-dialog-btn--primary,
  .app-shell.is-ink-dark .ws-dialog-btn--primary,
  html[data-theme="dark"] .ws-dialog-btn--primary,
  #ws-session-detail-portal.is-ink-dark .ws-dialog-btn--primary {
    background: Highlight;
    border-color: Highlight;
    color: HighlightText;
  }
}

.ws-dialog-btn--primary:hover {
  filter: brightness(1.08);
}


@media (max-width: 767px) {
  .app-shell.is-sessions .app-axis {
    display: none;
  }
}

@media (max-width: 767px) and (orientation: portrait) {
  .app-shell.is-sessions .app-axis {
    display: none;
  }
  /* The installed app hangs from the top at the screen height. Do not cap
     the page at the short viewport: that leaves a black band over the
     timescale and the search field. */
  .app-shell.is-timeline {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: auto;
    max-height: none;
  }

  html.pwa-standalone .app-shell.is-timeline,
  html.pwa-standalone .app-shell.is-timeline:has(.app-rail[data-state="collapsed"]) {
    top: 0;
    bottom: auto;
    height: var(--app-height, 100dvh);
    max-height: none;
  }

  .app-shell.is-timeline .app-timeline {
    position: relative;
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
    padding: 0;
    min-height: 0;
  }

  .app-shell.is-timeline .ws-timeline__rows {
    position: absolute;
    inset: 0;
    flex: none;
    height: auto;
    min-height: 0;
    overflow: clip;
    overscroll-behavior: none;
    touch-action: none;
  }

  .app-shell.is-timeline .ws-timeline__list {
    box-sizing: border-box;
    flex: none;
    min-height: 0;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
    touch-action: none;
  }

  .app-shell.is-timeline .app-timeline * {
    touch-action: none;
  }
}

.app-back {
  position: absolute;
  z-index: 4;
  top: calc(3.5rem + (3.5rem - 34px) / 2);
  right: 16px;
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: color-mix(in oklab, var(--background, var(--page)) 16%, transparent);
  color: var(--fg);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  backdrop-filter: blur(14px) saturate(1.6);
  cursor: pointer;
  pointer-events: auto;
}

.app-back[hidden] {
  display: none !important;
}

.app-shell.is-timeline .app-back {
  grid-column: 2;
  grid-row: 2;
  top: calc((3.5rem - 34px) / 2);
  right: 16px;
}

.app-shell .t-page-slide[data-page="2"] > .t-page[data-page-id="1"],
.app-shell .t-page-slide[data-page="2"] > .t-page[data-page-id="1"] .t-page,
.app-shell .t-page-slide[data-page="1"] > .t-page[data-page-id="2"],
.app-shell .t-page-slide[data-page="1"] > .t-page[data-page-id="2"] .t-page {
  visibility: hidden !important;
  pointer-events: none !important;
}

.app-shell .t-page-slide > .t-page {
  z-index: 0;
  pointer-events: none;
  visibility: hidden;
  transition: transform var(--page-slide-dur) var(--page-slide-ease);
}

.app-shell .t-page-slide[data-page="1"] > .t-page[data-page-id="1"],
.app-shell .t-page-slide[data-page="2"] > .t-page[data-page-id="2"] {
  z-index: 1;
  opacity: 1;
  filter: none;
  pointer-events: auto;
  visibility: visible;
  transition: transform var(--page-slide-dur) var(--page-slide-ease);
  transition-delay: 0s;
}

.app-shell .t-panel-slide {
  transform: none;
  opacity: 1;
  filter: none;
  visibility: hidden;
  pointer-events: none;
  transition: none;
}

.app-shell .t-panel-slide[data-open="true"] {
  visibility: visible;
  pointer-events: auto;
  transform: none;
  opacity: 1;
  filter: none;
  animation: app-panel-in var(--panel-open-dur) var(--panel-ease);
}

@keyframes app-panel-in {
  from { transform: translateY(12px); }
  to { transform: none; }
}

@media (max-width: 767px) {
  .app-back {
    top: calc(3.5rem + (3.5rem - 38px) / 2);
    right: 8px;
    width: 38px;
    height: 38px;
  }

  .app-shell.is-timeline .app-back {
    grid-column: 1;
    top: calc((3.5rem - 38px) / 2);
    right: 8px;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  .app-back {
    top: calc(3.5rem + (3.5rem - 38px) / 2);
    right: 8px;
    width: 38px;
    height: 38px;
  }

  .app-shell.is-timeline .app-back {
    grid-column: 1;
    top: calc((3.5rem - 38px) / 2);
    right: 8px;
  }
}

html.pwa-standalone .app-shell:not(.is-timeline) .app-back {
  top: calc(3.5rem + env(safe-area-inset-top, 0px) + (3.5rem - 34px) / 2);
}

@media (max-width: 767px) {
  html.pwa-standalone .app-shell:not(.is-timeline) .app-back {
    top: calc(3.5rem + env(safe-area-inset-top, 0px) + (3.5rem - 38px) / 2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ws-card,
  .ws-block,
  .ws-layer {
    transition: none;
  }

  .app-shell .t-page-slide > .t-page,
  .app-shell .t-panel-slide[data-open="true"] {
    transition: none;
    animation: none;
  }
}

.ws-dash {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  padding: 24px 16px 48px;
}

.ws-dash .ws-title {
  font-size: 1.5rem;
}

.ws-dash .ws-block p {
  color: var(--foreground, var(--fg));
}

.ws-dash .ws-block p.ws-quiet,
.ws-dash .ws-block p.ws-meta {
  color: var(--muted-foreground);
}

.ws-dash__who {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 12px;
  row-gap: 12px;
  padding-right: 40px;
}

.ws-dash__actions {
  display: flex;
  justify-content: flex-end;
}

.ws-dash__actions .t-like {
  width: 32px;
  height: 32px;
  justify-content: center;
}

.ws-dash__people {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ws-dash__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ws-dash__grid,
.ws-dash__mid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.ws-dash__figures {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
}

.ws-figure {
  margin: 8px 0 0;
}

.ws-figure__label {
  display: block;
  color: var(--muted-foreground);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.ws-figure__value {
  font-size: 1.125rem;
  font-weight: 600;
  white-space: nowrap;
}

.ws-figure__value.ws-due {
  color: var(--destructive);
  font-size: 1.125rem;
}

.ws-slot,
.ws-share {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

.ws-slot + .ws-slot {
  margin-top: 4px;
}

.ws-share {
  padding: 8px 0;
  border-bottom: 1px solid var(--hairline);
}

.ws-share--attended { color: var(--success); }
.ws-share--cancelled { color: var(--destructive); }
.ws-share--break,
.ws-share--unmarked { color: var(--warning); }
.ws-share--ref { color: var(--muted-foreground); }

.ws-dash__doc {
  display: flex;
  width: 100%;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  color: var(--foreground, var(--fg));
  text-align: left;
}

.ws-dash__doc span:first-child {
  color: var(--muted-foreground);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ws-dash__doc:focus-visible,
.ws-dash__history .t-acc-head:focus-visible,
.ws-dash__chips .ws-chip-btn:focus-visible {
  outline: 2px solid var(--foreground, var(--fg));
  outline-offset: 3px;
}

.ws-dash__history h3 {
  margin: 16px 0 4px;
  font-size: 0.8125rem;
  font-weight: 600;
}

@media (min-width: 768px) {
  .ws-dash__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ws-dash__mid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 4-Tier Family Dashboard Enhancements */
.ws-dash__standing-slot {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 6px 0 10px;
}

.ws-dash__pupil-roster {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ws-dash__pupil-item {
  font-size: 0.875rem;
  color: var(--foreground, var(--fg));
}

.ws-dash__pricing-line {
  font-size: 0.8125rem;
  margin: 8px 0 0;
}

.ws-dash__block-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 6px 0 10px;
}

.ws-dash__block-id {
  font-size: 1.125rem;
  font-weight: 600;
}

.ws-dash__teaching-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
}

.ws-dash__progress-stat {
  font-size: 0.9375rem;
}

.ws-dash__renewal-callout,
.ws-dash__next-callout {
  margin: 5px 0;
  font-size: 0.875rem;
  line-height: 1.4;
}

.ws-dash__remaining-line {
  margin-top: 6px;
  font-size: 0.8125rem;
}

.ws-dash__yield-deck {
  width: 100%;
}

.ws-dash__yield-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ws-dash__yield-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px 20px;
}

.ws-figure__sub {
  display: block;
  font-size: 0.75rem;
  margin-top: 3px;
  line-height: 1.3;
}

.ws-figure--wide {
  grid-column: 1 / -1;
}

.ws-figure__value--mix {
  font-size: 0.9375rem;
  font-weight: 500;
}

.ws-yield-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-top: 1px solid var(--hairline);
  padding-top: 12px;
}

.ws-yield-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  text-align: left;
}

.ws-yield-table__head {
  color: var(--muted-foreground);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.6875rem;
  padding: 6px 8px;
  border-bottom: 1px solid var(--hairline);
}

.ws-yield-table__cell {
  padding: 8px;
  border-bottom: 1px solid var(--hairline);
  white-space: nowrap;
}

.ws-yield-table__row.is-current {
  background: color-mix(in srgb, var(--primary) 8%, transparent);
}

.ws-dash__docs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 10px;
}

.ws-dash__doc-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border, var(--hairline));
  background: var(--surface, color-mix(in srgb, var(--page) 92%, var(--fg)));
  color: var(--foreground, var(--fg));
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 150ms ease;
}

.ws-dash__doc-pill:hover {
  background: color-mix(in srgb, var(--page) 82%, var(--fg));
}

.ws-dash__money-actions {
  margin-top: 8px;
}

.ws-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
}

.ws-badge--attended {
  background: color-mix(in srgb, var(--success) 14%, transparent);
  color: var(--success);
}

.ws-badge--break {
  background: color-mix(in srgb, var(--warning) 14%, transparent);
  color: var(--warning);
}

.ws-badge--rescheduled {
  background: color-mix(in srgb, #6366f1 14%, transparent);
  color: #6366f1;
}

.ws-badge--extension {
  background: color-mix(in srgb, #a855f7 14%, transparent);
  color: #a855f7;
}

.ws-badge--unmarked {
  background: color-mix(in srgb, var(--muted-foreground) 14%, transparent);
  color: var(--muted-foreground);
}

.ws-session-table-head {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) minmax(90px, 1.1fr) minmax(100px, 1.2fr) minmax(0, 1.5fr) 90px;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  border-bottom: 1px solid var(--hairline);
}

.ws-session-row {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) minmax(90px, 1.1fr) minmax(100px, 1.2fr) minmax(0, 1.5fr) 90px;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.875rem;
}

@media (max-width: 640px) {
  .ws-session-table-head {
    display: none;
  }

  .ws-session-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

.ws-activity-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ws-activity-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.8125rem;
}

@media (max-width: 767px) {
  .ws-dash {
    padding: 20px 8px 32px 16px;
  }

  .ws-dash__who {
    padding-right: 44px;
  }
}

.app-lines,
.app-hlines {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: none;
  pointer-events: none;
}

.app-main.is-guides.is-grids .app-lines,
.app-main.is-guides.is-hlines .app-hlines {
  display: block;
}

.app-line,
.app-hline {
  position: absolute;
  background: rgba(12, 12, 14, 0.28);
  pointer-events: none;
}

.app-shell.is-ink-dark .app-line,
.app-shell.is-ink-dark .app-hline {
  background: rgba(200, 185, 175, 0.55);
}

.app-line {
  top: 0;
  bottom: 0;
  width: 1px;
}

.app-lines > .app-line:nth-child(1) { left: 0; }
.app-lines > .app-line:nth-child(2) { left: calc(100% / 6); transform: translateX(-50%); }
.app-lines > .app-line:nth-child(3) { left: calc(100% / 3); transform: translateX(-50%); }
.app-lines > .app-line:nth-child(4) { left: 50%; transform: translateX(-50%); }
.app-lines > .app-line:nth-child(5) { left: calc(200% / 3); transform: translateX(-50%); }
.app-lines > .app-line:nth-child(6) { left: calc(500% / 6); transform: translateX(-50%); }
.app-lines > .app-line:nth-child(7) { right: 0; }

.app-hline {
  left: 0;
  right: 0;
  height: 1px;
}

.app-hlines > .app-hline:nth-child(1) { top: 0; }
.app-hlines > .app-hline:nth-child(2) { top: calc(100% / 5); transform: translateY(-50%); }
.app-hlines > .app-hline:nth-child(3) { top: calc(200% / 5); transform: translateY(-50%); }
.app-hlines > .app-hline:nth-child(4) { top: calc(300% / 5); transform: translateY(-50%); }
.app-hlines > .app-hline:nth-child(5) { top: calc(400% / 5); transform: translateY(-50%); }
.app-hlines > .app-hline:nth-child(6) { bottom: 0; }

.app-guides {
  position: absolute;
  z-index: 6;
  right: var(--guide-edge, 0.85rem);
  bottom: var(--guide-foot, 0.85rem);
  display: none;
  gap: 0.35rem;
  pointer-events: none;
}

.app-main.is-guides .app-guides {
  display: flex;
}

.app-grids {
  height: 1.85rem;
  padding: 0 0.7rem;
  border: 0;
  background: transparent;
  color: var(--muted-foreground, #6a5f58);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  pointer-events: auto;
}

.app-grids:hover {
  color: var(--foreground, #0c0c0e);
}

.app-grids[aria-pressed="true"],
.app-grids[aria-pressed="true"]:hover {
  color: #e10600;
}

.app-grids:focus-visible {
  outline: 1px solid #e10600;
  outline-offset: 2px;
}

.ws-history,
.ws-history__entries {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ws-history__lesson {
  margin: 0 0 0.75rem;
}

.ws-history__entry {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: baseline;
  margin: 0.35rem 0 0.35rem 0.25rem;
}

.ws-history__mark {
  width: 0.7rem;
  height: 0.7rem;
  flex: none;
}

.ws-history__tags {
  display: inline-flex;
  gap: 6px;
}

.ws-history__entry:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.ws-money-credit {
  font-variant-numeric: tabular-nums;
  color: var(--muted-foreground);
}

@media (forced-colors: active) {
  .ws-money-credit {
    color: CanvasText;
  }
}

.ws-history__tag {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.ws-history__entry.is-struck {
  color: var(--muted-foreground);
}

.ws-history__sentence {
  white-space: pre-line;
}

.ws-history__why {
  flex: 1 1 100%;
  margin: -0.15rem 0 0;
  color: var(--muted-foreground);
  font-size: 0.85em;
}

.ws-history__entry.is-struck .ws-history__sentence {
  text-decoration: line-through;
}

.ws-text-btn[data-history-more],
.ws-text-btn[data-history-retry] {
  min-height: 44px;
  min-width: 44px;
}

.ws-history__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-main:has(.t-panel-slide[data-open="true"]) .app-guides,
.app-main:has(.ws-photo-glass) .app-guides,
.app-main:has(.ws-photo-glass) .app-lines,
.app-main:has(.ws-photo-glass) .app-hlines {
  visibility: hidden;
}

/* Dashboard session management popover & reschedule box */
.ws-dash-status-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-decoration: none;
}

.ws-dash-manage-panel {
  margin: 0.5rem 0 1rem;
  padding: 1rem;
  background: var(--surface-bg, rgba(255, 255, 255, 0.95));
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ws-dash-manage__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.ws-dash-manage__head h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.ws-dash-manage__warning {
  color: #b45309;
  background: #fef3c7;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  margin: 0 0 0.75rem;
}

.ws-dash-manage__btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.ws-dash-manage__secondary {
  margin-top: 0.5rem;
}

.ws-dash-resched-box,
.ws-mark__resched-box {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.02);
  border: 1px dashed var(--border-color, #cbd5e1);
  border-radius: 6px;
}

.ws-dash-resched-inputs,
.ws-mark__resched-fields {
  display: flex;
  gap: 1rem;
  margin: 0.5rem 0;
}

.ws-dash-resched-inputs label,
.ws-mark__field-lbl {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  font-weight: 500;
}

.ws-dash-resched-radios,
.ws-mark__resched-scope {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0.5rem 0;
  font-size: 0.85rem;
}

.ws-mark__seg--unmark {
  color: #dc2626 !important;
  border-color: #fca5a5 !important;
}

