/* City Observatory — aligned with AVA home (zinc + violet/pink) */
:root {
  --wo-bg: #050506;
  --wo-surface: #111113;
  --wo-surface2: #18181c;
  --wo-surface3: #1f1f24;
  --wo-line: rgba(255, 255, 255, 0.08);
  --wo-text: #f4f4f5;
  --wo-muted: #a1a1aa;
  --wo-faint: #71717a;
  --wo-accent: #a855f7;
  --wo-accent2: #ec4899;
  --wo-ok: #34d399;
  --wo-warn: #fbbf24;
  --wo-danger: #f87171;
  --wo-radius: 16px;
  --wo-radius-sm: 12px;
  --wo-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC",
    "Microsoft YaHei", sans-serif;
  --wo-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.page-world {
  font-family: var(--wo-font);
  color: var(--wo-text);
  background: var(--wo-bg);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wo-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 8% -8%, rgba(168, 85, 247, 0.22), transparent 55%),
    radial-gradient(720px 420px at 92% 4%, rgba(236, 72, 153, 0.14), transparent 50%),
    linear-gradient(180deg, #08080a 0%, #050506 100%);
  pointer-events: none;
}

/* —— Top —— */
.wo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 14px clamp(16px, 3vw, 28px);
  border-bottom: 1px solid var(--wo-line);
  background: rgba(17, 17, 19, 0.82);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.wo-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.wo-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.35);
  flex: 0 0 auto;
}
.wo-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.wo-brand-text strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.wo-brand-text em {
  font-style: normal;
  font-size: 11px;
  color: var(--wo-muted);
  letter-spacing: 0.04em;
}
.wo-nav {
  display: flex;
  gap: 4px;
}
.wo-nav a {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--wo-muted);
  text-decoration: none;
  font-size: 14px;
  transition: background 0.15s, color 0.15s;
}
.wo-nav a:hover { background: var(--wo-surface2); color: var(--wo-text); }
.wo-nav a.is-active {
  background: rgba(168, 85, 247, 0.15);
  color: #fff;
  font-weight: 600;
}

/* —— Page —— */
.wo-main {
  width: min(1920px, calc(100% - clamp(20px, 2.4vw, 40px) * 2));
  margin: 0 auto;
  padding: 12px 0 20px;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 64px);
  flex: 1 1 auto;
}
.wo-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  flex: 0 0 auto;
}
.wo-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wo-muted);
}
.wo-page-head h1 {
  margin: 0;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.wo-lead {
  margin: 4px 0 0;
  max-width: 42rem;
  color: var(--wo-muted);
  font-size: 13px;
}

.wo-banner {
  margin: 0 0 10px;
  padding: 12px 14px;
  border-radius: var(--wo-radius-sm);
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
  color: #fde68a;
  font-size: 13px;
  flex: 0 0 auto;
}
.wo-banner.is-ok {
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.08);
  color: #a7f3d0;
}

/* —— Three columns: 左开城 | 中见闻（主） | 右城况 —— */
.wo-shell {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr) minmax(280px, 360px);
  gap: 14px;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
  height: calc(100vh - 148px);
  max-height: none;
}
.wo-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
.wo-col-left {
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
}
.wo-col-center {
  gap: 10px;
  overflow: hidden;
}
.wo-col-right {
  gap: 10px;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.wo-block {
  background: var(--wo-surface);
  border: 1px solid var(--wo-line);
  border-radius: var(--wo-radius);
  padding: 14px 14px 16px;
  flex: 0 0 auto;
}
.wo-block-grow {
  flex: 1 1 auto;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.wo-block-title {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wo-muted);
}

.wo-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--wo-muted);
}
.wo-field.wo-grow { flex: 1; min-width: 10rem; }
.wo-field input,
.wo-field select,
.wo-field textarea,
.wo-select {
  width: 100%;
  border: 1px solid var(--wo-line);
  border-radius: 10px;
  background: var(--wo-surface2);
  color: var(--wo-text);
  font: inherit;
  font-size: 13px;
  padding: 9px 11px;
  outline: none;
  transition: border-color 0.15s;
}
.wo-field input[readonly] {
  color: var(--wo-text);
  opacity: 0.95;
  cursor: default;
  background: var(--wo-surface3);
}
.wo-joinable-breakdown {
  margin: -4px 0 10px;
  font-size: 11px;
}
.wo-field textarea {
  resize: vertical;
  min-height: 64px;
}
.wo-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 12px;
  font-size: 13px;
  color: var(--wo-muted);
  cursor: pointer;
  user-select: none;
}
.wo-check-inline { margin: 0; }
.wo-check input { accent-color: var(--wo-accent); }

.wo-rail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.wo-hint {
  margin: 0;
  font-size: 12px;
  color: var(--wo-faint);
  line-height: 1.45;
}
.wo-empty {
  margin: 8px 0 0;
  padding: 28px 12px;
  text-align: center;
  color: var(--wo-faint);
  font-size: 13px;
}

/* —— Buttons —— */
.wo-btn {
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 14px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s, transform 0.12s;
}
.wo-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.wo-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.95), rgba(236, 72, 153, 0.85));
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.28);
}
.wo-btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.05);
}
.wo-btn-ghost {
  color: var(--wo-text);
  background: var(--wo-surface2);
  border-color: var(--wo-line);
}
.wo-btn-ghost:hover:not(:disabled) {
  background: var(--wo-surface3);
}

/* —— Cast chips —— */
.wo-cast {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  max-height: 7.5rem;
  overflow: auto;
}
.wo-cast-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px 3px 3px;
  border-radius: 999px;
  border: 1px solid var(--wo-line);
  background: var(--wo-surface2);
  font-size: 12px;
  color: var(--wo-text);
  max-width: 100%;
}
.wo-cast-chip img,
.wo-cast-ph {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--wo-surface3);
  display: inline-grid;
  place-items: center;
  font-size: 10px;
  color: var(--wo-muted);
  flex: 0 0 auto;
}
.wo-cast-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 6.5rem;
}

/* —— City list —— */
.wo-city-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: auto;
  min-height: 0;
  flex: 1;
  padding-right: 2px;
}
.wo-city-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--wo-line);
  border-radius: 12px;
  background: var(--wo-surface2);
  color: inherit;
  font: inherit;
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.wo-city-item:hover {
  background: var(--wo-surface3);
}
.wo-city-item.is-on {
  border-color: rgba(168, 85, 247, 0.55);
  background: rgba(168, 85, 247, 0.12);
}
.wo-city-item strong {
  font-size: 13px;
  font-weight: 600;
}
.wo-city-item span {
  font-size: 11px;
  color: var(--wo-muted);
}

/* —— Stage (center) —— */
.wo-stage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: var(--wo-radius);
  border: 1px solid var(--wo-line);
  background:
    linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(236, 72, 153, 0.06)),
    var(--wo-surface);
  flex: 0 0 auto;
}
.wo-stage-title strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.wo-stage-title p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--wo-muted);
}
.wo-stage-title .wo-clock,
.wo-stage-title .wo-weather-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 6px 8px 0 0;
  vertical-align: middle;
}
.wo-clock {
  font-size: 12px;
  color: #c4b5fd;
  letter-spacing: 0.02em;
}
.wo-weather-badge {
  font-size: 12px;
  color: #fde68a;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.22);
}
.wo-weather-badge[hidden] {
  display: none !important;
}
.wo-weather-badge.is-heavy {
  color: #e2e8f0;
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.28);
}
.wo-weather-badge.is-festive {
  color: #fde68a;
  background: rgba(251, 191, 36, 0.16);
  border-color: rgba(251, 191, 36, 0.35);
}
.wo-new-banner {
  margin: 0 0 8px;
  padding: 6px 10px;
  font-size: 12px;
  color: #fef3c7;
  background: rgba(250, 204, 21, 0.12);
  border: 1px solid rgba(250, 204, 21, 0.28);
  border-radius: 8px;
  animation: wo-summary-flash 1.2s ease;
}
.wo-new-banner[hidden] {
  display: none !important;
}
.wo-feed li.is-new {
  background: rgba(250, 204, 21, 0.08);
  box-shadow: inset 3px 0 0 #fbbf24;
  animation: wo-item-new 1.4s ease;
}
@keyframes wo-item-new {
  from { background: rgba(250, 204, 21, 0.22); }
  to { background: rgba(250, 204, 21, 0.08); }
}
.wo-place-wx {
  margin-left: 4px;
  font-size: 11px;
}
.wo-homes-fold {
  margin: 8px 0 0;
  border: none;
  background: transparent;
  color: var(--wo-muted);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 0;
}
.wo-homes-fold:hover {
  color: #c4b5fd;
}
.wo-homes-wrap[hidden] {
  display: none !important;
}
.wo-person-job {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--wo-muted);
}
.wo-person-drive {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--wo-text, #e5e7eb);
}
.wo-stage-ops {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.wo-select {
  width: auto;
  min-width: 7rem;
}

.wo-panel {
  background: var(--wo-surface);
  border: 1px solid var(--wo-line);
  border-radius: var(--wo-radius);
  padding: 14px 16px 16px;
  min-height: 0;
}
.wo-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  flex: 0 0 auto;
}
.wo-panel-head h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.wo-count {
  font-size: 12px;
  color: var(--wo-faint);
  font-variant-numeric: tabular-nums;
}

.wo-panel-log {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  box-shadow: var(--wo-shadow);
  overflow: hidden;
}
.wo-panel-log > .wo-panel-head,
.wo-panel-log > .wo-day-summary,
.wo-panel-log > .wo-new-banner,
.wo-panel-log > .wo-day-label,
.wo-panel-log > .wo-empty,
.wo-panel-log > .wo-possess-bar {
  flex: 0 0 auto;
}
.wo-panel-log > #world-log.wo-feed {
  flex: 1 1 auto;
  min-height: 0;
}
.wo-day-label {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--wo-muted);
  flex: 0 0 auto;
}
.wo-panel-log:has(#world-log.is-route-split) > .wo-day-label {
  display: none;
}
.wo-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.wo-feed li {
  padding: 14px 4px;
  border-top: 1px solid var(--wo-line);
  animation: wo-rise 0.35s ease both;
}
.wo-feed li:first-child { border-top: 0; padding-top: 2px; }
.wo-source-mark {
  margin-left: 6px;
  font-size: 11px;
  color: var(--wo-muted);
}
.wo-source-mark.is-direct { color: #f9a8d4; }
.wo-source-mark.is-possess { color: #93c5fd; }
.wo-source-mark.is-possess-fallback { color: #fcd34d; }
.wo-source-mark.is-scene { color: #c4b5fd; }
.wo-possess-bar {
  flex: 0 0 auto;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(167, 139, 250, 0.35);
  background: rgba(124, 58, 237, 0.12);
}
.wo-possess-bar[hidden] { display: none !important; }
.wo-possess-bar h3 {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 650;
}
.wo-possess-bar .wo-hint { margin: 0 0 8px; }
.wo-possess-opts {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wo-possess-opts label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--wo-text);
}
.wo-possess-opts label.is-disabled {
  color: var(--wo-faint);
}
.wo-possess-opts em {
  font-style: normal;
  color: var(--wo-muted);
  font-size: 12px;
}
.wo-possess-opts .is-default strong { color: #ddd6fe; }
.wo-possess-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.wo-person.is-possessed {
  border-color: rgba(147, 197, 253, 0.45);
  background: rgba(59, 130, 246, 0.08);
}
.wo-possess-queued {
  font-size: 11px;
  color: #93c5fd;
  flex: 0 0 auto;
}
.wo-possess-intent {
  margin: 0 0 10px;
}
.wo-possess-intent-label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  color: #ddd6fe;
}
.wo-possess-intent textarea {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(167, 139, 250, 0.4);
  background: rgba(0, 0, 0, 0.28);
  color: var(--wo-text);
  font: inherit;
  resize: vertical;
  min-height: 64px;
}
.wo-possess-chips-label {
  margin: 4px 0 6px;
  font-size: 12px;
  color: var(--wo-muted);
}
.wo-possess-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 6px;
}
.wo-possess-chip {
  max-width: 100%;
  border: 1px solid rgba(167, 139, 250, 0.35);
  background: rgba(124, 58, 237, 0.12);
  color: #e9d5ff;
  border-radius: 999px;
  padding: 6px 10px;
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}
.wo-possess-chip em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  color: var(--wo-muted);
  font-size: 11px;
}
.wo-possess-chip.is-drive {
  border-color: rgba(167, 139, 250, 0.7);
  background: rgba(124, 58, 237, 0.22);
}
.wo-possess-chip.is-rewrite {
  border-style: dashed;
}
.wo-possess-chip.is-disabled,
.wo-possess-chip:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.wo-possess-chip:not(:disabled):hover {
  border-color: rgba(196, 181, 253, 0.8);
}
.wo-possess-free-toggle { display: none; }
.wo-possess-free {
  margin: 0 0 10px;
}
.wo-possess-understood {
  margin: 0 0 8px;
  font-size: 13px;
  color: #c4b5fd;
}
.wo-possess-uncertain {
  margin: 0 0 8px;
  font-size: 13px;
  color: #fde68a;
}
.wo-possess-understood em,
.wo-possess-uncertain em {
  font-style: normal;
  color: var(--wo-muted);
}
.wo-exchanges {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 10px;
  max-height: 160px;
  overflow: auto;
  padding: 6px 0;
}
.wo-exchange {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  max-width: 92%;
}
.wo-exchange.is-host {
  align-self: flex-end;
  background: rgba(167, 139, 250, 0.12);
}
.wo-exchange.is-guest {
  align-self: flex-start;
}
.wo-exchange strong {
  font-size: 0.78rem;
  opacity: 0.75;
  font-weight: 600;
}
.wo-exchange span {
  font-size: 0.92rem;
  line-height: 1.35;
}
.wo-possess-intent.is-optional textarea {
  opacity: 0.92;
}
.wo-beat-actions .wo-dialogue-open {
  margin-left: 4px;
}

/* Narrative daypart bands + route split reading pane */

.wo-feed.is-route-split {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}
.wo-route-split {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  border: 1px solid var(--wo-line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--wo-surface);
}
.wo-route-nav {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid var(--wo-line);
  background: rgba(0, 0, 0, 0.25);
}
.wo-route-nav-head {
  flex: 0 0 auto;
  padding: 12px 12px 8px;
  font-size: 11px;
  font-weight: 650;
  color: var(--wo-muted);
}
.wo-route-nav-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 4px 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wo-route {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  overflow: hidden;
}
.wo-route.is-selected {
  background: rgba(96, 165, 250, 0.16);
  box-shadow: inset 3px 0 0 #93c5fd;
}
.wo-route.is-new:not(.is-selected) {
  background: rgba(74, 222, 128, 0.06);
}
.wo-route-head {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 8px 8px 8px 10px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.wo-route-head:hover {
  background: rgba(255, 255, 255, 0.04);
}
.wo-route-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #52525b;
}
.wo-route-dot.is-fresh {
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.16);
}
.wo-route-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wo-route.is-selected .wo-route-name {
  color: #eff6ff;
}
.wo-route-mark {
  flex: 0 0 auto;
  font-size: 10px;
  color: #86efac;
  letter-spacing: 0.04em;
}
.wo-route-copy,
.wo-route-drive,
.wo-route-last,
.wo-route-new,
.wo-route-foot {
  display: none;
}
.wo-route-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--wo-surface2);
}
.wo-route-pane-head {
  flex: 0 0 auto;
  padding: 16px clamp(22px, 3.5vw, 44px) 12px;
  border-bottom: 1px solid var(--wo-line);
}
.wo-route-pane-name {
  display: block;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.wo-route-pane-meta {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--wo-muted);
  line-height: 1.4;
}
.wo-route-pane-crumb,
.wo-route-pane-title-row,
.wo-route-pane-title,
.wo-route-chips,
.wo-route-actions,
.wo-chip-row,
.wo-chip,
.wo-chip-label {
  /* legacy nodes unused in slim layout */
}
.wo-route-pane-read {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 20px clamp(22px, 3.5vw, 44px) 24px;
}
.wo-route-path {
  margin: 0;
  padding: 0;
  border: 0;
  gap: 0;
  overflow: visible;
}
.wo-route-pane .wo-feed li.is-route-beat {
  padding: 0 0 18px;
  margin: 0 0 18px;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--wo-line);
  background: transparent;
  cursor: default;
}
.wo-route-pane .wo-feed li.is-route-beat:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
.wo-route-pane .wo-feed-meta {
  margin-bottom: 6px;
  opacity: 0.85;
}
.wo-route-pane .wo-feed-headline {
  font-size: 13px;
  font-weight: 600;
  color: var(--wo-muted);
  margin-top: 0;
  margin-bottom: 8px;
}
.wo-route-pane .wo-feed-detail {
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1.8 !important;
  color: #e4e4e7 !important;
}
.wo-route-pane .wo-feed-detail.is-clamped {
  display: block;
  max-height: calc(1.8em * 6);
  overflow: hidden;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
}
.wo-route-pane .wo-feed-expand {
  display: inline-block;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #a78bfa;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.wo-route-pane .wo-feed-expand:hover {
  color: #c4b5fd;
  text-decoration: underline;
}
.wo-route-pane .wo-feed-more {
  display: none;
}
.wo-route-meta-line {
  font-size: 13px;
  color: var(--wo-muted);
  line-height: 1.5;
}
.wo-route-meta-line .wo-meta-gap {
  display: inline-block;
  width: 1.25em;
}
.wo-inline-link {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: #bfdbfe;
  font: inherit;
  font-size: inherit;
  cursor: pointer;
}
.wo-inline-link:hover {
  color: #eff6ff;
  text-decoration: underline;
}

/* breath: sentence lines + one-line meta + folded status */
.wo-route-pane .wo-feed-detail .wo-detail-line {
  display: block;
  margin: 0 0 0.55em;
}
.wo-route-pane .wo-feed-detail .wo-detail-line:last-child {
  margin-bottom: 0;
}
.wo-route-pane .wo-feed-detail .wo-stage-line,
.wo-feed li.is-scene-beat .wo-feed-detail .wo-stage-line,
.wo-feed li.is-social .wo-feed-detail .wo-stage-line {
  padding-left: 0.35em;
  border-left: 2px solid color-mix(in srgb, var(--wo-line) 85%, transparent);
  color: var(--wo-ink, inherit);
}
.wo-route-meta-line {
  font-size: 15px !important;
  color: var(--wo-muted);
  line-height: 1.6;
}
.wo-route-meta-sep {
  margin: 0 0.55em;
  color: var(--wo-faint);
}
.wo-route-pane-foot {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px clamp(22px, 3.5vw, 44px) 14px;
  border-top: 1px solid var(--wo-line);
}
.wo-route-status {
  margin: 0;
  border: 0;
  background: transparent;
}
.wo-route-status > summary {
  cursor: pointer;
  list-style: none;
  font-size: 12px;
  font-weight: 650;
  color: var(--wo-muted);
  padding: 2px 0;
}
.wo-route-status > summary::-webkit-details-marker {
  display: none;
}
.wo-route-status > summary::before {
  content: "▸ ";
  color: var(--wo-faint);
}
.wo-route-status[open] > summary::before {
  content: "▾ ";
}
.wo-route-status-body {
  padding: 6px 0 4px;
}
.wo-status-line {
  margin: 0;
  font-size: 13px;
  color: var(--wo-text);
}
.wo-status-drive {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--wo-muted);
  font-style: italic;
}
.wo-route-ops {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
}

.wo-person.is-fresh {
  outline: 1px solid rgba(251, 191, 36, 0.28);
}
.wo-feed-band {
  border-top: 1px solid var(--wo-line);
  margin: 0;
}
.wo-feed-band:first-child {
  border-top: 0;
}
.wo-feed-band > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 4px 8px;
  cursor: pointer;
  user-select: none;
  font-size: 12px;
  font-weight: 600;
  color: #c4b5fd;
  letter-spacing: 0.02em;
}
.wo-feed-band > summary::-webkit-details-marker {
  display: none;
}
.wo-feed-band > summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 6px;
  font-size: 10px;
  color: var(--wo-faint);
  transition: transform 0.15s ease;
}
.wo-feed-band[open] > summary::before {
  transform: rotate(90deg);
}
.wo-feed-band-label {
  flex: 1 1 auto;
}
.wo-feed-band-count {
  font-size: 11px;
  font-weight: 500;
  color: var(--wo-faint);
  font-variant-numeric: tabular-nums;
}
.wo-feed-band-list {
  list-style: none;
  margin: 0;
  padding: 0 0 4px 8px;
  border-left: 2px solid rgba(167, 139, 250, 0.2);
  margin-left: 6px;
}
.wo-feed-band-list li:first-child {
  border-top: 0;
}
.wo-feed-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 11px;
  color: var(--wo-faint);
}
.wo-feed-clock {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  opacity: 0.85;
}
.wo-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px 2px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e9d5ff;
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.28);
}
.wo-tag-icon {
  font-size: 11px;
  line-height: 1;
  opacity: 0.92;
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
}
/* MyTown-style visual grammar */
.wo-tag.is-move {
  color: #fde68a;
  background: rgba(251, 191, 36, 0.14);
  border-color: rgba(251, 191, 36, 0.32);
}
.wo-tag.is-solo {
  color: #cbd5e1;
  background: rgba(100, 116, 139, 0.16);
  border-color: rgba(148, 163, 184, 0.28);
}
.wo-tag.is-visit {
  color: #bbf7d0;
  background: rgba(74, 222, 128, 0.12);
  border-color: rgba(74, 222, 128, 0.28);
}
.wo-tag.is-pair,
.wo-tag.is-group,
.wo-tag.is-scene {
  color: #ddd6fe;
  background: rgba(139, 92, 246, 0.14);
  border-color: rgba(167, 139, 250, 0.32);
}
.wo-tag.is-broadcast,
.wo-tag.is-major {
  color: #fecaca;
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.3);
}
.wo-tag.is-job {
  color: #fed7aa;
  background: rgba(251, 146, 60, 0.14);
  border-color: rgba(251, 146, 60, 0.32);
}
.wo-feed p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--wo-text);
}
.wo-feed-sub {
  margin-top: 6px !important;
  font-size: 12px !important;
  color: var(--wo-muted) !important;
}

/* —— Right column —— */
.wo-panel-side {
  flex: 0 1 30%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.wo-panel-side-grow {
  flex: 1 1 36%;
  min-height: 120px;
}
.wo-places,
.wo-people {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: none;
}
.wo-place {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--wo-line);
  background: var(--wo-surface2);
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  width: 100%;
  transition: border-color 0.15s, background 0.15s;
}
.wo-place:hover {
  background: var(--wo-surface3);
}
.wo-place.is-focus {
  border-color: rgba(168, 85, 247, 0.55);
  background: rgba(168, 85, 247, 0.12);
}
.wo-place.is-home {
  border-style: dashed;
}
.wo-scene-presence {
  flex: 0 0 auto;
  margin: 0 0 12px;
  padding: 14px 16px;
  border: 1px solid rgba(167, 139, 250, 0.28);
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.1);
}
.wo-scene-presence-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.wo-scene-presence-place {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.wo-scene-presence-count {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 650;
  color: #ddd6fe;
  font-variant-numeric: tabular-nums;
}
.wo-scene-presence-who {
  font-size: 14px;
  line-height: 1.55;
  color: var(--wo-muted);
}
.wo-scene-empty-who {
  font-style: normal;
  color: var(--wo-faint);
}
.wo-feed.is-scene-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: auto;
}
.wo-scene-feed-body {
  flex: 1 1 auto;
  min-height: 0;
}
.wo-feed-copresent {
  margin: 0 0 8px !important;
  font-size: 13px !important;
  color: var(--wo-muted) !important;
  line-height: 1.5 !important;
}
.wo-feed-copresent > span {
  display: inline-block;
  margin-right: 8px;
  color: #c4b5fd;
  font-weight: 650;
  font-size: 12px;
}
.wo-beat-teaser {
  margin: 0 0 8px !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
  color: var(--wo-muted) !important;
}
.wo-beat-more-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.wo-beat-who {
  font-size: 12px;
  color: #c4b5fd;
  font-weight: 650;
}
.wo-feed li.is-summary.is-route-beat,
.wo-feed li.is-summary.is-scene-beat {
  padding: 12px 4px 14px;
  cursor: pointer;
}
.wo-feed li.is-summary.is-route-beat:hover,
.wo-feed li.is-summary.is-scene-beat:hover {
  background: rgba(255, 255, 255, 0.03);
}
.wo-feed li.is-open.is-route-beat,
.wo-feed li.is-open.is-scene-beat {
  cursor: default;
}
.wo-route-pane .wo-feed-expand,
.wo-feed.is-scene-feed .wo-feed-expand {
  display: inline-block;
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #a78bfa;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.wo-route-pane .wo-feed-expand:hover,
.wo-feed.is-scene-feed .wo-feed-expand:hover {
  color: #c4b5fd;
  text-decoration: underline;
}
.wo-route-here {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--wo-line);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
}
.wo-route-here strong {
  font-size: 13px;
  font-weight: 650;
}
.wo-route-here .wo-scene-presence-who {
  flex: 1 1 100%;
  font-size: 13px;
}
.wo-feed li.is-scene-beat .wo-feed-detail,
.wo-route-pane .wo-feed-detail {
  font-size: 15px !important;
  line-height: 1.8 !important;
}
.wo-feed li.is-scene-beat .wo-feed-detail.is-clamped {
  display: block;
  max-height: calc(1.8em * 8);
  overflow: hidden;
}
.wo-feed li.is-scene-beat .wo-feed-detail .wo-detail-line {
  display: block;
  margin: 0 0 0.55em;
}
.wo-feed li.is-scene-beat .wo-feed-detail .wo-detail-line:last-child {
  margin-bottom: 0;
}
.wo-scene-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
  font-size: 12px;
  color: #e9d5ff;
}
.wo-filter-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 0;
  font-size: 12px;
  color: #bbf7d0;
}
.wo-filter-chip[hidden],
.wo-scene-chip[hidden] {
  display: none !important;
}
.wo-btn-tiny {
  padding: 4px 8px;
  font-size: 11px;
}
.wo-feed li {
  padding: 12px 4px;
  border-top: 1px solid var(--wo-line);
  cursor: pointer;
}
.wo-feed li.is-open {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding-left: 8px;
  padding-right: 8px;
}
.wo-feed-headline {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--wo-text);
}
.wo-feed-detail {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--wo-muted);
  white-space: pre-wrap;
}
.wo-feed-more {
  margin-top: 4px !important;
  font-size: 11px !important;
  color: var(--wo-accent) !important;
}
.wo-place strong {
  font-size: 13px;
  font-weight: 600;
}
.wo-place .wo-place-n {
  font-size: 11px;
  color: var(--wo-faint);
  font-variant-numeric: tabular-nums;
}
.wo-place .wo-place-state {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 12px;
  color: var(--wo-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wo-place .wo-place-who {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 12px;
  color: var(--wo-text);
}
.wo-place .wo-place-who em {
  font-style: normal;
  color: var(--wo-faint);
}

.wo-person {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-auto-flow: row;
  grid-auto-columns: minmax(0, 0);
  gap: 8px 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--wo-line);
  background: var(--wo-surface2);
  cursor: pointer;
  min-width: 0;
  overflow: hidden;
}
.wo-person:hover {
  border-color: rgba(167, 139, 250, 0.35);
  background: rgba(255, 255, 255, 0.04);
}
.wo-person.is-gone {
  opacity: 0.62;
}
.wo-gone-mark {
  font-size: 11px;
  color: var(--wo-muted, #9aa3b5);
}
.wo-death-bar {
  border-color: rgba(248, 113, 113, 0.35);
}
.wo-person:focus-visible {
  outline: 2px solid rgba(167, 139, 250, 0.55);
  outline-offset: 2px;
}
.wo-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: #7c3aed;
  align-self: start;
  flex: 0 0 auto;
  overflow: hidden;
}
.wo-avatar.is-photo {
  background: var(--wo-surface3, #27272a);
}
.wo-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.wo-person-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.wo-person header {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.wo-person-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.wo-btn-filter-ta {
  margin-left: auto;
  border: 1px solid rgba(74, 222, 128, 0.28);
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.1);
  color: #bbf7d0;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  cursor: pointer;
  flex: 0 0 auto;
  transition: background 0.15s, border-color 0.15s;
}
.wo-btn-filter-ta:hover {
  background: rgba(74, 222, 128, 0.18);
  border-color: rgba(74, 222, 128, 0.45);
}
.wo-person.is-filtered {
  border-color: rgba(74, 222, 128, 0.45);
  background: rgba(74, 222, 128, 0.08);
}
.wo-person.is-filtered .wo-btn-filter-ta {
  background: rgba(74, 222, 128, 0.22);
  border-color: rgba(74, 222, 128, 0.55);
}
.wo-person header strong {
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1 1 auto;
}
.wo-tier {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 999px;
  color: var(--wo-muted);
  background: rgba(255, 255, 255, 0.06);
  flex: 0 0 auto;
}
.wo-tier.is-high {
  color: #fde68a;
  background: rgba(251, 191, 36, 0.12);
}
.wo-person .wo-person-meta,
.wo-person .wo-person-drive {
  margin: 0;
  font-size: 12px;
  color: var(--wo-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.wo-person .wo-person-drive {
  color: var(--wo-text);
  flex: 1 1 auto;
}
.wo-person .wo-person-drive.is-empty {
  color: var(--wo-faint);
}

/* —— Inject / archive (collapsed) —— */
.wo-side-records {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  max-height: min(38vh, 360px);
  overflow: auto;
  padding-top: 2px;
}
.wo-side-records-label {
  margin: 0 2px 2px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.06em;
  color: var(--wo-faint);
  text-transform: uppercase;
}
.wo-side-records .wo-panel {
  margin: 0;
}
.wo-inject,
.wo-archive,
.wo-gazette,
.wo-chronicle {
  padding: 0;
  overflow: hidden;
  flex: 0 0 auto;
}
.wo-side-records .wo-inject > summary,
.wo-side-records .wo-archive > summary,
.wo-side-records .wo-gazette > summary,
.wo-side-records .wo-chronicle > summary {
  padding: 9px 12px;
  gap: 8px;
}
.wo-side-records .wo-inject > summary span,
.wo-side-records .wo-archive > summary span,
.wo-side-records .wo-gazette > summary span,
.wo-side-records .wo-chronicle > summary span {
  font-size: 13px;
}
.wo-side-records .wo-inject > summary em,
.wo-side-records .wo-archive > summary em,
.wo-side-records .wo-gazette > summary em,
.wo-side-records .wo-chronicle > summary em {
  font-size: 11px;
  max-width: 55%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wo-side-records .wo-inject-body,
.wo-side-records .wo-archive-body,
.wo-side-records .wo-gazette-body,
.wo-side-records .wo-chronicle .wo-gazette-body {
  padding: 10px 12px 12px;
}
.wo-side-records .wo-feed-archive,
.wo-side-records .wo-gazette-list,
.wo-side-records .wo-chro-body {
  max-height: min(28vh, 240px);
}
.wo-inject > summary,
.wo-archive > summary,
.wo-gazette > summary,
.wo-chronicle > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  user-select: none;
}
.wo-inject > summary::-webkit-details-marker,
.wo-archive > summary::-webkit-details-marker,
.wo-gazette > summary::-webkit-details-marker,
.wo-chronicle > summary::-webkit-details-marker { display: none; }
.wo-inject > summary span,
.wo-archive > summary span,
.wo-gazette > summary span,
.wo-chronicle > summary span {
  font-size: 14px;
  font-weight: 650;
}
.wo-inject > summary em,
.wo-archive > summary em,
.wo-gazette > summary em,
.wo-chronicle > summary em {
  font-style: normal;
  font-size: 12px;
  color: var(--wo-faint);
}
.wo-inject[open] > summary,
.wo-archive[open] > summary,
.wo-gazette[open] > summary,
.wo-chronicle[open] > summary {
  border-bottom: 1px solid var(--wo-line);
}
.wo-inject-body,
.wo-archive-body,
.wo-gazette-body,
.wo-chronicle .wo-gazette-body {
  padding: 14px 16px 16px;
}
.wo-inject-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.wo-archive-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.wo-archive-pick {
  margin-bottom: 0;
  min-width: 10rem;
}
.wo-feed-archive {
  max-height: min(36vh, 360px);
  flex: none;
}
.wo-gazette-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: min(42vh, 420px);
  overflow: auto;
}
.wo-gazette-card {
  border: 1px solid var(--wo-line);
  border-radius: var(--wo-radius-sm);
  padding: 12px 14px;
  background: var(--wo-surface2);
}
.wo-gazette-card strong {
  display: block;
  margin-bottom: 4px;
}
.wo-gazette-card time {
  display: block;
  font-size: 12px;
  color: var(--wo-faint);
  margin-bottom: 8px;
}
.wo-gazette-card p {
  margin: 0;
  color: var(--wo-muted);
  white-space: pre-wrap;
}
.wo-chro-forms {
  display: flex;
  gap: 8px;
}
.wo-chro-body {
  max-height: min(56vh, 640px);
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.wo-chro-week h3 {
  margin: 0 0 4px;
  font-size: 15px;
}
.wo-chro-week > p {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--wo-faint);
}
.wo-chro-day {
  margin: 0 0 18px;
}
.wo-chro-day h4,
.wo-chro-scene h4 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 650;
}
.wo-chro-day p,
.wo-chro-scene p {
  margin: 0 0 8px;
  color: var(--wo-muted);
  line-height: 1.65;
  font-size: 13px;
}
.wo-chro-set {
  color: var(--wo-faint) !important;
  font-size: 12px !important;
}
.wo-chro-scene blockquote {
  margin: 0 0 8px;
  padding-left: 10px;
  border-left: 2px solid var(--wo-line);
  color: var(--wo-text);
  font-size: 13px;
  line-height: 1.65;
}
.wo-chro-later {
  color: var(--wo-faint);
  font-size: 13px;
}
.wo-chro-read {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.75;
  font-size: 13.5px;
  color: var(--wo-text, #e5e7eb);
}

/* —— Toast / foot —— */
.wo-toast {
  position: sticky;
  bottom: 12px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--wo-line);
  background: rgba(24, 24, 28, 0.96);
  box-shadow: var(--wo-shadow);
  font-size: 13px;
  z-index: 5;
}
.wo-toast.ok { border-color: rgba(52, 211, 153, 0.45); color: #a7f3d0; }
.wo-toast.err { border-color: rgba(248, 113, 113, 0.5); color: #fecaca; }

.wo-foot {
  text-align: center;
  padding: 6px 16px 14px;
  font-size: 12px;
  color: var(--wo-faint);
  flex: 0 0 auto;
}

@keyframes wo-rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1100px) {
  .wo-shell {
    grid-template-columns: minmax(200px, 240px) minmax(0, 1fr) minmax(240px, 300px);
    height: calc(100vh - 160px);
  }
}

.wo-day-summary {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(167, 139, 250, 0.28);
  background: linear-gradient(135deg, rgba(91, 33, 182, 0.18), rgba(24, 24, 27, 0.4));
}
.wo-day-summary.is-fresh {
  animation: wo-summary-flash 1.2s ease;
}
.wo-day-summary strong {
  display: block;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c4b5fd;
  margin-bottom: 4px;
}
.wo-day-summary p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--wo-text, #e4e4e7);
}
.wo-day-summary-meta {
  margin-top: 6px !important;
  font-size: 11px !important;
  color: var(--wo-muted) !important;
}
@keyframes wo-summary-flash {
  0% { box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.45); }
  40% { box-shadow: 0 0 0 6px rgba(250, 204, 21, 0); }
  100% { box-shadow: none; }
}

.wo-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 40;
}
.wo-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100vw);
  height: 100vh;
  z-index: 50;
  background: #121214;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: -16px 0 40px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  transform: translateX(0);
  animation: wo-drawer-in 0.22s ease;
}
.wo-drawer[hidden],
.wo-drawer-backdrop[hidden] {
  display: none !important;
}
@keyframes wo-drawer-in {
  from { transform: translateX(24px); opacity: 0.6; }
  to { transform: translateX(0); opacity: 1; }
}
.wo-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.wo-drawer-head .wo-avatar {
  width: 44px;
  height: 44px;
  margin-top: 2px;
}
.wo-drawer-title {
  flex: 1 1 auto;
  min-width: 0;
}
.wo-drawer-kicker {
  margin: 0;
  font-size: 11px;
  color: var(--wo-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.wo-drawer-head h2 {
  margin: 4px 0 0;
  font-size: 20px;
  font-weight: 700;
}
.wo-drawer-body {
  flex: 1;
  overflow: auto;
  padding: 14px 18px 28px;
}
.wo-drawer-actions {
  margin: 0 0 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.wo-drawer-scene-pick {
  margin: 0 0 12px;
}
.wo-drawer-section {
  margin: 0 0 16px;
}
.wo-drawer-section h3 {
  margin: 0 0 8px;
  font-size: 12px;
  color: #c4b5fd;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.wo-drawer-kv {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--wo-text, #e4e4e7);
}
.wo-drawer-kv span {
  color: var(--wo-muted);
}
.wo-rel-list,
.wo-tl-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.wo-rel-list li,
.wo-tl-day {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
}
.wo-rel-empty {
  margin: 0;
}
.wo-rel-bars .wo-rel-row {
  display: grid;
  gap: 6px;
}
.wo-rel-row.is-nav {
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.wo-rel-row.is-nav:hover,
.wo-rel-row.is-nav:focus-visible {
  outline: none;
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(16, 185, 129, 0.08);
}
.wo-rel-row.is-nav .wo-rel-name {
  text-decoration: underline;
  text-decoration-color: rgba(167, 243, 208, 0.45);
  text-underline-offset: 2px;
}
.wo-rel-row.is-gone {
  opacity: 0.55;
  cursor: not-allowed;
}
.wo-rel-recent {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 3px;
}
.wo-rel-recent li {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 11px;
  line-height: 1.45;
  color: var(--wo-muted, #a1a1aa);
}
.wo-rel-recent-empty {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(161, 161, 170, 0.75);
}
.wo-rel-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.wo-rel-name {
  font-size: 13px;
  color: var(--wo-text, #e4e4e7);
}
.wo-rel-tags {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
  color: var(--wo-muted, #a1a1aa);
}
.wo-rel-type {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #d4d4d8;
  letter-spacing: 0.02em;
}
.wo-rel-type[data-type="friends"] {
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(16, 185, 129, 0.12);
  color: #a7f3d0;
}
.wo-rel-type[data-type="lovers"],
.wo-rel-type[data-type="partners"],
.wo-rel-type[data-type="spouses"] {
  border-color: rgba(251, 146, 60, 0.4);
  background: rgba(249, 115, 22, 0.14);
  color: #fdba74;
}
.wo-rel-type[data-type="exes"] {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
}
.wo-rel-type[data-type="strangers"] {
  border-color: rgba(161, 161, 170, 0.3);
  color: #a1a1aa;
}
.wo-rel-warm {
  color: var(--wo-muted, #a1a1aa);
}
.wo-rel-score {
  font-variant-numeric: tabular-nums;
  opacity: 0.85;
}
.wo-rel-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.wo-rel-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(110, 231, 183, 0.55), rgba(52, 211, 153, 0.95));
  min-width: 4px;
  transition: width 0.25s ease;
}
.wo-rel-row[data-type="lovers"] .wo-rel-bar-fill,
.wo-rel-row[data-type="partners"] .wo-rel-bar-fill,
.wo-rel-row[data-type="spouses"] .wo-rel-bar-fill {
  background: linear-gradient(90deg, rgba(251, 146, 60, 0.45), rgba(249, 115, 22, 0.9));
}
.wo-rel-row[data-type="exes"] .wo-rel-bar-fill,
.wo-rel-row.is-neg .wo-rel-bar-fill {
  background: linear-gradient(90deg, rgba(248, 113, 113, 0.4), rgba(239, 68, 68, 0.85));
}
.wo-rel-row[data-type="strangers"] .wo-rel-bar-fill {
  background: linear-gradient(90deg, rgba(161, 161, 170, 0.35), rgba(212, 212, 216, 0.7));
}
.wo-tl-day strong {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
}
.wo-tl-day p {
  margin: 0 0 4px;
  color: var(--wo-muted);
  line-height: 1.4;
}

@media (max-width: 900px) {
  .wo-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }
  .wo-col {
    height: auto;
    overflow: visible;
  }
  .wo-col-left {
    overflow: visible;
    max-height: none;
  }
  .wo-panel-log {
    min-height: min(68vh, 560px);
  }
  .wo-side-records {
    max-height: none;
  }
  .wo-route-split {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(120px, 30%) minmax(220px, 1fr);
    min-height: 380px;
  }
  .wo-route-nav {
    border-right: 0;
    border-bottom: 1px solid var(--wo-line);
  }
  .wo-route-pane-read {
    padding: 16px 18px 18px;
  }
  .wo-route-pane-head,
  .wo-route-pane-foot {
    padding-left: 18px;
    padding-right: 18px;
  }
  .wo-places,
  .wo-people {
    max-height: 280px;
  }
  .wo-block-grow {
    max-height: 200px;
  }
}

@media (max-width: 560px) {
  .wo-page-head { flex-direction: column; }
  .wo-stage-ops { width: 100%; }
  .wo-stage-ops .wo-btn-primary { flex: 1; }
  .wo-drawer { width: 100vw; }
}

.wo-beat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}
.wo-chapter-drawer {
  width: min(560px, 100vw);
  z-index: 42;
}
.wo-drawer-head-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
.wo-chapter-body {
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: 0.01em;
}
.wo-chapter-body p {
  margin: 0 0 1em;
}
.wo-chapter-body p:last-child {
  margin-bottom: 0;
}
