
:root {
  --wop-chrome-h: 56px;
  --wop-pad: clamp(16px, 2.2vw, 32px);
  --wop-t: 0.15s ease;
  --wop-ink-1: color-mix(in srgb, var(--fg) 8%, var(--canvas));
  --wop-ink-2: color-mix(in srgb, var(--fg) 20%, var(--canvas));
  --wop-ink-3: color-mix(in srgb, var(--fg) 40%, var(--canvas));
  --wop-ink-4: color-mix(in srgb, var(--fg) 65%, var(--canvas));
  --wop-ink-5: color-mix(in srgb, var(--fg) 90%, var(--canvas));
}

.wop-body { min-height: 100dvh; overflow-x: clip; }
.wop { font-size: var(--fs-small); line-height: 1.5; color: var(--fg); }

.wop :focus-visible,
.wop-phone :focus-visible,
#wop-layer :focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.wop h1 {
  font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.375rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.wop h2 { font-size: 1.125rem; line-height: 1.25; letter-spacing: -0.012em; }
.wop h3 { font-size: 1.0625rem; line-height: 1.3; letter-spacing: -0.01em; }
:where(.wop) :where(p, dl, dd, ul, ol) { margin: 0; padding: 0; }
:where(.wop) :where(ul, ol) { list-style: none; }
:where(.wop) button { font: inherit; color: inherit; }
:where(.wop) a { text-underline-offset: 0.2em; }

.wop kbd,
#wop-layer kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 1px 6px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-sm);
  font-family: var(--f-mono);
  font-size: 0.75rem;
  text-align: center;
  color: var(--fg-muted);
}

.wop-label {
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  line-height: 1.4;
}
.wop-num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.wop-mute { color: var(--fg-subtle); }
.is-good { color: var(--brand); }
.is-warn { color: var(--fg); }
.wop-rule { height: 1px; border: 0; background: var(--line); }
.wop-ico { display: inline-block; vertical-align: -1px; flex: 0 0 auto; }

.wop-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--fg-muted);
}
.wop-pill--accent { border-color: var(--brand); color: var(--brand); }

.wop-chip {
  display: inline-block;
  padding: 2px 6px;
  border-radius: var(--r-sm);
  background: var(--surface-muted);
  font-size: 0.6875rem;
  line-height: 1.4;
  color: var(--fg-muted);
}

.wop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: transparent;
  font-family: var(--f-sans);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  color: var(--fg);
  cursor: pointer;
  transition: background var(--wop-t), border-color var(--wop-t), color var(--wop-t);
}
.wop-btn--primary { background: var(--brand); color: var(--brand-fg); }
.wop-btn--primary:hover { background: var(--brand-strong); }
.wop-btn--ghost { border-color: var(--line); }
.wop-btn--ghost:hover { border-color: var(--fg-subtle); }
.wop-btn--accent { border-color: var(--brand); color: var(--brand); }
.wop-btn--accent:hover { background: var(--accent-soft); }
.wop-btn--link {
  padding: 0 8px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
.wop-btn--link:hover { text-decoration-thickness: 2px; }
.wop-btn--sm { padding: 0 12px; }
.wop-btn--link.wop-btn--sm { padding: 0 8px; }
.wop-btn--wide { width: 100%; }
.wop-btn:disabled,
.wop-btn[aria-disabled="true"] {
  border-color: var(--line);
  background: transparent;
  color: var(--fg-subtle);
  cursor: not-allowed;
}
.wop-btn--ink { background: var(--fg); color: var(--canvas); }
.wop-btn--ink:hover { background: var(--fg-muted); }
.wop-btn--toggle[aria-pressed="true"] { border-color: var(--fg-subtle); background: var(--surface-muted); }
.wop-btn[aria-busy="true"] { cursor: progress; }
.wop-btn[aria-busy="true"]::after {
  content: "";
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 50%;
  animation: wop-pulse 0.45s ease-in-out infinite alternate;
}
@keyframes wop-pulse { from { opacity: 0.25; } to { opacity: 1; } }

.wop-input {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-sm);
  background: var(--canvas);
  font: inherit;
  color: var(--fg);
}
.wop-input::placeholder { color: var(--fg-subtle); opacity: 1; }
textarea.wop-input { width: 100%; min-height: 96px; resize: vertical; line-height: 1.45; }

.wop-skill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0 10px 0 0;
  font-size: 0.8125rem;
  color: var(--fg-muted);
  white-space: nowrap;
}
.wop-skill.is-wall { color: var(--fg); font-weight: 500; }

.wop-chrome {
  position: sticky;
  top: var(--fxstrip-h);
  z-index: 90;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: stretch;
  gap: 24px;
  min-height: var(--wop-chrome-h);
  padding: 0 var(--wop-pad);
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
}
.wop-chrome__start,
.wop-chrome__end { display: flex; align-items: center; gap: 14px; min-width: 0; }
.wop-chrome__end { justify-content: flex-end; gap: 10px; }

.wop-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding-right: 14px;
  border-right: 1px solid var(--line);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  color: var(--fg-muted);
  transition: color var(--wop-t);
}
.wop-back:hover { color: var(--fg); }
.wop-back__short { display: none; }

.wop-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
  white-space: nowrap;
}
.wop-brand__mark { width: auto; height: 20px; flex: 0 0 auto; }
[data-theme$="dark"] .wop-brand__mark--light,
[data-theme$="light"] .wop-brand__mark--dark { display: none; }
.wop-brand__name {
  font-family: var(--f-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.wop-nav { display: flex; align-items: stretch; justify-content: center; gap: 4px; }
.wop-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  color: var(--fg-subtle);
  transition: color var(--wop-t), border-color var(--wop-t);
}
.wop-nav a:hover { color: var(--fg); }
.wop-nav a.is-on { color: var(--fg); border-bottom-color: var(--brand); }
.wop-nav__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.wop-nav__dot[hidden] { display: none; }

.wop-scn {
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--fg-subtle);
}
.wop-scn.is-after { color: var(--brand); }

.wop-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: transparent;
  font-family: var(--f-mono);
  font-size: 0.875rem;
  color: var(--fg-muted);
  cursor: pointer;
  transition: border-color var(--wop-t), color var(--wop-t);
}
.wop-icon:hover { border-color: var(--fg-subtle); color: var(--fg); }
.wop-icon svg { width: 17px; height: 17px; }
.wop-icon__sun, .wop-icon__moon { display: none; }
[data-theme$="dark"] .wop-icon__moon { display: block; }
[data-theme$="light"] .wop-icon__sun { display: block; }

.wop-pinbar {
  position: sticky;
  top: calc(var(--fxstrip-h) + var(--wop-chrome-h));
  z-index: 89;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 44px;
  padding: 0 var(--wop-pad);
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
}
.wop-pinbar[hidden] { display: none; }
.wop-pinbar__say { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; }
.wop-pinbar__say .wop-label { color: var(--brand); }
.wop-pinbar__fig b { font-weight: 500; }
.wop-pinbar__acts { display: flex; gap: 4px; }

.wop-lbnote {
  display: none;
  padding: 8px var(--wop-pad);
  border-bottom: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}

.wop-main {
  width: 100%;
  max-width: 1344px;
  margin-inline: auto;
  padding: 36px var(--wop-pad) 96px;
}
.wop-main > * + *,
.wop-main [role="tabpanel"] > * + * { margin-top: 32px; }

.wop-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.wop-head__t { min-width: 0; }
.wop-head__m { margin-top: 10px; }
.wop-head__a { display: flex; flex: 0 0 auto; gap: 10px; }
.wop-main > .wop-head + * { margin-top: 28px; }

.wop-lead { max-width: 72ch; font-size: var(--fs-body); line-height: 1.5; color: var(--fg-muted); }
.wop-note {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.wop-foot { color: var(--fg-subtle); }
.wop-foot .wop-skill { margin-right: 8px; }

.wop-sec > * + * { margin-top: 16px; }
.wop-sec__h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }

.wop-seg {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: thin;
}
.wop-seg__tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  min-width: 44px;
  min-height: 48px;
  padding: 8px 20px 8px 0;
  margin: 0 20px -1px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  text-align: left;
  white-space: nowrap;
  color: var(--fg-subtle);
  cursor: pointer;
  transition: color var(--wop-t), border-color var(--wop-t);
}
.wop-seg__tab:hover { color: var(--fg); }
.wop-seg__tab[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--brand); }
.wop-seg__l { font-weight: 500; }
.wop-seg__l .wop-num { margin-left: 4px; color: var(--fg-subtle); }
.wop-seg__n { display: inline-flex; align-items: center; gap: 5px; font-size: 0.75rem; color: var(--fg-muted); }
.wop-seg__n.is-good { color: var(--brand); }
.wop-seg__n.is-low { color: var(--fg); }
.wop-seg--sm { border-bottom: 0; }
.wop-seg--sm .wop-seg__tab { min-height: 44px; padding: 0 2px; margin: 0 16px 0 0; }
.wop-seg--sm .wop-seg__tab:last-child { margin-right: 0; }
.wop-seg--days .wop-seg__tab { flex: 1 1 0; margin-right: 0; padding-right: 12px; }

.wop-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}
.wop-kpi { padding: 18px 16px 18px 20px; border-left: 1px solid var(--line); }
.wop-kpi:first-child { padding-left: 0; border-left: 0; }
.wop-kpi dd { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 10px; }
.wop-kpi dd > .wop-num:first-child { font-size: 1.875rem; line-height: 1.1; letter-spacing: -0.04em; }
.wop-kpi__c { font-size: 0.8125rem; color: var(--fg-subtle); }
.wop-kpi__c.wop-label { font-size: 0.6875rem; }
.wop-kpi .wop-chip { margin-top: 4px; }

.wop-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.wop-side > * + * { margin-top: 32px; }

.wop-cal li {
  display: grid;
  grid-template-columns: 3.2em minmax(0, 1fr);
  gap: 2px 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.wop-cal li:last-child { border-bottom: 1px solid var(--line); }
.wop-cal__d { grid-row: span 2; color: var(--fg-subtle); }
.wop-cal__e { font-size: 0.75rem; color: var(--fg-muted); }

.wop-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 0.75rem; color: var(--fg-subtle); }
.wop-legend li { display: inline-flex; align-items: center; gap: 7px; }
.wop-legend .wop-skill { margin: 0; font-size: 0.75rem; }
.wop-sw { display: inline-block; width: 12px; height: 12px; flex: 0 0 12px; }
.wop-sw--cap { background: var(--wop-ink-3); }
.wop-sw--unc { background: var(--fg); }
.wop-sw--idle { border: 1px solid var(--wop-ink-3); }
.wop-sw--add { background: var(--accent); }
.wop-sw--band { background: var(--wop-ink-2); }
.wop-sw--req { height: 2px; background: var(--fg); }
.wop-sw--gap { border: 1px dashed var(--fg-subtle); }

table.wop-tbl th, table.wop-tbl td { padding: 11px 20px 11px 0; vertical-align: middle; }
table.wop-tbl thead th { white-space: nowrap; }
table.wop-tbl tbody th {
  font-family: var(--f-sans);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  color: var(--fg);
}
table.wop-tbl .is-num { text-align: right; }
table.wop-tbl td:last-child, table.wop-tbl th:last-child { padding-right: 0; }
table.wop-tbl tr.is-dim > * { color: var(--fg-subtle); }
table.wop-tbl tbody tr:hover { background: transparent; }
table.wop-tbl .is-nowrap { white-space: nowrap; }
table.wop-tbl--shifts td.is-skills { width: 34%; }
table.wop-tbl--recs tbody th { white-space: normal; text-wrap: balance; min-width: 22em; }
.wop-skill--more { color: var(--fg-subtle); }


.wop-weeks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 960px; }
.wop-week {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 248px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--wop-t);
}
a.wop-week:hover { border-color: var(--brand); }
.wop-week__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wop .wop-week h2 { font-size: 1.5rem; letter-spacing: -0.025em; }
.wop-week__range { color: var(--fg-subtle); }
.wop-week__figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.wop-week__figs dd { margin-top: 6px; font-size: 1.625rem; line-height: 1.1; letter-spacing: -0.04em; }
.wop-week__go { margin-top: auto; padding-top: 20px; font-weight: 600; color: var(--brand); }
.wop-week--off { border-style: dashed; color: var(--fg-subtle); }
.wop-week__none { margin-top: 24px; max-width: 34ch; }

.wop-heat { display: grid; gap: 4px; }
.wop-heat__row { display: grid; grid-template-columns: minmax(180px, 280px) repeat(7, minmax(44px, 1fr)); gap: 4px; align-items: center; }
.wop-heat__col { text-align: center; }
.wop-heat__col abbr { text-decoration: none; }
.wop-heat__rowh { padding-right: 16px; font-weight: 500; }
.wop-heat__row.is-dim .wop-heat__rowh { color: var(--fg-subtle); }
.wop-heat__gc { display: block; }
.wop-heat__cell {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 48px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  cursor: pointer;
}
.wop-heat__cell:hover { border-color: var(--fg); }
.wop-heat__cell--0 { background: var(--accent-soft); color: var(--fg); }
.wop-heat__cell--1 { background: var(--wop-ink-1); color: var(--fg); }
.wop-heat__cell--2 { background: var(--wop-ink-2); color: var(--fg); }
.wop-heat__cell--3 { background: var(--wop-ink-3); color: var(--fg); }
.wop-heat__cell--4 { background: var(--wop-ink-4); color: var(--canvas); }
.wop-heat__cell--5 { background: var(--wop-ink-5); color: var(--canvas); }
.wop .wop-heat__cell--4, .wop .wop-heat__cell--5 { font-weight: 500; }
.wop-heat__cell--blank { border-color: var(--line); cursor: default; }
.wop-heat__cell--closed { border-color: var(--line); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-subtle); cursor: default; }
.wop-heat__key { display: flex; align-items: center; gap: 4px; margin-top: 16px; }
.wop-heat__key span:first-child { margin-right: 6px; }
.wop-heat__key span:last-child { margin-left: 6px; }
.wop-heat__sw { display: inline-block; width: 20px; height: 10px; }

.wop-daytot { padding: 16px 0; border-block: 1px solid var(--line); }
.wop-daytot dl { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.wop-daytot dd { margin-top: 4px; font-size: 1.125rem; }

.wop-setup { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; align-items: start; }
.wop-main .wop-setup > * + * { margin-top: 0; }
.wop-setup__main > * + * { margin-top: 40px; }
.wop-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 8px 8px 16px;
  border: 1px solid var(--fg-subtle);
  border-radius: var(--r-sm);
}
.wop-alert .wop-label { margin-right: 8px; color: var(--fg); }
.wop-radio { display: grid; gap: 0; border-top: 1px solid var(--line); }
.wop-radio__o {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-height: 44px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.wop-radio__o input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand); }
.wop-radio__o b { display: block; font-weight: 500; }
.wop-radio__o small { display: block; font-size: 0.8125rem; color: var(--fg-subtle); }
.wop-radio__o.is-off { cursor: default; color: var(--fg-subtle); }
.wop-cons { border-top: 1px solid var(--line); }
.wop-con {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px auto;
  gap: 24px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.wop .wop-con h3 { font-family: var(--f-sans); font-size: var(--fs-small); font-weight: 500; letter-spacing: 0; }
.wop-con__t p { font-size: 0.8125rem; color: var(--fg-subtle); }
.wop-con__v { display: grid; gap: 8px; }
.wop-con__v .wop-num { font-size: 1rem; }
.wop-meter { display: block; height: 2px; background: var(--line); }
.wop-meter i { display: block; height: 2px; background: var(--fg); }
.wop-setup__run {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.wop-runfacts { display: grid; gap: 14px; margin: 20px 0 24px; }
.wop-runfacts dd { margin-top: 2px; }
.wop-setup__hint { margin-top: 14px; font-size: 0.8125rem; color: var(--fg-subtle); }

.wop-run { padding: 24px 0; }
.wop-run > * + * { margin-top: 20px; }
.wop-run__phase { font-size: 0.75rem; color: var(--fg); min-height: 1.4em; }
.wop-run__phase.is-done { color: var(--brand); }
.wop-run__count { display: flex; align-items: baseline; gap: 14px; }
.wop-run__count[hidden] { display: none; }
.wop-run__count .wop-num { font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.5rem); line-height: 1; letter-spacing: -0.05em; }
.wop-run__track { height: 2px; background: var(--line); }
.wop-run__track i { display: block; width: 0; height: 2px; background: var(--accent); }
.wop-run__steps {
  display: grid;
  grid-template-columns: 2.5fr 3.5fr 6.5fr 2.5fr;
  margin-top: 0;
}
.wop-run__steps li {
  display: flex;
  gap: 8px;
  padding: 12px 12px 0 8px;
  border-left: 1px solid var(--rule-strong);
  white-space: nowrap;
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--fg-subtle);
}
.wop-run__steps li.is-on { color: var(--fg); }
.wop-run__steps li.is-done { color: var(--brand); }
.wop-run__say { margin-top: 48px; color: var(--fg-muted); }

.wop-strip { border-block: 1px solid var(--line); }
.wop-strip__k { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.wop-strip__k > div { padding: 16px 12px 16px 16px; border-left: 1px solid var(--line); }
.wop-strip__k > div:first-child { padding-left: 0; border-left: 0; }
.wop-strip__k dd { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 8px; }
.wop-strip__f { display: flex; align-items: baseline; gap: 7px; white-space: nowrap; }
.wop-strip__b { color: var(--fg-subtle); }
.wop-strip__to { font-size: 0.75rem; color: var(--fg-subtle); }
.wop-strip__a { font-size: 1.1875rem; letter-spacing: -0.03em; }
.wop-strip__2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.wop-strip__s { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.wop-strip__s > div { display: flex; align-items: baseline; gap: 8px; }
.wop-strip__adj { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; }
.wop-strip__adj .wop-label { margin-right: 6px; }

.wop-listh { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wop-listh__a { display: flex; align-items: center; gap: 12px; }
.wop-rerun {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 12px 10px 16px;
  border: 1px solid var(--brand);
  border-radius: var(--r-sm);
}
.wop-main [role="tabpanel"] > .wop-listh + * { margin-top: 16px; }

.wop-recs { display: grid; gap: 12px; }
.wop-rec {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr) 272px;
  gap: 24px;
  padding: 20px 20px 20px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--rule-strong);
  border-radius: var(--r-sm);
}
.wop-rec--accepted { border-left-color: var(--brand); }
.wop-rec--noted { border-left-color: var(--brand); }
.wop-rec--rejected { border-left-color: var(--line); }
.wop-rec--review { border-left-color: var(--fg); border-left-style: dashed; }
.wop-rec__meta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.wop-st { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--fg-muted); }
.wop-st--accepted, .wop-st--noted { color: var(--brand); }
.wop-st--review { color: var(--fg); }
.wop-st--rejected { color: var(--fg-subtle); }
.wop-rec__body > * + * { margin-top: 10px; }
.wop-rec__why { max-width: 68ch; color: var(--fg-muted); }
.wop-rec--rejected h3 { text-decoration: line-through; text-decoration-thickness: 1px; color: var(--fg-subtle); }
.wop-rec--rejected .wop-rec__why { color: var(--fg-subtle); }
.wop-rec--rejected .wop-person, .wop-rec--rejected .wop-person b { color: var(--fg-subtle); }
.wop-rec--rejected .wop-rec__imp dd,
.wop-rec--rejected .wop-rec__imp .is-good,
.wop-rec-row--rejected td.wop-num { color: var(--fg-subtle); }
.wop-rec__cm {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding-left: 12px;
  border-left: 1px solid var(--rule-strong);
  color: var(--fg);
}
.wop-rec__cm .wop-num { font-size: 0.75rem; color: var(--fg-subtle); }
th .wop-rec__cm { margin-top: 6px; font-weight: 400; }
.wop-rec__rv { padding-left: 12px; border-left: 1px solid var(--fg); color: var(--fg); font-weight: 500; }
.wop-people { display: flex; flex-wrap: wrap; gap: 6px; }
.wop-person {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 0.75rem;
  color: var(--fg-muted);
}
.wop-person b { font-family: var(--f-mono); font-weight: 500; color: var(--fg); }
.wop-rec__side { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.wop-rec__imp { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wop-rec__imp dd { margin-top: 4px; font-size: 1.25rem; letter-spacing: -0.03em; }
.wop-rec__acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.wop-rec__acts .wop-btn--link { margin-right: auto; margin-left: -8px; }
.wop-tbl__acts { display: grid; grid-template-columns: 88px 84px 124px; gap: 6px; justify-content: end; justify-items: stretch; }
.wop-tbl__acts .wop-btn { padding-inline: 8px; }
table.wop-tbl tr.wop-rec-row--rejected th { color: var(--fg-subtle); }
.wop-rec-row--rejected .wop-rec-row__t { text-decoration: line-through; text-decoration-thickness: 1px; }

.wop-daygrid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; }
.wop-daymain > * + * { margin-top: 24px; }
.wop-hours { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; }
.wop-hr { padding-top: 14px; border-top: 1px solid var(--line); }
.wop-hr.is-picked { border-top-color: var(--fg); }
.wop-hr__h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.wop .wop-hr h2 { font-size: 1rem; }
.wop-hr__plot { margin-top: 12px; min-height: 150px; }
.wop-lines { margin-top: 8px; }
.wop-lines li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 0.8125rem; }
.wop-lines .wop-num { color: var(--fg-subtle); }
.wop-dayrecs { border-top: 1px solid var(--line); }
.wop-dayrec {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr) 96px auto;
  gap: 16px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.wop-dayrec .wop-pill { justify-self: start; }
.wop-dayrec__t { text-wrap: balance; }
.wop-dayrec--rejected .wop-dayrec__t { color: var(--fg-subtle); text-decoration: line-through; text-decoration-thickness: 1px; }

.wop-panel {
  padding: 8px 20px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.wop-panel > * + * { margin-top: 12px; }
.wop-panel > .wop-seg { margin-top: 0; border-bottom: 1px solid var(--line); }
.wop-panel > .wop-seg .wop-seg__tab { margin-bottom: -1px; }
.wop-panel__hint { font-size: 0.8125rem; color: var(--fg-subtle); }
.wop .wop-panel__t { font-size: 1rem; }
.wop-panel__m { margin-top: 2px; color: var(--fg-subtle); }
.wop-gaps li + li { border-top: 1px solid var(--line); }
.wop-gap {
  display: grid;
  grid-template-columns: 7.2em minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 0.8125rem;
  cursor: pointer;
}
.wop-gap:hover { background: var(--surface-muted); }
.wop-gap.is-on { background: var(--surface-muted); }
.wop-gap__c { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wop-cands { border-block: 1px solid var(--line); }
.wop-cand + .wop-cand { border-top: 1px solid var(--line); }
.wop-cand label {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 4px 12px;
  align-items: start;
  min-height: 44px;
  padding: 10px 4px;
  cursor: pointer;
}
.wop-cand input { grid-row: span 3; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand); }
.wop-cand__who { display: flex; align-items: baseline; gap: 8px; }
.wop-cand__who b { font-family: var(--f-mono); font-weight: 500; }
.wop-cand__who .wop-num { font-size: 0.75rem; color: var(--fg-subtle); }
.wop-cand__sk { display: flex; flex-wrap: wrap; }
.wop-cand__sk .wop-skill { font-size: 0.75rem; }
.wop-cand__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; font-size: 0.75rem; color: var(--fg-subtle); }
.wop-cand.is-on label { cursor: default; }
.wop-cand--plain label { grid-template-columns: minmax(0, 1fr); cursor: default; }
.wop-cand__meta .wop-ico { margin-right: 4px; }
.wop-panel__acts { display: flex; align-items: center; gap: 12px; }
.wop-panel__n { font-size: 0.8125rem; color: var(--fg-subtle); }
.wop-panel__cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.wop-chart { position: relative; }
.wop-chart > * + * { margin-top: 12px; }
.wop-chart__plot { min-height: 280px; }
.wop-chart__plot--band { min-height: 240px; }
.wop-chart__plot svg, .wop-hr__plot svg, .wop-spark svg { display: block; max-width: none; }
.wop-chart__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin: 4px 0 0 52px; }
.wop-daybtn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 44px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
}
.wop-daybtn .wop-num { font-size: 0.6875rem; font-weight: 400; color: var(--fg-subtle); }
.wop-daybtn:hover { border-top-color: var(--brand); color: var(--brand); }
.wop-spark { min-height: 118px; }

.c-grid { stroke: var(--line); stroke-width: 1; shape-rendering: crispEdges; }
.c-axis { fill: var(--fg-subtle); font-family: var(--f-mono); font-size: 11px; }
.c-val { fill: var(--fg-muted); font-family: var(--f-mono); font-size: 11px; }
.c-val.is-good { fill: var(--brand); }
.c-cap { fill: var(--wop-ink-3); }
.c-unc { fill: var(--fg); }
.c-idle { fill: none; stroke: var(--wop-ink-3); stroke-width: 1; }
.c-add { fill: var(--accent); }
.c-band { fill: var(--wop-ink-1); }
.c-bandline { fill: var(--wop-ink-2); }
.c-closed { fill: var(--fg-subtle); font-family: var(--f-mono); font-size: 11px; }
.c-req { fill: none; stroke: var(--fg); stroke-width: 2; }
.c-gap { fill: none; stroke: var(--fg-subtle); stroke-width: 1; stroke-dasharray: 3 3; }
.c-line { fill: none; stroke: var(--fg); stroke-width: 1.5; stroke-linejoin: round; }
.c-dot { fill: var(--canvas); stroke: var(--fg); stroke-width: 1.5; }
.c-addline { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 3 3; }
.c-adddot { fill: var(--accent); }
.c-pick { fill: var(--wop-ink-1); }

.wop-empty { color: var(--fg-subtle); }
.wop-empty--sm { padding: 16px 0; }
.wop-chart--empty .wop-empty {
  position: absolute;
  inset: 0 0 0 52px;
  display: grid;
  place-items: center;
  margin: 0;
}
.wop-chart--empty .wop-empty span { padding: 6px 12px; background: var(--canvas); }
.wop-blank {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 40px 0 0;
}
.wop-blank__t { font-family: var(--f-display); font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }

.wop-skel { display: block; border-radius: var(--r-sm); background: var(--surface-muted); }
.wop-skel--num { width: 5.5ch; height: 2.05rem; font-family: var(--f-mono); font-size: 1.875rem; }
.wop-skel--line { width: 80%; height: 0.75rem; margin-top: 6px; }
.wop-skel--bar { height: 52px; }
.wop-skel--band { position: absolute; inset: 38% 0 30% 52px; margin: 0; border-radius: 0; }
.wop-skel--bars { height: 150px; margin-top: 12px; }
.wop-skel--row { height: 56px; margin-top: 8px; }

.wop-skel--spark { height: 118px; }
.wop-skel--heat { height: 228px; }
.wop-skel--pct { display: inline-block; width: 3.2ch; height: 0.75rem; }

.wop-flash { animation: wop-wash 0.6s ease-out 1; }
@keyframes wop-wash { from { background-color: var(--accent-soft); } to { background-color: transparent; } }

.wop-noscript { padding: 48px var(--wop-pad); }

.wop-phone { display: none; }

@media (max-width: 1339px) {
  .wop-scn { display: none; }
}
@media (max-width: 1199px) {
  .wop-back__long { display: none; }
  .wop-back__short { display: inline; }
}

@media (max-width: 1280px) {
  .wop-cols { grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; }
  .wop-daygrid { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; }
  .wop-setup { grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; }
  .wop-rec { grid-template-columns: 136px minmax(0, 1fr) 256px; gap: 20px; }
  .wop-kpi { padding-left: 14px; padding-right: 10px; }
  .wop-kpi dd > .wop-num:first-child { font-size: 1.625rem; }
  .wop-strip__k > div { padding: 14px 8px 14px 12px; }
  .wop-strip__a { font-size: 1.0625rem; }
  .wop-strip__f { gap: 5px; }
}

@media (max-width: 1099px) {
  .wop-chrome { gap: 16px; }
  .wop-nav a { padding: 0 12px; }
  .wop-scn { display: none; }
  .wop-pinbar { position: static; }
  .wop-lbnote { display: block; }
  .wop-frame { overflow-x: auto; }
  .wop-main { width: 1100px; max-width: none; margin-inline: 0; }
  
}

@media (max-width: 1059px) {
  .wop-chrome { grid-template-columns: 1fr auto; row-gap: 0; }
  .wop-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; margin-inline: -12px; overflow-x: auto; }
  .wop-chrome__start, .wop-chrome__end { min-height: var(--wop-chrome-h); }
}

@media (max-width: 599px) {
  html:not(.wop-force) .wop { display: none; }
  html:not(.wop-force) .wop-phone {
    display: grid;
    place-items: center;
    min-height: calc(100dvh - var(--fxstrip-h));
    padding: 32px 16px 48px;
  }
  .wop-phone__in { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; width: 100%; max-width: 420px; }
  .wop-phone h1 { font-size: 2.25rem; line-height: 1; letter-spacing: -0.035em; }
  .wop-phone p { margin: 0; }
  .wop-phone__say { font-size: 1.0625rem; line-height: 1.5; color: var(--fg-muted); }
  .wop-phone__acts { display: flex; flex-direction: column; gap: 10px; width: 100%; }
  .wop-phone__acts .wop-btn { width: 100%; }
  .wop-phone__any { font-size: var(--fs-small); color: var(--fg-subtle); }
  .wop-phone__any a { display: inline-block; padding: 12px 0; }
  .wop-brand__name { display: none; }
}


html.wop-modal-open { overflow: hidden; }

.wop-modal {
  position: fixed;
  inset: var(--fxstrip-h, 34px) 0 0 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 150ms linear;
}
.wop-modal.is-in { opacity: 1; }
.wop-modal.is-out { pointer-events: none; }
.wop-modal [hidden] { display: none; }

.wop-modal__scrim {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--canvas) 78%, transparent);
}

.wop-modal__panel {
  --wop-modal-pad: 24px;
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 560px;
  max-height: 100%;
  overflow: hidden;
  padding: var(--wop-modal-pad);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--fg);
  font-family: var(--f-sans);
  font-size: var(--fs-small);
  line-height: 1.5;
}
.wop-modal--sm .wop-modal__panel { max-width: 480px; }
.wop-modal--reject .wop-modal__panel { max-width: 580px; }

.wop-modal--anchored { display: block; padding: 0; }
.wop-modal--anchored .wop-modal__panel {
  position: absolute;
  width: 580px;
  max-width: calc(100% - 32px);
  max-height: calc(100% - 32px);
}

.wop-modal__form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
}

.wop-modal__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0 calc(var(--wop-modal-pad) * -1) -8px;
  padding: 0 var(--wop-modal-pad) 8px;
}

.wop-modal__head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wop-modal__title {
  margin: 0;
  font-family: var(--f-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.wop-modal__head .wop-pill { flex: none; }

.wop-modal__purpose {
  margin: 8px 0 0;
  color: var(--fg-muted);
  text-wrap: balance;
}
.wop-modal--reject .wop-modal__purpose { color: var(--fg-subtle); }

.wop-modal__body {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}
.wop-modal__scroll > .wop-modal__body:first-child { margin-top: 16px; }
.wop-modal__field {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.wop-modal__field > .wop-label { margin: 0; }

.wop-modal__foot {
  flex: none;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.wop-modal__rows { display: grid; gap: 4px; }
.wop-modal__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wop-modal__row-label { min-width: 0; text-wrap: balance; }

.wop-modal__stepper {
  flex: none;
  display: inline-grid;
  grid-template-columns: 44px minmax(72px, auto) 44px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.wop-modal__step-btn {
  appearance: none;
  -webkit-appearance: none;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--fg);
  font-family: var(--f-mono);
  font-size: var(--fs-body);
  line-height: 1;
  cursor: pointer;
}
.wop-modal__step-btn:hover { color: var(--brand); }
.wop-modal__step-btn:disabled { color: var(--fg-subtle); opacity: 0.45; cursor: default; }
.wop-modal__step-value {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 0 8px;
  border-inline: 1px solid var(--line);
}
.wop-modal__step-value[aria-invalid="true"] { color: var(--fg); font-weight: 600; }
.wop-modal__stepper:has([aria-invalid="true"]) { border-color: var(--fg); }

.wop-modal__seg {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(44px, 1fr);
  justify-self: start;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.wop-modal__seg--fill { display: grid; justify-self: stretch; }
.wop-modal__seg[aria-invalid="true"] { border-color: var(--fg); }

.wop-modal__seg-opt {
  appearance: none;
  -webkit-appearance: none;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: var(--fg-muted);
  font-family: var(--f-sans);
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}
.wop-modal__seg-opt:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.wop-modal__seg-opt:last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.wop-modal__seg-opt + .wop-modal__seg-opt { border-left: 1px solid var(--line); }
.wop-modal__seg--fill .wop-modal__seg-opt { padding: 0; }
.wop-modal__seg-opt:hover { color: var(--fg); }
.wop-modal__seg-opt[aria-checked="true"] {
  background: var(--surface-muted);
  color: var(--fg);
}
.wop-modal__seg-opt:disabled { opacity: 0.45; cursor: default; }

.wop-modal__slider-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
}
.wop-modal__slider { position: relative; --wop-p: 0; }
.wop-modal__slider::before {
  content: "";
  position: absolute;
  left: 0;
  top: 21px;
  width: calc((100% - 12px) * var(--wop-p) + 6px);
  height: 2px;
  background: var(--accent);
  pointer-events: none;
}
.wop-modal__range {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.wop-modal__range::-webkit-slider-runnable-track { height: 2px; background: var(--rule-strong); }
.wop-modal__range::-moz-range-track { height: 2px; background: var(--rule-strong); }
.wop-modal__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 24px;
  margin-top: -11px;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--accent);
}
.wop-modal__range::-moz-range-thumb {
  width: 12px;
  height: 24px;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--accent);
}
.wop-modal__range:disabled { opacity: 0.45; cursor: default; }

.wop-modal__scale {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  color: var(--fg-subtle);
  font-size: var(--fs-kicker);
}
.wop-modal__entry { display: flex; align-items: center; gap: 8px; }
.wop-modal .wop-modal__number {
  width: 88px;
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.wop-modal__unit { min-width: 1ch; color: var(--fg-subtle); }

.wop-modal__fact,
.wop-modal__hint,
.wop-modal__error,
.wop-modal__warn,
.wop-modal__change-text { margin: 0; text-wrap: pretty; }

.wop-modal__fact,
.wop-modal__hint { color: var(--fg-subtle); }

.wop-modal__error {
  padding-left: 8px;
  border-left: 2px solid var(--fg);
  color: var(--fg);
  font-weight: 500;
}
.wop-modal__warn {
  padding-left: 8px;
  border-left: 2px solid var(--rule-strong);
  color: var(--fg-muted);
}

.wop-modal__change {
  display: grid;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.wop-modal__change > .wop-label { margin: 0; }
.wop-modal__change-text { color: var(--fg); font-size: var(--fs-body); line-height: 1.45; }
.wop-modal__notes { display: grid; gap: 8px; }

.wop-modal__table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
}
.wop-modal__table th,
.wop-modal__table td {
  padding: 4px 0 4px 16px;
  line-height: 24px;
  border-top: 1px solid var(--line);
  text-align: right;
  font-weight: 400;
  white-space: nowrap;
  vertical-align: baseline;
}
.wop-modal__table thead th,
.wop-modal__table thead td { padding-top: 0; border-top: 0; }
.wop-modal__table th[scope="row"] {
  padding-left: 0;
  text-align: left;
  color: var(--fg-muted);
  font-family: var(--f-sans);
}
.wop-modal__table tbody td { width: 112px; color: var(--fg); }
.wop-modal__table tbody td.is-same { color: var(--fg-subtle); }

.wop-modal__textarea {
  display: block;
  width: 100%;
  resize: vertical;
}
.wop-modal__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wop-modal__chips .wop-btn { padding-inline: 10px; }

.wop-modal__keys {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 16px;
  align-items: center;
  margin: 0;
}
.wop-modal__keys dt,
.wop-modal__keys dd { margin: 0; }
.wop-modal__keys dd { color: var(--fg-muted); }
.wop-modal__kbd {
  border-radius: var(--r-sm);
  font-family: var(--f-mono);
  font-size: var(--fs-kicker);
  line-height: 1.6;
  white-space: nowrap;
}

.wop-toast {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 24px;
  z-index: 160;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.wop-toast__box {
  display: flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  max-width: 480px;
  min-height: 48px;
  padding: 0 16px;
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-sm);
  color: var(--fg);
  font-family: var(--f-sans);
  font-size: var(--fs-small);
  line-height: 1.4;
  pointer-events: auto;
  opacity: 0;
  transition: opacity 150ms linear;
}
.wop-toast__box.is-in { opacity: 1; }
.wop-toast__text { padding: 8px 0; text-wrap: pretty; }
.wop-toast__action { flex: none; margin-right: -8px; }

@media (max-width: 639px) {
  .wop-modal__panel,
  .wop-modal--sm .wop-modal__panel,
  .wop-modal--reject .wop-modal__panel { max-width: none; --wop-modal-pad: 16px; }
  .wop-modal__slider-row { gap: 16px; }
  .wop-modal__table tbody td { width: auto; }
  .wop-modal__foot .wop-btn { flex: 1 1 0; }
  .wop-toast { bottom: 16px; }
}

.wop-tour { position: fixed; inset: 0; z-index: 160; pointer-events: none; }
.wop-tour__dim {
  position: fixed;
  background: color-mix(in srgb, var(--canvas) 64%, transparent);
  pointer-events: none;
}
.wop-tour__ring {
  position: fixed;
  border: 1px solid var(--fg);
  border-radius: var(--r-sm);
  pointer-events: none;
}
.wop-tour__card {
  position: fixed;
  width: min(21.5rem, calc(100vw - 32px));
  padding: 18px 20px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-family: var(--f-sans);
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--fg);
  pointer-events: auto;
}
.wop-tour__t {
  margin: 0 0 6px;
  font-family: var(--f-display);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.wop-tour__d { margin: 0; color: var(--fg-muted); text-wrap: pretty; }
.wop-tour__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.wop-tour__n { font-size: 0.6875rem; letter-spacing: 0.04em; color: var(--fg-subtle); }
.wop-tour__acts { display: flex; align-items: center; gap: 6px; }
.wop-tour__acts [hidden] { display: none; }
.wop-tour :focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: var(--r-sm); }
