/* Scholaxy blog widgets: shared styles.
   Every class starts with "sxw-". Colors and radii come from the --sxw-*
   custom properties on .sxw, so the blog can set its own palette on .sxw
   (or any ancestor that redefines these variables). */

.sxw {
  --sxw-accent: #1318FE;
  --sxw-accent-2: #8CFA00;
  --sxw-accent-ink: #ffffff;
  --sxw-text: #242424;
  --sxw-muted: #6b6b6b;
  --sxw-bg: #ffffff;
  --sxw-surface: #f6f7fb;
  --sxw-border: #e3e5ee;
  --sxw-danger: #b42318;
  --sxw-warn-bg: #fff6e5;
  --sxw-warn-border: #f2d39b;
  --sxw-radius: 14px;
  --sxw-radius-sm: 10px;
  color-scheme: light;

  container: sxw / inline-size;
  box-sizing: border-box;
  max-width: 100%;
  margin: 1.75rem 0;
  padding: 18px 16px;
  border: 1px solid var(--sxw-border);
  border-radius: var(--sxw-radius);
  background: var(--sxw-bg);
  color: var(--sxw-text);
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  overflow-wrap: break-word;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .sxw {
    --sxw-accent: #8f94ff;
    --sxw-accent-ink: #0f1020;
    --sxw-text: #ececf1;
    --sxw-muted: #a3a6b4;
    --sxw-bg: #16171d;
    --sxw-surface: #1f2029;
    --sxw-border: #33354a;
    --sxw-danger: #ff8a80;
    --sxw-warn-bg: #2d2615;
    --sxw-warn-border: #6b5526;
    color-scheme: dark;
  }
}
[data-theme="dark"] .sxw {
  --sxw-accent: #8f94ff;
  --sxw-accent-ink: #0f1020;
  --sxw-text: #ececf1;
  --sxw-muted: #a3a6b4;
  --sxw-bg: #16171d;
  --sxw-surface: #1f2029;
  --sxw-border: #33354a;
  --sxw-danger: #ff8a80;
  --sxw-warn-bg: #2d2615;
  --sxw-warn-border: #6b5526;
  color-scheme: dark;
}

.sxw *,
.sxw *::before,
.sxw *::after { box-sizing: border-box; }

.sxw p,
.sxw ul,
.sxw ol,
.sxw li,
.sxw dl,
.sxw dt,
.sxw dd,
.sxw figure { margin: 0; }
.sxw ul,
.sxw ol { padding: 0; list-style: none; }
/* Rules below that set margin or padding on p/ul/ol use ".sxw .sxw-x" so they
   beat the reset above and typical article styles such as ".prose p". */

.sxw a { color: var(--sxw-accent); }
.sxw [hidden] { display: none !important; }

@media (min-width: 600px) {
  .sxw { padding: 22px 24px; }
}

/* Head */
.sxw-head { margin-bottom: 16px; }
.sxw-title {
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.005em;
}
.sxw .sxw-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 6px;
  color: var(--sxw-muted);
  font-size: 0.8125rem;
}
.sxw-note::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 0.42em;
  border-radius: 50%;
  background: var(--sxw-accent-2);
}
.sxw .sxw-hint {
  margin-top: 4px;
  color: var(--sxw-muted);
  font-size: 0.8125rem;
  line-height: 1.4;
}

/* Form fields */
.sxw-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}
@container sxw (min-width: 560px) {
  .sxw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
  .sxw-grid .sxw-span { grid-column: 1 / -1; }
}
.sxw-field { min-width: 0; }
.sxw-label,
.sxw-field > label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}
.sxw-input-wrap { position: relative; }
.sxw-input,
.sxw-select,
.sxw-textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid var(--sxw-border);
  border-radius: var(--sxw-radius-sm);
  background: var(--sxw-bg);
  color: var(--sxw-text);
  font: inherit;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}
.sxw-input[data-suffix] { padding-right: 38px; }
.sxw-textarea { min-height: 88px; resize: vertical; }
.sxw-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.sxw-suffix {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  color: var(--sxw-muted);
  font-size: 0.9375rem;
  pointer-events: none;
}
.sxw-input:hover,
.sxw-select:hover,
.sxw-textarea:hover { border-color: var(--sxw-muted); }
.sxw-input[aria-invalid="true"] { border-color: var(--sxw-danger); }
.sxw .sxw-error {
  margin-top: 4px;
  color: var(--sxw-danger);
  font-size: 0.8125rem;
}
.sxw-error:empty { display: none; }

/* Focus: always visible for keyboard users */
.sxw :focus { outline: none; }
.sxw :focus-visible,
.sxw .sxw-input:focus,
.sxw .sxw-select:focus,
.sxw .sxw-textarea:focus {
  outline: 2px solid var(--sxw-accent);
  outline-offset: 2px;
}
.sxw input[type="checkbox"]:focus-visible { outline-offset: 3px; }

/* Buttons */
.sxw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  margin: 0;
  padding: 6px 14px;
  border: 1px solid var(--sxw-border);
  border-radius: var(--sxw-radius-sm);
  background: var(--sxw-bg);
  color: var(--sxw-text);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
}
.sxw-btn:hover { border-color: var(--sxw-muted); }
.sxw-btn-primary {
  border-color: var(--sxw-accent);
  background: var(--sxw-accent);
  color: var(--sxw-accent-ink);
}
.sxw-btn-primary:hover { border-color: var(--sxw-accent); filter: brightness(1.08); }
.sxw-btn-icon {
  width: 36px;
  min-height: 36px;
  padding: 0;
  font-size: 1rem;
}
.sxw-btn[disabled] { opacity: 0.4; cursor: default; }
.sxw-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

/* Segmented switch */
.sxw-seg {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 16px;
  padding: 4px;
  border-radius: var(--sxw-radius-sm);
  background: var(--sxw-surface);
}
.sxw-seg .sxw-btn {
  flex: 1 1 140px;
  min-height: 36px;
  border-color: transparent;
  background: transparent;
  color: var(--sxw-muted);
}
.sxw-seg .sxw-btn[aria-pressed="true"] {
  border-color: var(--sxw-border);
  background: var(--sxw-bg);
  color: var(--sxw-text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* Results */
.sxw-results {
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--sxw-radius-sm);
  background: var(--sxw-surface);
}
.sxw-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 12px;
}
@container sxw (min-width: 560px) {
  .sxw-stats { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 16px; }
  .sxw-stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.sxw-stat { min-width: 0; }
.sxw-stat-label {
  display: block;
  color: var(--sxw-muted);
  font-size: 0.8125rem;
  line-height: 1.3;
}
.sxw-stat-value {
  display: block;
  margin-top: 2px;
  font-size: 1.5rem;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.sxw-stat-sub {
  display: block;
  margin-top: 2px;
  color: var(--sxw-muted);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}
.sxw-stat-main .sxw-stat-value { color: var(--sxw-accent); }
.sxw .sxw-section-title {
  margin: 22px 0 8px;
  font-size: 0.9375rem;
  font-weight: 650;
}
.sxw-summary {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}
.sxw .sxw-section-title.sxw-first { margin-top: 0; }
.sxw .sxw-callout {
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid var(--sxw-warn-border);
  border-radius: var(--sxw-radius-sm);
  background: var(--sxw-warn-bg);
  font-size: 0.875rem;
  line-height: 1.45;
}
.sxw-callout:empty { display: none; }
.sxw .sxw-callout-ok {
  border-color: var(--sxw-border);
  background: var(--sxw-bg);
}

/* Table */
.sxw-table-wrap { overflow-x: auto; }
.sxw-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}
.sxw-table caption {
  padding-bottom: 6px;
  color: var(--sxw-muted);
  font-size: 0.8125rem;
  text-align: left;
}
.sxw-table th,
.sxw-table td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--sxw-border);
  text-align: left;
  vertical-align: top;
}
.sxw-table th[scope="col"] {
  color: var(--sxw-muted);
  font-size: 0.75rem;
  font-weight: 600;
}
.sxw-table th[scope="row"] { font-weight: 500; }
.sxw-table .sxw-num { text-align: right; white-space: nowrap; }
.sxw-table tr:last-child th,
.sxw-table tr:last-child td { border-bottom: 0; }
.sxw-table tr.sxw-best th,
.sxw-table tr.sxw-best td { font-weight: 650; }

.sxw-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--sxw-accent-2);
  color: #1a2a00;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.5;
  vertical-align: 1px;
  white-space: nowrap;
}
.sxw-badge-muted {
  background: var(--sxw-border);
  color: var(--sxw-text);
}

/* Funnel bars */
.sxw-bars { display: grid; gap: 10px; }
.sxw-bar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: baseline;
  font-size: 0.875rem;
}
.sxw-bar-row .sxw-bar-val {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.sxw-bar-track {
  grid-column: 1 / -1;
  height: 14px;
  border-radius: 999px;
  background: var(--sxw-bg);
  overflow: hidden;
}
.sxw-bar-fill {
  height: 100%;
  min-width: 4px;
  border-radius: 999px;
  background: var(--sxw-accent);
  transition: width 0.25s ease;
}
.sxw-bar-row:nth-child(2) .sxw-bar-fill { opacity: 0.7; }
.sxw-bar-row:nth-child(3) .sxw-bar-fill { background: var(--sxw-accent-2); opacity: 1; }

/* Plain list output (outline, ranking, rules) */
.sxw-outline {
  max-height: 380px;
  overflow-y: auto;
  padding: 12px 14px;
  border: 1px solid var(--sxw-border);
  border-radius: var(--sxw-radius-sm);
  background: var(--sxw-bg);
  font-size: 0.875rem;
}
.sxw .sxw-outline-result { margin-bottom: 10px; font-weight: 600; }
.sxw .sxw-outline-module { margin-top: 10px; font-weight: 650; }
.sxw-outline-module:first-of-type { margin-top: 0; }
.sxw .sxw-outline-lessons { margin: 4px 0 0; padding-left: 16px; list-style: none; }
.sxw-outline-lessons li { padding: 2px 0; color: var(--sxw-text); }
.sxw-outline-lessons li span { color: var(--sxw-muted); }

.sxw-rules {
  display: grid;
  gap: 8px;
  list-style: none;
  font-size: 0.9375rem;
}
.sxw-rules li {
  padding: 10px 12px;
  border-radius: var(--sxw-radius-sm);
  background: var(--sxw-bg);
  line-height: 1.45;
}

.sxw-rank {
  display: grid;
  gap: 6px;
  list-style: none;
  counter-reset: sxw-rank;
}
.sxw .sxw-rank { margin-top: 10px; }
.sxw .sxw-rank + .sxw-summary { margin-top: 12px; }
.sxw-rank li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: baseline;
  padding: 8px 10px;
  border-radius: var(--sxw-radius-sm);
  background: var(--sxw-bg);
  font-size: 0.9375rem;
  counter-increment: sxw-rank;
}
.sxw-rank li::before {
  content: counter(sxw-rank);
  color: var(--sxw-muted);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.sxw-rank .sxw-rank-hours {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Rows of editable cards (CRM stages, automations) */
.sxw-rows { display: grid; gap: 10px; list-style: none; }
.sxw-row {
  padding: 12px;
  border: 1px solid var(--sxw-border);
  border-radius: var(--sxw-radius-sm);
  background: var(--sxw-bg);
}
.sxw-row-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.sxw-row-num {
  flex: none;
  min-width: 26px;
  height: 26px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--sxw-surface);
  color: var(--sxw-muted);
  font-size: 0.8125rem;
  font-weight: 650;
  line-height: 26px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.sxw-row-name { order: 3; flex: 1 1 100%; min-width: 0; font-weight: 600; }
.sxw-row-name .sxw-input { font-weight: 600; }
.sxw-row-tools { display: flex; flex: none; gap: 4px; margin-left: auto; }
.sxw-row-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}
@container sxw (min-width: 560px) {
  .sxw-row-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sxw-row-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  .sxw-row-head .sxw-row-name { order: 0; flex: 1 1 auto; }
}
.sxw-auto-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}
.sxw-auto-grid > :last-child { grid-column: 1 / -1; }
@container sxw (min-width: 560px) {
  .sxw-auto-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sxw-auto-grid > :last-child { grid-column: auto; }
}
.sxw-inline-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}
.sxw-row-out {
  margin-top: 8px;
  color: var(--sxw-muted);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}
.sxw-row-out strong { color: var(--sxw-text); font-weight: 650; }

.sxw .sxw-check-inline {
  display: flex;
  margin: 0;
  font-weight: 500;
  align-items: flex-start;
  gap: 8px;
  min-height: 44px;
  padding-top: 10px;
  font-size: 0.875rem;
  line-height: 1.35;
  cursor: pointer;
}
.sxw-check-inline input,
.sxw-check-item input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--sxw-accent);
  cursor: pointer;
}

/* Checklist */
.sxw-progress {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 12px;
}
.sxw-progress-text {
  font-size: 0.9375rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.sxw-progress-track {
  flex: 1 1 100%;
  order: 3;
  height: 8px;
  border-radius: 999px;
  background: var(--sxw-surface);
  overflow: hidden;
}
.sxw-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--sxw-accent);
  transition: width 0.2s ease;
}
.sxw-progress .sxw-btn { margin-left: auto; min-height: 34px; padding: 4px 12px; }
.sxw-check-list { display: grid; gap: 2px; list-style: none; }
.sxw-check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 6px;
  border-radius: 8px;
}
.sxw-check-item:hover { background: var(--sxw-surface); }
.sxw-check-item label { flex: 1 1 auto; min-width: 0; cursor: pointer; line-height: 1.45; }
.sxw-check-item input { margin-top: 3px; }
.sxw-check-item.sxw-done label { color: var(--sxw-muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.sxw-check-item label code {
  padding: 0 4px;
  border-radius: 4px;
  background: var(--sxw-surface);
  font-size: 0.875em;
}

.sxw .sxw-check-intro { margin-bottom: 12px; }
.sxw .sxw-check-outro { margin-top: 12px; }
.sxw .sxw-check-intro p + p,
.sxw .sxw-check-outro p + p { margin-top: 6px; }
.sxw .sxw-check-saved { margin-top: 10px; }

/* Timeline (email planner) */
.sxw .sxw-timeline {
  position: relative;
  margin-top: 18px;
  display: grid;
  gap: 12px;
  list-style: none;
  padding-left: 22px;
}
.sxw-timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 6px;
  width: 2px;
  border-radius: 2px;
  background: var(--sxw-border);
}
.sxw-tl-item { position: relative; }
.sxw-tl-item::before {
  content: "";
  position: absolute;
  top: 16px;
  left: -21px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--sxw-accent);
  border-radius: 50%;
  background: var(--sxw-bg);
}
.sxw-tl-item.sxw-offer::before { background: var(--sxw-accent); }
.sxw-tl-item.sxw-off::before { border-color: var(--sxw-border); }
.sxw-tl-card {
  padding: 12px;
  border: 1px solid var(--sxw-border);
  border-radius: var(--sxw-radius-sm);
  background: var(--sxw-bg);
}
.sxw-tl-item.sxw-off .sxw-tl-body { opacity: 0.45; }
.sxw-tl-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-bottom: 8px;
}
.sxw-tl-day {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
}
.sxw-tl-day .sxw-input { width: 72px; min-height: 36px; padding: 4px 8px; }
.sxw-tl-top .sxw-check-inline { min-height: 0; padding-top: 0; }
.sxw-tl-subject { font-weight: 650; line-height: 1.35; }
.sxw .sxw-tl-meta { display: grid; gap: 4px; margin-top: 6px; font-size: 0.875rem; }
.sxw-tl-meta dt { color: var(--sxw-muted); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.sxw-tl-meta dd + dt { margin-top: 4px; }

/* Utility */
.sxw-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.sxw-offscreen { position: fixed; top: 0; left: -9999px; opacity: 0; }
.sxw-copy { display: contents; }
.sxw .sxw-copy-box { flex: 1 1 100%; margin-top: 4px; }
.sxw-muted { color: var(--sxw-muted); }
.sxw-num-text { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .sxw-bar-fill,
  .sxw-progress-fill { transition: none; }
}

/* Radio questions (lead magnet picker) */
.sxw-questions { display: grid; gap: 16px; }
.sxw .sxw-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.sxw .sxw-legend {
  display: block;
  margin: 0 0 8px;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}
.sxw-choices {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}
@container sxw (min-width: 560px) {
  .sxw-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sxw-choices-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container sxw (min-width: 760px) {
  .sxw-choices-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.sxw .sxw-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--sxw-border);
  border-radius: var(--sxw-radius-sm);
  background: var(--sxw-bg);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
}
.sxw-choice:hover { border-color: var(--sxw-muted); }
.sxw-choice:has(input:checked) {
  border-color: var(--sxw-accent);
  background: var(--sxw-surface);
}
.sxw-choice input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--sxw-accent);
  cursor: pointer;
}
.sxw .sxw-choice input:focus-visible { outline-offset: 3px; }

/* Recommendation cards */
.sxw .sxw-recs {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  list-style: none;
}
.sxw-rec {
  padding: 12px 14px;
  border: 1px solid var(--sxw-border);
  border-radius: var(--sxw-radius-sm);
  background: var(--sxw-bg);
}
.sxw-rec-best { border-color: var(--sxw-accent); }
.sxw-rec-title { font-weight: 650; line-height: 1.35; }
.sxw .sxw-rec-note { margin-top: 10px; }

/* Warning list (segment planner) */
.sxw .sxw-warn-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding: 10px 12px 10px 30px;
  border: 1px solid var(--sxw-warn-border);
  border-radius: var(--sxw-radius-sm);
  background: var(--sxw-warn-bg);
  list-style: disc;
  font-size: 0.875rem;
  line-height: 1.45;
}

/* Webinar timeline */
.sxw-wbar {
  display: flex;
  gap: 2px;
  height: 22px;
  border-radius: 6px;
  overflow: hidden;
}
.sxw-wbar-seg { flex: 1 1 0; min-width: 3px; }
.sxw-k-intro { background: var(--sxw-muted); opacity: 0.45; }
.sxw-k-teach { background: var(--sxw-accent); }
.sxw-k-teach.sxw-k-alt { opacity: 0.7; }
.sxw-k-offer { background: var(--sxw-accent-2); }
.sxw-k-qa { background: var(--sxw-muted); }
.sxw-wbar-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  color: var(--sxw-muted);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}
.sxw .sxw-agenda {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  list-style: none;
}
.sxw-agenda li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px 12px;
  padding: 8px 10px;
  border-radius: var(--sxw-radius-sm);
  background: var(--sxw-bg);
  font-size: 0.875rem;
  line-height: 1.4;
}
@container sxw (min-width: 480px) {
  .sxw-agenda li { grid-template-columns: 96px minmax(0, 1fr); }
}
.sxw-agenda-time {
  color: var(--sxw-muted);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.sxw-agenda-body { min-width: 0; }
.sxw-agenda-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 650;
}
.sxw-agenda-note { display: block; color: var(--sxw-muted); }
.sxw-swatch {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 3px;
}
.sxw .sxw-wnotes .sxw-callout { margin-top: 10px; }
.sxw .sxw-wplan .sxw-timeline { margin-top: 10px; }
.sxw .sxw-wplan .sxw-hint + .sxw-timeline { margin-top: 10px; }
.sxw-wplan .sxw-tl-subject { margin-bottom: 2px; }
.sxw-wplan .sxw-tl-top { margin-bottom: 4px; }

/* Wrapping one-line text (segment planner) */
.sxw .sxw-textarea-auto {
  min-height: 44px;
  overflow: hidden;
  resize: none;
  font-variant-numeric: normal;
  line-height: 1.4;
}
.sxw .sxw-check-ok { color: var(--sxw-muted); font-size: 0.9375rem; }
