/* Schedule wizard redesign (UTI-156), exported from the approved prototype on 2026-11-23. Class names carry the wzr- prefix so they cannot meet the live .wz-* rules. */
.wzr {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #fcfbfe;
  --line: #e9e4f2;
  --line-strong: #d3cbe6;
  --ink: #18122b;
  --ink-soft: #5b5768;
  --ink-faint: #8a8598;
  --primary: #49338d;
  --primary-hover: #3a2873;
  --primary-ink: #ffffff;
  --tint: #f2effa;
  --tint-2: #e7e1f4;
  --ok: #2f7d4f;
  --ok-tint: #e7f4ec;
  --warn: #7a5f0e;
  --warn-tint: #fbf1d3;
  --danger: #b4352b;
  --danger-tint: #fbe8e6;
  --busy: #ece8f3;
  --proto: #18122b;
  --proto-ink: #f3f1ec;
  --proto-accent: #e0d394;
  --scrim: rgba(24, 18, 43, 0.42);
  --shadow-lift: 0 2px 6px rgba(24, 18, 43, 0.1), 0 22px 50px rgba(24, 18, 43, 0.18);
  --font: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Recurse", "Playfair Display", "Iowan Old Style", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 12px;
  --ring: 0 0 0 3px color-mix(in srgb, var(--primary) 40%, transparent);
  color-scheme: light;
}
.wzr, .wzr * { box-sizing: border-box; }
.wzr [hidden] { display: none !important; }
.wzr { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 14px; line-height: 1.5; }
.wzr button, .wzr input, .wzr select, .wzr textarea { font: inherit; color: inherit; }
.wzr :focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
.wzr h1, .wzr h2, .wzr h3 { text-wrap: balance; margin: 0; }
.wzr-num { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
.wzr, .wzr * { animation: wzr-none !important; transition: none !important; }
}
.wzr { min-height: calc(100vh - 44px); display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; background: var(--bg); }
.wzr-bar { display: flex; align-items: center; gap: 14px; padding-block: 12px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.wzr-who { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.wzr-av { width: 32px; height: 32px; border-radius: 50%; background: var(--tint-2); color: var(--primary); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.wzr-av.wzr-sm { width: 24px; height: 24px; font-size: 10px; }
.wzr-who b { display: block; font-size: 15px; }
.wzr-who span { color: var(--ink-soft); font-size: 13px; }
.wzr-x-close { border: 1px solid transparent; background: none; width: 36px; height: 36px; border-radius: 8px; font-size: 18px; line-height: 1; color: var(--ink-soft); cursor: pointer; display: grid; place-items: center; }
.wzr-x-close:hover { background: var(--tint); color: var(--ink); }
.wzr-x-close:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.wzr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px; padding: 8px 16px; cursor: pointer; font-weight: 600; white-space: nowrap; }
.wzr-btn:hover { background: var(--surface-2); }
.wzr-btn.wzr-pri { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); border-radius: 10px; padding: 10px 20px; }
.wzr-btn.wzr-pri:hover { background: var(--primary-hover); }
.wzr-btn.wzr-pri:disabled { background: var(--tint-2); border-color: var(--tint-2); color: var(--ink-faint); cursor: not-allowed; }
.wzr-btn.wzr-quiet { border-color: transparent; background: transparent; color: var(--primary); }
.wzr-btn.wzr-quiet:hover { background: var(--tint); }
.wzr-btn.wzr-sm { padding: 4px 10px; font-size: 13px; }
.wzr-link { background: none; border: 0; padding: 0; color: var(--primary); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.wzr-steps { display: flex; justify-content: center; gap: 6px; margin: 0; list-style: none; padding-block: 12px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); border-bottom: 1px solid var(--line); background: var(--surface-2); flex-wrap: wrap; }
.wzr-steps li { display: flex; align-items: center; gap: 6px; }
.wzr-steps li + li::before { content: ""; width: clamp(12px, 4vw, 48px); height: 1px; background: var(--line-strong); }
.wzr-steps li.wzr-done + li::before { background: var(--primary); }
.wzr-st { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-faint); font-weight: 500; background: none; border: 0; padding: 2px 4px; }
button.wzr-st { cursor: pointer; }
button.wzr-st:hover { color: var(--ink); }
.wzr-st i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.wzr-now .wzr-st { color: var(--ink); font-weight: 600; }
.wzr-now .wzr-st i { background: var(--primary); color: #fff; box-shadow: none; }
.wzr-done .wzr-st { color: var(--ink-soft); }
.wzr-done .wzr-st i { background: var(--tint); color: var(--primary); box-shadow: inset 0 0 0 1.5px var(--primary); }
.wzr-sent .wzr-st i { background: var(--ok-tint); color: var(--ok); box-shadow: inset 0 0 0 1.5px var(--ok); }
.wzr-steps-n { display: none; }
.wzr-body { overflow-y: auto; }
.wzr-col { width: min(100%, 62rem); margin: 0 auto; padding-block: clamp(20px, 4vh, 40px) 40px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: flex; flex-direction: column; gap: 20px; animation: wzr-fwd 240ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.wzr-col.wzr-narrow { width: min(100%, 44rem); }
@keyframes wzr-fwd { from { opacity: .4; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.wzr-q { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 2.6vw, 2.15rem); line-height: 1.12; letter-spacing: -0.01em; }
.wzr-hint { color: var(--ink-soft); margin: 6px 0 0; font-size: 15px; max-width: 62ch; }
.wzr-flabel { display: block; font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.wzr-input { width: 100%; border: 1px solid var(--line-strong); border-radius: 8px; padding: 9px 12px; background: var(--surface); }
.wzr-input:focus { border-color: var(--primary); box-shadow: var(--ring); outline: none; }
.wzr-foot { position: sticky; bottom: 0; display: flex; align-items: center; gap: 12px; padding-block: 12px calc(12px + env(safe-area-inset-bottom, 0px)); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); border-top: 1px solid var(--line); background: var(--surface); box-shadow: 0 -8px 20px -16px rgba(24, 18, 43, 0.35); flex-wrap: wrap; z-index: 5; }
.wzr-foot-s { flex: 1; min-width: 200px; }
.wzr-foot-s b { display: block; font-size: 15px; }
.wzr-foot-s span { color: var(--ink-soft); font-size: 13px; }
.wzr-foot-s span.wzr-bad { color: var(--danger); }
.wzr-when { display: grid; grid-template-columns: 17rem minmax(0, 1fr); gap: 28px; align-items: start; }
.wzr-picker { position: relative; }
.wzr-chips { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.wzr-chip { display: flex; align-items: center; gap: 8px; border: 1px solid var(--primary); background: var(--tint); border-radius: 10px; padding: 6px 8px; min-width: 0; }
.wzr-chip > span:not(.wzr-av) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.wzr-chip button { border: 0; background: none; cursor: pointer; color: var(--ink-soft); width: 24px; height: 24px; border-radius: 6px; }
.wzr-chip button:hover { background: var(--tint-2); color: var(--ink); }
.wzr-results { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: var(--shadow-lift); z-index: 8; padding: 4px; max-height: 280px; overflow-y: auto; }
.wzr-res { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; border: 0; background: none; padding: 8px; border-radius: 8px; cursor: pointer; }
.wzr-res:hover, .wzr-res[aria-selected="true"] { background: var(--tint); }
.wzr-res b { display: block; font-weight: 600; }
.wzr-res small { color: var(--ink-faint); font-size: 12px; }
.wzr-res mark { background: color-mix(in srgb, var(--proto-accent) 70%, transparent); color: inherit; border-radius: 2px; }
.wzr-noresult { padding: 10px; color: var(--ink-soft); font-size: 13px; }
.wzr-seg { display: inline-flex; background: var(--tint); border-radius: 10px; padding: 3px; gap: 2px; }
.wzr-seg button { white-space: nowrap; border: 0; background: none; padding: 6px 11px; border-radius: 8px; cursor: pointer; color: var(--ink-soft); font-weight: 500; }
.wzr-seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(24,18,43,.12); font-weight: 600; }
.wzr-legend { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; color: var(--ink-soft); font-size: 13px; }
.wzr-legend span { display: flex; align-items: center; gap: 8px; }
.wzr-legend i { width: 14px; height: 10px; border-radius: 3px; display: inline-block; }
.wzr-week-h { display: flex; justify-content: flex-start; align-items: center; gap: 6px; margin-bottom: 8px; font-weight: 600; }
.wzr-week-h .wzr-wl { margin-left: 6px; font-size: 15px; }
.wzr-week-h .wzr-today-b { border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; width: auto; height: 30px; padding: 0 12px; border-radius: 8px; margin-right: 4px; }
.wzr-week-h .wzr-today-b:disabled { color: var(--ink-faint); border-color: var(--line); }
.wzr-week-h button { border: 0; background: none; cursor: pointer; font-size: 18px; color: var(--primary); width: 28px; height: 28px; border-radius: 6px; }
.wzr-week-h button:disabled { color: var(--line-strong); cursor: default; }
.wzr-gridwrap { overflow: auto; max-height: clamp(280px, calc(100vh - 360px), 560px); border: 1px solid var(--line); border-radius: var(--radius); overscroll-behavior: contain; }
.wzr-grid { display: grid; grid-template-columns: 52px minmax(78px, .7fr) repeat(5, minmax(84px, 1fr)) minmax(78px, .7fr); min-width: 640px; }
.wzr-gh { padding: 8px 10px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); font-weight: 600; font-size: 13px; position: sticky; top: 0; background: var(--surface); }
.wzr-gh small { display: block; color: var(--ink-faint); font-weight: 400; }
.wzr-gh { text-align: center; z-index: 4; }
.wzr-tz { position: sticky; top: 0; left: 0; z-index: 5; background: var(--surface); }
.wzr-hr { position: sticky; left: 0; z-index: 3; background: var(--surface); }
.wzr-cell.wzr-off:not(.wzr-busy):not(.wzr-pick):not(.wzr-past) { background: var(--weekend); }
.wzr-wk-hint { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--ink-soft); }
.wzr-gh .wzr-wd { display: block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.wzr-gh .wzr-dn { display: inline-grid; place-items: center; min-width: 30px; height: 30px; margin-top: 2px; border-radius: 999px; font-size: 17px; font-weight: 600; }
.wzr-gh.wzr-today .wzr-wd { color: var(--primary); }
.wzr-gh.wzr-today .wzr-dn { background: var(--primary); color: #fff; }
.wzr-gh.wzr-gone { color: var(--ink-faint); }
.wzr-gh.wzr-gone .wzr-wd, .wzr-gh.wzr-gone .wzr-dn { color: var(--ink-faint); }
.wzr-gh.wzr-sel:not(.wzr-today) .wzr-dn { color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary); }
.wzr { --weekend: #f1f1f3; }
.wzr-gh.wzr-we, .wzr-cell.wzr-we:not(.wzr-busy):not(.wzr-pick):not(.wzr-past) { background: var(--weekend); }
.wzr-tz { font-size: 10px; color: var(--ink-faint); padding: 10px 4px; border-bottom: 1px solid var(--line); }
.wzr-hr { font-size: 11px; color: var(--ink-faint); padding: 0 6px; height: 22px; text-align: right; }
.wzr-cell { height: 22px; border-left: 1px solid var(--line); border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); position: relative; background: var(--surface); padding: 0; border-right: 0; border-bottom: 0; cursor: pointer; }
.wzr-cell:hover:not(:disabled) { background: var(--tint); }
.wzr-cell:disabled { cursor: default; }
.wzr-cell.wzr-we.wzr-past, .wzr-cell.wzr-past { background: repeating-linear-gradient(-45deg, var(--surface-2), var(--surface-2) 4px, var(--busy) 4px, var(--busy) 5px); }
.wzr-cell.wzr-busy { background: var(--busy); }
.wzr-cell.wzr-busy::after { content: attr(data-who); position: absolute; left: 4px; top: 2px; font-size: 10px; color: var(--ink-soft); }
.wzr-cell.wzr-pick.wzr-first::before { content: ""; position: absolute; left: 2px; right: 2px; top: 0; height: var(--h); background: var(--primary); border-radius: 5px; z-index: 2; box-shadow: 0 1px 3px rgba(24,18,43,.25); }
.wzr-cell.wzr-pick.wzr-first::after { content: "✓ " attr(data-label); position: absolute; left: 8px; top: 3px; z-index: 3; font-size: 11px; color: #fff; font-weight: 600; white-space: nowrap; }
.wzr-empty-week { padding: 32px; text-align: center; color: var(--ink-soft); }
.wzr-sheet { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 20px; display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 18px; }
.wzr-cal { border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; text-align: center; height: max-content; }
.wzr-cal b { display: block; background: var(--primary); color: #fff; font-size: 12px; padding: 3px 0; }
.wzr-cal strong { display: block; font-family: var(--display); font-size: 30px; line-height: 1.2; padding-top: 4px; }
.wzr-cal small { display: block; color: var(--ink-soft); padding-bottom: 6px; }
.wzr-when-line { font-weight: 700; font-size: 18px; margin-bottom: 10px; }
.wzr-rows { display: grid; grid-template-columns: 9rem minmax(0, 1fr) auto; gap: 10px 14px; align-items: baseline; }
.wzr-rows dt { color: var(--ink-soft); }
.wzr-rows dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.wzr-rows .wzr-act { justify-self: end; }
.wzr-fixed { color: var(--ink-faint); font-size: 12px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.wzr-muted { color: var(--ink-soft); }
.wzr-bad { color: var(--danger); font-weight: 600; }
.wzr-callout { border-radius: 10px; padding: 12px 14px; display: flex; gap: 12px; align-items: flex-start; }
.wzr-callout.wzr-warn { background: var(--danger-tint); color: var(--ink); }
.wzr-callout.wzr-warn b { color: var(--danger); }
.wzr-callout.wzr-info { background: var(--warn-tint); }
.wzr-callout p { margin: 2px 0 8px; }
.wzr-seq { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.wzr-seq li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 14px 16px; align-items: start; }
.wzr-seq li + li { border-top: 1px dashed var(--line-strong); }
.wzr-seq li > i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 13px; }
.wzr-seq li.wzr-now > i { background: var(--primary); color: #fff; }
.wzr-seq li.wzr-next > i { background: var(--surface); color: var(--ink-soft); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.wzr-seq li.wzr-off > i { background: var(--surface-2); color: var(--ink-faint); box-shadow: inset 0 0 0 1.5px var(--line); }
.wzr-seq li.wzr-ok > i { background: var(--ok-tint); color: var(--ok); }
.wzr-seq .wzr-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
.wzr-seq li.wzr-now .wzr-tag { color: var(--primary); }
.wzr-seq b { display: block; font-size: 15px; }
.wzr-seq p { margin: 2px 0 0; color: var(--ink-soft); }
.wzr-addmail { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.wzr-addmail .wzr-input { flex: 1; min-width: 180px; }
.wzr-inv-grid { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 20px; align-items: start; }
.wzr-order { position: sticky; top: 56px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.wzr-order .wzr-flabel { margin: 0; padding: 14px 16px 0; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.wzr-order .wzr-seq { border: 0; border-radius: 0; }
@media (max-width: 900px) {
.wzr-inv-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.wzr-order { order: -1; position: static; }
.wzr-order .wzr-flabel { display: none; }
.wzr-order .wzr-seq li { padding: 8px 12px; align-items: center; }
.wzr-order .wzr-seq li > i { width: 22px; height: 22px; font-size: 11px; }
.wzr-order .wzr-seq p { display: none; }
.wzr-order .wzr-seq b { font-size: 14px; }
}
@media (max-height: 820px) {
.wzr-col { padding-block: 16px 24px; gap: 14px; }
.wzr-q { font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
.wzr-hint { font-size: 14px; }
.wzr-sheet { padding: 16px; }
.wzr-rows { gap: 6px 14px; }
.wzr-when-line { margin-bottom: 6px; }
}
.wzr-done-strip { display: flex; gap: 12px; align-items: flex-start; background: var(--ok-tint); border-radius: var(--radius); padding: 12px 16px; }
.wzr-done-strip > i { width: 26px; height: 26px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 13px; flex: none; margin-top: 1px; }
.wzr-done-strip b { display: block; }
.wzr-done-strip span { color: var(--ink-soft); font-size: 13px; }
.wzr-mailgrid { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: 20px; align-items: start; }
.wzr-mail { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.wzr-mrow { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); align-items: center; }
.wzr-mrow > :first-child { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.wzr-mrow input, .wzr-mrow select { border: 0; padding: 4px 0; background: transparent; width: 100%; font-weight: 600; }
.wzr-mrow select { font-weight: 500; }
.wzr-mail textarea { width: 100%; border: 0; padding: 14px 16px; min-height: 230px; resize: vertical; line-height: 1.7; background: transparent; }
.wzr-check { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.wzr-check h4 { margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); font-weight: 500; }
.wzr-check div b { display: block; }
.wzr-check div span { color: var(--ink-soft); font-size: 12px; }
.wzr-final { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.wzr-note { font-size: 13px; color: var(--ink-soft); background: var(--surface-2); border: 1px dashed var(--line-strong); border-radius: 10px; padding: 10px 12px; }
.wzr-cands { display: flex; flex-direction: column; gap: 6px; }
.wzr-cand { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 10px 12px; cursor: pointer; }
.wzr-cand:hover { border-color: var(--primary); background: var(--tint); }
.wzr-cand b { display: block; }
.wzr-cand small { color: var(--ink-soft); }
.wzr-pill { font-family: var(--mono); font-size: 11px; background: var(--tint); color: var(--primary); border-radius: 4px; padding: 1px 6px; margin-left: 6px; }
@media (max-width: 860px) {
.wzr-when, .wzr-mailgrid { grid-template-columns: minmax(0, 1fr); }
.wzr-rows { grid-template-columns: minmax(0, 1fr) auto; }
.wzr-rows dt { grid-column: 1 / -1; margin-bottom: -8px; font-size: 12px; }
.wzr-sheet { grid-template-columns: minmax(0, 1fr); }
.wzr-cal { width: 74px; }
}
@media (max-width: 640px) {
.wzr-steps li:not(.wzr-now) .wzr-st span { display: none; }
}

/* The candidate rows mark the typed words as the interviewer results do, with no browser yellow. */
.wzr-cand mark { background: color-mix(in srgb, var(--proto-accent) 70%, transparent); color: inherit; border-radius: 2px; }

/* The app takes the design's page over the whole window, as the wizard it replaces does. */
html:has(.wzr), html:has(.wzr) body { overflow: hidden; }
.wzr { position: fixed; inset: 0; z-index: 60; min-height: 0; }
/* The script focuses the heading as each step arrives; it is not a control, so it draws no ring. */
.wzr-q:focus-visible { box-shadow: none; }

/* The app's own week (.sx-week), drawn to the prototype's look: every mode's week takes these rules. */
.wz { --surface: #fff; --line: #e9e4f2; --line-strong: #d3cbe6; --ink: #18122b; --ink-soft: #5b5768; --ink-faint: #8a8598; --primary: #49338d; --tint: #f2effa; --busy: #ece8f3; --weekend: #f1f1f3; --radius: 12px; }
:is(.wz, .wzr) .sx-week { --rh: 22px; min-width: 640px; max-height: none; min-height: 0; overflow: visible; border: 0; border-radius: 0; background: var(--surface); grid-template-columns: 52px minmax(78px, .7fr) repeat(5, minmax(84px, 1fr)) minmax(78px, .7fr); }
:is(.wz, .wzr) .sx-week__corner { z-index: 5; left: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 4px; font-size: 10px; font-weight: 400; color: var(--ink-faint); align-items: flex-start; }
:is(.wz, .wzr) .sx-week__dh { z-index: 4; display: flex; flex-direction: column; align-items: center; padding: 8px 10px; line-height: 1.5; background: var(--surface); border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink); font-size: 13px; font-weight: 600; text-align: center; }
:is(.wz, .wzr) .sx-week__dh--we { background: var(--weekend); }
.wzr-wd { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.wzr-dn { display: inline-grid; place-items: center; min-width: 30px; height: 30px; margin-top: 2px; border-radius: 999px; font-size: 17px; font-weight: 600; }
.sx-week__dh--today .wzr-wd { color: var(--primary); }
.sx-week__dh--today .wzr-dn { background: var(--primary); color: #fff; }
.sx-week__dh--gone .wzr-wd, .sx-week__dh--gone .wzr-dn { color: var(--ink-faint); }
.sx-week__dh--on:not(.sx-week__dh--today) .wzr-dn { color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary); }
:is(.wz, .wzr) .sx-week__gut span { right: auto; left: 0; width: 100%; box-sizing: border-box; padding: 0 6px; text-align: right; font-size: 11px; color: var(--ink-faint); transform: none; background: var(--surface); }
:is(.wz, .wzr) .sx-week__gut span:first-child { top: 0 !important; }
:is(.wz, .wzr) .sx-week__gut { position: sticky; left: 0; z-index: 3; background: var(--surface); }
:is(.wz, .wzr) .sx-week__col { border-left: 1px solid var(--line); background-color: var(--weekend); background-image: linear-gradient(to bottom, color-mix(in srgb, var(--line) 60%, transparent) 1px, transparent 1px); background-size: 100% var(--rh); }
:is(.wz, .wzr) .sx-free { left: 0; right: 0; border-radius: 0; box-shadow: none; background-color: var(--surface); background-image: linear-gradient(to bottom, color-mix(in srgb, var(--line) 60%, transparent) 1px, transparent 1px); background-size: 100% var(--rh); background-position: 0 0; }
:is(.wz, .wzr) .sx-week__col--we .sx-free { background-color: var(--weekend); }
:is(.wz, .wzr) .sx-busy { left: 0; right: 0; display: block; padding: 2px 4px; border: 0; border-radius: 0; background: linear-gradient(to bottom, color-mix(in srgb, var(--line) 60%, transparent) 1px, transparent 1px) 0 0 / 100% var(--rh), var(--busy); font-size: 10px; line-height: 1.3; color: var(--ink-soft); }
:is(.wz, .wzr) .sx-busy b { display: inline; font-weight: 400; color: inherit; }
:is(.wz, .wzr) .sx-busy--off { background: transparent; color: transparent; }
:is(.wz, .wzr) .sx-busy--gone { background: linear-gradient(to bottom, color-mix(in srgb, var(--line) 60%, transparent) 1px, transparent 1px) 0 0 / 100% var(--rh), repeating-linear-gradient(-45deg, var(--surface-2, #fcfbfe), var(--surface-2, #fcfbfe) 4px, var(--busy) 4px, var(--busy) 5px); }
:is(.wz, .wzr) .sx-slot { left: 2px; right: 2px; }
:is(.wz, .wzr) .sx-pick { left: 2px; right: 2px; border-radius: 5px; font-size: 11px; font-weight: 600; white-space: nowrap; gap: 4px; padding: 3px 0 0 6px; align-items: flex-start; }
:is(.wz, .wzr) .sx-pick--one { box-shadow: 0 1px 3px rgba(24, 18, 43, 0.25); }
.sx-week__col--we .sx-pick__to { display: none; }
.wz .wzr-week-h { margin-bottom: 8px; }

.wzr-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The email step's controls the prototype's drawing leaves out: send later, the send log, the formatting editor. */
.wzr-mailgrid .wzr-mail { grid-column: 1; grid-row: 1; }
.wzr-mailgrid .wzr-check { grid-column: 2; grid-row: 1 / span 2; }
.wzr-mailgrid .wzr-sendlog { grid-column: 1; grid-row: 2; }
@media (max-width: 860px) {
.wzr-mailgrid .wzr-check { grid-column: 1; grid-row: auto; }
.wzr-mailgrid .wzr-sendlog { grid-row: auto; }
}
.wzr-ed.rec-apx-ed { display: block; border: 0; border-radius: 0; box-shadow: none; }
.wzr .wzr-ed.rec-apx-ed .rec-apx-ed__bar { opacity: 1; visibility: visible; overflow: visible; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.wzr-ed .rec-apx-ed__in { border-top: 0; padding: 6px 12px; }
.wzr-ed .rec-apx-ed__b[aria-pressed="true"] { background: var(--tint-2); color: var(--primary); }
.wzr-ed-doc.rec-apx-ed__doc { min-height: 230px; max-height: 24rem; padding: 14px 16px; font-size: 14px; line-height: 1.7; }
.wzr-sendlog { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.wzr-sendlog h4 { margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); font-weight: 500; }
.wzr-sendlog p { margin: 0; color: var(--ink-soft); font-size: 13px; }
.wzr-sendlog-rows { margin: 0; padding: 0; list-style: none; }
.wzr-sendlog-row { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.wzr-sendlog-row:first-child { border-top: 0; }
.wzr-sendlog-row .wzr-pill { margin-left: 0; flex: none; }
.wzr-sendlog-what { display: flex; flex-direction: column; gap: 2px; min-width: 0; align-items: flex-start; }
.wzr-sendlog-what span { color: var(--ink-soft); font-size: 12px; overflow-wrap: anywhere; }
.wzr-sendlater { display: inline-flex; align-items: stretch; gap: 0; }
.wzr-sendlater .wzr-btn.wzr-sl-go { border-top-right-radius: 0; border-bottom-right-radius: 0; margin: 0; }
.wzr-sl-when { position: relative; display: flex; margin: 0; }
.wzr-sendlater .wzr-sl-when > summary.wzr-btn { list-style: none; margin: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; border-left-color: color-mix(in srgb, var(--primary-ink) 35%, var(--primary)); padding-inline: 12px; }
.wzr-sl-when > summary::-webkit-details-marker { display: none; }
.wzr-sl-menu { position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 10; min-width: 16rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lift); padding: 6px; display: flex; flex-direction: column; }
.wzr-sl-menu > button { border: 0; background: none; text-align: left; padding: 8px 10px; border-radius: 6px; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; }
.wzr-sl-menu > button span { color: var(--ink-soft); }
.wzr-sl-menu > button:hover { background: var(--tint); }
.wzr-sl-k { margin: 6px 10px; font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.wzr-sl-pick { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; padding: 8px 10px 4px; border-top: 1px solid var(--line); font-size: 13px; }
.wzr-sl-note { margin: 4px 10px 6px; font-size: 12px; line-height: 1.4; color: var(--ink-soft); }

/* The frame (bar, steps, foot) every mode shares, drawn inside the other modes' older .wz root. */
.wz { --surface-2: #fcfbfe; --tint-2: #e7e1f4; --primary-hover: #3a2873; --primary-ink: #fff; --danger: #b4352b; --ring: 0 0 0 3px color-mix(in srgb, var(--primary) 40%, transparent); --font: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; --ok: #2f7d4f; --ok-tint: #e7f4ec; }
.wz :is(.wzr-bar, .wzr-steps, .wzr-foot) { font-family: var(--font); font-size: 14px; line-height: 1.5; color: var(--ink); }
.wz :is(.wzr-bar, .wzr-steps, .wzr-foot) :is(button, input) { font: inherit; }
.wz :is(.wzr-bar, .wzr-steps, .wzr-foot) *:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
.wz .wzr-x-close:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; box-shadow: none; }
.wz .wzr-foot-s span[data-refused] { color: var(--danger); }
.wz .wzr-foot .sx-send { display: inline-flex; }
.wz .wzr-foot .sx-send .wzr-btn:first-child { border-radius: 10px 0 0 10px; }
.wz .wzr-foot .sx-send .wzr-btn:last-child { border-radius: 0 10px 10px 0; padding: 10px 14px; }
.wz .wzr-bar { view-transition-name: wz-bar; }
.wz .wzr-steps { view-transition-name: wz-steps; }
.wz .wzr-foot { view-transition-name: wz-foot; }
.wz[aria-busy="true"] .wzr-foot-s { opacity: 0.6; transition: opacity 0.15s ease 0.12s; }
/* The template row reads as an inline picker: its text lines up with the other rows' values, the chevron
   follows the name, and the link to the template library sits quietly at the row's end. */
.wzr-mrow .wzr-tplc { display: flex; align-items: center; gap: 12px; min-width: 0; }
.wzr-mrow .wzr-tplc select { appearance: none; -webkit-appearance: none; field-sizing: content; width: auto; max-width: 100%; min-width: 0; padding: 4px 22px 4px 0; margin: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235b5768' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 4px center; text-overflow: ellipsis; cursor: pointer; }
.wzr-mrow .wzr-tplc .wzr-link { margin-left: auto; flex: none; font-size: 12px; font-weight: 500; color: var(--ink-soft); text-decoration-color: var(--line-strong); }
.wzr-mrow .wzr-tplc .wzr-link:hover { color: var(--primary); text-decoration-color: currentColor; }
/* A link drawn as a button (the scheduled dialog's Send Confirmation, Not Now) looks exactly like the button:
   no link colour, no underline, in any state. */
a.wzr-btn, a.wzr-btn:is(:visited, :hover, :focus, :active) { color: ButtonText; text-decoration: none; }
a.wzr-btn.wzr-pri, a.wzr-btn.wzr-pri:is(:visited, :hover, :focus, :active) { color: var(--primary-ink); }
a.wzr-btn.wzr-quiet, a.wzr-btn.wzr-quiet:is(:visited, :hover, :focus, :active) { color: var(--primary); }
